From 3c3ca8f8fae9ee97b15068155287b2bbda7f6d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Ole=C5=9B?= Date: Wed, 17 Dec 2025 16:18:01 +0100 Subject: [PATCH] Add support for Sandbox life cycle and re-generate api --- .openapi-generator/FILES | 8 + .openapi-generator/VERSION | 2 +- Makefile | 3 +- koyeb/api/__init__.py | 879 +++-- koyeb/api/api/__init__.py | 1 - koyeb/api/api/activity_api.py | 411 +-- koyeb/api/api/apps_api.py | 1164 +++---- koyeb/api/api/archives_api.py | 117 +- koyeb/api/api/billing_api.py | 331 +- koyeb/api/api/catalog_datacenters_api.py | 81 +- koyeb/api/api/catalog_instance_usage_api.py | 87 +- koyeb/api/api/catalog_instances_api.py | 214 +- koyeb/api/api/catalog_regions_api.py | 214 +- koyeb/api/api/compose_api.py | 117 +- koyeb/api/api/coupons_api.py | 117 +- koyeb/api/api/credentials_api.py | 789 ++--- koyeb/api/api/deployments_api.py | 807 ++--- koyeb/api/api/docker_helper_api.py | 162 +- koyeb/api/api/domains_api.py | 822 +++-- koyeb/api/api/instances_api.py | 969 +++--- koyeb/api/api/intercom_api.py | 117 +- koyeb/api/api/invite_api.py | 117 +- koyeb/api/api/logs_api.py | 1005 ++++-- koyeb/api/api/metrics_api.py | 258 +- koyeb/api/api/organization_api.py | 2300 +++++++------ .../api/api/organization_confirmations_api.py | 119 +- koyeb/api/api/organization_invitations_api.py | 690 ++-- koyeb/api/api/organization_members_api.py | 335 +- koyeb/api/api/organization_quotas_api.py | 119 +- koyeb/api/api/payment_methods_api.py | 621 ++-- koyeb/api/api/persistent_volumes_api.py | 879 +++-- koyeb/api/api/profile_api.py | 2881 ++++++++--------- koyeb/api/api/provisioning_api.py | 351 +- koyeb/api/api/quotas_api.py | 125 +- koyeb/api/api/regional_deployments_api.py | 523 +-- koyeb/api/api/repositories_api.py | 523 +-- koyeb/api/api/search_api.py | 135 +- koyeb/api/api/secrets_api.py | 816 ++--- koyeb/api/api/services_api.py | 1612 +++++---- koyeb/api/api/sessions_api.py | 452 ++- koyeb/api/api/snapshots_api.py | 658 ++-- koyeb/api/api/sso_api.py | 224 +- koyeb/api/api/subscriptions_api.py | 119 +- koyeb/api/api/summary_api.py | 119 +- koyeb/api/api/usages_api.py | 340 +- koyeb/api/api/users_api.py | 228 +- koyeb/api/api_client.py | 266 +- koyeb/api/api_response.py | 5 +- koyeb/api/configuration.py | 246 +- koyeb/api/docs/App.md | 1 + koyeb/api/docs/AppLifeCycle.md | 29 + koyeb/api/docs/BillingApi.md | 8 +- koyeb/api/docs/CreateApp.md | 1 + koyeb/api/docs/CreateService.md | 1 + koyeb/api/docs/OrganizationApi.md | 91 +- koyeb/api/docs/OrganizationMember.md | 1 + koyeb/api/docs/ProfileApi.md | 10 +- koyeb/api/docs/PublicOrganization.md | 1 + .../docs/RegionalDeploymentDefinitionType.md | 2 + koyeb/api/docs/Service.md | 1 + koyeb/api/docs/ServiceLifeCycle.md | 30 + koyeb/api/docs/ServicesApi.md | 16 +- koyeb/api/docs/UpdateApp.md | 1 + koyeb/api/docs/UpdateOrganizationNameReply.md | 29 + .../api/docs/UpdateOrganizationNameRequest.md | 29 + koyeb/api/docs/UpdateService.md | 1 + koyeb/api/exceptions.py | 55 +- koyeb/api/models/__init__.py | 261 +- .../accept_organization_invitation_reply.py | 34 +- koyeb/api/models/action.py | 18 +- koyeb/api/models/activity.py | 59 +- koyeb/api/models/activity_list.py | 40 +- koyeb/api/models/app.py | 92 +- koyeb/api/models/app_event.py | 50 +- koyeb/api/models/app_life_cycle.py | 83 + koyeb/api/models/app_list_item.py | 63 +- koyeb/api/models/app_status.py | 30 +- koyeb/api/models/app_usage.py | 46 +- koyeb/api/models/apps_summary.py | 27 +- koyeb/api/models/archive.py | 74 +- .../api/models/archive_deployment_metadata.py | 30 +- koyeb/api/models/archive_source.py | 44 +- koyeb/api/models/auto_release.py | 34 +- koyeb/api/models/auto_release_group.py | 34 +- koyeb/api/models/autocomplete_reply.py | 32 +- koyeb/api/models/autocomplete_request.py | 34 +- koyeb/api/models/availability_level.py | 20 +- .../azure_container_registry_configuration.py | 32 +- koyeb/api/models/budget.py | 27 +- koyeb/api/models/buildpack_builder.py | 32 +- koyeb/api/models/canny_auth_reply.py | 24 +- koyeb/api/models/catalog_gpu_details.py | 34 +- koyeb/api/models/catalog_instance.py | 111 +- .../api/models/catalog_instance_list_item.py | 111 +- koyeb/api/models/catalog_usage.py | 46 +- ...lear_idenfy_verification_result_request.py | 30 +- koyeb/api/models/compose_reply.py | 40 +- koyeb/api/models/config_file.py | 32 +- .../confirm_payment_authorization_reply.py | 34 +- koyeb/api/models/create_access_token_reply.py | 24 +- .../api/models/create_access_token_request.py | 24 +- koyeb/api/models/create_account_request.py | 34 +- koyeb/api/models/create_app.py | 40 +- koyeb/api/models/create_app_reply.py | 28 +- koyeb/api/models/create_archive.py | 29 +- koyeb/api/models/create_archive_reply.py | 34 +- koyeb/api/models/create_budget_reply.py | 34 +- koyeb/api/models/create_compose.py | 42 +- koyeb/api/models/create_credential.py | 45 +- koyeb/api/models/create_credential_reply.py | 34 +- koyeb/api/models/create_domain.py | 54 +- koyeb/api/models/create_domain_reply.py | 34 +- .../create_organization_invitation_reply.py | 34 +- .../create_organization_invitation_request.py | 24 +- koyeb/api/models/create_organization_reply.py | 34 +- .../api/models/create_organization_request.py | 24 +- .../create_payment_authorization_reply.py | 34 +- .../models/create_persistent_volume_reply.py | 34 +- .../create_persistent_volume_request.py | 59 +- koyeb/api/models/create_secret.py | 127 +- koyeb/api/models/create_secret_reply.py | 34 +- koyeb/api/models/create_service.py | 48 +- koyeb/api/models/create_service_reply.py | 34 +- koyeb/api/models/create_snapshot_reply.py | 34 +- koyeb/api/models/create_snapshot_request.py | 27 +- .../models/create_stage_attempt_request.py | 56 +- koyeb/api/models/credential.py | 63 +- koyeb/api/models/credential_type.py | 18 +- .../models/database_deployment_metadata.py | 40 +- koyeb/api/models/database_role_password.py | 27 +- koyeb/api/models/database_source.py | 34 +- koyeb/api/models/database_usage.py | 41 +- koyeb/api/models/database_usage_details.py | 56 +- koyeb/api/models/datacenter_list_item.py | 47 +- .../models/deactivate_organization_reply.py | 34 +- .../models/deactivate_organization_request.py | 29 +- .../models/declare_stage_progress_request.py | 62 +- .../models/declare_step_progress_request.py | 56 +- .../decline_organization_invitation_reply.py | 34 +- koyeb/api/models/delete_organization_reply.py | 34 +- .../models/delete_persistent_volume_reply.py | 34 +- koyeb/api/models/delete_snapshot_reply.py | 34 +- koyeb/api/models/delete_user_reply.py | 32 +- koyeb/api/models/deployment.py | 127 +- koyeb/api/models/deployment_database_info.py | 38 +- koyeb/api/models/deployment_definition.py | 180 +- .../api/models/deployment_definition_type.py | 22 +- koyeb/api/models/deployment_env.py | 34 +- koyeb/api/models/deployment_event.py | 50 +- koyeb/api/models/deployment_health_check.py | 59 +- koyeb/api/models/deployment_instance_type.py | 27 +- koyeb/api/models/deployment_list_item.py | 117 +- koyeb/api/models/deployment_metadata.py | 77 +- .../deployment_neon_postgres_database_info.py | 84 +- ...oyment_neon_postgres_database_info_role.py | 27 +- koyeb/api/models/deployment_port.py | 27 +- .../models/deployment_provisioning_info.py | 58 +- .../deployment_provisioning_info_stage.py | 72 +- ...t_provisioning_info_stage_build_attempt.py | 91 +- ...ing_info_stage_build_attempt_build_step.py | 56 +- ...ployment_provisioning_info_stage_status.py | 24 +- koyeb/api/models/deployment_proxy_port.py | 34 +- .../models/deployment_proxy_port_metadata.py | 38 +- koyeb/api/models/deployment_role.py | 20 +- koyeb/api/models/deployment_route.py | 25 +- koyeb/api/models/deployment_scaling.py | 43 +- koyeb/api/models/deployment_scaling_target.py | 115 +- .../deployment_scaling_target_average_cpu.py | 24 +- .../deployment_scaling_target_average_mem.py | 24 +- ...ment_scaling_target_concurrent_requests.py | 24 +- ...ment_scaling_target_requests_per_second.py | 24 +- ...t_scaling_target_requests_response_time.py | 32 +- ...loyment_scaling_target_sleep_idle_delay.py | 53 +- koyeb/api/models/deployment_status.py | 44 +- koyeb/api/models/deployment_strategy.py | 36 +- koyeb/api/models/deployment_strategy_type.py | 24 +- koyeb/api/models/deployment_volume.py | 34 +- koyeb/api/models/desired_deployment.py | 34 +- koyeb/api/models/desired_deployment_group.py | 27 +- .../digital_ocean_registry_configuration.py | 27 +- koyeb/api/models/discourse_auth_reply.py | 25 +- koyeb/api/models/discourse_auth_request.py | 27 +- koyeb/api/models/docker_builder.py | 47 +- .../docker_hub_registry_configuration.py | 27 +- koyeb/api/models/docker_source.py | 47 +- koyeb/api/models/domain.py | 88 +- .../api/models/domain_load_balancer_koyeb.py | 26 +- .../api/models/domain_load_balancer_quotas.py | 24 +- koyeb/api/models/domain_status.py | 22 +- koyeb/api/models/domain_type.py | 16 +- koyeb/api/models/domains_summary.py | 27 +- koyeb/api/models/env.py | 32 +- koyeb/api/models/error.py | 32 +- koyeb/api/models/error_field.py | 27 +- koyeb/api/models/error_with_fields.py | 40 +- koyeb/api/models/exec_command_io.py | 44 +- koyeb/api/models/exec_command_reply.py | 46 +- koyeb/api/models/exec_command_request_body.py | 60 +- .../models/exec_command_request_id_type.py | 18 +- .../exec_command_request_terminal_size.py | 27 +- .../gcp_container_registry_configuration.py | 27 +- koyeb/api/models/get_app_reply.py | 28 +- koyeb/api/models/get_budget_reply.py | 34 +- .../api/models/get_catalog_instance_reply.py | 34 +- koyeb/api/models/get_credential_reply.py | 34 +- koyeb/api/models/get_deployment_reply.py | 34 +- .../models/get_deployment_scaling_reply.py | 41 +- .../get_deployment_scaling_reply_item.py | 43 +- koyeb/api/models/get_domain_reply.py | 34 +- .../models/get_github_installation_reply.py | 79 +- koyeb/api/models/get_idenfy_token_reply.py | 24 +- koyeb/api/models/get_instance_reply.py | 34 +- .../api/models/get_intercom_profile_reply.py | 24 +- koyeb/api/models/get_metrics_reply.py | 34 +- koyeb/api/models/get_metrics_reply_metric.py | 36 +- koyeb/api/models/get_o_auth_options_reply.py | 34 +- .../get_organization_invitation_reply.py | 34 +- koyeb/api/models/get_organization_reply.py | 34 +- .../models/get_organization_summary_reply.py | 34 +- .../get_organization_usage_details_reply.py | 62 +- .../models/get_organization_usage_reply.py | 34 +- koyeb/api/models/get_payment_method_reply.py | 34 +- .../api/models/get_persistent_volume_reply.py | 34 +- koyeb/api/models/get_quotas_reply.py | 34 +- koyeb/api/models/get_region_reply.py | 34 +- .../models/get_regional_deployment_reply.py | 34 +- koyeb/api/models/get_secret_reply.py | 34 +- koyeb/api/models/get_service_reply.py | 34 +- koyeb/api/models/get_snapshot_reply.py | 34 +- koyeb/api/models/get_subscription_reply.py | 34 +- .../get_user_organization_invitation_reply.py | 34 +- koyeb/api/models/get_user_settings_reply.py | 34 +- koyeb/api/models/git_deployment_metadata.py | 38 +- .../api/models/git_env_deployment_metadata.py | 32 +- .../models/git_hub_registry_configuration.py | 27 +- .../models/git_lab_registry_configuration.py | 27 +- koyeb/api/models/git_source.py | 76 +- koyeb/api/models/github_installation_reply.py | 34 +- .../api/models/github_installation_request.py | 24 +- koyeb/api/models/google_protobuf_any.py | 29 +- .../api/models/google_protobuf_null_value.py | 14 +- koyeb/api/models/google_rpc_status.py | 38 +- koyeb/api/models/has_unpaid_invoices_reply.py | 26 +- koyeb/api/models/http_header.py | 25 +- koyeb/api/models/http_health_check.py | 40 +- koyeb/api/models/instance.py | 95 +- koyeb/api/models/instance_availability.py | 48 +- koyeb/api/models/instance_event.py | 50 +- koyeb/api/models/instance_list_item.py | 83 +- koyeb/api/models/instance_status.py | 28 +- koyeb/api/models/instance_usage.py | 24 +- koyeb/api/models/instances_summary.py | 27 +- koyeb/api/models/invite_user_request.py | 32 +- koyeb/api/models/kgitproxy_branch.py | 58 +- .../models/kgitproxy_git_hub_repository.py | 24 +- .../kgitproxy_github_installation_status.py | 20 +- koyeb/api/models/kgitproxy_indexing_status.py | 20 +- .../models/kgitproxy_list_branches_reply.py | 56 +- .../kgitproxy_list_repositories_reply.py | 59 +- koyeb/api/models/kgitproxy_repository.py | 76 +- .../models/kgitproxy_repository_provider.py | 16 +- koyeb/api/models/ksearch_app.py | 32 +- koyeb/api/models/ksearch_global_deployment.py | 41 +- koyeb/api/models/ksearch_instance.py | 44 +- koyeb/api/models/ksearch_organization.py | 25 +- .../api/models/ksearch_regional_deployment.py | 44 +- koyeb/api/models/ksearch_search_reply.py | 101 +- koyeb/api/models/ksearch_service.py | 34 +- koyeb/api/models/ksearch_user.py | 34 +- koyeb/api/models/list_app_events_reply.py | 50 +- koyeb/api/models/list_apps_reply.py | 42 +- .../models/list_catalog_instances_reply.py | 43 +- koyeb/api/models/list_credentials_reply.py | 40 +- koyeb/api/models/list_datacenters_reply.py | 37 +- .../models/list_deployment_events_reply.py | 50 +- koyeb/api/models/list_deployments_reply.py | 53 +- koyeb/api/models/list_domains_reply.py | 40 +- .../api/models/list_instance_events_reply.py | 50 +- koyeb/api/models/list_instances_reply.py | 50 +- .../list_organization_invitations_reply.py | 43 +- .../models/list_organization_members_reply.py | 40 +- .../api/models/list_payment_methods_reply.py | 40 +- .../list_persistent_volume_events_reply.py | 50 +- .../models/list_persistent_volumes_reply.py | 40 +- .../list_regional_deployment_events_reply.py | 53 +- .../models/list_regional_deployments_reply.py | 53 +- koyeb/api/models/list_regions_reply.py | 40 +- koyeb/api/models/list_secrets_reply.py | 40 +- koyeb/api/models/list_service_events_reply.py | 50 +- koyeb/api/models/list_services_reply.py | 50 +- koyeb/api/models/list_snapshots_reply.py | 40 +- koyeb/api/models/list_usage_reply.py | 34 +- ...ist_user_organization_invitations_reply.py | 43 +- .../models/list_user_organizations_reply.py | 40 +- koyeb/api/models/log_entry.py | 32 +- koyeb/api/models/login_method_reply.py | 32 +- koyeb/api/models/login_method_reply_method.py | 16 +- koyeb/api/models/login_reply.py | 34 +- koyeb/api/models/login_request.py | 32 +- koyeb/api/models/manage_reply.py | 24 +- koyeb/api/models/members_summary.py | 30 +- koyeb/api/models/metric_name.py | 32 +- koyeb/api/models/neon_postgres_database.py | 70 +- ...n_postgres_database_deployment_metadata.py | 26 +- .../neon_postgres_database_neon_database.py | 25 +- .../neon_postgres_database_neon_role.py | 27 +- koyeb/api/models/neon_postgres_summary.py | 27 +- koyeb/api/models/next_invoice_reply.py | 47 +- .../api/models/next_invoice_reply_discount.py | 44 +- .../next_invoice_reply_discount_type.py | 16 +- koyeb/api/models/next_invoice_reply_line.py | 56 +- .../models/next_invoice_reply_line_period.py | 25 +- .../models/next_invoice_reply_line_price.py | 26 +- koyeb/api/models/notification.py | 50 +- koyeb/api/models/notification_list.py | 59 +- koyeb/api/models/o_auth_callback_reply.py | 34 +- koyeb/api/models/o_auth_callback_request.py | 51 +- koyeb/api/models/o_auth_provider.py | 28 +- koyeb/api/models/object.py | 36 +- koyeb/api/models/organization.py | 146 +- .../organization_deactivation_reason.py | 24 +- .../models/organization_detailed_status.py | 32 +- koyeb/api/models/organization_invitation.py | 92 +- .../models/organization_invitation_status.py | 22 +- koyeb/api/models/organization_member.py | 76 +- .../api/models/organization_member_status.py | 18 +- koyeb/api/models/organization_status.py | 26 +- koyeb/api/models/organization_summary.py | 103 +- koyeb/api/models/payment_method.py | 100 +- koyeb/api/models/payment_method_status.py | 26 +- koyeb/api/models/period_usage.py | 38 +- koyeb/api/models/persistent_volume.py | 91 +- .../models/persistent_volume_backing_store.py | 18 +- koyeb/api/models/persistent_volume_event.py | 50 +- koyeb/api/models/persistent_volume_quotas.py | 52 +- koyeb/api/models/persistent_volume_status.py | 22 +- koyeb/api/models/plan.py | 36 +- koyeb/api/models/port.py | 27 +- .../models/private_registry_configuration.py | 32 +- koyeb/api/models/proxy_port_protocol.py | 14 +- koyeb/api/models/public_organization.py | 42 +- koyeb/api/models/public_user.py | 47 +- koyeb/api/models/query_logs_reply.py | 42 +- .../api/models/query_logs_reply_pagination.py | 32 +- koyeb/api/models/quotas.py | 123 +- .../models/reactivate_organization_reply.py | 34 +- koyeb/api/models/redeem_coupon_request.py | 24 +- koyeb/api/models/redeploy_reply.py | 34 +- koyeb/api/models/redeploy_request_info.py | 46 +- koyeb/api/models/region.py | 58 +- koyeb/api/models/region_availability.py | 32 +- koyeb/api/models/region_list_item.py | 58 +- koyeb/api/models/region_usage.py | 46 +- koyeb/api/models/regional_deployment.py | 121 +- .../models/regional_deployment_definition.py | 164 +- .../regional_deployment_definition_type.py | 21 +- koyeb/api/models/regional_deployment_event.py | 50 +- .../models/regional_deployment_list_item.py | 60 +- koyeb/api/models/regional_deployment_role.py | 20 +- .../api/models/regional_deployment_status.py | 42 +- .../api/models/regional_deployment_volume.py | 32 +- .../remove_organization_member_reply.py | 34 +- .../resend_organization_invitation_reply.py | 34 +- koyeb/api/models/reset_password_request.py | 24 +- koyeb/api/models/reveal_secret_reply.py | 24 +- .../review_organization_capacity_reply.py | 24 +- .../review_organization_capacity_request.py | 27 +- koyeb/api/models/route.py | 25 +- koyeb/api/models/sample.py | 27 +- koyeb/api/models/scale_to_zero_quotas.py | 47 +- koyeb/api/models/scaling.py | 41 +- koyeb/api/models/secret.py | 148 +- koyeb/api/models/secret_type.py | 18 +- koyeb/api/models/secrets_summary.py | 27 +- koyeb/api/models/service.py | 113 +- koyeb/api/models/service_event.py | 50 +- koyeb/api/models/service_life_cycle.py | 89 + koyeb/api/models/service_list_item.py | 82 +- koyeb/api/models/service_state.py | 42 +- koyeb/api/models/service_status.py | 30 +- koyeb/api/models/service_summary.py | 27 +- koyeb/api/models/service_type.py | 22 +- koyeb/api/models/service_usage.py | 46 +- koyeb/api/models/snapshot.py | 70 +- koyeb/api/models/snapshot_status.py | 24 +- koyeb/api/models/snapshot_type.py | 18 +- .../stream_result_of_exec_command_reply.py | 42 +- .../api/models/stream_result_of_log_entry.py | 42 +- koyeb/api/models/subscription.py | 111 +- .../models/subscription_payment_failure.py | 69 +- ...subscription_payment_failure_stripe_sdk.py | 30 +- koyeb/api/models/subscription_status.py | 30 +- koyeb/api/models/tcp_health_check.py | 24 +- koyeb/api/models/token.py | 41 +- .../api/models/trigger_deployment_metadata.py | 66 +- .../trigger_deployment_metadata_actor_type.py | 18 +- ...rigger_deployment_metadata_trigger_type.py | 20 +- .../models/trigger_git_deployment_metadata.py | 65 +- ...rigger_git_deployment_metadata_provider.py | 16 +- koyeb/api/models/update_app.py | 40 +- koyeb/api/models/update_app_reply.py | 28 +- koyeb/api/models/update_budget_reply.py | 34 +- koyeb/api/models/update_budget_request.py | 24 +- koyeb/api/models/update_credential_reply.py | 34 +- koyeb/api/models/update_domain.py | 35 +- koyeb/api/models/update_domain_reply.py | 34 +- .../models/update_organization_name_reply.py | 95 + .../update_organization_name_request.py | 83 + .../models/update_organization_plan_reply.py | 34 +- .../update_organization_plan_request.py | 26 +- koyeb/api/models/update_organization_reply.py | 34 +- koyeb/api/models/update_password_request.py | 27 +- .../models/update_persistent_volume_reply.py | 34 +- .../update_persistent_volume_request.py | 27 +- koyeb/api/models/update_secret_reply.py | 34 +- koyeb/api/models/update_service.py | 69 +- koyeb/api/models/update_service_reply.py | 34 +- koyeb/api/models/update_snapshot_reply.py | 34 +- koyeb/api/models/update_snapshot_request.py | 24 +- .../update_user_request_user_update_body.py | 47 +- .../api/models/update_user_settings_reply.py | 34 +- .../models/update_user_settings_request.py | 35 +- .../upsert_signup_qualification_reply.py | 34 +- .../upsert_signup_qualification_request.py | 26 +- koyeb/api/models/usage.py | 44 +- koyeb/api/models/usage_details.py | 68 +- koyeb/api/models/user.py | 74 +- koyeb/api/models/user_flags.py | 40 +- koyeb/api/models/user_reply.py | 32 +- koyeb/api/models/user_role_role.py | 16 +- koyeb/api/models/user_settings.py | 40 +- koyeb/api/models/verify_docker_image_reply.py | 44 +- .../verify_docker_image_reply_err_code.py | 38 +- koyeb/api/rest.py | 90 +- ...st_accept_organization_invitation_reply.py | 24 +- koyeb/api/test/test_action.py | 14 +- koyeb/api/test/test_activity.py | 20 +- koyeb/api/test/test_activity_api.py | 16 +- koyeb/api/test/test_activity_list.py | 20 +- koyeb/api/test/test_app.py | 20 +- koyeb/api/test/test_app_event.py | 20 +- koyeb/api/test/test_app_life_cycle.py | 53 + koyeb/api/test/test_app_list_item.py | 20 +- koyeb/api/test/test_app_status.py | 14 +- koyeb/api/test/test_app_usage.py | 20 +- koyeb/api/test/test_apps_api.py | 12 +- koyeb/api/test/test_apps_summary.py | 20 +- koyeb/api/test/test_archive.py | 20 +- .../test/test_archive_deployment_metadata.py | 20 +- koyeb/api/test/test_archive_source.py | 20 +- koyeb/api/test/test_archives_api.py | 12 +- koyeb/api/test/test_auto_release.py | 20 +- koyeb/api/test/test_auto_release_group.py | 20 +- koyeb/api/test/test_autocomplete_reply.py | 20 +- koyeb/api/test/test_autocomplete_request.py | 20 +- koyeb/api/test/test_availability_level.py | 14 +- ..._azure_container_registry_configuration.py | 24 +- koyeb/api/test/test_billing_api.py | 16 +- koyeb/api/test/test_budget.py | 20 +- koyeb/api/test/test_buildpack_builder.py | 20 +- koyeb/api/test/test_canny_auth_reply.py | 20 +- .../api/test/test_catalog_datacenters_api.py | 12 +- koyeb/api/test/test_catalog_gpu_details.py | 20 +- koyeb/api/test/test_catalog_instance.py | 20 +- .../test/test_catalog_instance_list_item.py | 20 +- .../test/test_catalog_instance_usage_api.py | 16 +- koyeb/api/test/test_catalog_instances_api.py | 12 +- koyeb/api/test/test_catalog_regions_api.py | 12 +- koyeb/api/test/test_catalog_usage.py | 20 +- ...lear_idenfy_verification_result_request.py | 24 +- koyeb/api/test/test_compose_api.py | 12 +- koyeb/api/test/test_compose_reply.py | 20 +- koyeb/api/test/test_config_file.py | 20 +- ...est_confirm_payment_authorization_reply.py | 24 +- koyeb/api/test/test_coupons_api.py | 12 +- .../test/test_create_access_token_reply.py | 20 +- .../test/test_create_access_token_request.py | 20 +- koyeb/api/test/test_create_account_request.py | 20 +- koyeb/api/test/test_create_app.py | 20 +- koyeb/api/test/test_create_app_reply.py | 20 +- koyeb/api/test/test_create_archive.py | 20 +- koyeb/api/test/test_create_archive_reply.py | 20 +- koyeb/api/test/test_create_budget_reply.py | 20 +- koyeb/api/test/test_create_compose.py | 20 +- koyeb/api/test/test_create_credential.py | 20 +- .../api/test/test_create_credential_reply.py | 20 +- koyeb/api/test/test_create_domain.py | 20 +- koyeb/api/test/test_create_domain_reply.py | 20 +- ...st_create_organization_invitation_reply.py | 24 +- ..._create_organization_invitation_request.py | 24 +- .../test/test_create_organization_reply.py | 20 +- .../test/test_create_organization_request.py | 20 +- ...test_create_payment_authorization_reply.py | 24 +- .../test_create_persistent_volume_reply.py | 20 +- .../test_create_persistent_volume_request.py | 24 +- koyeb/api/test/test_create_secret.py | 20 +- koyeb/api/test/test_create_secret_reply.py | 20 +- koyeb/api/test/test_create_service.py | 20 +- koyeb/api/test/test_create_service_reply.py | 20 +- koyeb/api/test/test_create_snapshot_reply.py | 20 +- .../api/test/test_create_snapshot_request.py | 20 +- .../test/test_create_stage_attempt_request.py | 20 +- koyeb/api/test/test_credential.py | 20 +- koyeb/api/test/test_credential_type.py | 14 +- koyeb/api/test/test_credentials_api.py | 12 +- .../test/test_database_deployment_metadata.py | 20 +- koyeb/api/test/test_database_role_password.py | 20 +- koyeb/api/test/test_database_source.py | 20 +- koyeb/api/test/test_database_usage.py | 20 +- koyeb/api/test/test_database_usage_details.py | 20 +- koyeb/api/test/test_datacenter_list_item.py | 20 +- .../test_deactivate_organization_reply.py | 20 +- .../test_deactivate_organization_request.py | 24 +- .../test_declare_stage_progress_request.py | 20 +- .../test_declare_step_progress_request.py | 20 +- ...t_decline_organization_invitation_reply.py | 24 +- .../test/test_delete_organization_reply.py | 20 +- .../test_delete_persistent_volume_reply.py | 20 +- koyeb/api/test/test_delete_snapshot_reply.py | 20 +- koyeb/api/test/test_delete_user_reply.py | 20 +- koyeb/api/test/test_deployment.py | 20 +- .../api/test/test_deployment_database_info.py | 20 +- koyeb/api/test/test_deployment_definition.py | 20 +- .../test/test_deployment_definition_type.py | 14 +- koyeb/api/test/test_deployment_env.py | 20 +- koyeb/api/test/test_deployment_event.py | 20 +- .../api/test/test_deployment_health_check.py | 20 +- .../api/test/test_deployment_instance_type.py | 20 +- koyeb/api/test/test_deployment_list_item.py | 20 +- koyeb/api/test/test_deployment_metadata.py | 20 +- ..._deployment_neon_postgres_database_info.py | 24 +- ...oyment_neon_postgres_database_info_role.py | 24 +- koyeb/api/test/test_deployment_port.py | 20 +- .../test/test_deployment_provisioning_info.py | 20 +- ...test_deployment_provisioning_info_stage.py | 24 +- ...t_provisioning_info_stage_build_attempt.py | 28 +- ...ing_info_stage_build_attempt_build_step.py | 28 +- ...ployment_provisioning_info_stage_status.py | 18 +- koyeb/api/test/test_deployment_proxy_port.py | 20 +- .../test_deployment_proxy_port_metadata.py | 20 +- koyeb/api/test/test_deployment_role.py | 14 +- koyeb/api/test/test_deployment_route.py | 20 +- koyeb/api/test/test_deployment_scaling.py | 20 +- .../test/test_deployment_scaling_target.py | 20 +- ...t_deployment_scaling_target_average_cpu.py | 24 +- ...t_deployment_scaling_target_average_mem.py | 24 +- ...ment_scaling_target_concurrent_requests.py | 28 +- ...ment_scaling_target_requests_per_second.py | 28 +- ...t_scaling_target_requests_response_time.py | 28 +- ...loyment_scaling_target_sleep_idle_delay.py | 24 +- koyeb/api/test/test_deployment_status.py | 14 +- koyeb/api/test/test_deployment_strategy.py | 20 +- .../api/test/test_deployment_strategy_type.py | 14 +- koyeb/api/test/test_deployment_volume.py | 20 +- koyeb/api/test/test_deployments_api.py | 12 +- koyeb/api/test/test_desired_deployment.py | 20 +- .../api/test/test_desired_deployment_group.py | 20 +- ...st_digital_ocean_registry_configuration.py | 24 +- koyeb/api/test/test_discourse_auth_reply.py | 20 +- koyeb/api/test/test_discourse_auth_request.py | 20 +- koyeb/api/test/test_docker_builder.py | 20 +- koyeb/api/test/test_docker_helper_api.py | 12 +- .../test_docker_hub_registry_configuration.py | 24 +- koyeb/api/test/test_docker_source.py | 20 +- koyeb/api/test/test_domain.py | 20 +- .../test/test_domain_load_balancer_koyeb.py | 20 +- .../test/test_domain_load_balancer_quotas.py | 20 +- koyeb/api/test/test_domain_status.py | 14 +- koyeb/api/test/test_domain_type.py | 14 +- koyeb/api/test/test_domains_api.py | 12 +- koyeb/api/test/test_domains_summary.py | 20 +- koyeb/api/test/test_env.py | 20 +- koyeb/api/test/test_error.py | 20 +- koyeb/api/test/test_error_field.py | 20 +- koyeb/api/test/test_error_with_fields.py | 20 +- koyeb/api/test/test_exec_command_io.py | 20 +- koyeb/api/test/test_exec_command_reply.py | 20 +- .../test/test_exec_command_request_body.py | 20 +- .../test/test_exec_command_request_id_type.py | 14 +- ...test_exec_command_request_terminal_size.py | 24 +- ...st_gcp_container_registry_configuration.py | 24 +- koyeb/api/test/test_get_app_reply.py | 20 +- koyeb/api/test/test_get_budget_reply.py | 20 +- .../test/test_get_catalog_instance_reply.py | 20 +- koyeb/api/test/test_get_credential_reply.py | 20 +- koyeb/api/test/test_get_deployment_reply.py | 20 +- .../test/test_get_deployment_scaling_reply.py | 20 +- .../test_get_deployment_scaling_reply_item.py | 24 +- koyeb/api/test/test_get_domain_reply.py | 20 +- .../test_get_github_installation_reply.py | 20 +- koyeb/api/test/test_get_idenfy_token_reply.py | 20 +- koyeb/api/test/test_get_instance_reply.py | 20 +- .../test/test_get_intercom_profile_reply.py | 20 +- koyeb/api/test/test_get_metrics_reply.py | 20 +- .../api/test/test_get_metrics_reply_metric.py | 20 +- .../api/test/test_get_o_auth_options_reply.py | 20 +- .../test_get_organization_invitation_reply.py | 24 +- koyeb/api/test/test_get_organization_reply.py | 20 +- .../test_get_organization_summary_reply.py | 20 +- ...st_get_organization_usage_details_reply.py | 24 +- .../test/test_get_organization_usage_reply.py | 20 +- .../api/test/test_get_payment_method_reply.py | 20 +- .../test/test_get_persistent_volume_reply.py | 20 +- koyeb/api/test/test_get_quotas_reply.py | 20 +- koyeb/api/test/test_get_region_reply.py | 20 +- .../test_get_regional_deployment_reply.py | 20 +- koyeb/api/test/test_get_secret_reply.py | 20 +- koyeb/api/test/test_get_service_reply.py | 20 +- koyeb/api/test/test_get_snapshot_reply.py | 20 +- koyeb/api/test/test_get_subscription_reply.py | 20 +- ..._get_user_organization_invitation_reply.py | 24 +- .../api/test/test_get_user_settings_reply.py | 20 +- .../api/test/test_git_deployment_metadata.py | 20 +- .../test/test_git_env_deployment_metadata.py | 20 +- .../test_git_hub_registry_configuration.py | 20 +- .../test_git_lab_registry_configuration.py | 20 +- koyeb/api/test/test_git_source.py | 20 +- .../test/test_github_installation_reply.py | 20 +- .../test/test_github_installation_request.py | 20 +- koyeb/api/test/test_google_protobuf_any.py | 20 +- .../test/test_google_protobuf_null_value.py | 14 +- koyeb/api/test/test_google_rpc_status.py | 20 +- .../test/test_has_unpaid_invoices_reply.py | 20 +- koyeb/api/test/test_http_header.py | 20 +- koyeb/api/test/test_http_health_check.py | 20 +- koyeb/api/test/test_instance.py | 20 +- koyeb/api/test/test_instance_availability.py | 20 +- koyeb/api/test/test_instance_event.py | 20 +- koyeb/api/test/test_instance_list_item.py | 20 +- koyeb/api/test/test_instance_status.py | 14 +- koyeb/api/test/test_instance_usage.py | 20 +- koyeb/api/test/test_instances_api.py | 12 +- koyeb/api/test/test_instances_summary.py | 20 +- koyeb/api/test/test_intercom_api.py | 12 +- koyeb/api/test/test_invite_api.py | 16 +- koyeb/api/test/test_invite_user_request.py | 20 +- koyeb/api/test/test_kgitproxy_branch.py | 20 +- .../test/test_kgitproxy_git_hub_repository.py | 20 +- ...st_kgitproxy_github_installation_status.py | 18 +- .../test/test_kgitproxy_indexing_status.py | 14 +- .../test_kgitproxy_list_branches_reply.py | 20 +- .../test_kgitproxy_list_repositories_reply.py | 24 +- koyeb/api/test/test_kgitproxy_repository.py | 20 +- .../test_kgitproxy_repository_provider.py | 14 +- koyeb/api/test/test_ksearch_app.py | 20 +- .../test/test_ksearch_global_deployment.py | 20 +- koyeb/api/test/test_ksearch_instance.py | 20 +- koyeb/api/test/test_ksearch_organization.py | 20 +- .../test/test_ksearch_regional_deployment.py | 20 +- koyeb/api/test/test_ksearch_search_reply.py | 20 +- koyeb/api/test/test_ksearch_service.py | 20 +- koyeb/api/test/test_ksearch_user.py | 20 +- koyeb/api/test/test_list_app_events_reply.py | 20 +- koyeb/api/test/test_list_apps_reply.py | 20 +- .../test/test_list_catalog_instances_reply.py | 20 +- koyeb/api/test/test_list_credentials_reply.py | 20 +- koyeb/api/test/test_list_datacenters_reply.py | 20 +- .../test/test_list_deployment_events_reply.py | 20 +- koyeb/api/test/test_list_deployments_reply.py | 20 +- koyeb/api/test/test_list_domains_reply.py | 20 +- .../test/test_list_instance_events_reply.py | 20 +- koyeb/api/test/test_list_instances_reply.py | 20 +- ...est_list_organization_invitations_reply.py | 24 +- .../test_list_organization_members_reply.py | 24 +- .../test/test_list_payment_methods_reply.py | 20 +- ...est_list_persistent_volume_events_reply.py | 24 +- .../test_list_persistent_volumes_reply.py | 20 +- ...t_list_regional_deployment_events_reply.py | 24 +- .../test_list_regional_deployments_reply.py | 24 +- koyeb/api/test/test_list_regions_reply.py | 20 +- koyeb/api/test/test_list_secrets_reply.py | 20 +- .../test/test_list_service_events_reply.py | 20 +- koyeb/api/test/test_list_services_reply.py | 20 +- koyeb/api/test/test_list_snapshots_reply.py | 20 +- koyeb/api/test/test_list_usage_reply.py | 20 +- ...ist_user_organization_invitations_reply.py | 24 +- .../test_list_user_organizations_reply.py | 20 +- koyeb/api/test/test_log_entry.py | 20 +- koyeb/api/test/test_login_method_reply.py | 20 +- .../test/test_login_method_reply_method.py | 14 +- koyeb/api/test/test_login_reply.py | 20 +- koyeb/api/test/test_login_request.py | 20 +- koyeb/api/test/test_logs_api.py | 12 +- koyeb/api/test/test_manage_reply.py | 20 +- koyeb/api/test/test_members_summary.py | 20 +- koyeb/api/test/test_metric_name.py | 14 +- koyeb/api/test/test_metrics_api.py | 12 +- koyeb/api/test/test_neon_postgres_database.py | 20 +- ...n_postgres_database_deployment_metadata.py | 24 +- ...st_neon_postgres_database_neon_database.py | 24 +- .../test_neon_postgres_database_neon_role.py | 24 +- koyeb/api/test/test_neon_postgres_summary.py | 20 +- koyeb/api/test/test_next_invoice_reply.py | 20 +- .../test/test_next_invoice_reply_discount.py | 20 +- .../test_next_invoice_reply_discount_type.py | 18 +- .../api/test/test_next_invoice_reply_line.py | 20 +- .../test_next_invoice_reply_line_period.py | 20 +- .../test_next_invoice_reply_line_price.py | 20 +- koyeb/api/test/test_notification.py | 20 +- koyeb/api/test/test_notification_list.py | 20 +- koyeb/api/test/test_o_auth_callback_reply.py | 20 +- .../api/test/test_o_auth_callback_request.py | 20 +- koyeb/api/test/test_o_auth_provider.py | 20 +- koyeb/api/test/test_object.py | 20 +- koyeb/api/test/test_organization.py | 20 +- koyeb/api/test/test_organization_api.py | 12 +- .../test_organization_confirmations_api.py | 12 +- .../test_organization_deactivation_reason.py | 18 +- .../test/test_organization_detailed_status.py | 14 +- .../api/test/test_organization_invitation.py | 20 +- .../test_organization_invitation_status.py | 14 +- .../test/test_organization_invitations_api.py | 12 +- koyeb/api/test/test_organization_member.py | 20 +- .../test/test_organization_member_status.py | 14 +- .../api/test/test_organization_members_api.py | 12 +- .../api/test/test_organization_quotas_api.py | 16 +- koyeb/api/test/test_organization_status.py | 14 +- koyeb/api/test/test_organization_summary.py | 20 +- koyeb/api/test/test_payment_method.py | 20 +- koyeb/api/test/test_payment_method_status.py | 14 +- koyeb/api/test/test_payment_methods_api.py | 12 +- koyeb/api/test/test_period_usage.py | 20 +- koyeb/api/test/test_persistent_volume.py | 20 +- .../test_persistent_volume_backing_store.py | 18 +- .../api/test/test_persistent_volume_event.py | 20 +- .../api/test/test_persistent_volume_quotas.py | 20 +- .../api/test/test_persistent_volume_status.py | 14 +- koyeb/api/test/test_persistent_volumes_api.py | 12 +- koyeb/api/test/test_plan.py | 14 +- koyeb/api/test/test_port.py | 20 +- .../test_private_registry_configuration.py | 20 +- koyeb/api/test/test_profile_api.py | 20 +- koyeb/api/test/test_provisioning_api.py | 12 +- koyeb/api/test/test_proxy_port_protocol.py | 14 +- koyeb/api/test/test_public_organization.py | 20 +- koyeb/api/test/test_public_user.py | 20 +- koyeb/api/test/test_query_logs_reply.py | 20 +- .../test/test_query_logs_reply_pagination.py | 20 +- koyeb/api/test/test_quotas.py | 20 +- koyeb/api/test/test_quotas_api.py | 12 +- .../test_reactivate_organization_reply.py | 20 +- koyeb/api/test/test_redeem_coupon_request.py | 20 +- koyeb/api/test/test_redeploy_reply.py | 20 +- koyeb/api/test/test_redeploy_request_info.py | 20 +- koyeb/api/test/test_region.py | 20 +- koyeb/api/test/test_region_availability.py | 20 +- koyeb/api/test/test_region_list_item.py | 20 +- koyeb/api/test/test_region_usage.py | 20 +- koyeb/api/test/test_regional_deployment.py | 20 +- .../test_regional_deployment_definition.py | 20 +- ...est_regional_deployment_definition_type.py | 18 +- .../test/test_regional_deployment_event.py | 20 +- .../test_regional_deployment_list_item.py | 20 +- .../api/test/test_regional_deployment_role.py | 14 +- .../test/test_regional_deployment_status.py | 14 +- .../test/test_regional_deployment_volume.py | 20 +- .../api/test/test_regional_deployments_api.py | 12 +- .../test_remove_organization_member_reply.py | 24 +- koyeb/api/test/test_repositories_api.py | 12 +- ...st_resend_organization_invitation_reply.py | 24 +- koyeb/api/test/test_reset_password_request.py | 20 +- koyeb/api/test/test_reveal_secret_reply.py | 20 +- ...test_review_organization_capacity_reply.py | 24 +- ...st_review_organization_capacity_request.py | 24 +- koyeb/api/test/test_route.py | 20 +- koyeb/api/test/test_sample.py | 20 +- koyeb/api/test/test_scale_to_zero_quotas.py | 20 +- koyeb/api/test/test_scaling.py | 20 +- koyeb/api/test/test_search_api.py | 12 +- koyeb/api/test/test_secret.py | 20 +- koyeb/api/test/test_secret_type.py | 14 +- koyeb/api/test/test_secrets_api.py | 12 +- koyeb/api/test/test_secrets_summary.py | 20 +- koyeb/api/test/test_service.py | 20 +- koyeb/api/test/test_service_event.py | 20 +- koyeb/api/test/test_service_life_cycle.py | 54 + koyeb/api/test/test_service_list_item.py | 20 +- koyeb/api/test/test_service_state.py | 20 +- koyeb/api/test/test_service_status.py | 14 +- koyeb/api/test/test_service_summary.py | 20 +- koyeb/api/test/test_service_type.py | 14 +- koyeb/api/test/test_service_usage.py | 20 +- koyeb/api/test/test_services_api.py | 12 +- koyeb/api/test/test_sessions_api.py | 12 +- koyeb/api/test/test_snapshot.py | 20 +- koyeb/api/test/test_snapshot_status.py | 14 +- koyeb/api/test/test_snapshot_type.py | 14 +- koyeb/api/test/test_snapshots_api.py | 12 +- koyeb/api/test/test_sso_api.py | 20 +- ...est_stream_result_of_exec_command_reply.py | 24 +- .../test/test_stream_result_of_log_entry.py | 20 +- koyeb/api/test/test_subscription.py | 20 +- .../test/test_subscription_payment_failure.py | 20 +- ...subscription_payment_failure_stripe_sdk.py | 24 +- koyeb/api/test/test_subscription_status.py | 14 +- koyeb/api/test/test_subscriptions_api.py | 12 +- koyeb/api/test/test_summary_api.py | 12 +- koyeb/api/test/test_tcp_health_check.py | 20 +- koyeb/api/test/test_token.py | 20 +- .../test/test_trigger_deployment_metadata.py | 20 +- ..._trigger_deployment_metadata_actor_type.py | 18 +- ...rigger_deployment_metadata_trigger_type.py | 18 +- .../test_trigger_git_deployment_metadata.py | 24 +- ...rigger_git_deployment_metadata_provider.py | 18 +- koyeb/api/test/test_update_app.py | 20 +- koyeb/api/test/test_update_app_reply.py | 20 +- koyeb/api/test/test_update_budget_reply.py | 20 +- koyeb/api/test/test_update_budget_request.py | 20 +- .../api/test/test_update_credential_reply.py | 20 +- koyeb/api/test/test_update_domain.py | 20 +- koyeb/api/test/test_update_domain_reply.py | 20 +- .../test_update_organization_name_reply.py | 86 + .../test_update_organization_name_request.py | 55 + .../test_update_organization_plan_reply.py | 20 +- .../test_update_organization_plan_request.py | 24 +- .../test/test_update_organization_reply.py | 20 +- .../api/test/test_update_password_request.py | 20 +- .../test_update_persistent_volume_reply.py | 20 +- .../test_update_persistent_volume_request.py | 24 +- koyeb/api/test/test_update_secret_reply.py | 20 +- koyeb/api/test/test_update_service.py | 20 +- koyeb/api/test/test_update_service_reply.py | 20 +- koyeb/api/test/test_update_snapshot_reply.py | 20 +- .../api/test/test_update_snapshot_request.py | 20 +- ...st_update_user_request_user_update_body.py | 24 +- .../test/test_update_user_settings_reply.py | 20 +- .../test/test_update_user_settings_request.py | 20 +- .../test_upsert_signup_qualification_reply.py | 24 +- ...est_upsert_signup_qualification_request.py | 24 +- koyeb/api/test/test_usage.py | 20 +- koyeb/api/test/test_usage_details.py | 20 +- koyeb/api/test/test_usages_api.py | 12 +- koyeb/api/test/test_user.py | 20 +- koyeb/api/test/test_user_flags.py | 14 +- koyeb/api/test/test_user_reply.py | 20 +- koyeb/api/test/test_user_role_role.py | 14 +- koyeb/api/test/test_user_settings.py | 20 +- koyeb/api/test/test_users_api.py | 12 +- .../test/test_verify_docker_image_reply.py | 20 +- ...test_verify_docker_image_reply_err_code.py | 18 +- koyeb/api_README.md | 7 +- koyeb/sandbox/sandbox.py | 44 +- spec/openapi.json | 198 +- 843 files changed, 25832 insertions(+), 22081 deletions(-) create mode 100644 koyeb/api/docs/AppLifeCycle.md create mode 100644 koyeb/api/docs/ServiceLifeCycle.md create mode 100644 koyeb/api/docs/UpdateOrganizationNameReply.md create mode 100644 koyeb/api/docs/UpdateOrganizationNameRequest.md create mode 100644 koyeb/api/models/app_life_cycle.py create mode 100644 koyeb/api/models/service_life_cycle.py create mode 100644 koyeb/api/models/update_organization_name_reply.py create mode 100644 koyeb/api/models/update_organization_name_request.py create mode 100644 koyeb/api/test/test_app_life_cycle.py create mode 100644 koyeb/api/test/test_service_life_cycle.py create mode 100644 koyeb/api/test/test_update_organization_name_reply.py create mode 100644 koyeb/api/test/test_update_organization_name_request.py diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 9e76dc5b..f507d6ef 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -52,6 +52,7 @@ koyeb/api/docs/ActivityApi.md koyeb/api/docs/ActivityList.md koyeb/api/docs/App.md koyeb/api/docs/AppEvent.md +koyeb/api/docs/AppLifeCycle.md koyeb/api/docs/AppListItem.md koyeb/api/docs/AppStatus.md koyeb/api/docs/AppUsage.md @@ -385,6 +386,7 @@ koyeb/api/docs/SecretsApi.md koyeb/api/docs/SecretsSummary.md koyeb/api/docs/Service.md koyeb/api/docs/ServiceEvent.md +koyeb/api/docs/ServiceLifeCycle.md koyeb/api/docs/ServiceListItem.md koyeb/api/docs/ServiceState.md koyeb/api/docs/ServiceStatus.md @@ -420,6 +422,8 @@ koyeb/api/docs/UpdateBudgetRequest.md koyeb/api/docs/UpdateCredentialReply.md koyeb/api/docs/UpdateDomain.md koyeb/api/docs/UpdateDomainReply.md +koyeb/api/docs/UpdateOrganizationNameReply.md +koyeb/api/docs/UpdateOrganizationNameRequest.md koyeb/api/docs/UpdateOrganizationPlanReply.md koyeb/api/docs/UpdateOrganizationPlanRequest.md koyeb/api/docs/UpdateOrganizationReply.md @@ -455,6 +459,7 @@ 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_life_cycle.py koyeb/api/models/app_list_item.py koyeb/api/models/app_status.py koyeb/api/models/app_usage.py @@ -756,6 +761,7 @@ 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_life_cycle.py koyeb/api/models/service_list_item.py koyeb/api/models/service_state.py koyeb/api/models/service_status.py @@ -785,6 +791,8 @@ 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_name_reply.py +koyeb/api/models/update_organization_name_request.py koyeb/api/models/update_organization_plan_reply.py koyeb/api/models/update_organization_plan_request.py koyeb/api/models/update_organization_reply.py diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 9e0e9bce..2fb556b6 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.17.0-SNAPSHOT +7.18.0-SNAPSHOT diff --git a/Makefile b/Makefile index da653945..a89ff692 100644 --- a/Makefile +++ b/Makefile @@ -9,6 +9,7 @@ PACKAGE_VERSION?=1.2.2 .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 + git checkout -- koyeb/__init__.py .PHONY: gen-docs @@ -17,7 +18,7 @@ gen-docs: .PHONY: format format: - black koyeb test + black koyeb .PHONY: fetch-spec fetch-spec: diff --git a/koyeb/api/__init__.py b/koyeb/api/__init__.py index fe6ba67c..ee2b0d86 100644 --- a/koyeb/api/__init__.py +++ b/koyeb/api/__init__.py @@ -3,14 +3,14 @@ # flake8: noqa """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -74,6 +74,7 @@ "ActivityList", "App", "AppEvent", + "AppLifeCycle", "AppListItem", "AppStatus", "AppUsage", @@ -375,6 +376,7 @@ "SecretsSummary", "Service", "ServiceEvent", + "ServiceLifeCycle", "ServiceListItem", "ServiceState", "ServiceStatus", @@ -404,6 +406,8 @@ "UpdateCredentialReply", "UpdateDomain", "UpdateDomainReply", + "UpdateOrganizationNameReply", + "UpdateOrganizationNameRequest", "UpdateOrganizationPlanReply", "UpdateOrganizationPlanRequest", "UpdateOrganizationReply", @@ -434,9 +438,15 @@ # 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_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 @@ -448,16 +458,28 @@ 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.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.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.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 @@ -486,125 +508,260 @@ 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.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_life_cycle import AppLifeCycle as AppLifeCycle 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_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.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.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_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.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.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_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_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_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.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_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.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_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_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_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_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_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.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_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_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 @@ -614,56 +771,124 @@ 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.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_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_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_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_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_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.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.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_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.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_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 @@ -671,119 +896,271 @@ 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.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_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_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_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_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_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_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_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.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_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.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.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_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.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.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.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.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_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.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.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.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_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.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.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 @@ -793,6 +1170,7 @@ 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_life_cycle import ServiceLifeCycle as ServiceLifeCycle 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 @@ -802,42 +1180,100 @@ 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.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.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.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_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_organization_name_reply import ( + UpdateOrganizationNameReply as UpdateOrganizationNameReply, +) +from koyeb.api.models.update_organization_name_request import ( + UpdateOrganizationNameRequest as UpdateOrganizationNameRequest, +) +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.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 @@ -845,6 +1281,9 @@ 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 - +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 index 9769dde9..de6735ed 100644 --- a/koyeb/api/api/__init__.py +++ b/koyeb/api/api/__init__.py @@ -42,4 +42,3 @@ 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/api/activity_api.py b/koyeb/api/api/activity_api.py index 724191a3..d6dce02e 100644 --- a/koyeb/api/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 @@ -39,7 +39,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_account_activities( self, @@ -49,9 +48,8 @@ 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, @@ -85,7 +83,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, @@ -93,21 +91,20 @@ 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( @@ -115,7 +112,6 @@ def get_account_activities( response_types_map=_response_types_map, ).data - @validate_call def get_account_activities_with_http_info( self, @@ -125,9 +121,8 @@ 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, @@ -161,7 +156,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, @@ -169,21 +164,20 @@ 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( @@ -191,7 +185,6 @@ def get_account_activities_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_account_activities_without_preload_content( self, @@ -201,9 +194,8 @@ 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, @@ -237,7 +229,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, @@ -245,25 +237,23 @@ 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, @@ -276,8 +266,7 @@ 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]] = [] @@ -291,35 +280,27 @@ 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, @@ -329,25 +310,24 @@ 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, @@ -383,7 +363,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, @@ -392,21 +372,20 @@ 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( @@ -414,20 +393,21 @@ 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, @@ -463,7 +443,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, @@ -472,21 +452,20 @@ 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( @@ -494,20 +473,21 @@ 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, @@ -543,7 +523,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, @@ -552,25 +532,23 @@ 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, @@ -585,7 +563,7 @@ def _list_activities_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', + "types": "multi", } _path_params: Dict[str, str] = {} @@ -600,39 +578,31 @@ 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, @@ -642,12 +612,9 @@ 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, @@ -661,9 +628,8 @@ 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, @@ -705,7 +671,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, @@ -717,21 +683,20 @@ 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( @@ -739,7 +704,6 @@ def list_notifications( response_types_map=_response_types_map, ).data - @validate_call def list_notifications_with_http_info( self, @@ -753,9 +717,8 @@ 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, @@ -797,7 +760,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, @@ -809,21 +772,20 @@ 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( @@ -831,7 +793,6 @@ def list_notifications_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_notifications_without_preload_content( self, @@ -845,9 +806,8 @@ 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, @@ -889,7 +849,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, @@ -901,25 +861,23 @@ 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, @@ -936,8 +894,7 @@ 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]] = [] @@ -951,51 +908,43 @@ 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, @@ -1005,7 +954,5 @@ 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/api/apps_api.py b/koyeb/api/api/apps_api.py index ff7d8f6d..18c642cb 100644 --- a/koyeb/api/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 @@ -44,7 +44,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_app( self, @@ -53,9 +52,8 @@ 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, @@ -87,28 +85,27 @@ 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( @@ -116,7 +113,6 @@ def create_app( response_types_map=_response_types_map, ).data - @validate_call def create_app_with_http_info( self, @@ -125,9 +121,8 @@ 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, @@ -159,28 +154,27 @@ 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( @@ -188,7 +182,6 @@ def create_app_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_app_without_preload_content( self, @@ -197,9 +190,8 @@ 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, @@ -231,32 +223,30 @@ 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, @@ -268,8 +258,7 @@ 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]] = [] @@ -288,24 +277,16 @@ 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, @@ -315,12 +296,9 @@ 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, @@ -329,9 +307,8 @@ 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, @@ -364,28 +341,27 @@ 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( @@ -393,7 +369,6 @@ def delete_app( response_types_map=_response_types_map, ).data - @validate_call def delete_app_with_http_info( self, @@ -402,9 +377,8 @@ 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, @@ -437,28 +411,27 @@ 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( @@ -466,7 +439,6 @@ def delete_app_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_app_without_preload_content( self, @@ -475,9 +447,8 @@ 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, @@ -510,32 +481,30 @@ 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, @@ -547,8 +516,7 @@ 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]] = [] @@ -561,30 +529,22 @@ 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, @@ -594,12 +554,9 @@ 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, @@ -608,9 +565,8 @@ 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, @@ -642,28 +598,27 @@ 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( @@ -671,7 +626,6 @@ def get_app( response_types_map=_response_types_map, ).data - @validate_call def get_app_with_http_info( self, @@ -680,9 +634,8 @@ 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, @@ -714,28 +667,27 @@ 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( @@ -743,7 +695,6 @@ def get_app_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_app_without_preload_content( self, @@ -752,9 +703,8 @@ 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, @@ -786,32 +736,30 @@ 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, @@ -823,8 +771,7 @@ 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]] = [] @@ -837,30 +784,22 @@ 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, @@ -870,27 +809,39 @@ 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, @@ -930,7 +881,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, @@ -941,21 +892,20 @@ 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( @@ -963,22 +913,36 @@ 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, @@ -1018,7 +982,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, @@ -1029,21 +993,20 @@ 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( @@ -1051,22 +1014,36 @@ 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, @@ -1106,7 +1083,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, @@ -1117,25 +1094,23 @@ 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, @@ -1152,7 +1127,7 @@ def _list_app_events_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', + "types": "multi", } _path_params: Dict[str, str] = {} @@ -1167,47 +1142,39 @@ 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, @@ -1217,25 +1184,29 @@ 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, @@ -1271,7 +1242,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, @@ -1280,21 +1251,20 @@ 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( @@ -1302,20 +1272,26 @@ 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, @@ -1351,7 +1327,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, @@ -1360,21 +1336,20 @@ 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( @@ -1382,20 +1357,26 @@ 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, @@ -1431,7 +1412,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, @@ -1440,25 +1421,23 @@ 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, @@ -1472,8 +1451,7 @@ 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]] = [] @@ -1487,39 +1465,31 @@ 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, @@ -1529,12 +1499,9 @@ 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, @@ -1543,9 +1510,8 @@ 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, @@ -1578,28 +1544,27 @@ 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( @@ -1607,7 +1572,6 @@ def pause_app( response_types_map=_response_types_map, ).data - @validate_call def pause_app_with_http_info( self, @@ -1616,9 +1580,8 @@ 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, @@ -1651,28 +1614,27 @@ 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( @@ -1680,7 +1642,6 @@ def pause_app_with_http_info( response_types_map=_response_types_map, ) - @validate_call def pause_app_without_preload_content( self, @@ -1689,9 +1650,8 @@ 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, @@ -1724,32 +1684,30 @@ 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, @@ -1761,8 +1719,7 @@ 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]] = [] @@ -1775,30 +1732,22 @@ 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, @@ -1808,12 +1757,9 @@ 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, @@ -1822,9 +1768,8 @@ 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, @@ -1857,28 +1802,27 @@ 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( @@ -1886,7 +1830,6 @@ def resume_app( response_types_map=_response_types_map, ).data - @validate_call def resume_app_with_http_info( self, @@ -1895,9 +1838,8 @@ 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, @@ -1930,28 +1872,27 @@ 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( @@ -1959,7 +1900,6 @@ def resume_app_with_http_info( response_types_map=_response_types_map, ) - @validate_call def resume_app_without_preload_content( self, @@ -1968,9 +1908,8 @@ 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, @@ -2003,32 +1942,30 @@ 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, @@ -2040,8 +1977,7 @@ 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]] = [] @@ -2054,30 +1990,22 @@ 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, @@ -2087,12 +2015,9 @@ 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, @@ -2103,9 +2028,8 @@ 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, @@ -2141,7 +2065,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, @@ -2150,21 +2074,20 @@ 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( @@ -2172,7 +2095,6 @@ def update_app( response_types_map=_response_types_map, ).data - @validate_call def update_app_with_http_info( self, @@ -2183,9 +2105,8 @@ 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, @@ -2221,7 +2142,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, @@ -2230,21 +2151,20 @@ 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( @@ -2252,7 +2172,6 @@ def update_app_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_app_without_preload_content( self, @@ -2263,9 +2182,8 @@ 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, @@ -2301,7 +2219,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, @@ -2310,25 +2228,23 @@ 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, @@ -2342,8 +2258,7 @@ 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]] = [] @@ -2356,36 +2271,28 @@ 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, @@ -2395,12 +2302,9 @@ 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, @@ -2411,9 +2315,8 @@ 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, @@ -2449,7 +2352,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, @@ -2458,21 +2361,20 @@ 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( @@ -2480,7 +2382,6 @@ def update_app2( response_types_map=_response_types_map, ).data - @validate_call def update_app2_with_http_info( self, @@ -2491,9 +2392,8 @@ 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, @@ -2529,7 +2429,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, @@ -2538,21 +2438,20 @@ 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( @@ -2560,7 +2459,6 @@ def update_app2_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_app2_without_preload_content( self, @@ -2571,9 +2469,8 @@ 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, @@ -2609,7 +2506,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, @@ -2618,25 +2515,23 @@ 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, @@ -2650,8 +2545,7 @@ 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]] = [] @@ -2664,36 +2558,28 @@ 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, @@ -2703,7 +2589,5 @@ 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/api/archives_api.py b/koyeb/api/api/archives_api.py index 40107a65..227f2a74 100644 --- a/koyeb/api/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 @@ -36,7 +36,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_archive( self, @@ -45,9 +44,8 @@ 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, @@ -80,28 +78,27 @@ 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( @@ -109,7 +106,6 @@ def create_archive( response_types_map=_response_types_map, ).data - @validate_call def create_archive_with_http_info( self, @@ -118,9 +114,8 @@ 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, @@ -153,28 +148,27 @@ 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( @@ -182,7 +176,6 @@ def create_archive_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_archive_without_preload_content( self, @@ -191,9 +184,8 @@ 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, @@ -226,32 +218,30 @@ 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, @@ -263,8 +253,7 @@ 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]] = [] @@ -283,24 +272,16 @@ 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, @@ -310,7 +291,5 @@ 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/api/billing_api.py b/koyeb/api/api/billing_api.py index e2edf9ce..fcdb0609 100644 --- a/koyeb/api/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 @@ -37,7 +37,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def has_unpaid_invoices( self, @@ -45,9 +44,8 @@ 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, @@ -78,27 +76,26 @@ 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( @@ -106,7 +103,6 @@ def has_unpaid_invoices( response_types_map=_response_types_map, ).data - @validate_call def has_unpaid_invoices_with_http_info( self, @@ -114,9 +110,8 @@ 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, @@ -147,27 +142,26 @@ 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( @@ -175,7 +169,6 @@ def has_unpaid_invoices_with_http_info( response_types_map=_response_types_map, ) - @validate_call def has_unpaid_invoices_without_preload_content( self, @@ -183,9 +176,8 @@ 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, @@ -216,31 +208,29 @@ 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, @@ -251,8 +241,7 @@ 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]] = [] @@ -269,24 +258,16 @@ 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, @@ -296,12 +277,9 @@ 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, @@ -309,9 +287,8 @@ 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, @@ -341,27 +318,26 @@ 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( @@ -369,7 +345,6 @@ def manage( response_types_map=_response_types_map, ).data - @validate_call def manage_with_http_info( self, @@ -377,9 +352,8 @@ 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, @@ -409,27 +383,26 @@ 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( @@ -437,7 +410,6 @@ def manage_with_http_info( response_types_map=_response_types_map, ) - @validate_call def manage_without_preload_content( self, @@ -445,9 +417,8 @@ 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, @@ -477,31 +448,29 @@ 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, @@ -512,8 +481,7 @@ 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]] = [] @@ -530,24 +498,16 @@ 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, @@ -557,12 +517,9 @@ 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, @@ -570,9 +527,8 @@ 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, @@ -603,27 +559,26 @@ 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( @@ -631,7 +586,6 @@ def next_invoice( response_types_map=_response_types_map, ).data - @validate_call def next_invoice_with_http_info( self, @@ -639,9 +593,8 @@ 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, @@ -672,27 +625,26 @@ 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( @@ -700,7 +652,6 @@ def next_invoice_with_http_info( response_types_map=_response_types_map, ) - @validate_call def next_invoice_without_preload_content( self, @@ -708,9 +659,8 @@ 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, @@ -741,31 +691,29 @@ 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, @@ -776,8 +724,7 @@ 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]] = [] @@ -794,24 +741,16 @@ 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, @@ -821,7 +760,5 @@ 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/api/catalog_datacenters_api.py b/koyeb/api/api/catalog_datacenters_api.py index aa47e8da..d9cce931 100644 --- a/koyeb/api/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 @@ -35,7 +35,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def list_datacenters( self, @@ -43,9 +42,8 @@ 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, @@ -75,21 +73,20 @@ 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( @@ -97,7 +94,6 @@ def list_datacenters( response_types_map=_response_types_map, ).data - @validate_call def list_datacenters_with_http_info( self, @@ -105,9 +101,8 @@ 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, @@ -137,21 +132,20 @@ 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( @@ -159,7 +153,6 @@ def list_datacenters_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_datacenters_without_preload_content( self, @@ -167,9 +160,8 @@ 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, @@ -199,25 +191,23 @@ 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, @@ -228,8 +218,7 @@ 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]] = [] @@ -246,24 +235,16 @@ 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, @@ -273,7 +254,5 @@ 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/api/catalog_instance_usage_api.py b/koyeb/api/api/catalog_instance_usage_api.py index c340a44c..cd581395 100644 --- a/koyeb/api/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 @@ -37,7 +37,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def list_usage( self, @@ -46,9 +45,8 @@ 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, @@ -80,22 +78,21 @@ 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( @@ -103,7 +100,6 @@ def list_usage( response_types_map=_response_types_map, ).data - @validate_call def list_usage_with_http_info( self, @@ -112,9 +108,8 @@ 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, @@ -146,22 +141,21 @@ 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( @@ -169,7 +163,6 @@ def list_usage_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_usage_without_preload_content( self, @@ -178,9 +171,8 @@ 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, @@ -212,26 +204,24 @@ 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, @@ -243,8 +233,7 @@ 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]] = [] @@ -258,31 +247,23 @@ 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, @@ -292,7 +273,5 @@ 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/api/catalog_instances_api.py b/koyeb/api/api/catalog_instances_api.py index 910b9d6e..fdee1643 100644 --- a/koyeb/api/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 @@ -39,7 +39,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_catalog_instance( self, @@ -48,9 +47,8 @@ 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, @@ -82,22 +80,21 @@ 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( @@ -105,7 +102,6 @@ def get_catalog_instance( response_types_map=_response_types_map, ).data - @validate_call def get_catalog_instance_with_http_info( self, @@ -114,9 +110,8 @@ 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, @@ -148,22 +143,21 @@ 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( @@ -171,7 +165,6 @@ def get_catalog_instance_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_catalog_instance_without_preload_content( self, @@ -180,9 +173,8 @@ 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, @@ -214,26 +206,24 @@ 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, @@ -245,8 +235,7 @@ 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]] = [] @@ -259,30 +248,22 @@ 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, @@ -292,25 +273,29 @@ 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, @@ -346,7 +331,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, @@ -355,15 +340,14 @@ 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( @@ -371,20 +355,26 @@ 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, @@ -420,7 +410,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, @@ -429,15 +419,14 @@ 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( @@ -445,20 +434,26 @@ 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, @@ -494,7 +489,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, @@ -503,19 +498,17 @@ 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, @@ -529,8 +522,7 @@ 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]] = [] @@ -544,39 +536,31 @@ 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, @@ -586,7 +570,5 @@ 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/api/catalog_regions_api.py b/koyeb/api/api/catalog_regions_api.py index 924c6164..6aa5a385 100644 --- a/koyeb/api/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 @@ -39,7 +39,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_region( self, @@ -48,9 +47,8 @@ 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, @@ -82,22 +80,21 @@ 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( @@ -105,7 +102,6 @@ def get_region( response_types_map=_response_types_map, ).data - @validate_call def get_region_with_http_info( self, @@ -114,9 +110,8 @@ 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, @@ -148,22 +143,21 @@ 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( @@ -171,7 +165,6 @@ def get_region_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_region_without_preload_content( self, @@ -180,9 +173,8 @@ 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, @@ -214,26 +206,24 @@ 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, @@ -245,8 +235,7 @@ 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]] = [] @@ -259,30 +248,22 @@ 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, @@ -292,25 +273,29 @@ 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, @@ -346,7 +331,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, @@ -355,15 +340,14 @@ 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( @@ -371,20 +355,26 @@ 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, @@ -420,7 +410,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, @@ -429,15 +419,14 @@ 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( @@ -445,20 +434,26 @@ 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, @@ -494,7 +489,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, @@ -503,19 +498,17 @@ 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, @@ -529,8 +522,7 @@ 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]] = [] @@ -544,39 +536,31 @@ 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, @@ -586,7 +570,5 @@ 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/api/compose_api.py b/koyeb/api/api/compose_api.py index 2bf3aec2..0d62aa8e 100644 --- a/koyeb/api/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 @@ -36,7 +36,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def compose( self, @@ -45,9 +44,8 @@ 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, @@ -79,28 +77,27 @@ 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( @@ -108,7 +105,6 @@ def compose( response_types_map=_response_types_map, ).data - @validate_call def compose_with_http_info( self, @@ -117,9 +113,8 @@ 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, @@ -151,28 +146,27 @@ 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( @@ -180,7 +174,6 @@ def compose_with_http_info( response_types_map=_response_types_map, ) - @validate_call def compose_without_preload_content( self, @@ -189,9 +182,8 @@ 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, @@ -223,32 +215,30 @@ 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, @@ -260,8 +250,7 @@ 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]] = [] @@ -280,24 +269,16 @@ 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, @@ -307,7 +288,5 @@ 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/api/coupons_api.py b/koyeb/api/api/coupons_api.py index a2a9e48e..afbf2035 100644 --- a/koyeb/api/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 @@ -36,7 +36,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def redeem_coupon( self, @@ -45,9 +44,8 @@ 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, @@ -80,28 +78,27 @@ 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( @@ -109,7 +106,6 @@ def redeem_coupon( response_types_map=_response_types_map, ).data - @validate_call def redeem_coupon_with_http_info( self, @@ -118,9 +114,8 @@ 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, @@ -153,28 +148,27 @@ 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( @@ -182,7 +176,6 @@ def redeem_coupon_with_http_info( response_types_map=_response_types_map, ) - @validate_call def redeem_coupon_without_preload_content( self, @@ -191,9 +184,8 @@ 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, @@ -226,32 +218,30 @@ 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, @@ -263,8 +253,7 @@ 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]] = [] @@ -283,24 +272,16 @@ 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, @@ -310,7 +291,5 @@ 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/api/credentials_api.py b/koyeb/api/api/credentials_api.py index c85df276..e1d7e609 100644 --- a/koyeb/api/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 @@ -43,7 +43,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_credential( self, @@ -52,9 +51,8 @@ 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, @@ -86,28 +84,27 @@ 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( @@ -115,7 +112,6 @@ def create_credential( response_types_map=_response_types_map, ).data - @validate_call def create_credential_with_http_info( self, @@ -124,9 +120,8 @@ 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, @@ -158,28 +153,27 @@ 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( @@ -187,7 +181,6 @@ def create_credential_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_credential_without_preload_content( self, @@ -196,9 +189,8 @@ 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, @@ -230,32 +222,30 @@ 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, @@ -267,8 +257,7 @@ 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]] = [] @@ -287,24 +276,16 @@ 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, @@ -314,12 +295,9 @@ 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, @@ -328,9 +306,8 @@ 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, @@ -362,28 +339,27 @@ 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( @@ -391,7 +367,6 @@ def delete_credential( response_types_map=_response_types_map, ).data - @validate_call def delete_credential_with_http_info( self, @@ -400,9 +375,8 @@ 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, @@ -434,28 +408,27 @@ 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( @@ -463,7 +436,6 @@ def delete_credential_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_credential_without_preload_content( self, @@ -472,9 +444,8 @@ 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, @@ -506,32 +477,30 @@ 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, @@ -543,8 +512,7 @@ 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]] = [] @@ -557,30 +525,22 @@ 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, @@ -590,12 +550,9 @@ 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, @@ -604,9 +561,8 @@ 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, @@ -638,28 +594,27 @@ 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( @@ -667,7 +622,6 @@ def get_credential( response_types_map=_response_types_map, ).data - @validate_call def get_credential_with_http_info( self, @@ -676,9 +630,8 @@ 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, @@ -710,28 +663,27 @@ 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( @@ -739,7 +691,6 @@ def get_credential_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_credential_without_preload_content( self, @@ -748,9 +699,8 @@ 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, @@ -782,32 +732,30 @@ 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, @@ -819,8 +767,7 @@ 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]] = [] @@ -833,30 +780,22 @@ 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, @@ -866,28 +805,39 @@ 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, @@ -929,7 +879,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, @@ -941,21 +891,20 @@ 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( @@ -963,23 +912,36 @@ 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, @@ -1021,7 +983,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, @@ -1033,21 +995,20 @@ 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( @@ -1055,23 +1016,36 @@ 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, @@ -1113,7 +1087,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, @@ -1125,25 +1099,23 @@ 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, @@ -1160,8 +1132,7 @@ 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]] = [] @@ -1175,51 +1146,43 @@ 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, @@ -1229,12 +1192,9 @@ 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, @@ -1245,9 +1205,8 @@ 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, @@ -1283,7 +1242,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, @@ -1292,21 +1251,20 @@ 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( @@ -1314,7 +1272,6 @@ def update_credential( response_types_map=_response_types_map, ).data - @validate_call def update_credential_with_http_info( self, @@ -1325,9 +1282,8 @@ 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, @@ -1363,7 +1319,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, @@ -1372,21 +1328,20 @@ 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( @@ -1394,7 +1349,6 @@ def update_credential_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_credential_without_preload_content( self, @@ -1405,9 +1359,8 @@ 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, @@ -1443,7 +1396,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, @@ -1452,25 +1405,23 @@ 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, @@ -1484,8 +1435,7 @@ 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]] = [] @@ -1498,36 +1448,28 @@ 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, @@ -1537,12 +1479,9 @@ 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, @@ -1553,9 +1492,8 @@ 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, @@ -1591,7 +1529,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, @@ -1600,21 +1538,20 @@ 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( @@ -1622,7 +1559,6 @@ def update_credential2( response_types_map=_response_types_map, ).data - @validate_call def update_credential2_with_http_info( self, @@ -1633,9 +1569,8 @@ 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, @@ -1671,7 +1606,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, @@ -1680,21 +1615,20 @@ 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( @@ -1702,7 +1636,6 @@ def update_credential2_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_credential2_without_preload_content( self, @@ -1713,9 +1646,8 @@ 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, @@ -1751,7 +1683,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, @@ -1760,25 +1692,23 @@ 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, @@ -1792,8 +1722,7 @@ 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]] = [] @@ -1806,36 +1735,28 @@ 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, @@ -1845,7 +1766,5 @@ 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 index fe21409b..8468494c 100644 --- a/koyeb/api/api/deployments_api.py +++ b/koyeb/api/api/deployments_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -41,18 +41,18 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def cancel_deployment( self, - id: Annotated[StrictStr, Field(description="The id of the deployment to cancel.")], + id: Annotated[ + StrictStr, Field(description="The id of the deployment to cancel.") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,28 +85,27 @@ def cancel_deployment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cancel_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -114,18 +113,18 @@ def cancel_deployment( response_types_map=_response_types_map, ).data - @validate_call def cancel_deployment_with_http_info( self, - id: Annotated[StrictStr, Field(description="The id of the deployment to cancel.")], + id: Annotated[ + StrictStr, Field(description="The id of the deployment to cancel.") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -158,28 +157,27 @@ def cancel_deployment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cancel_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -187,18 +185,18 @@ def cancel_deployment_with_http_info( response_types_map=_response_types_map, ) - @validate_call def cancel_deployment_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The id of the deployment to cancel.")], + id: Annotated[ + StrictStr, Field(description="The id of the deployment to cancel.") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -231,32 +229,30 @@ def cancel_deployment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._cancel_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _cancel_deployment_serialize( self, id, @@ -268,8 +264,7 @@ def _cancel_deployment_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -282,30 +277,22 @@ def _cancel_deployment_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/deployments/{id}/cancel', + method="POST", + resource_path="/v1/deployments/{id}/cancel", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -315,12 +302,9 @@ def _cancel_deployment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_deployment( self, @@ -329,9 +313,8 @@ def get_deployment( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -363,28 +346,27 @@ def get_deployment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetDeploymentReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -392,7 +374,6 @@ def get_deployment( response_types_map=_response_types_map, ).data - @validate_call def get_deployment_with_http_info( self, @@ -401,9 +382,8 @@ def get_deployment_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -435,28 +415,27 @@ def get_deployment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetDeploymentReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -464,7 +443,6 @@ def get_deployment_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_deployment_without_preload_content( self, @@ -473,9 +451,8 @@ def get_deployment_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -507,32 +484,30 @@ def get_deployment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetDeploymentReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_deployment_serialize( self, id, @@ -544,8 +519,7 @@ def _get_deployment_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -558,30 +532,22 @@ def _get_deployment_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/deployments/{id}', + method="GET", + resource_path="/v1/deployments/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -591,25 +557,25 @@ def _get_deployment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_deployment_scaling( self, id: StrictStr, - region: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on region")] = None, - replica_index: Annotated[Optional[StrictInt], Field(description="(Optional) Filter on replica_index")] = None, + region: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on region") + ] = None, + replica_index: Annotated[ + Optional[StrictInt], Field(description="(Optional) Filter on replica_index") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -645,7 +611,7 @@ def get_deployment_scaling( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_scaling_serialize( id=id, @@ -654,21 +620,20 @@ def get_deployment_scaling( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentScalingReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetDeploymentScalingReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -676,20 +641,22 @@ def get_deployment_scaling( response_types_map=_response_types_map, ).data - @validate_call def get_deployment_scaling_with_http_info( self, id: StrictStr, - region: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on region")] = None, - replica_index: Annotated[Optional[StrictInt], Field(description="(Optional) Filter on replica_index")] = None, + region: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on region") + ] = None, + replica_index: Annotated[ + Optional[StrictInt], Field(description="(Optional) Filter on replica_index") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -725,7 +692,7 @@ def get_deployment_scaling_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_scaling_serialize( id=id, @@ -734,21 +701,20 @@ def get_deployment_scaling_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentScalingReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetDeploymentScalingReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -756,20 +722,22 @@ def get_deployment_scaling_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_deployment_scaling_without_preload_content( self, id: StrictStr, - region: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on region")] = None, - replica_index: Annotated[Optional[StrictInt], Field(description="(Optional) Filter on replica_index")] = None, + region: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on region") + ] = None, + replica_index: Annotated[ + Optional[StrictInt], Field(description="(Optional) Filter on replica_index") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -805,7 +773,7 @@ def get_deployment_scaling_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_deployment_scaling_serialize( id=id, @@ -814,25 +782,23 @@ def get_deployment_scaling_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetDeploymentScalingReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetDeploymentScalingReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_deployment_scaling_serialize( self, id, @@ -846,8 +812,7 @@ def _get_deployment_scaling_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -860,38 +825,30 @@ def _get_deployment_scaling_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters if region is not None: - - _query_params.append(('region', region)) - + + _query_params.append(("region", region)) + if replica_index is not None: - - _query_params.append(('replica_index', replica_index)) - + + _query_params.append(("replica_index", replica_index)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/deployment/{id}/scaling', + method="GET", + resource_path="/v1/deployment/{id}/scaling", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -901,27 +858,39 @@ def _get_deployment_scaling_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_deployment_events( self, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on deployment event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on deployment event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -961,7 +930,7 @@ def list_deployment_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployment_events_serialize( deployment_id=deployment_id, @@ -972,21 +941,20 @@ def list_deployment_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDeploymentEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListDeploymentEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -994,22 +962,36 @@ def list_deployment_events( response_types_map=_response_types_map, ).data - @validate_call def list_deployment_events_with_http_info( self, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on deployment event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on deployment event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1049,7 +1031,7 @@ def list_deployment_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployment_events_serialize( deployment_id=deployment_id, @@ -1060,21 +1042,20 @@ def list_deployment_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDeploymentEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListDeploymentEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1082,22 +1063,36 @@ def list_deployment_events_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_deployment_events_without_preload_content( self, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on deployment event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on deployment event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1137,7 +1132,7 @@ def list_deployment_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployment_events_serialize( deployment_id=deployment_id, @@ -1148,25 +1143,23 @@ def list_deployment_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDeploymentEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListDeploymentEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_deployment_events_serialize( self, deployment_id, @@ -1183,7 +1176,7 @@ def _list_deployment_events_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', + "types": "multi", } _path_params: Dict[str, str] = {} @@ -1198,47 +1191,39 @@ def _list_deployment_events_serialize( # process the path parameters # process the query parameters if deployment_id is not None: - - _query_params.append(('deployment_id', deployment_id)) - + + _query_params.append(("deployment_id", deployment_id)) + if types is not None: - - _query_params.append(('types', types)) - + + _query_params.append(("types", types)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if order is not None: - - _query_params.append(('order', order)) - + + _query_params.append(("order", order)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/deployment_events', + method="GET", + resource_path="/v1/deployment_events", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1248,27 +1233,37 @@ def _list_deployment_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_deployments( self, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on statuses")] = None, + app_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on application id"), + ] = None, + service_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on service id") + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1308,7 +1303,7 @@ def list_deployments( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployments_serialize( app_id=app_id, @@ -1319,21 +1314,20 @@ def list_deployments( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDeploymentsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListDeploymentsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1341,22 +1335,34 @@ def list_deployments( response_types_map=_response_types_map, ).data - @validate_call def list_deployments_with_http_info( self, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on statuses")] = None, + app_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on application id"), + ] = None, + service_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on service id") + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1396,7 +1402,7 @@ def list_deployments_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployments_serialize( app_id=app_id, @@ -1407,21 +1413,20 @@ def list_deployments_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDeploymentsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListDeploymentsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1429,22 +1434,34 @@ def list_deployments_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_deployments_without_preload_content( self, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on statuses")] = None, + app_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on application id"), + ] = None, + service_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on service id") + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1484,7 +1501,7 @@ def list_deployments_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_deployments_serialize( app_id=app_id, @@ -1495,25 +1512,23 @@ def list_deployments_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListDeploymentsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListDeploymentsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_deployments_serialize( self, app_id, @@ -1530,7 +1545,7 @@ def _list_deployments_serialize( _host = None _collection_formats: Dict[str, str] = { - 'statuses': 'multi', + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -1545,47 +1560,39 @@ def _list_deployments_serialize( # process the path parameters # process the query parameters if app_id is not None: - - _query_params.append(('app_id', app_id)) - + + _query_params.append(("app_id", app_id)) + if service_id is not None: - - _query_params.append(('service_id', service_id)) - + + _query_params.append(("service_id", service_id)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if statuses is not None: - - _query_params.append(('statuses', statuses)) - + + _query_params.append(("statuses", statuses)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/deployments', + method="GET", + resource_path="/v1/deployments", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1595,7 +1602,5 @@ def _list_deployments_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/docker_helper_api.py b/koyeb/api/api/docker_helper_api.py index 82c8d987..f305bcd2 100644 --- a/koyeb/api/api/docker_helper_api.py +++ b/koyeb/api/api/docker_helper_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -38,19 +38,24 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def verify_docker_image( self, - image: Annotated[Optional[StrictStr], Field(description="The full image uri to be verified")] = None, - secret_id: Annotated[Optional[StrictStr], Field(description="(Optional) the id of the secret to use to authenticate to the registry")] = None, + image: Annotated[ + Optional[StrictStr], Field(description="The full image uri to be verified") + ] = None, + secret_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) the id of the secret to use to authenticate to the registry" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -85,7 +90,7 @@ def verify_docker_image( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_docker_image_serialize( image=image, @@ -93,21 +98,20 @@ def verify_docker_image( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VerifyDockerImageReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "VerifyDockerImageReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -115,19 +119,24 @@ def verify_docker_image( response_types_map=_response_types_map, ).data - @validate_call def verify_docker_image_with_http_info( self, - image: Annotated[Optional[StrictStr], Field(description="The full image uri to be verified")] = None, - secret_id: Annotated[Optional[StrictStr], Field(description="(Optional) the id of the secret to use to authenticate to the registry")] = None, + image: Annotated[ + Optional[StrictStr], Field(description="The full image uri to be verified") + ] = None, + secret_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) the id of the secret to use to authenticate to the registry" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -162,7 +171,7 @@ def verify_docker_image_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_docker_image_serialize( image=image, @@ -170,21 +179,20 @@ def verify_docker_image_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VerifyDockerImageReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "VerifyDockerImageReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -192,19 +200,24 @@ def verify_docker_image_with_http_info( response_types_map=_response_types_map, ) - @validate_call def verify_docker_image_without_preload_content( self, - image: Annotated[Optional[StrictStr], Field(description="The full image uri to be verified")] = None, - secret_id: Annotated[Optional[StrictStr], Field(description="(Optional) the id of the secret to use to authenticate to the registry")] = None, + image: Annotated[ + Optional[StrictStr], Field(description="The full image uri to be verified") + ] = None, + secret_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) the id of the secret to use to authenticate to the registry" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -239,7 +252,7 @@ def verify_docker_image_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._verify_docker_image_serialize( image=image, @@ -247,25 +260,23 @@ def verify_docker_image_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "VerifyDockerImageReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "VerifyDockerImageReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _verify_docker_image_serialize( self, image, @@ -278,8 +289,7 @@ def _verify_docker_image_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -293,35 +303,27 @@ def _verify_docker_image_serialize( # process the path parameters # process the query parameters if image is not None: - - _query_params.append(('image', image)) - + + _query_params.append(("image", image)) + if secret_id is not None: - - _query_params.append(('secret_id', secret_id)) - + + _query_params.append(("secret_id", secret_id)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/docker-helper/verify', + method="GET", + resource_path="/v1/docker-helper/verify", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -331,7 +333,5 @@ def _verify_docker_image_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/domains_api.py b/koyeb/api/api/domains_api.py index d68d4bfe..1b95a444 100644 --- a/koyeb/api/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 @@ -43,7 +43,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_domain( self, @@ -52,9 +51,8 @@ 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, @@ -86,28 +84,27 @@ 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( @@ -115,7 +112,6 @@ def create_domain( response_types_map=_response_types_map, ).data - @validate_call def create_domain_with_http_info( self, @@ -124,9 +120,8 @@ 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, @@ -158,28 +153,27 @@ 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( @@ -187,7 +181,6 @@ def create_domain_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_domain_without_preload_content( self, @@ -196,9 +189,8 @@ 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, @@ -230,32 +222,30 @@ 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, @@ -267,8 +257,7 @@ 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]] = [] @@ -287,24 +276,16 @@ 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, @@ -314,12 +295,9 @@ 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, @@ -328,9 +306,8 @@ 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, @@ -362,28 +339,27 @@ 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( @@ -391,7 +367,6 @@ def delete_domain( response_types_map=_response_types_map, ).data - @validate_call def delete_domain_with_http_info( self, @@ -400,9 +375,8 @@ 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, @@ -434,28 +408,27 @@ 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( @@ -463,7 +436,6 @@ def delete_domain_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_domain_without_preload_content( self, @@ -472,9 +444,8 @@ 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, @@ -506,32 +477,30 @@ 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, @@ -543,8 +512,7 @@ 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]] = [] @@ -557,30 +525,22 @@ 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, @@ -590,12 +550,9 @@ 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, @@ -604,9 +561,8 @@ 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, @@ -638,28 +594,27 @@ 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( @@ -667,7 +622,6 @@ def get_domain( response_types_map=_response_types_map, ).data - @validate_call def get_domain_with_http_info( self, @@ -676,9 +630,8 @@ 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, @@ -710,28 +663,27 @@ 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( @@ -739,7 +691,6 @@ def get_domain_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_domain_without_preload_content( self, @@ -748,9 +699,8 @@ 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, @@ -782,32 +732,30 @@ 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, @@ -819,8 +767,7 @@ 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]] = [] @@ -833,30 +780,22 @@ 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, @@ -866,28 +805,42 @@ 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, @@ -929,7 +882,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, @@ -941,21 +894,20 @@ 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( @@ -963,23 +915,39 @@ 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, @@ -1021,7 +989,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, @@ -1033,21 +1001,20 @@ 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( @@ -1055,23 +1022,39 @@ 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, @@ -1113,7 +1096,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, @@ -1125,25 +1108,23 @@ 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, @@ -1161,9 +1142,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] = {} @@ -1178,51 +1159,43 @@ 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, @@ -1232,12 +1205,9 @@ 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, @@ -1246,9 +1216,8 @@ 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, @@ -1280,28 +1249,27 @@ 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( @@ -1309,7 +1277,6 @@ def refresh_domain_status( response_types_map=_response_types_map, ).data - @validate_call def refresh_domain_status_with_http_info( self, @@ -1318,9 +1285,8 @@ 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, @@ -1352,28 +1318,27 @@ 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( @@ -1381,7 +1346,6 @@ def refresh_domain_status_with_http_info( response_types_map=_response_types_map, ) - @validate_call def refresh_domain_status_without_preload_content( self, @@ -1390,9 +1354,8 @@ 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, @@ -1424,32 +1387,30 @@ 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, @@ -1461,8 +1422,7 @@ 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]] = [] @@ -1475,30 +1435,22 @@ 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, @@ -1508,26 +1460,27 @@ 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, @@ -1565,7 +1518,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, @@ -1575,21 +1528,20 @@ 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( @@ -1597,21 +1549,24 @@ 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, @@ -1649,7 +1604,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, @@ -1659,21 +1614,20 @@ 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( @@ -1681,21 +1635,24 @@ 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, @@ -1733,7 +1690,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, @@ -1743,25 +1700,23 @@ 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, @@ -1776,8 +1731,7 @@ 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]] = [] @@ -1790,40 +1744,32 @@ 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, @@ -1833,7 +1779,5 @@ 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 index abe0c65f..93e93d42 100644 --- a/koyeb/api/api/instances_api.py +++ b/koyeb/api/api/instances_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -17,13 +17,22 @@ from typing_extensions import Annotated from datetime import datetime -from pydantic import Field, StrictBool, StrictBytes, StrictInt, StrictStr, field_validator +from pydantic import ( + Field, + StrictBool, + StrictBytes, + StrictInt, + StrictStr, + field_validator, +) from typing import List, Optional, Union from typing_extensions import Annotated from koyeb.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.models.stream_result_of_exec_command_reply import ( + StreamResultOfExecCommandReply, +) from koyeb.api.api_client import ApiClient, RequestSerialized from koyeb.api.api_response import ApiResponse @@ -42,25 +51,43 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def exec_command( self, - id: Annotated[Optional[StrictStr], Field(description="ID of the resource to exec on.")] = None, - body_command: Annotated[Optional[List[StrictStr]], Field(description="Command to exec. Mandatory in the first frame sent")] = None, + id: Annotated[ + Optional[StrictStr], Field(description="ID of the resource to exec on.") + ] = None, + body_command: Annotated[ + Optional[List[StrictStr]], + Field(description="Command to exec. Mandatory in the first frame sent"), + ] = None, body_tty_size_height: Optional[StrictInt] = None, body_tty_size_width: Optional[StrictInt] = None, - body_stdin_data: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="Data is base64 encoded")] = None, - body_stdin_close: Annotated[Optional[StrictBool], Field(description="Indicate last data frame")] = None, - body_disable_tty: Annotated[Optional[StrictBool], Field(description="Disable TTY. It's enough to specify it in the first frame")] = None, - id_type: Annotated[Optional[StrictStr], Field(description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.")] = None, + body_stdin_data: Annotated[ + Optional[Union[StrictBytes, StrictStr]], + Field(description="Data is base64 encoded"), + ] = None, + body_stdin_close: Annotated[ + Optional[StrictBool], Field(description="Indicate last data frame") + ] = None, + body_disable_tty: Annotated[ + Optional[StrictBool], + Field( + description="Disable TTY. It's enough to specify it in the first frame" + ), + ] = None, + id_type: Annotated[ + Optional[StrictStr], + Field( + description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -107,7 +134,7 @@ def exec_command( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._exec_command_serialize( id=id, @@ -121,21 +148,20 @@ def exec_command( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StreamResultOfExecCommandReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "StreamResultOfExecCommandReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -143,25 +169,43 @@ def exec_command( response_types_map=_response_types_map, ).data - @validate_call def exec_command_with_http_info( self, - id: Annotated[Optional[StrictStr], Field(description="ID of the resource to exec on.")] = None, - body_command: Annotated[Optional[List[StrictStr]], Field(description="Command to exec. Mandatory in the first frame sent")] = None, + id: Annotated[ + Optional[StrictStr], Field(description="ID of the resource to exec on.") + ] = None, + body_command: Annotated[ + Optional[List[StrictStr]], + Field(description="Command to exec. Mandatory in the first frame sent"), + ] = None, body_tty_size_height: Optional[StrictInt] = None, body_tty_size_width: Optional[StrictInt] = None, - body_stdin_data: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="Data is base64 encoded")] = None, - body_stdin_close: Annotated[Optional[StrictBool], Field(description="Indicate last data frame")] = None, - body_disable_tty: Annotated[Optional[StrictBool], Field(description="Disable TTY. It's enough to specify it in the first frame")] = None, - id_type: Annotated[Optional[StrictStr], Field(description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.")] = None, + body_stdin_data: Annotated[ + Optional[Union[StrictBytes, StrictStr]], + Field(description="Data is base64 encoded"), + ] = None, + body_stdin_close: Annotated[ + Optional[StrictBool], Field(description="Indicate last data frame") + ] = None, + body_disable_tty: Annotated[ + Optional[StrictBool], + Field( + description="Disable TTY. It's enough to specify it in the first frame" + ), + ] = None, + id_type: Annotated[ + Optional[StrictStr], + Field( + description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -208,7 +252,7 @@ def exec_command_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._exec_command_serialize( id=id, @@ -222,21 +266,20 @@ def exec_command_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StreamResultOfExecCommandReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "StreamResultOfExecCommandReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -244,25 +287,43 @@ def exec_command_with_http_info( response_types_map=_response_types_map, ) - @validate_call def exec_command_without_preload_content( self, - id: Annotated[Optional[StrictStr], Field(description="ID of the resource to exec on.")] = None, - body_command: Annotated[Optional[List[StrictStr]], Field(description="Command to exec. Mandatory in the first frame sent")] = None, + id: Annotated[ + Optional[StrictStr], Field(description="ID of the resource to exec on.") + ] = None, + body_command: Annotated[ + Optional[List[StrictStr]], + Field(description="Command to exec. Mandatory in the first frame sent"), + ] = None, body_tty_size_height: Optional[StrictInt] = None, body_tty_size_width: Optional[StrictInt] = None, - body_stdin_data: Annotated[Optional[Union[StrictBytes, StrictStr]], Field(description="Data is base64 encoded")] = None, - body_stdin_close: Annotated[Optional[StrictBool], Field(description="Indicate last data frame")] = None, - body_disable_tty: Annotated[Optional[StrictBool], Field(description="Disable TTY. It's enough to specify it in the first frame")] = None, - id_type: Annotated[Optional[StrictStr], Field(description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id.")] = None, + body_stdin_data: Annotated[ + Optional[Union[StrictBytes, StrictStr]], + Field(description="Data is base64 encoded"), + ] = None, + body_stdin_close: Annotated[ + Optional[StrictBool], Field(description="Indicate last data frame") + ] = None, + body_disable_tty: Annotated[ + Optional[StrictBool], + Field( + description="Disable TTY. It's enough to specify it in the first frame" + ), + ] = None, + id_type: Annotated[ + Optional[StrictStr], + Field( + description="When specified, it is used to determine if the kind of resource the id refers to. If missing, defaults to the instance id." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -309,7 +370,7 @@ def exec_command_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._exec_command_serialize( id=id, @@ -323,25 +384,23 @@ def exec_command_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StreamResultOfExecCommandReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "StreamResultOfExecCommandReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _exec_command_serialize( self, id, @@ -361,7 +420,7 @@ def _exec_command_serialize( _host = None _collection_formats: Dict[str, str] = { - 'body.command': 'multi', + "body.command": "multi", } _path_params: Dict[str, str] = {} @@ -376,59 +435,51 @@ def _exec_command_serialize( # process the path parameters # process the query parameters if id is not None: - - _query_params.append(('id', id)) - + + _query_params.append(("id", id)) + if body_command is not None: - - _query_params.append(('body.command', body_command)) - + + _query_params.append(("body.command", body_command)) + if body_tty_size_height is not None: - - _query_params.append(('body.tty_size.height', body_tty_size_height)) - + + _query_params.append(("body.tty_size.height", body_tty_size_height)) + if body_tty_size_width is not None: - - _query_params.append(('body.tty_size.width', body_tty_size_width)) - + + _query_params.append(("body.tty_size.width", body_tty_size_width)) + if body_stdin_data is not None: - - _query_params.append(('body.stdin.data', body_stdin_data)) - + + _query_params.append(("body.stdin.data", body_stdin_data)) + if body_stdin_close is not None: - - _query_params.append(('body.stdin.close', body_stdin_close)) - + + _query_params.append(("body.stdin.close", body_stdin_close)) + if body_disable_tty is not None: - - _query_params.append(('body.disableTty', body_disable_tty)) - + + _query_params.append(("body.disableTty", body_disable_tty)) + if id_type is not None: - - _query_params.append(('id_type', id_type)) - + + _query_params.append(("id_type", id_type)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/streams/instances/exec', + method="GET", + resource_path="/v1/streams/instances/exec", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -438,12 +489,9 @@ def _exec_command_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_instance( self, @@ -452,9 +500,8 @@ def get_instance( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -486,28 +533,27 @@ def get_instance( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInstanceReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetInstanceReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -515,7 +561,6 @@ def get_instance( response_types_map=_response_types_map, ).data - @validate_call def get_instance_with_http_info( self, @@ -524,9 +569,8 @@ def get_instance_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -558,28 +602,27 @@ def get_instance_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInstanceReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetInstanceReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -587,7 +630,6 @@ def get_instance_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_instance_without_preload_content( self, @@ -596,9 +638,8 @@ def get_instance_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -630,32 +671,30 @@ def get_instance_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_instance_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetInstanceReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetInstanceReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_instance_serialize( self, id, @@ -667,8 +706,7 @@ def _get_instance_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -681,30 +719,22 @@ def _get_instance_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/instances/{id}', + method="GET", + resource_path="/v1/instances/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -714,27 +744,40 @@ def _get_instance_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_instance_events( self, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on list of instance id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on list of instance id"), + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on instance event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -774,7 +817,7 @@ def list_instance_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instance_events_serialize( instance_ids=instance_ids, @@ -785,21 +828,20 @@ def list_instance_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListInstanceEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListInstanceEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -807,22 +849,37 @@ def list_instance_events( response_types_map=_response_types_map, ).data - @validate_call def list_instance_events_with_http_info( self, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on list of instance id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on list of instance id"), + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on instance event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -862,7 +919,7 @@ def list_instance_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instance_events_serialize( instance_ids=instance_ids, @@ -873,21 +930,20 @@ def list_instance_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListInstanceEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListInstanceEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -895,22 +951,37 @@ def list_instance_events_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_instance_events_without_preload_content( self, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on list of instance id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on list of instance id"), + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on instance event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -950,7 +1021,7 @@ def list_instance_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instance_events_serialize( instance_ids=instance_ids, @@ -961,25 +1032,23 @@ def list_instance_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListInstanceEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListInstanceEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_instance_events_serialize( self, instance_ids, @@ -996,8 +1065,8 @@ def _list_instance_events_serialize( _host = None _collection_formats: Dict[str, str] = { - 'instance_ids': 'multi', - 'types': 'multi', + "instance_ids": "multi", + "types": "multi", } _path_params: Dict[str, str] = {} @@ -1012,47 +1081,39 @@ def _list_instance_events_serialize( # process the path parameters # process the query parameters if instance_ids is not None: - - _query_params.append(('instance_ids', instance_ids)) - + + _query_params.append(("instance_ids", instance_ids)) + if types is not None: - - _query_params.append(('types', types)) - + + _query_params.append(("types", types)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if order is not None: - - _query_params.append(('order', order)) - + + _query_params.append(("order", order)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/instance_events', + method="GET", + resource_path="/v1/instance_events", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1062,34 +1123,68 @@ def _list_instance_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_instances( self, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, - allocation_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on allocation id")] = None, - replica_index: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on replica index")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance statuses")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - starting_time: Annotated[Optional[datetime], Field(description="(Optional) The starting time of the period of running instance")] = None, - ending_time: Annotated[Optional[datetime], Field(description="(Optional) The ending time of the period of running instance")] = None, + app_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on application id"), + ] = None, + service_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on service id") + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on regional deployment id"), + ] = None, + allocation_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on allocation id") + ] = None, + replica_index: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on replica index") + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on instance statuses"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + starting_time: Annotated[ + Optional[datetime], + Field( + description="(Optional) The starting time of the period of running instance" + ), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field( + description="(Optional) The ending time of the period of running instance" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1143,7 +1238,7 @@ def list_instances( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instances_serialize( app_id=app_id, @@ -1161,21 +1256,20 @@ def list_instances( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListInstancesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListInstancesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1183,29 +1277,65 @@ def list_instances( response_types_map=_response_types_map, ).data - @validate_call def list_instances_with_http_info( self, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, - allocation_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on allocation id")] = None, - replica_index: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on replica index")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance statuses")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - starting_time: Annotated[Optional[datetime], Field(description="(Optional) The starting time of the period of running instance")] = None, - ending_time: Annotated[Optional[datetime], Field(description="(Optional) The ending time of the period of running instance")] = None, + app_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on application id"), + ] = None, + service_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on service id") + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on regional deployment id"), + ] = None, + allocation_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on allocation id") + ] = None, + replica_index: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on replica index") + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on instance statuses"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + starting_time: Annotated[ + Optional[datetime], + Field( + description="(Optional) The starting time of the period of running instance" + ), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field( + description="(Optional) The ending time of the period of running instance" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1259,7 +1389,7 @@ def list_instances_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instances_serialize( app_id=app_id, @@ -1277,21 +1407,20 @@ def list_instances_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListInstancesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListInstancesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1299,29 +1428,65 @@ def list_instances_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_instances_without_preload_content( self, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on application id")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on service id")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, - allocation_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on allocation id")] = None, - replica_index: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on replica index")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on instance statuses")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - starting_time: Annotated[Optional[datetime], Field(description="(Optional) The starting time of the period of running instance")] = None, - ending_time: Annotated[Optional[datetime], Field(description="(Optional) The ending time of the period of running instance")] = None, + app_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on application id"), + ] = None, + service_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on service id") + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on regional deployment id"), + ] = None, + allocation_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on allocation id") + ] = None, + replica_index: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on replica index") + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on instance statuses"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + starting_time: Annotated[ + Optional[datetime], + Field( + description="(Optional) The starting time of the period of running instance" + ), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field( + description="(Optional) The ending time of the period of running instance" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1375,7 +1540,7 @@ def list_instances_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_instances_serialize( app_id=app_id, @@ -1393,25 +1558,23 @@ def list_instances_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListInstancesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListInstancesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_instances_serialize( self, app_id, @@ -1435,7 +1598,7 @@ def _list_instances_serialize( _host = None _collection_formats: Dict[str, str] = { - 'statuses': 'multi', + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -1450,93 +1613,85 @@ def _list_instances_serialize( # process the path parameters # process the query parameters if app_id is not None: - - _query_params.append(('app_id', app_id)) - + + _query_params.append(("app_id", app_id)) + if service_id is not None: - - _query_params.append(('service_id', service_id)) - + + _query_params.append(("service_id", service_id)) + if deployment_id is not None: - - _query_params.append(('deployment_id', deployment_id)) - + + _query_params.append(("deployment_id", deployment_id)) + if regional_deployment_id is not None: - - _query_params.append(('regional_deployment_id', regional_deployment_id)) - + + _query_params.append(("regional_deployment_id", regional_deployment_id)) + if allocation_id is not None: - - _query_params.append(('allocation_id', allocation_id)) - + + _query_params.append(("allocation_id", allocation_id)) + if replica_index is not None: - - _query_params.append(('replica_index', replica_index)) - + + _query_params.append(("replica_index", replica_index)) + if statuses is not None: - - _query_params.append(('statuses', statuses)) - + + _query_params.append(("statuses", statuses)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if order is not None: - - _query_params.append(('order', order)) - + + _query_params.append(("order", order)) + if starting_time is not None: if isinstance(starting_time, datetime): _query_params.append( ( - 'starting_time', + "starting_time", starting_time.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('starting_time', starting_time)) - + _query_params.append(("starting_time", starting_time)) + if ending_time is not None: if isinstance(ending_time, datetime): _query_params.append( ( - 'ending_time', + "ending_time", ending_time.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('ending_time', ending_time)) - + _query_params.append(("ending_time", ending_time)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/instances', + method="GET", + resource_path="/v1/instances", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1546,7 +1701,5 @@ def _list_instances_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/intercom_api.py b/koyeb/api/api/intercom_api.py index 0c590c51..dec620ec 100644 --- a/koyeb/api/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 @@ -35,7 +35,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_intercom_profile( self, @@ -43,9 +42,8 @@ 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, @@ -75,27 +73,26 @@ 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( @@ -103,7 +100,6 @@ def get_intercom_profile( response_types_map=_response_types_map, ).data - @validate_call def get_intercom_profile_with_http_info( self, @@ -111,9 +107,8 @@ 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, @@ -143,27 +138,26 @@ 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( @@ -171,7 +165,6 @@ def get_intercom_profile_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_intercom_profile_without_preload_content( self, @@ -179,9 +172,8 @@ 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, @@ -211,31 +203,29 @@ 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, @@ -246,8 +236,7 @@ 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]] = [] @@ -264,24 +253,16 @@ 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, @@ -291,7 +272,5 @@ 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/api/invite_api.py b/koyeb/api/api/invite_api.py index f655f89a..8e6a7f5f 100644 --- a/koyeb/api/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 @@ -36,7 +36,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_invite( self, @@ -45,9 +44,8 @@ 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, @@ -79,28 +77,27 @@ 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( @@ -108,7 +105,6 @@ def create_invite( response_types_map=_response_types_map, ).data - @validate_call def create_invite_with_http_info( self, @@ -117,9 +113,8 @@ 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, @@ -151,28 +146,27 @@ 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( @@ -180,7 +174,6 @@ def create_invite_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_invite_without_preload_content( self, @@ -189,9 +182,8 @@ 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, @@ -223,32 +215,30 @@ 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, @@ -260,8 +250,7 @@ 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]] = [] @@ -280,24 +269,16 @@ 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, @@ -307,7 +288,5 @@ 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 index cfc7de79..af741a0f 100644 --- a/koyeb/api/api/logs_api.py +++ b/koyeb/api/api/logs_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -40,33 +40,103 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def query_logs( self, - type: Annotated[Optional[StrictStr], Field(description="Type of logs to retrieve, either \"build\" or \"runtime\". Defaults to \"runtime\".")] = None, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using instance_ids instead.")] = None, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - stream: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using streams instead.")] = None, - streams: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on stream: either \"stdout\", \"stderr\" or \"koyeb\" (for system logs).")] = 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, - regions: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided regions (e.g. [\"fra\", \"was\"]).")] = None, + type: Annotated[ + Optional[StrictStr], + Field( + description='Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime".' + ), + ] = None, + app_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using instance_ids instead."), + ] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + stream: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using streams instead."), + ] = None, + streams: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs).' + ), + ] = 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, + regions: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on the provided regions (e.g. ["fra", "was"]).' + ), + ] = 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, @@ -128,7 +198,7 @@ def query_logs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._query_logs_serialize( type=type, @@ -150,21 +220,20 @@ def query_logs( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "QueryLogsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "QueryLogsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -172,33 +241,103 @@ def query_logs( response_types_map=_response_types_map, ).data - @validate_call def query_logs_with_http_info( self, - type: Annotated[Optional[StrictStr], Field(description="Type of logs to retrieve, either \"build\" or \"runtime\". Defaults to \"runtime\".")] = None, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using instance_ids instead.")] = None, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - stream: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using streams instead.")] = None, - streams: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on stream: either \"stdout\", \"stderr\" or \"koyeb\" (for system logs).")] = 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, - regions: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided regions (e.g. [\"fra\", \"was\"]).")] = None, + type: Annotated[ + Optional[StrictStr], + Field( + description='Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime".' + ), + ] = None, + app_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using instance_ids instead."), + ] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + stream: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using streams instead."), + ] = None, + streams: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs).' + ), + ] = 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, + regions: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on the provided regions (e.g. ["fra", "was"]).' + ), + ] = 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, @@ -260,7 +399,7 @@ def query_logs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._query_logs_serialize( type=type, @@ -282,21 +421,20 @@ def query_logs_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "QueryLogsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "QueryLogsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -304,33 +442,103 @@ def query_logs_with_http_info( response_types_map=_response_types_map, ) - @validate_call def query_logs_without_preload_content( self, - type: Annotated[Optional[StrictStr], Field(description="Type of logs to retrieve, either \"build\" or \"runtime\". Defaults to \"runtime\".")] = None, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using instance_ids instead.")] = None, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - stream: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using streams instead.")] = None, - streams: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on stream: either \"stdout\", \"stderr\" or \"koyeb\" (for system logs).")] = 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, - regions: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided regions (e.g. [\"fra\", \"was\"]).")] = None, + type: Annotated[ + Optional[StrictStr], + Field( + description='Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime".' + ), + ] = None, + app_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using instance_ids instead."), + ] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + stream: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using streams instead."), + ] = None, + streams: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs).' + ), + ] = 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, + regions: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on the provided regions (e.g. ["fra", "was"]).' + ), + ] = 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, @@ -392,7 +600,7 @@ def query_logs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._query_logs_serialize( type=type, @@ -414,25 +622,23 @@ def query_logs_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "QueryLogsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "QueryLogsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _query_logs_serialize( self, type, @@ -460,9 +666,9 @@ def _query_logs_serialize( _host = None _collection_formats: Dict[str, str] = { - 'instance_ids': 'multi', - 'streams': 'multi', - 'regions': 'multi', + "instance_ids": "multi", + "streams": "multi", + "regions": "multi", } _path_params: Dict[str, str] = {} @@ -477,109 +683,94 @@ def _query_logs_serialize( # process the path parameters # process the query parameters if type is not None: - - _query_params.append(('type', type)) - + + _query_params.append(("type", type)) + if app_id is not None: - - _query_params.append(('app_id', app_id)) - + + _query_params.append(("app_id", app_id)) + if service_id is not None: - - _query_params.append(('service_id', service_id)) - + + _query_params.append(("service_id", service_id)) + if deployment_id is not None: - - _query_params.append(('deployment_id', deployment_id)) - + + _query_params.append(("deployment_id", deployment_id)) + if regional_deployment_id is not None: - - _query_params.append(('regional_deployment_id', regional_deployment_id)) - + + _query_params.append(("regional_deployment_id", regional_deployment_id)) + if instance_id is not None: - - _query_params.append(('instance_id', instance_id)) - + + _query_params.append(("instance_id", instance_id)) + if instance_ids is not None: - - _query_params.append(('instance_ids', instance_ids)) - + + _query_params.append(("instance_ids", instance_ids)) + if stream is not None: - - _query_params.append(('stream', stream)) - + + _query_params.append(("stream", stream)) + if streams is not None: - - _query_params.append(('streams', streams)) - + + _query_params.append(("streams", streams)) + if start is not None: if isinstance(start, datetime): _query_params.append( ( - 'start', - start.strftime( - self.api_client.configuration.datetime_format - ) + "start", + start.strftime(self.api_client.configuration.datetime_format), ) ) else: - _query_params.append(('start', start)) - + _query_params.append(("start", start)) + if end is not None: if isinstance(end, datetime): _query_params.append( - ( - 'end', - end.strftime( - self.api_client.configuration.datetime_format - ) - ) + ("end", end.strftime(self.api_client.configuration.datetime_format)) ) else: - _query_params.append(('end', end)) - + _query_params.append(("end", end)) + if order is not None: - - _query_params.append(('order', order)) - + + _query_params.append(("order", order)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if regex is not None: - - _query_params.append(('regex', regex)) - + + _query_params.append(("regex", regex)) + if text is not None: - - _query_params.append(('text', text)) - + + _query_params.append(("text", text)) + if regions is not None: - - _query_params.append(('regions', regions)) - + + _query_params.append(("regions", regions)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/streams/logs/query', + method="GET", + resource_path="/v1/streams/logs/query", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -589,36 +780,94 @@ def _query_logs_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def tail_logs( self, - type: Annotated[Optional[StrictStr], Field(description="Type of logs to retrieve, either \"build\" or \"runtime\". Defaults to \"runtime\".")] = None, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using instance_ids instead.")] = None, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - stream: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using streams instead.")] = None, - streams: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on stream: either \"stdout\", \"stderr\" or \"koyeb\" (for system logs).")] = None, - start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to 24 hours ago.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) Defaults to 1000. 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, - regions: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided regions (e.g. [\"fra\", \"was\"]).")] = None, + type: Annotated[ + Optional[StrictStr], + Field( + description='Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime".' + ), + ] = None, + app_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using instance_ids instead."), + ] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + stream: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using streams instead."), + ] = None, + streams: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs).' + ), + ] = None, + start: Annotated[ + Optional[datetime], + Field(description="(Optional) Defaults to 24 hours ago."), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Defaults to 1000. 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, + regions: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on the provided regions (e.g. ["fra", "was"]).' + ), + ] = 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, @@ -676,7 +925,7 @@ def tail_logs( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._tail_logs_serialize( type=type, @@ -696,21 +945,20 @@ def tail_logs( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StreamResultOfLogEntry", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "StreamResultOfLogEntry", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -718,31 +966,91 @@ def tail_logs( response_types_map=_response_types_map, ).data - @validate_call def tail_logs_with_http_info( self, - type: Annotated[Optional[StrictStr], Field(description="Type of logs to retrieve, either \"build\" or \"runtime\". Defaults to \"runtime\".")] = None, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using instance_ids instead.")] = None, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - stream: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using streams instead.")] = None, - streams: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on stream: either \"stdout\", \"stderr\" or \"koyeb\" (for system logs).")] = None, - start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to 24 hours ago.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) Defaults to 1000. 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, - regions: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided regions (e.g. [\"fra\", \"was\"]).")] = None, + type: Annotated[ + Optional[StrictStr], + Field( + description='Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime".' + ), + ] = None, + app_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using instance_ids instead."), + ] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + stream: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using streams instead."), + ] = None, + streams: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs).' + ), + ] = None, + start: Annotated[ + Optional[datetime], + Field(description="(Optional) Defaults to 24 hours ago."), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Defaults to 1000. 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, + regions: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on the provided regions (e.g. ["fra", "was"]).' + ), + ] = 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, @@ -800,7 +1108,7 @@ def tail_logs_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._tail_logs_serialize( type=type, @@ -820,21 +1128,20 @@ def tail_logs_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StreamResultOfLogEntry", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "StreamResultOfLogEntry", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -842,31 +1149,91 @@ def tail_logs_with_http_info( response_types_map=_response_types_map, ) - @validate_call def tail_logs_without_preload_content( self, - type: Annotated[Optional[StrictStr], Field(description="Type of logs to retrieve, either \"build\" or \"runtime\". Defaults to \"runtime\".")] = None, - app_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - service_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using instance_ids instead.")] = None, - instance_ids: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set.")] = None, - stream: Annotated[Optional[StrictStr], Field(description="Deprecated, prefer using streams instead.")] = None, - streams: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on stream: either \"stdout\", \"stderr\" or \"koyeb\" (for system logs).")] = None, - start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to 24 hours ago.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) Defaults to 1000. 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, - regions: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on the provided regions (e.g. [\"fra\", \"was\"]).")] = None, + type: Annotated[ + Optional[StrictStr], + Field( + description='Type of logs to retrieve, either "build" or "runtime". Defaults to "runtime".' + ), + ] = None, + app_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided app_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided service_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on the provided regional_deployment_id. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using instance_ids instead."), + ] = None, + instance_ids: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Filter on the provided instance_ids. At least one of app_id, service_id, deployment_id, regional_deployment_id or instance_ids must be set." + ), + ] = None, + stream: Annotated[ + Optional[StrictStr], + Field(description="Deprecated, prefer using streams instead."), + ] = None, + streams: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on stream: either "stdout", "stderr" or "koyeb" (for system logs).' + ), + ] = None, + start: Annotated[ + Optional[datetime], + Field(description="(Optional) Defaults to 24 hours ago."), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Defaults to 1000. 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, + regions: Annotated[ + Optional[List[StrictStr]], + Field( + description='(Optional) Filter on the provided regions (e.g. ["fra", "was"]).' + ), + ] = 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, @@ -924,7 +1291,7 @@ def tail_logs_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._tail_logs_serialize( type=type, @@ -944,25 +1311,23 @@ def tail_logs_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "StreamResultOfLogEntry", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "StreamResultOfLogEntry", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _tail_logs_serialize( self, type, @@ -988,9 +1353,9 @@ def _tail_logs_serialize( _host = None _collection_formats: Dict[str, str] = { - 'instance_ids': 'multi', - 'streams': 'multi', - 'regions': 'multi', + "instance_ids": "multi", + "streams": "multi", + "regions": "multi", } _path_params: Dict[str, str] = {} @@ -1005,92 +1370,82 @@ def _tail_logs_serialize( # process the path parameters # process the query parameters if type is not None: - - _query_params.append(('type', type)) - + + _query_params.append(("type", type)) + if app_id is not None: - - _query_params.append(('app_id', app_id)) - + + _query_params.append(("app_id", app_id)) + if service_id is not None: - - _query_params.append(('service_id', service_id)) - + + _query_params.append(("service_id", service_id)) + if deployment_id is not None: - - _query_params.append(('deployment_id', deployment_id)) - + + _query_params.append(("deployment_id", deployment_id)) + if regional_deployment_id is not None: - - _query_params.append(('regional_deployment_id', regional_deployment_id)) - + + _query_params.append(("regional_deployment_id", regional_deployment_id)) + if instance_id is not None: - - _query_params.append(('instance_id', instance_id)) - + + _query_params.append(("instance_id", instance_id)) + if instance_ids is not None: - - _query_params.append(('instance_ids', instance_ids)) - + + _query_params.append(("instance_ids", instance_ids)) + if stream is not None: - - _query_params.append(('stream', stream)) - + + _query_params.append(("stream", stream)) + if streams is not None: - - _query_params.append(('streams', streams)) - + + _query_params.append(("streams", streams)) + if start is not None: if isinstance(start, datetime): _query_params.append( ( - 'start', - start.strftime( - self.api_client.configuration.datetime_format - ) + "start", + start.strftime(self.api_client.configuration.datetime_format), ) ) else: - _query_params.append(('start', start)) - + _query_params.append(("start", start)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if regex is not None: - - _query_params.append(('regex', regex)) - + + _query_params.append(("regex", regex)) + if text is not None: - - _query_params.append(('text', text)) - + + _query_params.append(("text", text)) + if regions is not None: - - _query_params.append(('regions', regions)) - + + _query_params.append(("regions", regions)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/streams/logs/tail', + method="GET", + resource_path="/v1/streams/logs/tail", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1100,7 +1455,5 @@ def _tail_logs_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/metrics_api.py b/koyeb/api/api/metrics_api.py index b005347e..2ac6cf55 100644 --- a/koyeb/api/api/metrics_api.py +++ b/koyeb/api/api/metrics_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -39,23 +39,41 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_metrics( self, - service_id: Annotated[Optional[StrictStr], Field(description="ID of the service to query instances metrics for. Ignored if instance_id is set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="ID of the instance to query metrics for.")] = None, - name: Annotated[Optional[StrictStr], Field(description="Metric to query.")] = None, - start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to an hour prior to end.")] = None, - end: Annotated[Optional[datetime], Field(description="(Optional) Defaults to now.")] = None, - step: Annotated[Optional[StrictStr], Field(description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.")] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="ID of the service to query instances metrics for. Ignored if instance_id is set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="ID of the instance to query metrics for."), + ] = None, + name: Annotated[ + Optional[StrictStr], Field(description="Metric to query.") + ] = None, + start: Annotated[ + Optional[datetime], + Field(description="(Optional) Defaults to an hour prior to end."), + ] = None, + end: Annotated[ + Optional[datetime], Field(description="(Optional) Defaults to now.") + ] = None, + step: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -97,7 +115,7 @@ def get_metrics( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_metrics_serialize( service_id=service_id, @@ -109,21 +127,20 @@ def get_metrics( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMetricsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetMetricsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -131,23 +148,41 @@ def get_metrics( response_types_map=_response_types_map, ).data - @validate_call def get_metrics_with_http_info( self, - service_id: Annotated[Optional[StrictStr], Field(description="ID of the service to query instances metrics for. Ignored if instance_id is set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="ID of the instance to query metrics for.")] = None, - name: Annotated[Optional[StrictStr], Field(description="Metric to query.")] = None, - start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to an hour prior to end.")] = None, - end: Annotated[Optional[datetime], Field(description="(Optional) Defaults to now.")] = None, - step: Annotated[Optional[StrictStr], Field(description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.")] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="ID of the service to query instances metrics for. Ignored if instance_id is set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="ID of the instance to query metrics for."), + ] = None, + name: Annotated[ + Optional[StrictStr], Field(description="Metric to query.") + ] = None, + start: Annotated[ + Optional[datetime], + Field(description="(Optional) Defaults to an hour prior to end."), + ] = None, + end: Annotated[ + Optional[datetime], Field(description="(Optional) Defaults to now.") + ] = None, + step: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -189,7 +224,7 @@ def get_metrics_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_metrics_serialize( service_id=service_id, @@ -201,21 +236,20 @@ def get_metrics_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMetricsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetMetricsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -223,23 +257,41 @@ def get_metrics_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_metrics_without_preload_content( self, - service_id: Annotated[Optional[StrictStr], Field(description="ID of the service to query instances metrics for. Ignored if instance_id is set.")] = None, - instance_id: Annotated[Optional[StrictStr], Field(description="ID of the instance to query metrics for.")] = None, - name: Annotated[Optional[StrictStr], Field(description="Metric to query.")] = None, - start: Annotated[Optional[datetime], Field(description="(Optional) Defaults to an hour prior to end.")] = None, - end: Annotated[Optional[datetime], Field(description="(Optional) Defaults to now.")] = None, - step: Annotated[Optional[StrictStr], Field(description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m.")] = None, + service_id: Annotated[ + Optional[StrictStr], + Field( + description="ID of the service to query instances metrics for. Ignored if instance_id is set." + ), + ] = None, + instance_id: Annotated[ + Optional[StrictStr], + Field(description="ID of the instance to query metrics for."), + ] = None, + name: Annotated[ + Optional[StrictStr], Field(description="Metric to query.") + ] = None, + start: Annotated[ + Optional[datetime], + Field(description="(Optional) Defaults to an hour prior to end."), + ] = None, + end: Annotated[ + Optional[datetime], Field(description="(Optional) Defaults to now.") + ] = None, + step: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Must be a valid duration in hours (h) or minutes (m). Defaulst to 5m." + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -281,7 +333,7 @@ def get_metrics_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_metrics_serialize( service_id=service_id, @@ -293,25 +345,23 @@ def get_metrics_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetMetricsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetMetricsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_metrics_serialize( self, service_id, @@ -328,8 +378,7 @@ def _get_metrics_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -343,69 +392,54 @@ def _get_metrics_serialize( # process the path parameters # process the query parameters if service_id is not None: - - _query_params.append(('service_id', service_id)) - + + _query_params.append(("service_id", service_id)) + if instance_id is not None: - - _query_params.append(('instance_id', instance_id)) - + + _query_params.append(("instance_id", instance_id)) + if name is not None: - - _query_params.append(('name', name)) - + + _query_params.append(("name", name)) + if start is not None: if isinstance(start, datetime): _query_params.append( ( - 'start', - start.strftime( - self.api_client.configuration.datetime_format - ) + "start", + start.strftime(self.api_client.configuration.datetime_format), ) ) else: - _query_params.append(('start', start)) - + _query_params.append(("start", start)) + if end is not None: if isinstance(end, datetime): _query_params.append( - ( - 'end', - end.strftime( - self.api_client.configuration.datetime_format - ) - ) + ("end", end.strftime(self.api_client.configuration.datetime_format)) ) else: - _query_params.append(('end', end)) - + _query_params.append(("end", end)) + if step is not None: - - _query_params.append(('step', step)) - + + _query_params.append(("step", step)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/streams/metrics', + method="GET", + resource_path="/v1/streams/metrics", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -415,7 +449,5 @@ def _get_metrics_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/organization_api.py b/koyeb/api/api/organization_api.py index 79884e2f..5cab6b2f 100644 --- a/koyeb/api/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 @@ -25,7 +25,9 @@ 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.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 @@ -37,11 +39,21 @@ 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_name_reply import UpdateOrganizationNameReply +from koyeb.api.models.update_organization_name_request import ( + UpdateOrganizationNameRequest, +) 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_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.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 @@ -60,19 +72,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, @@ -107,7 +119,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, @@ -115,21 +127,20 @@ 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( @@ -137,19 +148,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, @@ -184,7 +195,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, @@ -192,21 +203,20 @@ 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( @@ -214,19 +224,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, @@ -261,7 +271,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, @@ -269,25 +279,23 @@ 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,8 +308,7 @@ 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]] = [] @@ -314,7 +321,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 @@ -322,24 +329,16 @@ 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, @@ -349,12 +348,9 @@ 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, @@ -364,9 +360,8 @@ 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, @@ -400,7 +395,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, @@ -408,21 +403,20 @@ 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( @@ -430,7 +424,6 @@ def create_budget( response_types_map=_response_types_map, ).data - @validate_call def create_budget_with_http_info( self, @@ -440,9 +433,8 @@ 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, @@ -476,7 +468,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, @@ -484,21 +476,20 @@ 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( @@ -506,7 +497,6 @@ def create_budget_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_budget_without_preload_content( self, @@ -516,9 +506,8 @@ 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, @@ -552,7 +541,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, @@ -560,25 +549,23 @@ 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, @@ -591,8 +578,7 @@ 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]] = [] @@ -605,7 +591,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 @@ -613,24 +599,16 @@ 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, @@ -640,12 +618,9 @@ 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, @@ -654,9 +629,8 @@ 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, @@ -688,28 +662,27 @@ 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( @@ -717,7 +690,6 @@ def create_organization( response_types_map=_response_types_map, ).data - @validate_call def create_organization_with_http_info( self, @@ -726,9 +698,8 @@ 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, @@ -760,28 +731,27 @@ 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( @@ -789,7 +759,6 @@ def create_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_organization_without_preload_content( self, @@ -798,9 +767,8 @@ 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, @@ -832,32 +800,30 @@ 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, @@ -869,8 +835,7 @@ 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]] = [] @@ -889,24 +854,16 @@ 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, @@ -916,12 +873,9 @@ 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, @@ -931,9 +885,8 @@ 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, @@ -967,7 +920,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, @@ -975,21 +928,20 @@ 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( @@ -997,7 +949,6 @@ def deactivate_organization( response_types_map=_response_types_map, ).data - @validate_call def deactivate_organization_with_http_info( self, @@ -1007,9 +958,8 @@ 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, @@ -1043,7 +993,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, @@ -1051,21 +1001,20 @@ 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( @@ -1073,7 +1022,6 @@ def deactivate_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def deactivate_organization_without_preload_content( self, @@ -1083,9 +1031,8 @@ 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, @@ -1119,7 +1066,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, @@ -1127,25 +1074,23 @@ 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, @@ -1158,8 +1103,7 @@ 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]] = [] @@ -1172,7 +1116,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 @@ -1180,24 +1124,16 @@ 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, @@ -1207,12 +1143,9 @@ 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, @@ -1221,9 +1154,8 @@ 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, @@ -1255,28 +1187,27 @@ 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( @@ -1284,7 +1215,6 @@ def delete_budget( response_types_map=_response_types_map, ).data - @validate_call def delete_budget_with_http_info( self, @@ -1293,9 +1223,8 @@ 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, @@ -1327,28 +1256,27 @@ 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( @@ -1356,7 +1284,6 @@ def delete_budget_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_budget_without_preload_content( self, @@ -1365,9 +1292,8 @@ 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, @@ -1399,32 +1325,30 @@ 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, @@ -1436,8 +1360,7 @@ 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]] = [] @@ -1450,30 +1373,22 @@ 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, @@ -1483,12 +1398,9 @@ 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, @@ -1497,9 +1409,8 @@ 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, @@ -1531,28 +1442,27 @@ 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( @@ -1560,7 +1470,6 @@ def delete_organization( response_types_map=_response_types_map, ).data - @validate_call def delete_organization_with_http_info( self, @@ -1569,9 +1478,8 @@ 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, @@ -1603,28 +1511,27 @@ 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( @@ -1632,7 +1539,6 @@ def delete_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_organization_without_preload_content( self, @@ -1641,9 +1547,8 @@ 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, @@ -1675,32 +1580,30 @@ 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, @@ -1712,8 +1615,7 @@ 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]] = [] @@ -1726,30 +1628,22 @@ 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, @@ -1759,12 +1653,9 @@ 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, @@ -1773,9 +1664,8 @@ 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, @@ -1807,28 +1697,27 @@ 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( @@ -1836,7 +1725,6 @@ def get_budget( response_types_map=_response_types_map, ).data - @validate_call def get_budget_with_http_info( self, @@ -1845,9 +1733,8 @@ 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, @@ -1879,28 +1766,27 @@ 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( @@ -1908,7 +1794,6 @@ def get_budget_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_budget_without_preload_content( self, @@ -1917,9 +1802,8 @@ 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, @@ -1951,32 +1835,30 @@ 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, @@ -1988,8 +1870,7 @@ 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]] = [] @@ -2002,30 +1883,22 @@ 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, @@ -2035,12 +1908,9 @@ 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, @@ -2048,9 +1918,8 @@ 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, @@ -2080,27 +1949,26 @@ 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( @@ -2108,7 +1976,6 @@ def get_github_installation( response_types_map=_response_types_map, ).data - @validate_call def get_github_installation_with_http_info( self, @@ -2116,9 +1983,8 @@ 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, @@ -2148,27 +2014,26 @@ 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( @@ -2176,7 +2041,6 @@ def get_github_installation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_github_installation_without_preload_content( self, @@ -2184,9 +2048,8 @@ 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, @@ -2216,31 +2079,29 @@ 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, @@ -2251,8 +2112,7 @@ 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]] = [] @@ -2269,24 +2129,16 @@ 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, @@ -2296,12 +2148,9 @@ 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, @@ -2310,9 +2159,8 @@ 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, @@ -2344,28 +2192,27 @@ 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( @@ -2373,7 +2220,6 @@ def get_organization( response_types_map=_response_types_map, ).data - @validate_call def get_organization_with_http_info( self, @@ -2382,9 +2228,8 @@ 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, @@ -2416,28 +2261,27 @@ 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( @@ -2445,7 +2289,6 @@ def get_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_organization_without_preload_content( self, @@ -2454,9 +2297,8 @@ 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, @@ -2488,32 +2330,30 @@ 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, @@ -2525,8 +2365,7 @@ 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]] = [] @@ -2539,30 +2378,22 @@ 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, @@ -2572,12 +2403,9 @@ 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, @@ -2586,9 +2414,8 @@ 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, @@ -2620,28 +2447,27 @@ 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( @@ -2649,7 +2475,6 @@ def github_installation( response_types_map=_response_types_map, ).data - @validate_call def github_installation_with_http_info( self, @@ -2658,9 +2483,8 @@ 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, @@ -2692,28 +2516,27 @@ 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( @@ -2721,7 +2544,6 @@ def github_installation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def github_installation_without_preload_content( self, @@ -2730,9 +2552,8 @@ 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, @@ -2764,32 +2585,30 @@ 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, @@ -2801,8 +2620,7 @@ 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]] = [] @@ -2821,24 +2639,16 @@ 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, @@ -2848,12 +2658,9 @@ 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, @@ -2863,9 +2670,8 @@ 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, @@ -2899,7 +2705,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, @@ -2907,21 +2713,20 @@ 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( @@ -2929,7 +2734,6 @@ def reactivate_organization( response_types_map=_response_types_map, ).data - @validate_call def reactivate_organization_with_http_info( self, @@ -2939,9 +2743,8 @@ 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, @@ -2975,7 +2778,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, @@ -2983,21 +2786,20 @@ 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( @@ -3005,7 +2807,6 @@ def reactivate_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def reactivate_organization_without_preload_content( self, @@ -3015,9 +2816,8 @@ 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, @@ -3051,7 +2851,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, @@ -3059,25 +2859,23 @@ 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, @@ -3090,8 +2888,7 @@ 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]] = [] @@ -3104,7 +2901,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 @@ -3112,24 +2909,16 @@ 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, @@ -3139,25 +2928,23 @@ 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, @@ -3193,7 +2980,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, @@ -3202,21 +2989,20 @@ 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( @@ -3224,20 +3010,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, @@ -3273,7 +3059,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, @@ -3282,21 +3068,20 @@ 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( @@ -3304,20 +3089,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, @@ -3353,7 +3138,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, @@ -3362,25 +3147,23 @@ 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, @@ -3394,8 +3177,7 @@ 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]] = [] @@ -3408,34 +3190,26 @@ 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, @@ -3445,24 +3219,22 @@ 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, @@ -3497,7 +3269,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, @@ -3505,21 +3277,20 @@ 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( @@ -3527,19 +3298,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, @@ -3574,7 +3345,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, @@ -3582,21 +3353,20 @@ 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( @@ -3604,19 +3374,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, @@ -3651,7 +3421,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, @@ -3659,25 +3429,23 @@ 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, @@ -3690,8 +3458,7 @@ 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]] = [] @@ -3706,30 +3473,22 @@ 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, @@ -3739,12 +3498,9 @@ 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, @@ -3754,9 +3510,8 @@ 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, @@ -3790,7 +3545,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, @@ -3798,21 +3553,20 @@ 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( @@ -3820,7 +3574,6 @@ def update_budget( response_types_map=_response_types_map, ).data - @validate_call def update_budget_with_http_info( self, @@ -3830,9 +3583,8 @@ 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, @@ -3866,7 +3618,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, @@ -3874,21 +3626,20 @@ 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( @@ -3896,7 +3647,6 @@ def update_budget_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_budget_without_preload_content( self, @@ -3906,9 +3656,8 @@ 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, @@ -3942,7 +3691,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, @@ -3950,25 +3699,23 @@ 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, @@ -3981,8 +3728,7 @@ 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]] = [] @@ -3995,7 +3741,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 @@ -4003,24 +3749,16 @@ 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, @@ -4030,12 +3768,9 @@ 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, @@ -4046,9 +3781,8 @@ 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, @@ -4084,7 +3818,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, @@ -4093,21 +3827,20 @@ 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( @@ -4115,7 +3848,6 @@ def update_organization( response_types_map=_response_types_map, ).data - @validate_call def update_organization_with_http_info( self, @@ -4126,9 +3858,8 @@ 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, @@ -4164,7 +3895,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, @@ -4173,21 +3904,20 @@ 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( @@ -4195,7 +3925,6 @@ def update_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_organization_without_preload_content( self, @@ -4206,9 +3935,8 @@ 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, @@ -4244,7 +3972,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, @@ -4253,25 +3981,23 @@ 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, @@ -4285,8 +4011,7 @@ 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]] = [] @@ -4299,36 +4024,28 @@ 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, @@ -4338,12 +4055,9 @@ 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, @@ -4354,9 +4068,8 @@ 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, @@ -4392,7 +4105,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, @@ -4401,21 +4114,20 @@ 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( @@ -4423,7 +4135,6 @@ def update_organization2( response_types_map=_response_types_map, ).data - @validate_call def update_organization2_with_http_info( self, @@ -4434,9 +4145,8 @@ 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, @@ -4472,7 +4182,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, @@ -4481,21 +4191,20 @@ 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( @@ -4503,7 +4212,6 @@ def update_organization2_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_organization2_without_preload_content( self, @@ -4514,9 +4222,8 @@ 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, @@ -4552,7 +4259,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, @@ -4561,25 +4268,23 @@ 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, @@ -4593,8 +4298,7 @@ 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]] = [] @@ -4607,36 +4311,28 @@ 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, @@ -4646,11 +4342,278 @@ 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_name( + self, + id: StrictStr, + body: UpdateOrganizationNameRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[StrictStr, Any]] = None, + _content_type: Optional[StrictStr] = None, + _headers: Optional[Dict[StrictStr, Any]] = None, + _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0, + ) -> UpdateOrganizationNameReply: + """Update Organization + :param id: (required) + :type id: str + :param body: (required) + :type body: UpdateOrganizationNameRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_organization_name_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": "UpdateOrganizationNameReply", + "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_organization_name_with_http_info( + self, + id: StrictStr, + body: UpdateOrganizationNameRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[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[UpdateOrganizationNameReply]: + """Update Organization + + + :param id: (required) + :type id: str + :param body: (required) + :type body: UpdateOrganizationNameRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_organization_name_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": "UpdateOrganizationNameReply", + "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_organization_name_without_preload_content( + self, + id: StrictStr, + body: UpdateOrganizationNameRequest, + _request_timeout: Union[ + None, + Annotated[StrictFloat, Field(gt=0)], + Tuple[ + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], + ] = None, + _request_auth: Optional[Dict[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 Organization + + + :param id: (required) + :type id: str + :param body: (required) + :type body: UpdateOrganizationNameRequest + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :type _request_timeout: int, tuple(int, int), optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the + authentication in the spec for a single request. + :type _request_auth: dict, optional + :param _content_type: force content-type for the request. + :type _content_type: str, Optional + :param _headers: set to override the headers for a single + request; this effectively ignores the headers + in the spec for a single request. + :type _headers: dict, optional + :param _host_index: set to override the host_index for a single + request; this effectively ignores 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_organization_name_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": "UpdateOrganizationNameReply", + "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_organization_name_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="PUT", + resource_path="/v1/organizations/{id}/name", + 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_organization_plan( @@ -4661,9 +4624,8 @@ 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, @@ -4697,7 +4659,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, @@ -4705,21 +4667,20 @@ 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( @@ -4727,7 +4688,6 @@ def update_organization_plan( response_types_map=_response_types_map, ).data - @validate_call def update_organization_plan_with_http_info( self, @@ -4737,9 +4697,8 @@ 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, @@ -4773,7 +4732,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, @@ -4781,21 +4740,20 @@ 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( @@ -4803,7 +4761,6 @@ def update_organization_plan_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_organization_plan_without_preload_content( self, @@ -4813,9 +4770,8 @@ 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, @@ -4849,7 +4805,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, @@ -4857,25 +4813,23 @@ 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, @@ -4888,8 +4842,7 @@ 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]] = [] @@ -4902,7 +4855,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 @@ -4910,24 +4863,16 @@ 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, @@ -4937,12 +4882,9 @@ 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, @@ -4952,9 +4894,8 @@ 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, @@ -4988,7 +4929,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, @@ -4996,21 +4937,20 @@ 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( @@ -5018,7 +4958,6 @@ def upsert_signup_qualification( response_types_map=_response_types_map, ).data - @validate_call def upsert_signup_qualification_with_http_info( self, @@ -5028,9 +4967,8 @@ 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, @@ -5064,7 +5002,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, @@ -5072,21 +5010,20 @@ 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( @@ -5094,7 +5031,6 @@ def upsert_signup_qualification_with_http_info( response_types_map=_response_types_map, ) - @validate_call def upsert_signup_qualification_without_preload_content( self, @@ -5104,9 +5040,8 @@ 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, @@ -5140,7 +5075,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, @@ -5148,25 +5083,23 @@ 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, @@ -5179,8 +5112,7 @@ 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]] = [] @@ -5193,7 +5125,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 @@ -5201,24 +5133,16 @@ 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, @@ -5228,7 +5152,5 @@ 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/api/organization_confirmations_api.py b/koyeb/api/api/organization_confirmations_api.py index ab149b20..1a32a605 100644 --- a/koyeb/api/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 @@ -36,7 +36,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def confirm_organization_action( self, @@ -45,9 +44,8 @@ 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, @@ -79,28 +77,27 @@ 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( @@ -108,7 +105,6 @@ def confirm_organization_action( response_types_map=_response_types_map, ).data - @validate_call def confirm_organization_action_with_http_info( self, @@ -117,9 +113,8 @@ 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, @@ -151,28 +146,27 @@ 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( @@ -180,7 +174,6 @@ def confirm_organization_action_with_http_info( response_types_map=_response_types_map, ) - @validate_call def confirm_organization_action_without_preload_content( self, @@ -189,9 +182,8 @@ 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, @@ -223,32 +215,30 @@ 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, @@ -260,8 +250,7 @@ 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]] = [] @@ -274,30 +263,22 @@ 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, @@ -307,7 +288,5 @@ 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/api/organization_invitations_api.py b/koyeb/api/api/organization_invitations_api.py index 5735781d..90f4fa7c 100644 --- a/koyeb/api/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,11 +19,21 @@ from pydantic import Field, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -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.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 @@ -42,7 +52,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_organization_invitation( self, @@ -51,9 +60,8 @@ 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, @@ -85,28 +93,27 @@ 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( @@ -114,7 +121,6 @@ def create_organization_invitation( response_types_map=_response_types_map, ).data - @validate_call def create_organization_invitation_with_http_info( self, @@ -123,9 +129,8 @@ 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, @@ -157,28 +162,27 @@ 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( @@ -186,7 +190,6 @@ def create_organization_invitation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_organization_invitation_without_preload_content( self, @@ -195,9 +198,8 @@ 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, @@ -229,32 +231,30 @@ 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,8 +266,7 @@ 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]] = [] @@ -286,24 +285,16 @@ 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, @@ -313,23 +304,22 @@ 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, @@ -361,28 +351,27 @@ 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( @@ -390,18 +379,19 @@ 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, @@ -433,28 +423,27 @@ 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( @@ -462,18 +451,19 @@ 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, @@ -505,32 +495,30 @@ 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, @@ -542,8 +530,7 @@ 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]] = [] @@ -556,30 +543,22 @@ 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, @@ -589,12 +568,9 @@ 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, @@ -603,9 +579,8 @@ 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, @@ -637,28 +612,27 @@ 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( @@ -666,7 +640,6 @@ def get_organization_invitation( response_types_map=_response_types_map, ).data - @validate_call def get_organization_invitation_with_http_info( self, @@ -675,9 +648,8 @@ 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, @@ -709,28 +681,27 @@ 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( @@ -738,7 +709,6 @@ def get_organization_invitation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_organization_invitation_without_preload_content( self, @@ -747,9 +717,8 @@ 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, @@ -781,32 +750,30 @@ 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, @@ -818,8 +785,7 @@ 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]] = [] @@ -832,30 +798,22 @@ 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, @@ -865,26 +823,36 @@ 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, @@ -922,7 +890,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, @@ -932,21 +900,20 @@ 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( @@ -954,21 +921,33 @@ 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, @@ -1006,7 +985,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, @@ -1016,21 +995,20 @@ 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( @@ -1038,21 +1016,33 @@ 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, @@ -1090,7 +1080,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, @@ -1100,25 +1090,23 @@ 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, @@ -1134,7 +1122,7 @@ def _list_organization_invitations_serialize( _host = None _collection_formats: Dict[str, str] = { - 'statuses': 'multi', + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -1149,43 +1137,35 @@ 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, @@ -1195,24 +1175,23 @@ 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, @@ -1246,7 +1225,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, @@ -1254,21 +1233,20 @@ 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( @@ -1276,19 +1254,20 @@ 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, @@ -1322,7 +1301,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, @@ -1330,21 +1309,20 @@ 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( @@ -1352,19 +1330,20 @@ 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, @@ -1398,7 +1377,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, @@ -1406,25 +1385,23 @@ 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, @@ -1437,8 +1414,7 @@ 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]] = [] @@ -1451,7 +1427,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 @@ -1459,24 +1435,16 @@ 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, @@ -1486,7 +1454,5 @@ 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 index bcd68a7c..8122f8c9 100644 --- a/koyeb/api/api/organization_members_api.py +++ b/koyeb/api/api/organization_members_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,8 +19,12 @@ 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.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 @@ -39,22 +43,34 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def list_organization_members( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, - organization_statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter for organization statuses")] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + organization_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter for an organization"), + ] = None, + user_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter for an user") + ] = None, + organization_statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter for organization statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -94,7 +110,7 @@ def list_organization_members( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_members_serialize( limit=limit, @@ -105,21 +121,20 @@ def list_organization_members( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListOrganizationMembersReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListOrganizationMembersReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -127,22 +142,34 @@ def list_organization_members( response_types_map=_response_types_map, ).data - @validate_call def list_organization_members_with_http_info( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, - organization_statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter for organization statuses")] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + organization_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter for an organization"), + ] = None, + user_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter for an user") + ] = None, + organization_statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter for organization statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -182,7 +209,7 @@ def list_organization_members_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_members_serialize( limit=limit, @@ -193,21 +220,20 @@ def list_organization_members_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListOrganizationMembersReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListOrganizationMembersReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -215,22 +241,34 @@ def list_organization_members_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_organization_members_without_preload_content( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - organization_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an organization")] = None, - user_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter for an user")] = None, - organization_statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter for organization statuses")] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + organization_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter for an organization"), + ] = None, + user_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter for an user") + ] = None, + organization_statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter for organization statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -270,7 +308,7 @@ def list_organization_members_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_organization_members_serialize( limit=limit, @@ -281,25 +319,23 @@ def list_organization_members_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListOrganizationMembersReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListOrganizationMembersReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_organization_members_serialize( self, limit, @@ -316,7 +352,7 @@ def _list_organization_members_serialize( _host = None _collection_formats: Dict[str, str] = { - 'organization_statuses': 'multi', + "organization_statuses": "multi", } _path_params: Dict[str, str] = {} @@ -331,47 +367,39 @@ def _list_organization_members_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if organization_id is not None: - - _query_params.append(('organization_id', organization_id)) - + + _query_params.append(("organization_id", organization_id)) + if user_id is not None: - - _query_params.append(('user_id', user_id)) - + + _query_params.append(("user_id", user_id)) + if organization_statuses is not None: - - _query_params.append(('organization_statuses', organization_statuses)) - + + _query_params.append(("organization_statuses", organization_statuses)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/organization_members', + method="GET", + resource_path="/v1/organization_members", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -381,12 +409,9 @@ def _list_organization_members_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def remove_organization_member( self, @@ -395,9 +420,8 @@ def remove_organization_member( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -429,28 +453,27 @@ def remove_organization_member( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._remove_organization_member_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RemoveOrganizationMemberReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "RemoveOrganizationMemberReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -458,7 +481,6 @@ def remove_organization_member( response_types_map=_response_types_map, ).data - @validate_call def remove_organization_member_with_http_info( self, @@ -467,9 +489,8 @@ def remove_organization_member_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -501,28 +522,27 @@ def remove_organization_member_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._remove_organization_member_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RemoveOrganizationMemberReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "RemoveOrganizationMemberReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -530,7 +550,6 @@ def remove_organization_member_with_http_info( response_types_map=_response_types_map, ) - @validate_call def remove_organization_member_without_preload_content( self, @@ -539,9 +558,8 @@ def remove_organization_member_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -573,32 +591,30 @@ def remove_organization_member_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._remove_organization_member_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "RemoveOrganizationMemberReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "RemoveOrganizationMemberReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _remove_organization_member_serialize( self, id, @@ -610,8 +626,7 @@ def _remove_organization_member_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -624,30 +639,22 @@ def _remove_organization_member_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='DELETE', - resource_path='/v1/organization_members/{id}', + method="DELETE", + resource_path="/v1/organization_members/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -657,7 +664,5 @@ def _remove_organization_member_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/organization_quotas_api.py b/koyeb/api/api/organization_quotas_api.py index 50ec5173..73519f92 100644 --- a/koyeb/api/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 @@ -36,7 +36,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_quotas( self, @@ -45,9 +44,8 @@ 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, @@ -79,28 +77,27 @@ 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( @@ -108,7 +105,6 @@ def get_quotas( response_types_map=_response_types_map, ).data - @validate_call def get_quotas_with_http_info( self, @@ -117,9 +113,8 @@ 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, @@ -151,28 +146,27 @@ 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( @@ -180,7 +174,6 @@ def get_quotas_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_quotas_without_preload_content( self, @@ -189,9 +182,8 @@ 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, @@ -223,32 +215,30 @@ 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, @@ -260,8 +250,7 @@ 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]] = [] @@ -274,30 +263,22 @@ 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, @@ -307,7 +288,5 @@ 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/api/payment_methods_api.py b/koyeb/api/api/payment_methods_api.py index 81b544f0..f3ab67e9 100644 --- a/koyeb/api/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,8 +19,12 @@ from pydantic import Field, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated -from koyeb.api.models.confirm_payment_authorization_reply import ConfirmPaymentAuthorizationReply -from koyeb.api.models.create_payment_authorization_reply import CreatePaymentAuthorizationReply +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 @@ -41,7 +45,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def confirm_payment_authorization( self, @@ -51,9 +54,8 @@ 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, @@ -87,7 +89,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, @@ -95,21 +97,20 @@ 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( @@ -117,7 +118,6 @@ def confirm_payment_authorization( response_types_map=_response_types_map, ).data - @validate_call def confirm_payment_authorization_with_http_info( self, @@ -127,9 +127,8 @@ 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, @@ -163,7 +162,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, @@ -171,21 +170,20 @@ 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( @@ -193,7 +191,6 @@ def confirm_payment_authorization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def confirm_payment_authorization_without_preload_content( self, @@ -203,9 +200,8 @@ 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, @@ -239,7 +235,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, @@ -247,25 +243,23 @@ 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, @@ -278,8 +272,7 @@ 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]] = [] @@ -292,7 +285,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 @@ -300,24 +293,16 @@ 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, @@ -327,12 +312,9 @@ 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, @@ -341,9 +323,8 @@ 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, @@ -375,28 +356,27 @@ 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( @@ -404,7 +384,6 @@ def create_payment_authorization( response_types_map=_response_types_map, ).data - @validate_call def create_payment_authorization_with_http_info( self, @@ -413,9 +392,8 @@ 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, @@ -447,28 +425,27 @@ 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( @@ -476,7 +453,6 @@ def create_payment_authorization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_payment_authorization_without_preload_content( self, @@ -485,9 +461,8 @@ 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, @@ -519,32 +494,30 @@ 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, @@ -556,8 +529,7 @@ 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]] = [] @@ -576,24 +548,16 @@ 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, @@ -603,12 +567,9 @@ 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, @@ -617,9 +578,8 @@ 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, @@ -651,28 +611,27 @@ 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( @@ -680,7 +639,6 @@ def delete_payment_method( response_types_map=_response_types_map, ).data - @validate_call def delete_payment_method_with_http_info( self, @@ -689,9 +647,8 @@ 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, @@ -723,28 +680,27 @@ 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( @@ -752,7 +708,6 @@ def delete_payment_method_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_payment_method_without_preload_content( self, @@ -761,9 +716,8 @@ 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, @@ -795,32 +749,30 @@ 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, @@ -832,8 +784,7 @@ 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]] = [] @@ -846,30 +797,22 @@ 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, @@ -879,12 +822,9 @@ 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, @@ -893,9 +833,8 @@ 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, @@ -927,28 +866,27 @@ 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( @@ -956,7 +894,6 @@ def get_payment_method( response_types_map=_response_types_map, ).data - @validate_call def get_payment_method_with_http_info( self, @@ -965,9 +902,8 @@ 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, @@ -999,28 +935,27 @@ 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( @@ -1028,7 +963,6 @@ def get_payment_method_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_payment_method_without_preload_content( self, @@ -1037,9 +971,8 @@ 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, @@ -1071,32 +1004,30 @@ 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, @@ -1108,8 +1039,7 @@ 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]] = [] @@ -1122,30 +1052,22 @@ 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, @@ -1155,25 +1077,30 @@ 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, @@ -1209,7 +1136,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, @@ -1218,21 +1145,20 @@ 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( @@ -1240,20 +1166,27 @@ 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, @@ -1289,7 +1222,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, @@ -1298,21 +1231,20 @@ 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( @@ -1320,20 +1252,27 @@ 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, @@ -1369,7 +1308,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, @@ -1378,25 +1317,23 @@ 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, @@ -1411,7 +1348,7 @@ def _list_payment_methods_serialize( _host = None _collection_formats: Dict[str, str] = { - 'statuses': 'multi', + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -1426,39 +1363,31 @@ 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, @@ -1468,7 +1397,5 @@ 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/api/persistent_volumes_api.py b/koyeb/api/api/persistent_volumes_api.py index 0ad610fe..34cc81f0 100644 --- a/koyeb/api/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 @@ -20,13 +20,19 @@ from typing import List, Optional from typing_extensions import Annotated 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_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_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.models.update_persistent_volume_request import ( + UpdatePersistentVolumeRequest, +) from koyeb.api.api_client import ApiClient, RequestSerialized from koyeb.api.api_response import ApiResponse @@ -45,7 +51,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_persistent_volume( self, @@ -54,9 +59,8 @@ 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,28 +92,27 @@ 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( @@ -117,7 +120,6 @@ def create_persistent_volume( response_types_map=_response_types_map, ).data - @validate_call def create_persistent_volume_with_http_info( self, @@ -126,9 +128,8 @@ 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, @@ -160,28 +161,27 @@ 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( @@ -189,7 +189,6 @@ def create_persistent_volume_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_persistent_volume_without_preload_content( self, @@ -198,9 +197,8 @@ 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, @@ -232,32 +230,30 @@ 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, @@ -269,8 +265,7 @@ 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]] = [] @@ -289,24 +284,16 @@ 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, @@ -316,12 +303,9 @@ 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, @@ -330,9 +314,8 @@ 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, @@ -364,28 +347,27 @@ 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( @@ -393,7 +375,6 @@ def delete_persistent_volume( response_types_map=_response_types_map, ).data - @validate_call def delete_persistent_volume_with_http_info( self, @@ -402,9 +383,8 @@ 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, @@ -436,28 +416,27 @@ 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( @@ -465,7 +444,6 @@ def delete_persistent_volume_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_persistent_volume_without_preload_content( self, @@ -474,9 +452,8 @@ 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, @@ -508,32 +485,30 @@ 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, @@ -545,8 +520,7 @@ 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]] = [] @@ -559,30 +533,22 @@ 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, @@ -592,12 +558,9 @@ 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, @@ -606,9 +569,8 @@ 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, @@ -640,28 +602,27 @@ 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( @@ -669,7 +630,6 @@ def get_persistent_volume( response_types_map=_response_types_map, ).data - @validate_call def get_persistent_volume_with_http_info( self, @@ -678,9 +638,8 @@ 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, @@ -712,28 +671,27 @@ 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( @@ -741,7 +699,6 @@ def get_persistent_volume_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_persistent_volume_without_preload_content( self, @@ -750,9 +707,8 @@ 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, @@ -784,32 +740,30 @@ 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, @@ -821,8 +775,7 @@ 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]] = [] @@ -835,30 +788,22 @@ 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, @@ -868,27 +813,40 @@ 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, @@ -928,7 +886,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, @@ -939,21 +897,20 @@ 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( @@ -961,22 +918,37 @@ 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, @@ -1016,7 +988,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, @@ -1027,21 +999,20 @@ 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( @@ -1049,22 +1020,37 @@ 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, @@ -1104,7 +1090,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, @@ -1115,25 +1101,23 @@ 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, @@ -1150,7 +1134,7 @@ def _list_persistent_volume_events_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', + "types": "multi", } _path_params: Dict[str, str] = {} @@ -1165,47 +1149,39 @@ 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, @@ -1215,27 +1191,36 @@ 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, @@ -1275,7 +1260,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, @@ -1286,21 +1271,20 @@ 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( @@ -1308,22 +1292,33 @@ 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, @@ -1363,7 +1358,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, @@ -1374,21 +1369,20 @@ 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( @@ -1396,22 +1390,33 @@ 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, @@ -1451,7 +1456,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, @@ -1462,25 +1467,23 @@ 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, @@ -1496,8 +1499,7 @@ 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]] = [] @@ -1511,47 +1513,39 @@ 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, @@ -1561,12 +1555,9 @@ 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, @@ -1576,9 +1567,8 @@ 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, @@ -1612,7 +1602,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, @@ -1620,21 +1610,20 @@ 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( @@ -1642,7 +1631,6 @@ def update_persistent_volume( response_types_map=_response_types_map, ).data - @validate_call def update_persistent_volume_with_http_info( self, @@ -1652,9 +1640,8 @@ 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, @@ -1688,7 +1675,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, @@ -1696,21 +1683,20 @@ 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( @@ -1718,7 +1704,6 @@ def update_persistent_volume_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_persistent_volume_without_preload_content( self, @@ -1728,9 +1713,8 @@ 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, @@ -1764,7 +1748,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, @@ -1772,25 +1756,23 @@ 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, @@ -1803,8 +1785,7 @@ 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]] = [] @@ -1817,7 +1798,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 @@ -1825,24 +1806,16 @@ 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, @@ -1852,7 +1825,5 @@ 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 index 348af53c..023f1df0 100644 --- a/koyeb/api/api/profile_api.py +++ b/koyeb/api/api/profile_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -19,16 +19,26 @@ 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.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.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_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_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 @@ -36,7 +46,9 @@ 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_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 @@ -58,19 +70,20 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def accept_organization_invitation( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to accept")], + id: Annotated[ + StrictStr, + Field(description="The id of the organization invitation to accept"), + ], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -104,7 +117,7 @@ def accept_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._accept_organization_invitation_serialize( id=id, @@ -112,21 +125,20 @@ def accept_organization_invitation( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AcceptOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "AcceptOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -134,19 +146,20 @@ def accept_organization_invitation( response_types_map=_response_types_map, ).data - @validate_call def accept_organization_invitation_with_http_info( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to accept")], + id: Annotated[ + StrictStr, + Field(description="The id of the organization invitation to accept"), + ], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -180,7 +193,7 @@ def accept_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._accept_organization_invitation_serialize( id=id, @@ -188,21 +201,20 @@ def accept_organization_invitation_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AcceptOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "AcceptOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -210,19 +222,20 @@ def accept_organization_invitation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def accept_organization_invitation_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to accept")], + id: Annotated[ + StrictStr, + Field(description="The id of the organization invitation to accept"), + ], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -256,7 +269,7 @@ def accept_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._accept_organization_invitation_serialize( id=id, @@ -264,25 +277,23 @@ def accept_organization_invitation_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "AcceptOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "AcceptOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _accept_organization_invitation_serialize( self, id, @@ -295,8 +306,7 @@ def _accept_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -309,7 +319,7 @@ def _accept_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters @@ -317,24 +327,16 @@ def _accept_organization_invitation_serialize( if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/organization_invitations/{id}/accept', + method="POST", + resource_path="/v1/account/organization_invitations/{id}/accept", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -344,12 +346,9 @@ def _accept_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def clear_idenfy_verification_result( self, @@ -358,9 +357,8 @@ def clear_idenfy_verification_result( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -392,28 +390,27 @@ def clear_idenfy_verification_result( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._clear_idenfy_verification_result_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -421,7 +418,6 @@ def clear_idenfy_verification_result( response_types_map=_response_types_map, ).data - @validate_call def clear_idenfy_verification_result_with_http_info( self, @@ -430,9 +426,8 @@ def clear_idenfy_verification_result_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -464,28 +459,27 @@ def clear_idenfy_verification_result_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._clear_idenfy_verification_result_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -493,7 +487,6 @@ def clear_idenfy_verification_result_with_http_info( response_types_map=_response_types_map, ) - @validate_call def clear_idenfy_verification_result_without_preload_content( self, @@ -502,9 +495,8 @@ def clear_idenfy_verification_result_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -536,32 +528,30 @@ def clear_idenfy_verification_result_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._clear_idenfy_verification_result_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _clear_idenfy_verification_result_serialize( self, body, @@ -573,8 +563,7 @@ def _clear_idenfy_verification_result_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -593,24 +582,16 @@ def _clear_idenfy_verification_result_serialize( if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/idenfy', + method="POST", + resource_path="/v1/account/idenfy", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -620,24 +601,23 @@ def _clear_idenfy_verification_result_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def decline_organization_invitation( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to decline")], + id: Annotated[ + StrictStr, + Field(description="The id of the organization invitation to decline"), + ], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -671,7 +651,7 @@ def decline_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._decline_organization_invitation_serialize( id=id, @@ -679,21 +659,20 @@ def decline_organization_invitation( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeclineOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "DeclineOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -701,19 +680,20 @@ def decline_organization_invitation( response_types_map=_response_types_map, ).data - @validate_call def decline_organization_invitation_with_http_info( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to decline")], + id: Annotated[ + StrictStr, + Field(description="The id of the organization invitation to decline"), + ], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -747,7 +727,7 @@ def decline_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._decline_organization_invitation_serialize( id=id, @@ -755,21 +735,20 @@ def decline_organization_invitation_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeclineOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "DeclineOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -777,19 +756,20 @@ def decline_organization_invitation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def decline_organization_invitation_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to decline")], + id: Annotated[ + StrictStr, + Field(description="The id of the organization invitation to decline"), + ], body: Dict[str, Any], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -823,7 +803,7 @@ def decline_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._decline_organization_invitation_serialize( id=id, @@ -831,25 +811,23 @@ def decline_organization_invitation_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "DeclineOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "DeclineOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _decline_organization_invitation_serialize( self, id, @@ -862,8 +840,7 @@ def _decline_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -876,7 +853,7 @@ def _decline_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters @@ -884,24 +861,16 @@ def _decline_organization_invitation_serialize( if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/organization_invitations/{id}/decline', + method="POST", + resource_path="/v1/account/organization_invitations/{id}/decline", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -911,12 +880,9 @@ def _decline_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_current_organization( self, @@ -924,9 +890,8 @@ def get_current_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -956,27 +921,26 @@ def get_current_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_organization_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetOrganizationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -984,7 +948,6 @@ def get_current_organization( response_types_map=_response_types_map, ).data - @validate_call def get_current_organization_with_http_info( self, @@ -992,9 +955,8 @@ def get_current_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1024,27 +986,26 @@ def get_current_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_organization_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetOrganizationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1052,7 +1013,6 @@ def get_current_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_current_organization_without_preload_content( self, @@ -1060,9 +1020,8 @@ def get_current_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1092,31 +1051,29 @@ def get_current_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_organization_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetOrganizationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_current_organization_serialize( self, _request_auth, @@ -1127,8 +1084,7 @@ def _get_current_organization_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1145,24 +1101,16 @@ def _get_current_organization_serialize( # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/organization', + method="GET", + resource_path="/v1/account/organization", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1172,22 +1120,21 @@ def _get_current_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_current_user( self, + 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, @@ -1197,6 +1144,8 @@ def get_current_user( """Get Current User + :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 @@ -1217,27 +1166,27 @@ def get_current_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_user_serialize( + seon_fp=seon_fp, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1245,17 +1194,18 @@ def get_current_user( response_types_map=_response_types_map, ).data - @validate_call def get_current_user_with_http_info( self, + 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, @@ -1265,6 +1215,8 @@ def get_current_user_with_http_info( """Get Current User + :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 @@ -1285,27 +1237,27 @@ def get_current_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_user_serialize( + seon_fp=seon_fp, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1313,17 +1265,18 @@ def get_current_user_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_current_user_without_preload_content( self, + 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, @@ -1333,6 +1286,8 @@ def get_current_user_without_preload_content( """Get Current User + :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 @@ -1353,33 +1308,33 @@ def get_current_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_current_user_serialize( + seon_fp=seon_fp, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_current_user_serialize( self, + seon_fp, _request_auth, _content_type, _headers, @@ -1388,8 +1343,7 @@ def _get_current_user_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1403,27 +1357,21 @@ def _get_current_user_serialize( # 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 - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/profile', + method="GET", + resource_path="/v1/account/profile", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1433,12 +1381,9 @@ def _get_current_user_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_idenfy_token( self, @@ -1446,9 +1391,8 @@ def get_idenfy_token( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1478,27 +1422,26 @@ def get_idenfy_token( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_idenfy_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetIdenfyTokenReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetIdenfyTokenReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1506,7 +1449,6 @@ def get_idenfy_token( response_types_map=_response_types_map, ).data - @validate_call def get_idenfy_token_with_http_info( self, @@ -1514,9 +1456,8 @@ def get_idenfy_token_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1546,27 +1487,26 @@ def get_idenfy_token_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_idenfy_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetIdenfyTokenReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetIdenfyTokenReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1574,7 +1514,6 @@ def get_idenfy_token_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_idenfy_token_without_preload_content( self, @@ -1582,9 +1521,8 @@ def get_idenfy_token_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1614,31 +1552,29 @@ def get_idenfy_token_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_idenfy_token_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetIdenfyTokenReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetIdenfyTokenReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_idenfy_token_serialize( self, _request_auth, @@ -1649,8 +1585,7 @@ def _get_idenfy_token_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1667,24 +1602,16 @@ def _get_idenfy_token_serialize( # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/idenfy', + method="GET", + resource_path="/v1/account/idenfy", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1694,24 +1621,28 @@ def _get_idenfy_token_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_o_auth_options( self, - action: Annotated[Optional[StrictStr], Field(description="Which authentication flow is being initiated")] = None, - metadata: Annotated[Optional[StrictStr], Field(description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state")] = None, + action: Annotated[ + Optional[StrictStr], + Field(description="Which authentication flow is being initiated"), + ] = None, + metadata: Annotated[ + Optional[StrictStr], + Field( + description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1745,7 +1676,7 @@ def get_o_auth_options( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_o_auth_options_serialize( action=action, @@ -1753,21 +1684,20 @@ def get_o_auth_options( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOAuthOptionsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetOAuthOptionsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1775,19 +1705,25 @@ def get_o_auth_options( response_types_map=_response_types_map, ).data - @validate_call def get_o_auth_options_with_http_info( self, - action: Annotated[Optional[StrictStr], Field(description="Which authentication flow is being initiated")] = None, - metadata: Annotated[Optional[StrictStr], Field(description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state")] = None, + action: Annotated[ + Optional[StrictStr], + Field(description="Which authentication flow is being initiated"), + ] = None, + metadata: Annotated[ + Optional[StrictStr], + Field( + description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1821,7 +1757,7 @@ def get_o_auth_options_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_o_auth_options_serialize( action=action, @@ -1829,21 +1765,20 @@ def get_o_auth_options_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOAuthOptionsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetOAuthOptionsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -1851,19 +1786,25 @@ def get_o_auth_options_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_o_auth_options_without_preload_content( self, - action: Annotated[Optional[StrictStr], Field(description="Which authentication flow is being initiated")] = None, - metadata: Annotated[Optional[StrictStr], Field(description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state")] = None, + action: Annotated[ + Optional[StrictStr], + Field(description="Which authentication flow is being initiated"), + ] = None, + metadata: Annotated[ + Optional[StrictStr], + Field( + description="A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -1897,7 +1838,7 @@ def get_o_auth_options_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_o_auth_options_serialize( action=action, @@ -1905,25 +1846,23 @@ def get_o_auth_options_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOAuthOptionsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetOAuthOptionsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_o_auth_options_serialize( self, action, @@ -1936,8 +1875,7 @@ def _get_o_auth_options_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -1951,35 +1889,27 @@ def _get_o_auth_options_serialize( # process the path parameters # process the query parameters if action is not None: - - _query_params.append(('action', action)) - + + _query_params.append(("action", action)) + if metadata is not None: - - _query_params.append(('metadata', metadata)) - + + _query_params.append(("metadata", metadata)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/oauth', + method="GET", + resource_path="/v1/account/oauth", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -1989,23 +1919,21 @@ def _get_o_auth_options_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_user_organization_invitation( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to get")], + id: Annotated[ + StrictStr, Field(description="The id of the organization invitation to get") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2037,28 +1965,27 @@ def get_user_organization_invitation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetUserOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2066,18 +1993,18 @@ def get_user_organization_invitation( response_types_map=_response_types_map, ).data - @validate_call def get_user_organization_invitation_with_http_info( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to get")], + id: Annotated[ + StrictStr, Field(description="The id of the organization invitation to get") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2109,28 +2036,27 @@ def get_user_organization_invitation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetUserOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2138,18 +2064,18 @@ def get_user_organization_invitation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_user_organization_invitation_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The id of the organization invitation to get")], + id: Annotated[ + StrictStr, Field(description="The id of the organization invitation to get") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2181,32 +2107,30 @@ def get_user_organization_invitation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_organization_invitation_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserOrganizationInvitationReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetUserOrganizationInvitationReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_user_organization_invitation_serialize( self, id, @@ -2218,8 +2142,7 @@ def _get_user_organization_invitation_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2232,30 +2155,22 @@ def _get_user_organization_invitation_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/organization_invitations/{id}', + method="GET", + resource_path="/v1/account/organization_invitations/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2265,12 +2180,9 @@ def _get_user_organization_invitation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_user_settings( self, @@ -2278,9 +2190,8 @@ def get_user_settings( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2310,27 +2221,26 @@ def get_user_settings( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_settings_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserSettingsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetUserSettingsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2338,7 +2248,6 @@ def get_user_settings( response_types_map=_response_types_map, ).data - @validate_call def get_user_settings_with_http_info( self, @@ -2346,9 +2255,8 @@ def get_user_settings_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2378,27 +2286,26 @@ def get_user_settings_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_settings_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserSettingsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetUserSettingsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2406,7 +2313,6 @@ def get_user_settings_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_user_settings_without_preload_content( self, @@ -2414,9 +2320,8 @@ def get_user_settings_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2446,31 +2351,29 @@ def get_user_settings_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_user_settings_serialize( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetUserSettingsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetUserSettingsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_user_settings_serialize( self, _request_auth, @@ -2481,8 +2384,7 @@ def _get_user_settings_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -2499,24 +2401,16 @@ def _get_user_settings_serialize( # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/settings', + method="GET", + resource_path="/v1/account/settings", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2526,25 +2420,30 @@ def _get_user_settings_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_user_organization_invitations( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on organization invitation statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2580,7 +2479,7 @@ def list_user_organization_invitations( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organization_invitations_serialize( limit=limit, @@ -2589,21 +2488,20 @@ def list_user_organization_invitations( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserOrganizationInvitationsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListUserOrganizationInvitationsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2611,20 +2509,27 @@ def list_user_organization_invitations( response_types_map=_response_types_map, ).data - @validate_call def list_user_organization_invitations_with_http_info( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on organization invitation statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2660,7 +2565,7 @@ def list_user_organization_invitations_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organization_invitations_serialize( limit=limit, @@ -2669,21 +2574,20 @@ def list_user_organization_invitations_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserOrganizationInvitationsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListUserOrganizationInvitationsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2691,20 +2595,27 @@ def list_user_organization_invitations_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_user_organization_invitations_without_preload_content( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on organization invitation statuses")] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on organization invitation statuses"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2740,7 +2651,7 @@ def list_user_organization_invitations_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organization_invitations_serialize( limit=limit, @@ -2749,25 +2660,23 @@ def list_user_organization_invitations_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserOrganizationInvitationsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListUserOrganizationInvitationsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_user_organization_invitations_serialize( self, limit, @@ -2782,7 +2691,7 @@ def _list_user_organization_invitations_serialize( _host = None _collection_formats: Dict[str, str] = { - 'statuses': 'multi', + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -2797,39 +2706,31 @@ def _list_user_organization_invitations_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if statuses is not None: - - _query_params.append(('statuses', statuses)) - + + _query_params.append(("statuses", statuses)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/organization_invitations', + method="GET", + resource_path="/v1/account/organization_invitations", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -2839,27 +2740,43 @@ def _list_user_organization_invitations_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_user_organizations( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination limit")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination offset")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - search: Annotated[Optional[StrictStr], Field(description="(Optional) Fuzzy case-insensitive search based on organization name or organization id")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Only return organizations which status match one in the list")] = None, + limit: Annotated[ + Optional[StrictStr], Field(description="(Optional) Define pagination limit") + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Define pagination offset"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + search: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Fuzzy case-insensitive search based on organization name or organization id" + ), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Only return organizations which status match one in the list" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2900,7 +2817,7 @@ def list_user_organizations( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organizations_serialize( limit=limit, @@ -2911,21 +2828,20 @@ def list_user_organizations( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserOrganizationsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListUserOrganizationsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -2933,22 +2849,40 @@ def list_user_organizations( response_types_map=_response_types_map, ).data - @validate_call def list_user_organizations_with_http_info( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination limit")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination offset")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - search: Annotated[Optional[StrictStr], Field(description="(Optional) Fuzzy case-insensitive search based on organization name or organization id")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Only return organizations which status match one in the list")] = None, + limit: Annotated[ + Optional[StrictStr], Field(description="(Optional) Define pagination limit") + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Define pagination offset"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + search: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Fuzzy case-insensitive search based on organization name or organization id" + ), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Only return organizations which status match one in the list" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -2989,7 +2923,7 @@ def list_user_organizations_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organizations_serialize( limit=limit, @@ -3000,21 +2934,20 @@ def list_user_organizations_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserOrganizationsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListUserOrganizationsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3022,22 +2955,40 @@ def list_user_organizations_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_user_organizations_without_preload_content( self, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination limit")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) Define pagination offset")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - search: Annotated[Optional[StrictStr], Field(description="(Optional) Fuzzy case-insensitive search based on organization name or organization id")] = None, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Only return organizations which status match one in the list")] = None, + limit: Annotated[ + Optional[StrictStr], Field(description="(Optional) Define pagination limit") + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Define pagination offset"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + search: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Fuzzy case-insensitive search based on organization name or organization id" + ), + ] = None, + statuses: Annotated[ + Optional[List[StrictStr]], + Field( + description="(Optional) Only return organizations which status match one in the list" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3078,7 +3029,7 @@ def list_user_organizations_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_user_organizations_serialize( limit=limit, @@ -3089,25 +3040,23 @@ def list_user_organizations_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListUserOrganizationsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListUserOrganizationsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_user_organizations_serialize( self, limit, @@ -3124,7 +3073,7 @@ def _list_user_organizations_serialize( _host = None _collection_formats: Dict[str, str] = { - 'statuses': 'multi', + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -3139,47 +3088,39 @@ def _list_user_organizations_serialize( # process the path parameters # process the query parameters if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if order is not None: - - _query_params.append(('order', order)) - + + _query_params.append(("order", order)) + if search is not None: - - _query_params.append(('search', search)) - + + _query_params.append(("search", search)) + if statuses is not None: - - _query_params.append(('statuses', statuses)) - + + _query_params.append(("statuses", statuses)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/organizations', + method="GET", + resource_path="/v1/account/organizations", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3189,12 +3130,9 @@ def _list_user_organizations_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def login_method( self, @@ -3203,9 +3141,8 @@ def login_method( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3237,28 +3174,27 @@ def login_method( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_method_serialize( email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginMethodReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginMethodReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3266,7 +3202,6 @@ def login_method( response_types_map=_response_types_map, ).data - @validate_call def login_method_with_http_info( self, @@ -3275,9 +3210,8 @@ def login_method_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3309,28 +3243,27 @@ def login_method_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_method_serialize( email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginMethodReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginMethodReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3338,7 +3271,6 @@ def login_method_with_http_info( response_types_map=_response_types_map, ) - @validate_call def login_method_without_preload_content( self, @@ -3347,9 +3279,8 @@ def login_method_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3381,32 +3312,30 @@ def login_method_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._login_method_serialize( email=email, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginMethodReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginMethodReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _login_method_serialize( self, email, @@ -3418,8 +3347,7 @@ def _login_method_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3433,31 +3361,23 @@ def _login_method_serialize( # process the path parameters # process the query parameters if email is not None: - - _query_params.append(('email', email)) - + + _query_params.append(("email", email)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/account/login_method', + method="GET", + resource_path="/v1/account/login_method", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3467,24 +3387,22 @@ def _login_method_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def o_auth_callback( self, body: OAuthCallbackRequest, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3518,7 +3436,7 @@ def o_auth_callback( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._o_auth_callback_serialize( body=body, @@ -3526,21 +3444,20 @@ def o_auth_callback( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OAuthCallbackReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "OAuthCallbackReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3548,19 +3465,19 @@ def o_auth_callback( response_types_map=_response_types_map, ).data - @validate_call def o_auth_callback_with_http_info( self, body: OAuthCallbackRequest, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3594,7 +3511,7 @@ def o_auth_callback_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._o_auth_callback_serialize( body=body, @@ -3602,21 +3519,20 @@ def o_auth_callback_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OAuthCallbackReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "OAuthCallbackReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3624,19 +3540,19 @@ def o_auth_callback_with_http_info( response_types_map=_response_types_map, ) - @validate_call def o_auth_callback_without_preload_content( self, body: OAuthCallbackRequest, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3670,7 +3586,7 @@ def o_auth_callback_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._o_auth_callback_serialize( body=body, @@ -3678,25 +3594,23 @@ def o_auth_callback_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "OAuthCallbackReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "OAuthCallbackReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _o_auth_callback_serialize( self, body, @@ -3709,8 +3623,7 @@ def _o_auth_callback_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -3725,30 +3638,22 @@ def _o_auth_callback_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params['seon-fp'] = seon_fp + _header_params["seon-fp"] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/oauth', + method="POST", + resource_path="/v1/account/oauth", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -3758,12 +3663,9 @@ def _o_auth_callback_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def resend_email_validation( self, @@ -3772,9 +3674,8 @@ def resend_email_validation( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3806,28 +3707,27 @@ def resend_email_validation( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_email_validation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3835,7 +3735,6 @@ def resend_email_validation( response_types_map=_response_types_map, ).data - @validate_call def resend_email_validation_with_http_info( self, @@ -3844,9 +3743,8 @@ def resend_email_validation_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3878,28 +3776,27 @@ def resend_email_validation_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_email_validation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -3907,7 +3804,6 @@ def resend_email_validation_with_http_info( response_types_map=_response_types_map, ) - @validate_call def resend_email_validation_without_preload_content( self, @@ -3916,9 +3812,8 @@ def resend_email_validation_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -3950,32 +3845,30 @@ def resend_email_validation_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resend_email_validation_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _resend_email_validation_serialize( self, body, @@ -3987,8 +3880,7 @@ def _resend_email_validation_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4007,24 +3899,16 @@ def _resend_email_validation_serialize( if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/resend_validation', + method="POST", + resource_path="/v1/account/resend_validation", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4034,12 +3918,9 @@ def _resend_email_validation_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def reset_password( self, @@ -4048,9 +3929,8 @@ def reset_password( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4082,28 +3962,27 @@ def reset_password( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reset_password_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4111,7 +3990,6 @@ def reset_password( response_types_map=_response_types_map, ).data - @validate_call def reset_password_with_http_info( self, @@ -4120,9 +3998,8 @@ def reset_password_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4154,28 +4031,27 @@ def reset_password_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reset_password_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4183,7 +4059,6 @@ def reset_password_with_http_info( response_types_map=_response_types_map, ) - @validate_call def reset_password_without_preload_content( self, @@ -4192,9 +4067,8 @@ def reset_password_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4226,32 +4100,30 @@ def reset_password_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._reset_password_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _reset_password_serialize( self, body, @@ -4263,8 +4135,7 @@ def _reset_password_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4283,24 +4154,16 @@ def _reset_password_serialize( if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/reset_password', + method="POST", + resource_path="/v1/account/reset_password", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4310,24 +4173,22 @@ def _reset_password_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def signup( self, body: Annotated[CreateAccountRequest, Field(description="Create new account")], - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4361,7 +4222,7 @@ def signup( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._signup_serialize( body=body, @@ -4369,21 +4230,20 @@ def signup( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4391,19 +4251,19 @@ def signup( response_types_map=_response_types_map, ).data - @validate_call def signup_with_http_info( self, body: Annotated[CreateAccountRequest, Field(description="Create new account")], - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4437,7 +4297,7 @@ def signup_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._signup_serialize( body=body, @@ -4445,21 +4305,20 @@ def signup_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4467,19 +4326,19 @@ def signup_with_http_info( response_types_map=_response_types_map, ) - @validate_call def signup_without_preload_content( self, body: Annotated[CreateAccountRequest, Field(description="Create new account")], - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4513,7 +4372,7 @@ def signup_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._signup_serialize( body=body, @@ -4521,25 +4380,23 @@ def signup_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _signup_serialize( self, body, @@ -4552,8 +4409,7 @@ def _signup_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4568,30 +4424,22 @@ def _signup_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params['seon-fp'] = seon_fp + _header_params["seon-fp"] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/signup', + method="POST", + resource_path="/v1/account/signup", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4601,24 +4449,22 @@ def _signup_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def update_password( self, body: UpdatePasswordRequest, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4652,7 +4498,7 @@ def update_password( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_password_serialize( body=body, @@ -4660,21 +4506,20 @@ def update_password( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4682,19 +4527,19 @@ def update_password( response_types_map=_response_types_map, ).data - @validate_call def update_password_with_http_info( self, body: UpdatePasswordRequest, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4728,7 +4573,7 @@ def update_password_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_password_serialize( body=body, @@ -4736,21 +4581,20 @@ def update_password_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4758,19 +4602,19 @@ def update_password_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_password_without_preload_content( self, body: UpdatePasswordRequest, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4804,7 +4648,7 @@ def update_password_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_password_serialize( body=body, @@ -4812,25 +4656,23 @@ def update_password_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _update_password_serialize( self, body, @@ -4843,8 +4685,7 @@ def _update_password_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -4859,30 +4700,22 @@ def _update_password_serialize( # process the query parameters # process the header parameters if seon_fp is not None: - _header_params['seon-fp'] = seon_fp + _header_params["seon-fp"] = seon_fp # process the form parameters # process the body parameter if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/update_password', + method="POST", + resource_path="/v1/account/update_password", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -4892,12 +4725,9 @@ def _update_password_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def update_user( self, @@ -4907,9 +4737,8 @@ def update_user( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -4943,7 +4772,7 @@ def update_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_serialize( user=user, @@ -4951,21 +4780,20 @@ def update_user( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -4973,7 +4801,6 @@ def update_user( response_types_map=_response_types_map, ).data - @validate_call def update_user_with_http_info( self, @@ -4983,9 +4810,8 @@ def update_user_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5019,7 +4845,7 @@ def update_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_serialize( user=user, @@ -5027,21 +4853,20 @@ def update_user_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5049,7 +4874,6 @@ def update_user_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_user_without_preload_content( self, @@ -5059,9 +4883,8 @@ def update_user_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5095,7 +4918,7 @@ def update_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_serialize( user=user, @@ -5103,25 +4926,23 @@ def update_user_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _update_user_serialize( self, user, @@ -5134,8 +4955,7 @@ def _update_user_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -5149,33 +4969,25 @@ def _update_user_serialize( # process the path parameters # process the query parameters if update_mask is not None: - - _query_params.append(('update_mask', update_mask)) - + + _query_params.append(("update_mask", update_mask)) + # process the header parameters # process the form parameters # process the body parameter if user is not None: _body_params = user - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='PUT', - resource_path='/v1/account/profile', + method="PUT", + resource_path="/v1/account/profile", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5185,12 +4997,9 @@ def _update_user_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def update_user2( self, @@ -5200,9 +5009,8 @@ def update_user2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5236,7 +5044,7 @@ def update_user2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user2_serialize( user=user, @@ -5244,21 +5052,20 @@ def update_user2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5266,7 +5073,6 @@ def update_user2( response_types_map=_response_types_map, ).data - @validate_call def update_user2_with_http_info( self, @@ -5276,9 +5082,8 @@ def update_user2_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5312,7 +5117,7 @@ def update_user2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user2_serialize( user=user, @@ -5320,21 +5125,20 @@ def update_user2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5342,7 +5146,6 @@ def update_user2_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_user2_without_preload_content( self, @@ -5352,9 +5155,8 @@ def update_user2_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5388,7 +5190,7 @@ def update_user2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user2_serialize( user=user, @@ -5396,25 +5198,23 @@ def update_user2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _update_user2_serialize( self, user, @@ -5427,8 +5227,7 @@ def _update_user2_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -5442,33 +5241,25 @@ def _update_user2_serialize( # process the path parameters # process the query parameters if update_mask is not None: - - _query_params.append(('update_mask', update_mask)) - + + _query_params.append(("update_mask", update_mask)) + # process the header parameters # process the form parameters # process the body parameter if user is not None: _body_params = user - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/account/profile', + method="PATCH", + resource_path="/v1/account/profile", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5478,12 +5269,9 @@ def _update_user2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def update_user_settings( self, @@ -5492,9 +5280,8 @@ def update_user_settings( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5526,28 +5313,27 @@ def update_user_settings( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_settings_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserSettingsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UpdateUserSettingsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5555,7 +5341,6 @@ def update_user_settings( response_types_map=_response_types_map, ).data - @validate_call def update_user_settings_with_http_info( self, @@ -5564,9 +5349,8 @@ def update_user_settings_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5598,28 +5382,27 @@ def update_user_settings_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_settings_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserSettingsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UpdateUserSettingsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5627,7 +5410,6 @@ def update_user_settings_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_user_settings_without_preload_content( self, @@ -5636,9 +5418,8 @@ def update_user_settings_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5670,32 +5451,30 @@ def update_user_settings_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_settings_serialize( body=body, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UpdateUserSettingsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UpdateUserSettingsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _update_user_settings_serialize( self, body, @@ -5707,8 +5486,7 @@ def _update_user_settings_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -5727,24 +5505,16 @@ def _update_user_settings_serialize( if body is not None: _body_params = body - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v1/account/settings', + method="PATCH", + resource_path="/v1/account/settings", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -5754,12 +5524,9 @@ def _update_user_settings_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def update_user_v2( self, @@ -5769,9 +5536,8 @@ def update_user_v2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -5805,7 +5571,7 @@ def update_user_v2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_v2_serialize( user=user, @@ -5813,21 +5579,20 @@ def update_user_v2( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5835,7 +5600,6 @@ def update_user_v2( response_types_map=_response_types_map, ).data - @validate_call def update_user_v2_with_http_info( self, @@ -5845,9 +5609,8 @@ def update_user_v2_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, @@ -5881,7 +5644,7 @@ def update_user_v2_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_v2_serialize( user=user, @@ -5889,21 +5652,20 @@ def update_user_v2_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -5911,7 +5673,6 @@ def update_user_v2_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_user_v2_without_preload_content( self, @@ -5921,9 +5682,8 @@ def update_user_v2_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, @@ -5957,7 +5717,7 @@ def update_user_v2_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_v2_serialize( user=user, @@ -5965,25 +5725,23 @@ def update_user_v2_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _update_user_v2_serialize( self, user, @@ -5996,8 +5754,7 @@ def _update_user_v2_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -6011,33 +5768,25 @@ def _update_user_v2_serialize( # process the path parameters # process the query parameters if update_mask is not None: - - _query_params.append(('update_mask', update_mask)) - + + _query_params.append(("update_mask", update_mask)) + # process the header parameters # process the form parameters # process the body parameter if user is not None: _body_params = user - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='PUT', - resource_path='/v2/account/profile', + method="PUT", + resource_path="/v2/account/profile", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6047,12 +5796,9 @@ def _update_user_v2_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def update_user_v22( self, @@ -6062,9 +5808,8 @@ def update_user_v22( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -6098,7 +5843,7 @@ def update_user_v22( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_v22_serialize( user=user, @@ -6106,21 +5851,20 @@ def update_user_v22( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -6128,7 +5872,6 @@ def update_user_v22( response_types_map=_response_types_map, ).data - @validate_call def update_user_v22_with_http_info( self, @@ -6138,9 +5881,8 @@ def update_user_v22_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, @@ -6174,7 +5916,7 @@ def update_user_v22_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_v22_serialize( user=user, @@ -6182,21 +5924,20 @@ def update_user_v22_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -6204,7 +5945,6 @@ def update_user_v22_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_user_v22_without_preload_content( self, @@ -6214,9 +5954,8 @@ def update_user_v22_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, @@ -6250,7 +5989,7 @@ def update_user_v22_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._update_user_v22_serialize( user=user, @@ -6258,25 +5997,23 @@ def update_user_v22_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "UserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "UserReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _update_user_v22_serialize( self, user, @@ -6289,8 +6026,7 @@ def _update_user_v22_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -6304,33 +6040,25 @@ def _update_user_v22_serialize( # process the path parameters # process the query parameters if update_mask is not None: - - _query_params.append(('update_mask', update_mask)) - + + _query_params.append(("update_mask", update_mask)) + # process the header parameters # process the form parameters # process the body parameter if user is not None: _body_params = user - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='PATCH', - resource_path='/v2/account/profile', + method="PATCH", + resource_path="/v2/account/profile", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6340,24 +6068,22 @@ def _update_user_v22_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def validate( self, id: StrictStr, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -6391,7 +6117,7 @@ def validate( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._validate_serialize( id=id, @@ -6399,21 +6125,20 @@ def validate( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -6421,19 +6146,19 @@ def validate( response_types_map=_response_types_map, ).data - @validate_call def validate_with_http_info( self, id: StrictStr, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -6467,7 +6192,7 @@ def validate_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._validate_serialize( id=id, @@ -6475,21 +6200,20 @@ def validate_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -6497,19 +6221,19 @@ def validate_with_http_info( response_types_map=_response_types_map, ) - @validate_call def validate_without_preload_content( self, id: StrictStr, - seon_fp: Annotated[Optional[StrictStr], Field(description="Seon Fingerprint")] = None, + seon_fp: Annotated[ + Optional[StrictStr], Field(description="Seon Fingerprint") + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -6543,7 +6267,7 @@ def validate_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._validate_serialize( id=id, @@ -6551,25 +6275,23 @@ def validate_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "LoginReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "LoginReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _validate_serialize( self, id, @@ -6582,8 +6304,7 @@ def _validate_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -6596,32 +6317,24 @@ def _validate_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters if seon_fp is not None: - _header_params['seon-fp'] = seon_fp + _header_params["seon-fp"] = seon_fp # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/account/validate/{id}', + method="POST", + resource_path="/v1/account/validate/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -6631,7 +6344,5 @@ def _validate_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/provisioning_api.py b/koyeb/api/api/provisioning_api.py index e1e8e15a..8d2a3558 100644 --- a/koyeb/api/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 @@ -39,7 +39,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_stage_attempt( self, @@ -51,9 +50,8 @@ 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, @@ -91,7 +89,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, @@ -101,21 +99,20 @@ 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( @@ -123,7 +120,6 @@ def create_stage_attempt( response_types_map=_response_types_map, ).data - @validate_call def create_stage_attempt_with_http_info( self, @@ -135,9 +131,8 @@ 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, @@ -175,7 +170,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, @@ -185,21 +180,20 @@ 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( @@ -207,7 +201,6 @@ def create_stage_attempt_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_stage_attempt_without_preload_content( self, @@ -219,9 +212,8 @@ 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, @@ -259,7 +251,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, @@ -269,25 +261,23 @@ 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, @@ -302,8 +292,7 @@ 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]] = [] @@ -316,11 +305,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 @@ -328,24 +317,16 @@ 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, @@ -355,12 +336,9 @@ 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, @@ -372,9 +350,8 @@ 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, @@ -412,7 +389,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, @@ -422,21 +399,20 @@ 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( @@ -444,7 +420,6 @@ def declare_stage_progress( response_types_map=_response_types_map, ).data - @validate_call def declare_stage_progress_with_http_info( self, @@ -456,9 +431,8 @@ 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, @@ -496,7 +470,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, @@ -506,21 +480,20 @@ 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( @@ -528,7 +501,6 @@ def declare_stage_progress_with_http_info( response_types_map=_response_types_map, ) - @validate_call def declare_stage_progress_without_preload_content( self, @@ -540,9 +512,8 @@ 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, @@ -580,7 +551,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, @@ -590,25 +561,23 @@ 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, @@ -623,8 +592,7 @@ 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]] = [] @@ -637,11 +605,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 @@ -649,24 +617,16 @@ 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, @@ -676,12 +636,9 @@ 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, @@ -694,9 +651,8 @@ 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, @@ -736,7 +692,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, @@ -747,21 +703,20 @@ 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( @@ -769,7 +724,6 @@ def declare_step_progress( response_types_map=_response_types_map, ).data - @validate_call def declare_step_progress_with_http_info( self, @@ -782,9 +736,8 @@ 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, @@ -824,7 +777,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, @@ -835,21 +788,20 @@ 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( @@ -857,7 +809,6 @@ def declare_step_progress_with_http_info( response_types_map=_response_types_map, ) - @validate_call def declare_step_progress_without_preload_content( self, @@ -870,9 +821,8 @@ 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, @@ -912,7 +862,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, @@ -923,25 +873,23 @@ 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, @@ -957,8 +905,7 @@ 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]] = [] @@ -971,13 +918,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 @@ -985,24 +932,16 @@ 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, @@ -1012,7 +951,5 @@ 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/api/quotas_api.py b/koyeb/api/api/quotas_api.py index 1be7a985..5ca227e1 100644 --- a/koyeb/api/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,8 +16,12 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from koyeb.api.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply -from koyeb.api.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.api_client import ApiClient, RequestSerialized from koyeb.api.api_response import ApiResponse @@ -36,7 +40,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def review_organization_capacity( self, @@ -45,9 +48,8 @@ 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, @@ -79,28 +81,27 @@ 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( @@ -108,7 +109,6 @@ def review_organization_capacity( response_types_map=_response_types_map, ).data - @validate_call def review_organization_capacity_with_http_info( self, @@ -117,9 +117,8 @@ 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, @@ -151,28 +150,27 @@ 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( @@ -180,7 +178,6 @@ def review_organization_capacity_with_http_info( response_types_map=_response_types_map, ) - @validate_call def review_organization_capacity_without_preload_content( self, @@ -189,9 +186,8 @@ 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, @@ -223,32 +219,30 @@ 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, @@ -260,8 +254,7 @@ 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]] = [] @@ -280,24 +273,16 @@ 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, @@ -307,7 +292,5 @@ 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 index a5db06e2..996c1e25 100644 --- a/koyeb/api/api/regional_deployments_api.py +++ b/koyeb/api/api/regional_deployments_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,8 +20,12 @@ 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.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 @@ -40,18 +44,18 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_regional_deployment( self, - id: Annotated[StrictStr, Field(description="The id of the regional deployment")], + id: Annotated[ + StrictStr, Field(description="The id of the regional deployment") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -84,28 +88,27 @@ def get_regional_deployment( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_regional_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetRegionalDeploymentReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetRegionalDeploymentReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -113,18 +116,18 @@ def get_regional_deployment( response_types_map=_response_types_map, ).data - @validate_call def get_regional_deployment_with_http_info( self, - id: Annotated[StrictStr, Field(description="The id of the regional deployment")], + id: Annotated[ + StrictStr, Field(description="The id of the regional deployment") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -157,28 +160,27 @@ def get_regional_deployment_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_regional_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetRegionalDeploymentReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetRegionalDeploymentReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -186,18 +188,18 @@ def get_regional_deployment_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_regional_deployment_without_preload_content( self, - id: Annotated[StrictStr, Field(description="The id of the regional deployment")], + id: Annotated[ + StrictStr, Field(description="The id of the regional deployment") + ], _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -230,32 +232,30 @@ def get_regional_deployment_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_regional_deployment_serialize( id=id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetRegionalDeploymentReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "GetRegionalDeploymentReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_regional_deployment_serialize( self, id, @@ -267,8 +267,7 @@ def _get_regional_deployment_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -281,30 +280,22 @@ def _get_regional_deployment_serialize( # process the path parameters if id is not None: - _path_params['id'] = id + _path_params["id"] = id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/regional_deployments/{id}', + method="GET", + resource_path="/v1/regional_deployments/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -314,27 +305,40 @@ def _get_regional_deployment_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_regional_deployment_events( self, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on regional deployment event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on regional deployment id"), + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on regional deployment event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -374,7 +378,7 @@ def list_regional_deployment_events( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployment_events_serialize( regional_deployment_id=regional_deployment_id, @@ -385,21 +389,20 @@ def list_regional_deployment_events( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListRegionalDeploymentEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListRegionalDeploymentEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -407,22 +410,37 @@ def list_regional_deployment_events( response_types_map=_response_types_map, ).data - @validate_call def list_regional_deployment_events_with_http_info( self, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on regional deployment event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on regional deployment id"), + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on regional deployment event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -462,7 +480,7 @@ def list_regional_deployment_events_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployment_events_serialize( regional_deployment_id=regional_deployment_id, @@ -473,21 +491,20 @@ def list_regional_deployment_events_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListRegionalDeploymentEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListRegionalDeploymentEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -495,22 +512,37 @@ def list_regional_deployment_events_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_regional_deployment_events_without_preload_content( self, - regional_deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on regional deployment id")] = None, - types: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on regional deployment event types")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, + regional_deployment_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on regional deployment id"), + ] = None, + types: Annotated[ + Optional[List[StrictStr]], + Field(description="(Optional) Filter on regional deployment event types"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -550,7 +582,7 @@ def list_regional_deployment_events_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployment_events_serialize( regional_deployment_id=regional_deployment_id, @@ -561,25 +593,23 @@ def list_regional_deployment_events_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListRegionalDeploymentEventsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListRegionalDeploymentEventsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_regional_deployment_events_serialize( self, regional_deployment_id, @@ -596,7 +626,7 @@ def _list_regional_deployment_events_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', + "types": "multi", } _path_params: Dict[str, str] = {} @@ -611,47 +641,39 @@ def _list_regional_deployment_events_serialize( # process the path parameters # process the query parameters if regional_deployment_id is not None: - - _query_params.append(('regional_deployment_id', regional_deployment_id)) - + + _query_params.append(("regional_deployment_id", regional_deployment_id)) + if types is not None: - - _query_params.append(('types', types)) - + + _query_params.append(("types", types)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if order is not None: - - _query_params.append(('order', order)) - + + _query_params.append(("order", order)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/regional_deployment_events', + method="GET", + resource_path="/v1/regional_deployment_events", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -661,25 +683,29 @@ def _list_regional_deployment_events_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_regional_deployments( self, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -716,7 +742,7 @@ def list_regional_deployments( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployments_serialize( deployment_id=deployment_id, @@ -725,21 +751,20 @@ def list_regional_deployments( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListRegionalDeploymentsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListRegionalDeploymentsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -747,20 +772,26 @@ def list_regional_deployments( response_types_map=_response_types_map, ).data - @validate_call def list_regional_deployments_with_http_info( self, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -797,7 +828,7 @@ def list_regional_deployments_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployments_serialize( deployment_id=deployment_id, @@ -806,21 +837,20 @@ def list_regional_deployments_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListRegionalDeploymentsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListRegionalDeploymentsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -828,20 +858,26 @@ def list_regional_deployments_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_regional_deployments_without_preload_content( self, - deployment_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on deployment id")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, + deployment_id: Annotated[ + Optional[StrictStr], Field(description="(Optional) Filter on deployment id") + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -878,7 +914,7 @@ def list_regional_deployments_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_regional_deployments_serialize( deployment_id=deployment_id, @@ -887,25 +923,23 @@ def list_regional_deployments_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "ListRegionalDeploymentsReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "ListRegionalDeploymentsReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_regional_deployments_serialize( self, deployment_id, @@ -919,8 +953,7 @@ def _list_regional_deployments_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -934,39 +967,31 @@ def _list_regional_deployments_serialize( # process the path parameters # process the query parameters if deployment_id is not None: - - _query_params.append(('deployment_id', deployment_id)) - + + _query_params.append(("deployment_id", deployment_id)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/regional_deployments', + method="GET", + resource_path="/v1/regional_deployments", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -976,7 +1001,5 @@ def _list_regional_deployments_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/repositories_api.py b/koyeb/api/api/repositories_api.py index 5468c01d..b667ef8e 100644 --- a/koyeb/api/api/repositories_api.py +++ b/koyeb/api/api/repositories_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,7 +20,9 @@ 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.models.kgitproxy_list_repositories_reply import ( + KgitproxyListRepositoriesReply, +) from koyeb.api.api_client import ApiClient, RequestSerialized from koyeb.api.api_response import ApiResponse @@ -39,21 +41,33 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def list_branches( self, - repository_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on one repository.")] = None, - name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, + repository_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on one repository."), + ] = None, + name: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter." + ), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return."), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return."), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -91,7 +105,7 @@ def list_branches( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_branches_serialize( repository_id=repository_id, @@ -101,21 +115,20 @@ def list_branches( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KgitproxyListBranchesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "KgitproxyListBranchesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -123,21 +136,33 @@ def list_branches( response_types_map=_response_types_map, ).data - @validate_call def list_branches_with_http_info( self, - repository_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on one repository.")] = None, - name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, + repository_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on one repository."), + ] = None, + name: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter." + ), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return."), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return."), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -175,7 +200,7 @@ def list_branches_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_branches_serialize( repository_id=repository_id, @@ -185,21 +210,20 @@ def list_branches_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KgitproxyListBranchesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "KgitproxyListBranchesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -207,21 +231,33 @@ def list_branches_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_branches_without_preload_content( self, - repository_id: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on one repository.")] = None, - name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, + repository_id: Annotated[ + Optional[StrictStr], + Field(description="(Optional) Filter on one repository."), + ] = None, + name: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on branch name using a fuzzy search. Repository filter is required to enable this filter." + ), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return."), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return."), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -259,7 +295,7 @@ def list_branches_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_branches_serialize( repository_id=repository_id, @@ -269,25 +305,23 @@ def list_branches_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KgitproxyListBranchesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "KgitproxyListBranchesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_branches_serialize( self, repository_id, @@ -302,8 +336,7 @@ def _list_branches_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -317,43 +350,35 @@ def _list_branches_serialize( # process the path parameters # process the query parameters if repository_id is not None: - - _query_params.append(('repository_id', repository_id)) - + + _query_params.append(("repository_id", repository_id)) + if name is not None: - - _query_params.append(('name', name)) - + + _query_params.append(("name", name)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/git/branches', + method="GET", + resource_path="/v1/git/branches", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -363,26 +388,38 @@ def _list_branches_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def list_repositories( self, - name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on repository name using a fuzzy search.")] = None, - name_search_op: Annotated[Optional[StrictStr], Field(description="(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, + name: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on repository name using a fuzzy search." + ), + ] = None, + name_search_op: Annotated[ + Optional[StrictStr], + Field( + description='(Optional) Define search operation for repository name. Accept either "fuzzy" or "equality", use "fuzzy" by default.' + ), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return."), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return."), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -420,7 +457,7 @@ def list_repositories( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_repositories_serialize( name=name, @@ -430,21 +467,20 @@ def list_repositories( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KgitproxyListRepositoriesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "KgitproxyListRepositoriesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -452,21 +488,35 @@ def list_repositories( response_types_map=_response_types_map, ).data - @validate_call def list_repositories_with_http_info( self, - name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on repository name using a fuzzy search.")] = None, - name_search_op: Annotated[Optional[StrictStr], Field(description="(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, + name: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on repository name using a fuzzy search." + ), + ] = None, + name_search_op: Annotated[ + Optional[StrictStr], + Field( + description='(Optional) Define search operation for repository name. Accept either "fuzzy" or "equality", use "fuzzy" by default.' + ), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return."), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return."), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -504,7 +554,7 @@ def list_repositories_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_repositories_serialize( name=name, @@ -514,21 +564,20 @@ def list_repositories_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KgitproxyListRepositoriesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "KgitproxyListRepositoriesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -536,21 +585,35 @@ def list_repositories_with_http_info( response_types_map=_response_types_map, ) - @validate_call def list_repositories_without_preload_content( self, - name: Annotated[Optional[StrictStr], Field(description="(Optional) Filter on repository name using a fuzzy search.")] = None, - name_search_op: Annotated[Optional[StrictStr], Field(description="(Optional) Define search operation for repository name. Accept either \"fuzzy\" or \"equality\", use \"fuzzy\" by default.")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return.")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return.")] = None, + name: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Filter on repository name using a fuzzy search." + ), + ] = None, + name_search_op: Annotated[ + Optional[StrictStr], + Field( + description='(Optional) Define search operation for repository name. Accept either "fuzzy" or "equality", use "fuzzy" by default.' + ), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return."), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return."), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -588,7 +651,7 @@ def list_repositories_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._list_repositories_serialize( name=name, @@ -598,25 +661,23 @@ def list_repositories_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "KgitproxyListRepositoriesReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "KgitproxyListRepositoriesReply", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _list_repositories_serialize( self, name, @@ -631,8 +692,7 @@ def _list_repositories_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -646,43 +706,35 @@ def _list_repositories_serialize( # process the path parameters # process the query parameters if name is not None: - - _query_params.append(('name', name)) - + + _query_params.append(("name", name)) + if name_search_op is not None: - - _query_params.append(('name_search_op', name_search_op)) - + + _query_params.append(("name_search_op", name_search_op)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/git/repositories', + method="GET", + resource_path="/v1/git/repositories", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -692,12 +744,9 @@ def _list_repositories_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def resync_organization( self, @@ -706,9 +755,8 @@ def resync_organization( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -740,28 +788,27 @@ def resync_organization( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resync_organization_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -769,7 +816,6 @@ def resync_organization( response_types_map=_response_types_map, ).data - @validate_call def resync_organization_with_http_info( self, @@ -778,9 +824,8 @@ def resync_organization_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -812,28 +857,27 @@ def resync_organization_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resync_organization_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -841,7 +885,6 @@ def resync_organization_with_http_info( response_types_map=_response_types_map, ) - @validate_call def resync_organization_without_preload_content( self, @@ -850,9 +893,8 @@ def resync_organization_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -884,32 +926,30 @@ def resync_organization_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._resync_organization_serialize( organization_id=organization_id, _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "object", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "200": "object", + "400": "ErrorWithFields", + "401": "Error", + "403": "Error", + "404": "Error", + "500": "Error", + "503": "Error", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _resync_organization_serialize( self, organization_id, @@ -921,8 +961,7 @@ def _resync_organization_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -935,30 +974,22 @@ def _resync_organization_serialize( # process the path parameters if organization_id is not None: - _path_params['organization_id'] = organization_id + _path_params["organization_id"] = organization_id # process the query parameters # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='POST', - resource_path='/v1/git/sync/organization/{organization_id}', + method="POST", + resource_path="/v1/git/sync/organization/{organization_id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -968,7 +999,5 @@ def _resync_organization_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/search_api.py b/koyeb/api/api/search_api.py index 71ee94d2..e38d827b 100644 --- a/koyeb/api/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 @@ -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,28 +81,27 @@ 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( @@ -110,18 +109,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, @@ -153,28 +152,27 @@ 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( @@ -182,18 +180,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, @@ -225,32 +223,30 @@ 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, @@ -262,8 +258,7 @@ 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]] = [] @@ -277,31 +272,23 @@ 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, @@ -311,7 +298,5 @@ 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/api/secrets_api.py b/koyeb/api/api/secrets_api.py index 4dc73484..1607f36c 100644 --- a/koyeb/api/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 @@ -44,7 +44,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_secret( self, @@ -53,9 +52,8 @@ 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, @@ -87,28 +85,27 @@ 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( @@ -116,7 +113,6 @@ def create_secret( response_types_map=_response_types_map, ).data - @validate_call def create_secret_with_http_info( self, @@ -125,9 +121,8 @@ 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, @@ -159,28 +154,27 @@ 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( @@ -188,7 +182,6 @@ def create_secret_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_secret_without_preload_content( self, @@ -197,9 +190,8 @@ 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, @@ -231,32 +223,30 @@ 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, @@ -268,8 +258,7 @@ 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]] = [] @@ -288,24 +277,16 @@ 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, @@ -315,12 +296,9 @@ 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, @@ -329,9 +307,8 @@ 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, @@ -363,28 +340,27 @@ 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( @@ -392,7 +368,6 @@ def delete_secret( response_types_map=_response_types_map, ).data - @validate_call def delete_secret_with_http_info( self, @@ -401,9 +376,8 @@ 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, @@ -435,28 +409,27 @@ 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( @@ -464,7 +437,6 @@ def delete_secret_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_secret_without_preload_content( self, @@ -473,9 +445,8 @@ 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, @@ -507,32 +478,30 @@ 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, @@ -544,8 +513,7 @@ 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]] = [] @@ -558,30 +526,22 @@ 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, @@ -591,12 +551,9 @@ 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, @@ -605,9 +562,8 @@ 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, @@ -639,28 +595,27 @@ 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( @@ -668,7 +623,6 @@ def get_secret( response_types_map=_response_types_map, ).data - @validate_call def get_secret_with_http_info( self, @@ -677,9 +631,8 @@ 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, @@ -711,28 +664,27 @@ 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( @@ -740,7 +692,6 @@ def get_secret_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_secret_without_preload_content( self, @@ -749,9 +700,8 @@ 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, @@ -783,32 +733,30 @@ 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, @@ -820,8 +768,7 @@ 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]] = [] @@ -834,30 +781,22 @@ 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, @@ -867,26 +806,24 @@ 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, @@ -924,7 +861,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, @@ -934,21 +871,20 @@ 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( @@ -956,21 +892,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, @@ -1008,7 +944,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, @@ -1018,21 +954,20 @@ 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( @@ -1040,21 +975,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, @@ -1092,7 +1027,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, @@ -1102,25 +1037,23 @@ 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, @@ -1136,7 +1069,7 @@ def _list_secrets_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', + "types": "multi", } _path_params: Dict[str, str] = {} @@ -1151,43 +1084,35 @@ 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, @@ -1197,12 +1122,9 @@ 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, @@ -1212,9 +1134,8 @@ 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, @@ -1248,7 +1169,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, @@ -1256,21 +1177,20 @@ 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( @@ -1278,7 +1198,6 @@ def reveal_secret( response_types_map=_response_types_map, ).data - @validate_call def reveal_secret_with_http_info( self, @@ -1288,9 +1207,8 @@ 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, @@ -1324,7 +1242,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, @@ -1332,21 +1250,20 @@ 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( @@ -1354,7 +1271,6 @@ def reveal_secret_with_http_info( response_types_map=_response_types_map, ) - @validate_call def reveal_secret_without_preload_content( self, @@ -1364,9 +1280,8 @@ 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, @@ -1400,7 +1315,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, @@ -1408,25 +1323,23 @@ 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, @@ -1439,8 +1352,7 @@ 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]] = [] @@ -1453,7 +1365,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 @@ -1461,24 +1373,16 @@ 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, @@ -1488,12 +1392,9 @@ 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, @@ -1504,9 +1405,8 @@ 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, @@ -1542,7 +1442,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, @@ -1551,21 +1451,20 @@ 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( @@ -1573,7 +1472,6 @@ def update_secret( response_types_map=_response_types_map, ).data - @validate_call def update_secret_with_http_info( self, @@ -1584,9 +1482,8 @@ 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, @@ -1622,7 +1519,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, @@ -1631,21 +1528,20 @@ 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( @@ -1653,7 +1549,6 @@ def update_secret_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_secret_without_preload_content( self, @@ -1664,9 +1559,8 @@ 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, @@ -1702,7 +1596,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, @@ -1711,25 +1605,23 @@ 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, @@ -1743,8 +1635,7 @@ 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]] = [] @@ -1757,36 +1648,28 @@ 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, @@ -1796,12 +1679,9 @@ 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, @@ -1812,9 +1692,8 @@ 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, @@ -1850,7 +1729,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, @@ -1859,21 +1738,20 @@ 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( @@ -1881,7 +1759,6 @@ def update_secret2( response_types_map=_response_types_map, ).data - @validate_call def update_secret2_with_http_info( self, @@ -1892,9 +1769,8 @@ 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, @@ -1930,7 +1806,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, @@ -1939,21 +1815,20 @@ 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( @@ -1961,7 +1836,6 @@ def update_secret2_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_secret2_without_preload_content( self, @@ -1972,9 +1846,8 @@ 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, @@ -2010,7 +1883,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, @@ -2019,25 +1892,23 @@ 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, @@ -2051,8 +1922,7 @@ 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]] = [] @@ -2065,36 +1935,28 @@ 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, @@ -2104,7 +1966,5 @@ 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/api/services_api.py b/koyeb/api/api/services_api.py index 0b3dff86..31fc2fc1 100644 --- a/koyeb/api/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 @@ -16,7 +16,7 @@ from typing import Any, Dict, List, Optional, Tuple, Union from typing_extensions import Annotated -from pydantic import Field, StrictBool, StrictStr, field_validator +from pydantic import Field, StrictBool, StrictInt, StrictStr, field_validator from typing import Any, Dict, List, Optional from typing_extensions import Annotated from koyeb.api.models.autocomplete_reply import AutocompleteReply @@ -48,7 +48,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def autocomplete( self, @@ -57,9 +56,8 @@ 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, @@ -92,28 +90,27 @@ 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( @@ -121,7 +118,6 @@ def autocomplete( response_types_map=_response_types_map, ).data - @validate_call def autocomplete_with_http_info( self, @@ -130,9 +126,8 @@ 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, @@ -165,28 +160,27 @@ 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( @@ -194,7 +188,6 @@ def autocomplete_with_http_info( response_types_map=_response_types_map, ) - @validate_call def autocomplete_without_preload_content( self, @@ -203,9 +196,8 @@ 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, @@ -238,32 +230,30 @@ 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, @@ -275,8 +265,7 @@ 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]] = [] @@ -295,24 +284,16 @@ 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, @@ -322,24 +303,22 @@ 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, @@ -373,7 +352,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, @@ -381,21 +360,20 @@ 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( @@ -403,19 +381,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, @@ -449,7 +427,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, @@ -457,21 +435,20 @@ 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( @@ -479,19 +456,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, @@ -525,7 +502,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, @@ -533,25 +510,23 @@ 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, @@ -564,8 +539,7 @@ 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]] = [] @@ -579,33 +553,25 @@ 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, @@ -615,12 +581,9 @@ 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, @@ -629,9 +592,8 @@ 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, @@ -664,28 +626,27 @@ 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( @@ -693,7 +654,6 @@ def delete_service( response_types_map=_response_types_map, ).data - @validate_call def delete_service_with_http_info( self, @@ -702,9 +662,8 @@ 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, @@ -737,28 +696,27 @@ 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( @@ -766,7 +724,6 @@ def delete_service_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_service_without_preload_content( self, @@ -775,9 +732,8 @@ 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, @@ -810,32 +766,30 @@ 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, @@ -847,8 +801,7 @@ 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]] = [] @@ -861,30 +814,22 @@ 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, @@ -894,12 +839,9 @@ 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, @@ -908,9 +850,8 @@ 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, @@ -942,28 +883,27 @@ 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( @@ -971,7 +911,6 @@ def get_service( response_types_map=_response_types_map, ).data - @validate_call def get_service_with_http_info( self, @@ -980,9 +919,8 @@ 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, @@ -1014,28 +952,27 @@ 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( @@ -1043,7 +980,6 @@ def get_service_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_service_without_preload_content( self, @@ -1052,9 +988,8 @@ 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, @@ -1086,32 +1021,30 @@ 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, @@ -1123,8 +1056,7 @@ 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]] = [] @@ -1137,30 +1069,22 @@ 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, @@ -1170,27 +1094,39 @@ 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, @@ -1230,7 +1166,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, @@ -1241,21 +1177,20 @@ 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( @@ -1263,22 +1198,36 @@ 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, @@ -1318,7 +1267,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, @@ -1329,21 +1278,20 @@ 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( @@ -1351,22 +1299,36 @@ 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, @@ -1406,7 +1368,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, @@ -1417,25 +1379,23 @@ 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, @@ -1452,7 +1412,7 @@ def _list_service_events_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', + "types": "multi", } _path_params: Dict[str, str] = {} @@ -1467,47 +1427,39 @@ 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, @@ -1517,28 +1469,40 @@ 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, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service statuses")] = 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, @@ -1580,7 +1544,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, @@ -1592,21 +1556,20 @@ def list_services( _request_auth=_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( @@ -1614,23 +1577,37 @@ 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, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service statuses")] = 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, @@ -1672,7 +1649,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, @@ -1684,21 +1661,20 @@ def list_services_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': "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( @@ -1706,23 +1682,37 @@ 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, - statuses: Annotated[Optional[List[StrictStr]], Field(description="(Optional) Filter on service statuses")] = 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, @@ -1764,7 +1754,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, @@ -1776,25 +1766,23 @@ def list_services_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': "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, @@ -1812,8 +1800,8 @@ def _list_services_serialize( _host = None _collection_formats: Dict[str, str] = { - 'types': 'multi', - 'statuses': 'multi', + "types": "multi", + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -1828,51 +1816,43 @@ 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)) - + + _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, @@ -1882,12 +1862,9 @@ 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, @@ -1896,9 +1873,8 @@ 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, @@ -1931,28 +1907,27 @@ 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( @@ -1960,7 +1935,6 @@ def pause_service( response_types_map=_response_types_map, ).data - @validate_call def pause_service_with_http_info( self, @@ -1969,9 +1943,8 @@ 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, @@ -2004,28 +1977,27 @@ 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( @@ -2033,7 +2005,6 @@ def pause_service_with_http_info( response_types_map=_response_types_map, ) - @validate_call def pause_service_without_preload_content( self, @@ -2042,9 +2013,8 @@ 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, @@ -2077,32 +2047,30 @@ 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, @@ -2114,8 +2082,7 @@ 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]] = [] @@ -2128,30 +2095,22 @@ 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, @@ -2161,12 +2120,9 @@ 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, @@ -2176,9 +2132,8 @@ 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, @@ -2212,7 +2167,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, @@ -2220,21 +2175,20 @@ 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( @@ -2242,7 +2196,6 @@ def re_deploy( response_types_map=_response_types_map, ).data - @validate_call def re_deploy_with_http_info( self, @@ -2252,9 +2205,8 @@ 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, @@ -2288,7 +2240,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, @@ -2296,21 +2248,20 @@ 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( @@ -2318,7 +2269,6 @@ def re_deploy_with_http_info( response_types_map=_response_types_map, ) - @validate_call def re_deploy_without_preload_content( self, @@ -2328,9 +2278,8 @@ 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, @@ -2364,7 +2313,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, @@ -2372,25 +2321,23 @@ 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, @@ -2403,8 +2350,7 @@ 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]] = [] @@ -2417,7 +2363,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 @@ -2425,24 +2371,16 @@ 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, @@ -2452,25 +2390,26 @@ 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, @@ -2507,7 +2446,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, @@ -2516,21 +2455,20 @@ 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( @@ -2538,20 +2476,23 @@ 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, @@ -2588,7 +2529,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, @@ -2597,21 +2538,20 @@ 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( @@ -2619,20 +2559,23 @@ 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, @@ -2669,7 +2612,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, @@ -2678,25 +2621,23 @@ 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, @@ -2710,8 +2651,7 @@ 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]] = [] @@ -2724,38 +2664,30 @@ 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, @@ -2765,25 +2697,28 @@ 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, + life_cycle_delete_after_sleep: Optional[StrictInt] = None, + life_cycle_delete_after_create: Optional[StrictInt] = 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, @@ -2799,6 +2734,10 @@ def update_service( :type service: UpdateService :param dry_run: If set, run validation and check that the service exists :type dry_run: bool + :param life_cycle_delete_after_sleep: + :type life_cycle_delete_after_sleep: int + :param life_cycle_delete_after_create: + :type life_cycle_delete_after_create: 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 @@ -2819,30 +2758,31 @@ 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, service=service, dry_run=dry_run, + life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, + life_cycle_delete_after_create=life_cycle_delete_after_create, _request_auth=_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( @@ -2850,20 +2790,25 @@ 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, + life_cycle_delete_after_sleep: Optional[StrictInt] = None, + life_cycle_delete_after_create: Optional[StrictInt] = 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, @@ -2879,6 +2824,10 @@ def update_service_with_http_info( :type service: UpdateService :param dry_run: If set, run validation and check that the service exists :type dry_run: bool + :param life_cycle_delete_after_sleep: + :type life_cycle_delete_after_sleep: int + :param life_cycle_delete_after_create: + :type life_cycle_delete_after_create: 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 @@ -2899,30 +2848,31 @@ 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, service=service, dry_run=dry_run, + life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, + life_cycle_delete_after_create=life_cycle_delete_after_create, _request_auth=_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( @@ -2930,20 +2880,25 @@ 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, + life_cycle_delete_after_sleep: Optional[StrictInt] = None, + life_cycle_delete_after_create: Optional[StrictInt] = 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, @@ -2959,6 +2914,10 @@ def update_service_without_preload_content( :type service: UpdateService :param dry_run: If set, run validation and check that the service exists :type dry_run: bool + :param life_cycle_delete_after_sleep: + :type life_cycle_delete_after_sleep: int + :param life_cycle_delete_after_create: + :type life_cycle_delete_after_create: 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 @@ -2979,39 +2938,41 @@ 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, service=service, dry_run=dry_run, + life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, + life_cycle_delete_after_create=life_cycle_delete_after_create, _request_auth=_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, service, dry_run, + life_cycle_delete_after_sleep, + life_cycle_delete_after_create, _request_auth, _content_type, _headers, @@ -3020,8 +2981,7 @@ 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]] = [] @@ -3034,36 +2994,40 @@ 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)) + + if life_cycle_delete_after_sleep is not None: + + _query_params.append( + ("life_cycle.delete_after_sleep", life_cycle_delete_after_sleep) + ) + + if life_cycle_delete_after_create is not None: + + _query_params.append( + ("life_cycle.delete_after_create", life_cycle_delete_after_create) + ) + # 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, @@ -3073,25 +3037,28 @@ 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, + life_cycle_delete_after_sleep: Optional[StrictInt] = None, + life_cycle_delete_after_create: Optional[StrictInt] = 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, @@ -3107,6 +3074,10 @@ def update_service2( :type service: UpdateService :param dry_run: If set, run validation and check that the service exists :type dry_run: bool + :param life_cycle_delete_after_sleep: + :type life_cycle_delete_after_sleep: int + :param life_cycle_delete_after_create: + :type life_cycle_delete_after_create: 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 @@ -3127,30 +3098,31 @@ 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, service=service, dry_run=dry_run, + life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, + life_cycle_delete_after_create=life_cycle_delete_after_create, _request_auth=_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( @@ -3158,20 +3130,25 @@ 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, + life_cycle_delete_after_sleep: Optional[StrictInt] = None, + life_cycle_delete_after_create: Optional[StrictInt] = 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, @@ -3187,6 +3164,10 @@ def update_service2_with_http_info( :type service: UpdateService :param dry_run: If set, run validation and check that the service exists :type dry_run: bool + :param life_cycle_delete_after_sleep: + :type life_cycle_delete_after_sleep: int + :param life_cycle_delete_after_create: + :type life_cycle_delete_after_create: 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 @@ -3207,30 +3188,31 @@ 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, service=service, dry_run=dry_run, + life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, + life_cycle_delete_after_create=life_cycle_delete_after_create, _request_auth=_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( @@ -3238,20 +3220,25 @@ 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, + life_cycle_delete_after_sleep: Optional[StrictInt] = None, + life_cycle_delete_after_create: Optional[StrictInt] = 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, @@ -3267,6 +3254,10 @@ def update_service2_without_preload_content( :type service: UpdateService :param dry_run: If set, run validation and check that the service exists :type dry_run: bool + :param life_cycle_delete_after_sleep: + :type life_cycle_delete_after_sleep: int + :param life_cycle_delete_after_create: + :type life_cycle_delete_after_create: 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 @@ -3287,39 +3278,41 @@ 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, service=service, dry_run=dry_run, + life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, + life_cycle_delete_after_create=life_cycle_delete_after_create, _request_auth=_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, service, dry_run, + life_cycle_delete_after_sleep, + life_cycle_delete_after_create, _request_auth, _content_type, _headers, @@ -3328,8 +3321,7 @@ 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]] = [] @@ -3342,36 +3334,40 @@ 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)) + + if life_cycle_delete_after_sleep is not None: + + _query_params.append( + ("life_cycle.delete_after_sleep", life_cycle_delete_after_sleep) + ) + + if life_cycle_delete_after_create is not None: + + _query_params.append( + ("life_cycle.delete_after_create", life_cycle_delete_after_create) + ) + # 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, @@ -3381,7 +3377,5 @@ 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/api/sessions_api.py b/koyeb/api/api/sessions_api.py index d07e8a36..a0912608 100644 --- a/koyeb/api/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 @@ -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,21 +93,20 @@ 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( @@ -115,19 +114,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, @@ -161,7 +160,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, @@ -169,21 +168,20 @@ 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( @@ -191,19 +189,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, @@ -237,7 +235,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, @@ -245,25 +243,23 @@ 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, @@ -276,8 +272,7 @@ 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]] = [] @@ -292,30 +287,22 @@ 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, @@ -325,12 +312,9 @@ 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, @@ -338,9 +322,8 @@ 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, @@ -370,27 +353,26 @@ 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( @@ -398,7 +380,6 @@ def logout( response_types_map=_response_types_map, ).data - @validate_call def logout_with_http_info( self, @@ -406,9 +387,8 @@ 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, @@ -438,27 +418,26 @@ 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( @@ -466,7 +445,6 @@ def logout_with_http_info( response_types_map=_response_types_map, ) - @validate_call def logout_without_preload_content( self, @@ -474,9 +452,8 @@ 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, @@ -506,31 +483,29 @@ 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, @@ -541,8 +516,7 @@ 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]] = [] @@ -559,24 +533,16 @@ 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, @@ -586,12 +552,9 @@ 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, @@ -599,9 +562,8 @@ 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, @@ -632,27 +594,26 @@ 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( @@ -660,7 +621,6 @@ def new_session( response_types_map=_response_types_map, ).data - @validate_call def new_session_with_http_info( self, @@ -668,9 +628,8 @@ 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, @@ -701,27 +660,26 @@ 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( @@ -729,7 +687,6 @@ def new_session_with_http_info( response_types_map=_response_types_map, ) - @validate_call def new_session_without_preload_content( self, @@ -737,9 +694,8 @@ 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, @@ -770,31 +726,29 @@ 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, @@ -805,8 +759,7 @@ 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]] = [] @@ -823,24 +776,16 @@ 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, @@ -850,12 +795,9 @@ 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, @@ -863,9 +805,8 @@ 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, @@ -895,27 +836,26 @@ 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( @@ -923,7 +863,6 @@ def refresh_token( response_types_map=_response_types_map, ).data - @validate_call def refresh_token_with_http_info( self, @@ -931,9 +870,8 @@ 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, @@ -963,27 +901,26 @@ 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( @@ -991,7 +928,6 @@ def refresh_token_with_http_info( response_types_map=_response_types_map, ) - @validate_call def refresh_token_without_preload_content( self, @@ -999,9 +935,8 @@ 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, @@ -1031,31 +966,29 @@ 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, @@ -1066,8 +999,7 @@ 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]] = [] @@ -1084,24 +1016,16 @@ 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, @@ -1111,7 +1035,5 @@ 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/api/snapshots_api.py b/koyeb/api/api/snapshots_api.py index 5a75470b..cd4abb00 100644 --- a/koyeb/api/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 @@ -44,7 +44,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def create_snapshot( self, @@ -53,9 +52,8 @@ 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, @@ -87,28 +85,27 @@ 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( @@ -116,7 +113,6 @@ def create_snapshot( response_types_map=_response_types_map, ).data - @validate_call def create_snapshot_with_http_info( self, @@ -125,9 +121,8 @@ 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, @@ -159,28 +154,27 @@ 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( @@ -188,7 +182,6 @@ def create_snapshot_with_http_info( response_types_map=_response_types_map, ) - @validate_call def create_snapshot_without_preload_content( self, @@ -197,9 +190,8 @@ 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, @@ -231,32 +223,30 @@ 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, @@ -268,8 +258,7 @@ 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]] = [] @@ -288,24 +277,16 @@ 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, @@ -315,12 +296,9 @@ 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, @@ -329,9 +307,8 @@ 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, @@ -363,28 +340,27 @@ 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( @@ -392,7 +368,6 @@ def delete_snapshot( response_types_map=_response_types_map, ).data - @validate_call def delete_snapshot_with_http_info( self, @@ -401,9 +376,8 @@ 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, @@ -435,28 +409,27 @@ 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( @@ -464,7 +437,6 @@ def delete_snapshot_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_snapshot_without_preload_content( self, @@ -473,9 +445,8 @@ 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, @@ -507,32 +478,30 @@ 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, @@ -544,8 +513,7 @@ 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]] = [] @@ -558,30 +526,22 @@ 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, @@ -591,12 +551,9 @@ 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, @@ -605,9 +562,8 @@ 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, @@ -639,28 +595,27 @@ 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( @@ -668,7 +623,6 @@ def get_snapshot( response_types_map=_response_types_map, ).data - @validate_call def get_snapshot_with_http_info( self, @@ -677,9 +631,8 @@ 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, @@ -711,28 +664,27 @@ 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( @@ -740,7 +692,6 @@ def get_snapshot_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_snapshot_without_preload_content( self, @@ -749,9 +700,8 @@ 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, @@ -783,32 +733,30 @@ 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, @@ -820,8 +768,7 @@ 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]] = [] @@ -834,30 +781,22 @@ 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, @@ -867,27 +806,39 @@ 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, @@ -927,7 +878,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, @@ -938,21 +889,20 @@ 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( @@ -960,22 +910,36 @@ 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, @@ -1015,7 +979,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, @@ -1026,21 +990,20 @@ 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( @@ -1048,22 +1011,36 @@ 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, @@ -1103,7 +1080,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, @@ -1114,25 +1091,23 @@ 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, @@ -1149,7 +1124,7 @@ def _list_snapshots_serialize( _host = None _collection_formats: Dict[str, str] = { - 'statuses': 'multi', + "statuses": "multi", } _path_params: Dict[str, str] = {} @@ -1164,47 +1139,39 @@ 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, @@ -1214,12 +1181,9 @@ 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, @@ -1229,9 +1193,8 @@ 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, @@ -1265,7 +1228,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, @@ -1273,21 +1236,20 @@ 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( @@ -1295,7 +1257,6 @@ def update_snapshot( response_types_map=_response_types_map, ).data - @validate_call def update_snapshot_with_http_info( self, @@ -1305,9 +1266,8 @@ 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, @@ -1341,7 +1301,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, @@ -1349,21 +1309,20 @@ 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( @@ -1371,7 +1330,6 @@ def update_snapshot_with_http_info( response_types_map=_response_types_map, ) - @validate_call def update_snapshot_without_preload_content( self, @@ -1381,9 +1339,8 @@ 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, @@ -1417,7 +1374,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, @@ -1425,25 +1382,23 @@ 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, @@ -1456,8 +1411,7 @@ 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]] = [] @@ -1470,7 +1424,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 @@ -1478,24 +1432,16 @@ 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, @@ -1505,7 +1451,5 @@ 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/api/sso_api.py b/koyeb/api/api/sso_api.py index f216a8b4..8b185977 100644 --- a/koyeb/api/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 @@ -38,7 +38,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def canny_auth( self, @@ -47,9 +46,8 @@ 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, @@ -81,28 +79,27 @@ 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( @@ -110,7 +107,6 @@ def canny_auth( response_types_map=_response_types_map, ).data - @validate_call def canny_auth_with_http_info( self, @@ -119,9 +115,8 @@ 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, @@ -153,28 +148,27 @@ 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( @@ -182,7 +176,6 @@ def canny_auth_with_http_info( response_types_map=_response_types_map, ) - @validate_call def canny_auth_without_preload_content( self, @@ -191,9 +184,8 @@ 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, @@ -225,32 +217,30 @@ 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, @@ -262,8 +252,7 @@ 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]] = [] @@ -282,24 +271,16 @@ 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, @@ -309,12 +290,9 @@ 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, @@ -323,9 +301,8 @@ 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, @@ -357,28 +334,27 @@ 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( @@ -386,7 +362,6 @@ def discourse_auth( response_types_map=_response_types_map, ).data - @validate_call def discourse_auth_with_http_info( self, @@ -395,9 +370,8 @@ 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, @@ -429,28 +403,27 @@ 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( @@ -458,7 +431,6 @@ def discourse_auth_with_http_info( response_types_map=_response_types_map, ) - @validate_call def discourse_auth_without_preload_content( self, @@ -467,9 +439,8 @@ 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, @@ -501,32 +472,30 @@ 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, @@ -538,8 +507,7 @@ 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]] = [] @@ -558,24 +526,16 @@ 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, @@ -585,7 +545,5 @@ 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/api/subscriptions_api.py b/koyeb/api/api/subscriptions_api.py index 894959d3..7832e8e5 100644 --- a/koyeb/api/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 @@ -37,7 +37,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_subscription( self, @@ -46,9 +45,8 @@ 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, @@ -80,28 +78,27 @@ 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( @@ -109,7 +106,6 @@ def get_subscription( response_types_map=_response_types_map, ).data - @validate_call def get_subscription_with_http_info( self, @@ -118,9 +114,8 @@ 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, @@ -152,28 +147,27 @@ 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( @@ -181,7 +175,6 @@ def get_subscription_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_subscription_without_preload_content( self, @@ -190,9 +183,8 @@ 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, @@ -224,32 +216,30 @@ 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, @@ -261,8 +251,7 @@ 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]] = [] @@ -275,30 +264,22 @@ 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, @@ -308,7 +289,5 @@ 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/api/summary_api.py b/koyeb/api/api/summary_api.py index daf7a7a6..c717d3a5 100644 --- a/koyeb/api/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 @@ -37,7 +37,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_organization_summary( self, @@ -46,9 +45,8 @@ 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, @@ -80,28 +78,27 @@ 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( @@ -109,7 +106,6 @@ def get_organization_summary( response_types_map=_response_types_map, ).data - @validate_call def get_organization_summary_with_http_info( self, @@ -118,9 +114,8 @@ 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, @@ -152,28 +147,27 @@ 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( @@ -181,7 +175,6 @@ def get_organization_summary_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_organization_summary_without_preload_content( self, @@ -190,9 +183,8 @@ 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, @@ -224,32 +216,30 @@ 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, @@ -261,8 +251,7 @@ 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]] = [] @@ -275,30 +264,22 @@ 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, @@ -308,7 +289,5 @@ 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 index c15b411b..bdc77128 100644 --- a/koyeb/api/api/usages_api.py +++ b/koyeb/api/api/usages_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 import warnings @@ -20,7 +20,9 @@ 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_details_reply import ( + GetOrganizationUsageDetailsReply, +) from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply from koyeb.api.api_client import ApiClient, RequestSerialized @@ -40,19 +42,23 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def get_organization_usage( self, - starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, - ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, + starting_time: Annotated[ + Optional[datetime], + Field(description="The starting time of the period to get data from"), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field(description="The ending time of the period to get data from"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -86,7 +92,7 @@ def get_organization_usage( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_serialize( starting_time=starting_time, @@ -94,15 +100,14 @@ def get_organization_usage( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationUsageReply", + "200": "GetOrganizationUsageReply", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -110,19 +115,23 @@ def get_organization_usage( response_types_map=_response_types_map, ).data - @validate_call def get_organization_usage_with_http_info( self, - starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, - ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, + starting_time: Annotated[ + Optional[datetime], + Field(description="The starting time of the period to get data from"), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field(description="The ending time of the period to get data from"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -156,7 +165,7 @@ def get_organization_usage_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_serialize( starting_time=starting_time, @@ -164,15 +173,14 @@ def get_organization_usage_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationUsageReply", + "200": "GetOrganizationUsageReply", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -180,19 +188,23 @@ def get_organization_usage_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_organization_usage_without_preload_content( self, - starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, - ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, + starting_time: Annotated[ + Optional[datetime], + Field(description="The starting time of the period to get data from"), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field(description="The ending time of the period to get data from"), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -226,7 +238,7 @@ def get_organization_usage_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_serialize( starting_time=starting_time, @@ -234,19 +246,17 @@ def get_organization_usage_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationUsageReply", + "200": "GetOrganizationUsageReply", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_organization_usage_serialize( self, starting_time, @@ -259,8 +269,7 @@ def _get_organization_usage_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -277,50 +286,42 @@ def _get_organization_usage_serialize( if isinstance(starting_time, datetime): _query_params.append( ( - 'starting_time', + "starting_time", starting_time.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('starting_time', starting_time)) - + _query_params.append(("starting_time", starting_time)) + if ending_time is not None: if isinstance(ending_time, datetime): _query_params.append( ( - 'ending_time', + "ending_time", ending_time.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('ending_time', ending_time)) - + _query_params.append(("ending_time", ending_time)) + # process the header parameters # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/usages', + method="GET", + resource_path="/v1/usages", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -330,28 +331,46 @@ def _get_organization_usage_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def get_organization_usage_details( self, - starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, - ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - accept: Annotated[Optional[StrictStr], Field(description="If defined with the value 'text/csv', a csv file is returned")] = None, + starting_time: Annotated[ + Optional[datetime], + Field(description="The starting time of the period to get data from"), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field(description="The ending time of the period to get data from"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + accept: Annotated[ + Optional[StrictStr], + Field( + description="If defined with the value 'text/csv', a csv file is returned" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -393,7 +412,7 @@ def get_organization_usage_details( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_details_serialize( starting_time=starting_time, @@ -405,15 +424,14 @@ def get_organization_usage_details( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationUsageDetailsReply", + "200": "GetOrganizationUsageDetailsReply", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -421,23 +439,43 @@ def get_organization_usage_details( response_types_map=_response_types_map, ).data - @validate_call def get_organization_usage_details_with_http_info( self, - starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, - ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - accept: Annotated[Optional[StrictStr], Field(description="If defined with the value 'text/csv', a csv file is returned")] = None, + starting_time: Annotated[ + Optional[datetime], + Field(description="The starting time of the period to get data from"), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field(description="The ending time of the period to get data from"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + accept: Annotated[ + Optional[StrictStr], + Field( + description="If defined with the value 'text/csv', a csv file is returned" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -479,7 +517,7 @@ def get_organization_usage_details_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_details_serialize( starting_time=starting_time, @@ -491,15 +529,14 @@ def get_organization_usage_details_with_http_info( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationUsageDetailsReply", + "200": "GetOrganizationUsageDetailsReply", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -507,23 +544,43 @@ def get_organization_usage_details_with_http_info( response_types_map=_response_types_map, ) - @validate_call def get_organization_usage_details_without_preload_content( self, - starting_time: Annotated[Optional[datetime], Field(description="The starting time of the period to get data from")] = None, - ending_time: Annotated[Optional[datetime], Field(description="The ending time of the period to get data from")] = None, - limit: Annotated[Optional[StrictStr], Field(description="(Optional) The number of items to return")] = None, - offset: Annotated[Optional[StrictStr], Field(description="(Optional) The offset in the list of item to return")] = None, - order: Annotated[Optional[StrictStr], Field(description="(Optional) Sorts the list in the ascending or the descending order")] = None, - accept: Annotated[Optional[StrictStr], Field(description="If defined with the value 'text/csv', a csv file is returned")] = None, + starting_time: Annotated[ + Optional[datetime], + Field(description="The starting time of the period to get data from"), + ] = None, + ending_time: Annotated[ + Optional[datetime], + Field(description="The ending time of the period to get data from"), + ] = None, + limit: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The number of items to return"), + ] = None, + offset: Annotated[ + Optional[StrictStr], + Field(description="(Optional) The offset in the list of item to return"), + ] = None, + order: Annotated[ + Optional[StrictStr], + Field( + description="(Optional) Sorts the list in the ascending or the descending order" + ), + ] = None, + accept: Annotated[ + Optional[StrictStr], + Field( + description="If defined with the value 'text/csv', a csv file is returned" + ), + ] = None, _request_timeout: Union[ None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -565,7 +622,7 @@ def get_organization_usage_details_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._get_organization_usage_details_serialize( starting_time=starting_time, @@ -577,19 +634,17 @@ def get_organization_usage_details_without_preload_content( _request_auth=_request_auth, _content_type=_content_type, _headers=_headers, - _host_index=_host_index + _host_index=_host_index, ) _response_types_map: Dict[str, Optional[str]] = { - '200': "GetOrganizationUsageDetailsReply", + "200": "GetOrganizationUsageDetailsReply", } response_data = self.api_client.call_api( - *_param, - _request_timeout=_request_timeout + *_param, _request_timeout=_request_timeout ) return response_data.response - def _get_organization_usage_details_serialize( self, starting_time, @@ -606,8 +661,7 @@ def _get_organization_usage_details_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -624,64 +678,56 @@ def _get_organization_usage_details_serialize( if isinstance(starting_time, datetime): _query_params.append( ( - 'starting_time', + "starting_time", starting_time.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('starting_time', starting_time)) - + _query_params.append(("starting_time", starting_time)) + if ending_time is not None: if isinstance(ending_time, datetime): _query_params.append( ( - 'ending_time', + "ending_time", ending_time.strftime( self.api_client.configuration.datetime_format - ) + ), ) ) else: - _query_params.append(('ending_time', ending_time)) - + _query_params.append(("ending_time", ending_time)) + if limit is not None: - - _query_params.append(('limit', limit)) - + + _query_params.append(("limit", limit)) + if offset is not None: - - _query_params.append(('offset', offset)) - + + _query_params.append(("offset", offset)) + if order is not None: - - _query_params.append(('order', order)) - + + _query_params.append(("order", order)) + # process the header parameters if accept is not None: - _header_params['Accept'] = accept + _header_params["Accept"] = accept # process the form parameters # process the body parameter - # set the HTTP header `Accept` - if 'Accept' not in _header_params: - _header_params['Accept'] = self.api_client.select_header_accept( - [ - '*/*' - ] - ) - + if "Accept" not in _header_params: + _header_params["Accept"] = self.api_client.select_header_accept(["*/*"]) # authentication setting - _auth_settings: List[str] = [ - 'Bearer' - ] + _auth_settings: List[str] = ["Bearer"] return self.api_client.param_serialize( - method='GET', - resource_path='/v1/usages/details', + method="GET", + resource_path="/v1/usages/details", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -691,7 +737,5 @@ def _get_organization_usage_details_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - diff --git a/koyeb/api/api/users_api.py b/koyeb/api/api/users_api.py index b82589df..3ce8edcf 100644 --- a/koyeb/api/api/users_api.py +++ b/koyeb/api/api/users_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 @@ -37,7 +37,6 @@ def __init__(self, api_client=None) -> None: api_client = ApiClient.get_default() self.api_client = api_client - @validate_call def delete_user( self, @@ -46,9 +45,8 @@ def delete_user( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -80,28 +78,27 @@ def delete_user( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_user_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': "DeleteUserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "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 + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -109,7 +106,6 @@ def delete_user( response_types_map=_response_types_map, ).data - @validate_call def delete_user_with_http_info( self, @@ -118,9 +114,8 @@ def delete_user_with_http_info( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -152,28 +147,27 @@ def delete_user_with_http_info( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_user_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': "DeleteUserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "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 + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -181,7 +175,6 @@ def delete_user_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_user_without_preload_content( self, @@ -190,9 +183,8 @@ def delete_user_without_preload_content( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=0)] - ] + Annotated[StrictFloat, Field(gt=0)], Annotated[StrictFloat, Field(gt=0)] + ], ] = None, _request_auth: Optional[Dict[StrictStr, Any]] = None, _content_type: Optional[StrictStr] = None, @@ -224,32 +216,30 @@ def delete_user_without_preload_content( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_user_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': "DeleteUserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "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 + *_param, _request_timeout=_request_timeout ) return response_data.response - def _delete_user_serialize( self, id, @@ -261,8 +251,7 @@ def _delete_user_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -275,30 +264,22 @@ def _delete_user_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/users/{id}', + method="DELETE", + resource_path="/v1/users/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -308,12 +289,9 @@ def _delete_user_serialize( auth_settings=_auth_settings, collection_formats=_collection_formats, _host=_host, - _request_auth=_request_auth + _request_auth=_request_auth, ) - - - @validate_call def delete_user_v2( self, @@ -322,9 +300,8 @@ def delete_user_v2( None, Annotated[StrictFloat, Field(gt=0)], Tuple[ - Annotated[StrictFloat, Field(gt=0)], - Annotated[StrictFloat, Field(gt=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,28 +333,27 @@ def delete_user_v2( in the spec for a single request. :type _host_index: int, optional :return: Returns the result object. - """ # noqa: E501 + """ # noqa: E501 _param = self._delete_user_v2_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': "DeleteUserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "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 + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -385,7 +361,6 @@ def delete_user_v2( response_types_map=_response_types_map, ).data - @validate_call def delete_user_v2_with_http_info( self, @@ -394,9 +369,8 @@ def delete_user_v2_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, @@ -428,28 +402,27 @@ def delete_user_v2_with_http_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_user_v2_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': "DeleteUserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "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 + *_param, _request_timeout=_request_timeout ) response_data.read() return self.api_client.response_deserialize( @@ -457,7 +430,6 @@ def delete_user_v2_with_http_info( response_types_map=_response_types_map, ) - @validate_call def delete_user_v2_without_preload_content( self, @@ -466,9 +438,8 @@ def delete_user_v2_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, @@ -500,32 +471,30 @@ def delete_user_v2_without_preload_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_user_v2_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': "DeleteUserReply", - '400': "ErrorWithFields", - '401': "Error", - '403': "Error", - '404': "Error", - '500': "Error", - '503': "Error", + "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 + *_param, _request_timeout=_request_timeout ) return response_data.response - def _delete_user_v2_serialize( self, id, @@ -537,8 +506,7 @@ def _delete_user_v2_serialize( _host = None - _collection_formats: Dict[str, str] = { - } + _collection_formats: Dict[str, str] = {} _path_params: Dict[str, str] = {} _query_params: List[Tuple[str, str]] = [] @@ -551,30 +519,22 @@ def _delete_user_v2_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='/v2/users/{id}', + method="DELETE", + resource_path="/v2/users/{id}", path_params=_path_params, query_params=_query_params, header_params=_header_params, @@ -584,7 +544,5 @@ def _delete_user_v2_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_client.py b/koyeb/api/api_client.py index 33da9101..60ac11ea 100644 --- a/koyeb/api/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 @@ -38,11 +38,12 @@ 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,24 +62,20 @@ 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: @@ -91,7 +88,7 @@ def __init__( self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/1.2.2/python' + self.user_agent = "OpenAPI-Generator/1.2.2/python" self.client_side_validation = configuration.client_side_validation def __enter__(self): @@ -103,16 +100,15 @@ 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 @@ -148,12 +144,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. @@ -182,35 +178,28 @@ 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)) @@ -222,7 +211,7 @@ def param_serialize( resource_path, method, body, - request_auth=_request_auth + request_auth=_request_auth, ) # body @@ -239,15 +228,11 @@ 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, @@ -255,7 +240,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. @@ -272,10 +257,12 @@ 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: @@ -286,7 +273,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. @@ -298,9 +285,15 @@ 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 @@ -312,12 +305,14 @@ 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.headers.get("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( @@ -327,10 +322,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.headers, + raw_data=response_data.data, ) def sanitize_for_serialization(self, obj): @@ -360,13 +355,9 @@ def sanitize_for_serialization(self, 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): @@ -380,7 +371,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__ @@ -390,11 +381,12 @@ 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. @@ -411,17 +403,20 @@ def deserialize(self, response_text: str, response_type: str, content_type: Opti 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) @@ -438,19 +433,17 @@ 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: @@ -486,19 +479,18 @@ 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 @@ -523,17 +515,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)) ) @@ -554,7 +546,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): @@ -568,13 +560,8 @@ 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]: @@ -587,7 +574,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] @@ -602,7 +589,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] @@ -615,7 +602,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. @@ -634,34 +621,18 @@ 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 @@ -673,17 +644,15 @@ 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 @@ -701,12 +670,9 @@ def __deserialize_file(self, response): os.close(fd) os.remove(path) - content_disposition = response.getheader("Content-Disposition") + content_disposition = response.headers.get("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) @@ -750,8 +716,7 @@ 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): @@ -769,10 +734,7 @@ 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): @@ -786,11 +748,7 @@ 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/api_response.py b/koyeb/api/api_response.py index 9bc7c11f..1ce13729 100644 --- a/koyeb/api/api_response.py +++ b/koyeb/api/api_response.py @@ -6,6 +6,7 @@ T = TypeVar("T") + class ApiResponse(BaseModel, Generic[T]): """ API response object @@ -16,6 +17,4 @@ 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 index 054ccd1c..e9716765 100644 --- a/koyeb/api/configuration.py +++ b/koyeb/api/configuration.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -25,9 +25,16 @@ JSON_SCHEMA_VALIDATION_KEYWORDS = { - 'multipleOf', 'maximum', 'exclusiveMaximum', - 'minimum', 'exclusiveMinimum', 'maxLength', - 'minLength', 'pattern', 'maxItems', 'minItems' + "multipleOf", + "maximum", + "exclusiveMaximum", + "minimum", + "exclusiveMinimum", + "maxLength", + "minLength", + "pattern", + "maxItems", + "minItems", } ServerVariablesT = Dict[str, str] @@ -134,85 +141,84 @@ class HostSetting(TypedDict): class Configuration: """This class contains various settings of the API client. - :param host: Base url. - :param ignore_operation_servers - Boolean to ignore operation servers for the API client. - Config will use `host` as the base url regardless of the operation servers. - :param api_key: Dict to store API key(s). - Each entry in the dict specifies an API key. - The dict key is the name of the security scheme in the OAS specification. - The dict value is the API key secret. - :param api_key_prefix: Dict to store API prefix (e.g. Bearer). - The dict key is the name of the security scheme in the OAS specification. - The dict value is an API key prefix when generating the auth data. - :param username: Username for HTTP basic authentication. - :param password: Password for HTTP basic authentication. - :param access_token: Access token. - :param server_index: Index to servers configuration. - :param server_variables: Mapping with string values to replace variables in - templated server configuration. The validation of enums is performed for - variables with defined enum values before. - :param server_operation_index: Mapping from operation ID to an index to server - configuration. - :param server_operation_variables: Mapping from operation ID to a mapping with - string values to replace variables in templated server configuration. - The validation of enums is performed for variables with defined enum - values before. - :param ssl_ca_cert: str - the path to a file of concatenated CA certificates - in PEM format. - :param retries: Number of retries for API requests. - :param ca_cert_data: verify the peer using concatenated CA certificate data - in PEM (str) or DER (bytes) format. - :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 + :param host: Base url. + :param ignore_operation_servers + Boolean to ignore operation servers for the API client. + Config will use `host` as the base url regardless of the operation servers. + :param api_key: Dict to store API key(s). + Each entry in the dict specifies an API key. + The dict key is the name of the security scheme in the OAS specification. + The dict value is the API key secret. + :param api_key_prefix: Dict to store API prefix (e.g. Bearer). + The dict key is the name of the security scheme in the OAS specification. + The dict value is an API key prefix when generating the auth data. + :param username: Username for HTTP basic authentication. + :param password: Password for HTTP basic authentication. + :param access_token: Access token. + :param server_index: Index to servers configuration. + :param server_variables: Mapping with string values to replace variables in + templated server configuration. The validation of enums is performed for + variables with defined enum values before. + :param server_operation_index: Mapping from operation ID to an index to server + configuration. + :param server_operation_variables: Mapping from operation ID to a mapping with + string values to replace variables in templated server configuration. + The validation of enums is performed for variables with defined enum + values before. + :param ssl_ca_cert: str - the path to a file of concatenated CA certificates + in PEM format. + :param retries: Number of retries for API requests. + :param ca_cert_data: verify the peer using concatenated CA certificate data + in PEM (str) or DER (bytes) format. + :param cert_file: the path to a client certificate file, for mTLS. + :param key_file: the path to a client key file, for mTLS. + + :Example: + + API Key Authentication Example. + Given the following security scheme in the OpenAPI specification: + components: + securitySchemes: + cookieAuth: # name for the security scheme + type: apiKey + in: cookie + name: JSESSIONID # cookie name + + You can programmatically set the cookie: + + conf = koyeb.api.Configuration( + api_key={'cookieAuth': 'abc123'} + api_key_prefix={'cookieAuth': 'JSESSIONID'} + ) + + The following cookie will be added to the HTTP request: + Cookie: JSESSIONID abc123 """ _default: ClassVar[Optional[Self]] = None def __init__( self, - host: Optional[str]=None, - api_key: Optional[Dict[str, str]]=None, - api_key_prefix: Optional[Dict[str, str]]=None, - username: Optional[str]=None, - password: Optional[str]=None, - access_token: Optional[str]=None, - server_index: Optional[int]=None, - server_variables: Optional[ServerVariablesT]=None, - server_operation_index: Optional[Dict[int, int]]=None, - server_operation_variables: Optional[Dict[int, ServerVariablesT]]=None, - ignore_operation_servers: bool=False, - ssl_ca_cert: Optional[str]=None, + host: Optional[str] = None, + api_key: Optional[Dict[str, str]] = None, + api_key_prefix: Optional[Dict[str, str]] = None, + username: Optional[str] = None, + password: Optional[str] = None, + access_token: Optional[str] = None, + server_index: Optional[int] = None, + server_variables: Optional[ServerVariablesT] = None, + server_operation_index: Optional[Dict[int, int]] = None, + server_operation_variables: Optional[Dict[int, ServerVariablesT]] = None, + ignore_operation_servers: bool = False, + ssl_ca_cert: Optional[str] = None, retries: Optional[int] = None, ca_cert_data: Optional[Union[str, bytes]] = None, - cert_file: Optional[str]=None, - key_file: Optional[str]=None, + cert_file: Optional[str] = None, + key_file: Optional[str] = None, *, debug: Optional[bool] = None, ) -> None: - """Constructor - """ + """Constructor""" self._base_path = "https://app.koyeb.com" if host is None else host """Default Base url """ @@ -258,7 +264,7 @@ def __init__( """ self.logger["package_logger"] = logging.getLogger("koyeb.api") self.logger["urllib3_logger"] = logging.getLogger("urllib3") - self.logger_format = '%(asctime)s %(levelname)s %(message)s' + self.logger_format = "%(asctime)s %(levelname)s %(message)s" """Log format """ self.logger_stream_handler = None @@ -317,7 +323,7 @@ def __init__( self.proxy_headers = None """Proxy headers """ - self.safe_chars_for_path_param = '' + self.safe_chars_for_path_param = "" """Safe chars for path_param """ self.retries = retries @@ -338,12 +344,12 @@ def __init__( """date format """ - def __deepcopy__(self, memo: Dict[int, Any]) -> Self: + def __deepcopy__(self, memo: Dict[int, Any]) -> Self: cls = self.__class__ result = cls.__new__(cls) memo[id(self)] = result for k, v in self.__dict__.items(): - if k not in ('logger', 'logger_file_handler'): + if k not in ("logger", "logger_file_handler"): setattr(result, k, copy.deepcopy(v, memo)) # shallow copy of loggers result.logger = copy.copy(self.logger) @@ -475,7 +481,9 @@ def logger_format(self, value: str) -> None: self.__logger_format = value self.logger_formatter = logging.Formatter(self.__logger_format) - def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> Optional[str]: + def get_api_key_with_prefix( + self, identifier: str, alias: Optional[str] = None + ) -> Optional[str]: """Gets API key (with prefix if set). :param identifier: The identifier of apiKey. @@ -484,7 +492,9 @@ def get_api_key_with_prefix(self, identifier: str, alias: Optional[str]=None) -> """ if self.refresh_api_key_hook is not None: self.refresh_api_key_hook(self) - key = self.api_key.get(identifier, self.api_key.get(alias) if alias is not None else None) + key = self.api_key.get( + identifier, self.api_key.get(alias) if alias is not None else None + ) if key: prefix = self.api_key_prefix.get(identifier) if prefix: @@ -505,23 +515,24 @@ def get_basic_auth_token(self) -> Optional[str]: password = "" if self.password is not None: password = self.password - return urllib3.util.make_headers( - basic_auth=username + ':' + password - ).get('authorization') - def auth_settings(self)-> AuthSettings: + 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', + 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 @@ -531,12 +542,13 @@ def to_debug_report(self) -> str: :return: The report for debugging. """ - return "Python SDK Debug Report:\n"\ - "OS: {env}\n"\ - "Python Version: {pyversion}\n"\ - "Version of the API: 1.0.0\n"\ - "SDK Package Version: 1.2.2".\ - format(env=sys.platform, pyversion=sys.version) + return ( + "Python SDK Debug Report:\n" + "OS: {env}\n" + "Python Version: {pyversion}\n" + "Version of the API: 1.0.0\n" + "SDK Package Version: 1.2.2".format(env=sys.platform, pyversion=sys.version) + ) def get_host_settings(self) -> List[HostSetting]: """Gets an array of host settings @@ -545,16 +557,16 @@ def get_host_settings(self) -> List[HostSetting]: """ return [ { - 'url': "https://app.koyeb.com", - 'description': "No description provided", + "url": "https://app.koyeb.com", + "description": "No description provided", } ] def get_host_from_settings( self, index: Optional[int], - variables: Optional[ServerVariablesT]=None, - servers: Optional[List[HostSetting]]=None, + variables: Optional[ServerVariablesT] = None, + servers: Optional[List[HostSetting]] = None, ) -> str: """Gets host URL based on the index and variables :param index: array index of the host settings @@ -573,22 +585,26 @@ def get_host_from_settings( except IndexError: raise ValueError( "Invalid index {0} when selecting the host settings. " - "Must be less than {1}".format(index, len(servers))) + "Must be less than {1}".format(index, len(servers)) + ) - url = server['url'] + url = server["url"] # go through variables and replace placeholders - for variable_name, variable in server.get('variables', {}).items(): - used_value = variables.get( - variable_name, variable['default_value']) - - if 'enum_values' in variable \ - and used_value not in variable['enum_values']: + for variable_name, variable in server.get("variables", {}).items(): + used_value = variables.get(variable_name, variable["default_value"]) + + if ( + "enum_values" in variable + and variable["enum_values"] + and used_value not in variable["enum_values"] + ): raise ValueError( "The variable `{0}` in the host URL has invalid value " "{1}. Must be {2}.".format( - variable_name, variables[variable_name], - variable['enum_values'])) + variable_name, variables[variable_name], variable["enum_values"] + ) + ) url = url.replace("{" + variable_name + "}", used_value) @@ -597,7 +613,9 @@ def get_host_from_settings( @property def host(self) -> str: """Return generated host.""" - return self.get_host_from_settings(self.server_index, variables=self.server_variables) + return self.get_host_from_settings( + self.server_index, variables=self.server_variables + ) @host.setter def host(self, value: str) -> None: diff --git a/koyeb/api/docs/App.md b/koyeb/api/docs/App.md index 18e9c030..3e5600d0 100644 --- a/koyeb/api/docs/App.md +++ b/koyeb/api/docs/App.md @@ -19,6 +19,7 @@ Name | Type | Description | Notes **messages** | **List[str]** | | [optional] **version** | **str** | | [optional] **domains** | [**List[Domain]**](Domain.md) | | [optional] +**life_cycle** | [**AppLifeCycle**](AppLifeCycle.md) | | [optional] ## Example diff --git a/koyeb/api/docs/AppLifeCycle.md b/koyeb/api/docs/AppLifeCycle.md new file mode 100644 index 00000000..3d7bbb1c --- /dev/null +++ b/koyeb/api/docs/AppLifeCycle.md @@ -0,0 +1,29 @@ +# AppLifeCycle + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delete_when_empty** | **bool** | | [optional] + +## Example + +```python +from koyeb.api.models.app_life_cycle import AppLifeCycle + +# TODO update the JSON string below +json = "{}" +# create an instance of AppLifeCycle from a JSON string +app_life_cycle_instance = AppLifeCycle.from_json(json) +# print the JSON string representation of the object +print(AppLifeCycle.to_json()) + +# convert the object into a dict +app_life_cycle_dict = app_life_cycle_instance.to_dict() +# create an instance of AppLifeCycle from a dict +app_life_cycle_from_dict = AppLifeCycle.from_dict(app_life_cycle_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/koyeb/api/docs/BillingApi.md b/koyeb/api/docs/BillingApi.md index 4d296c44..a57713eb 100644 --- a/koyeb/api/docs/BillingApi.md +++ b/koyeb/api/docs/BillingApi.md @@ -15,8 +15,8 @@ Method | HTTP request | Description Experimental: Has unpaid invoices WARNING: Please don't use the following method. -Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. -USE AT YOUR OWN RISK. +Koyeb doesn't guarantee backwards compatible breaking change and reserve +the right to completely drop it without notice. USE AT YOUR OWN RISK. ### Example @@ -176,8 +176,8 @@ This endpoint does not need any parameter. Experimental: Fetch next invoice WARNING: Please don't use the following method. -Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. -USE AT YOUR OWN RISK. +Koyeb doesn't guarantee backwards compatible breaking change and reserve +the right to completely drop it without notice. USE AT YOUR OWN RISK. ### Example diff --git a/koyeb/api/docs/CreateApp.md b/koyeb/api/docs/CreateApp.md index 550756b2..cf0ed00f 100644 --- a/koyeb/api/docs/CreateApp.md +++ b/koyeb/api/docs/CreateApp.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] +**life_cycle** | [**AppLifeCycle**](AppLifeCycle.md) | | [optional] ## Example diff --git a/koyeb/api/docs/CreateService.md b/koyeb/api/docs/CreateService.md index 5f34c5f3..d803ca03 100644 --- a/koyeb/api/docs/CreateService.md +++ b/koyeb/api/docs/CreateService.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **app_id** | **str** | | [optional] **definition** | [**DeploymentDefinition**](DeploymentDefinition.md) | | [optional] +**life_cycle** | [**ServiceLifeCycle**](ServiceLifeCycle.md) | | [optional] ## Example diff --git a/koyeb/api/docs/OrganizationApi.md b/koyeb/api/docs/OrganizationApi.md index fd344863..3c966511 100644 --- a/koyeb/api/docs/OrganizationApi.md +++ b/koyeb/api/docs/OrganizationApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**update_budget**](OrganizationApi.md#update_budget) | **PUT** /v1/organizations/{organization_id}/budget | Update Budget [**update_organization**](OrganizationApi.md#update_organization) | **PUT** /v1/organizations/{id} | Update Organization [**update_organization2**](OrganizationApi.md#update_organization2) | **PATCH** /v1/organizations/{id} | Update Organization +[**update_organization_name**](OrganizationApi.md#update_organization_name) | **PUT** /v1/organizations/{id}/name | Update Organization [**update_organization_plan**](OrganizationApi.md#update_organization_plan) | **POST** /v1/organizations/{id}/plan | Update Organization plan [**upsert_signup_qualification**](OrganizationApi.md#upsert_signup_qualification) | **POST** /v1/organizations/{id}/signup_qualification | Upsert Organization's signup qualification @@ -36,7 +37,8 @@ said organization. It's possible to specify a validity for the token, which defaults to 1h and must be no more than 24h. The format is `s`, where `` is a floating point in seconds (so `123.456789012s` means 123 seconds and -456789012 nanoseconds). See: https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration.html. +456789012 nanoseconds). See: +https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration.html. ### Example @@ -1409,6 +1411,93 @@ 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_organization_name** +> UpdateOrganizationNameReply update_organization_name(id, body) + +Update Organization + +### Example + +* Api Key Authentication (Bearer): + +```python +import koyeb.api +from koyeb.api.models.update_organization_name_reply import UpdateOrganizationNameReply +from koyeb.api.models.update_organization_name_request import UpdateOrganizationNameRequest +from koyeb.api.rest import ApiException +from pprint import pprint + +# Defining 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.OrganizationApi(api_client) + id = 'id_example' # str | + body = koyeb.api.UpdateOrganizationNameRequest() # UpdateOrganizationNameRequest | + + try: + # Update Organization + api_response = api_instance.update_organization_name(id, body) + print("The response of OrganizationApi->update_organization_name:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling OrganizationApi->update_organization_name: %s\n" % e) +``` + + + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **str**| | + **body** | [**UpdateOrganizationNameRequest**](UpdateOrganizationNameRequest.md)| | + +### Return type + +[**UpdateOrganizationNameReply**](UpdateOrganizationNameReply.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_organization_plan** > UpdateOrganizationPlanReply update_organization_plan(id, body) diff --git a/koyeb/api/docs/OrganizationMember.md b/koyeb/api/docs/OrganizationMember.md index 17c5f445..caa44b6f 100644 --- a/koyeb/api/docs/OrganizationMember.md +++ b/koyeb/api/docs/OrganizationMember.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **id** | **str** | | [optional] **organization_id** | **str** | | [optional] **user_id** | **str** | | [optional] +**external_id** | **str** | | [optional] **joined_at** | **datetime** | | [optional] **role** | [**UserRoleRole**](UserRoleRole.md) | | [optional] [default to UserRoleRole.INVALID] **status** | [**OrganizationMemberStatus**](OrganizationMemberStatus.md) | | [optional] [default to OrganizationMemberStatus.INVALID] diff --git a/koyeb/api/docs/ProfileApi.md b/koyeb/api/docs/ProfileApi.md index 49aa4d4a..937a250e 100644 --- a/koyeb/api/docs/ProfileApi.md +++ b/koyeb/api/docs/ProfileApi.md @@ -366,7 +366,7 @@ This endpoint does not need any parameter. [[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) # **get_current_user** -> UserReply get_current_user() +> UserReply get_current_user(seon_fp=seon_fp) Get Current User @@ -401,10 +401,11 @@ configuration.api_key['Bearer'] = os.environ["API_KEY"] with koyeb.api.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = koyeb.api.ProfileApi(api_client) + seon_fp = 'seon_fp_example' # str | Seon Fingerprint (optional) try: # Get Current User - api_response = api_instance.get_current_user() + api_response = api_instance.get_current_user(seon_fp=seon_fp) print("The response of ProfileApi->get_current_user:\n") pprint(api_response) except Exception as e: @@ -415,7 +416,10 @@ with koyeb.api.ApiClient(configuration) as api_client: ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **seon_fp** | **str**| Seon Fingerprint | [optional] ### Return type diff --git a/koyeb/api/docs/PublicOrganization.md b/koyeb/api/docs/PublicOrganization.md index b0276497..7da8955f 100644 --- a/koyeb/api/docs/PublicOrganization.md +++ b/koyeb/api/docs/PublicOrganization.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **name** | **str** | | [optional] **plan** | [**Plan**](Plan.md) | | [optional] [default to Plan.HOBBY] **status** | [**OrganizationStatus**](OrganizationStatus.md) | | [optional] [default to OrganizationStatus.WARNING] +**external_id** | **str** | | [optional] ## Example diff --git a/koyeb/api/docs/RegionalDeploymentDefinitionType.md b/koyeb/api/docs/RegionalDeploymentDefinitionType.md index 54dc149e..edc19805 100644 --- a/koyeb/api/docs/RegionalDeploymentDefinitionType.md +++ b/koyeb/api/docs/RegionalDeploymentDefinitionType.md @@ -9,6 +9,8 @@ * `WORKER` (value: `'WORKER'`) +* `UNDERSCORE` (value: `'_'`) + * `SANDBOX` (value: `'SANDBOX'`) [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/koyeb/api/docs/Service.md b/koyeb/api/docs/Service.md index 98aa46ad..1550a064 100644 --- a/koyeb/api/docs/Service.md +++ b/koyeb/api/docs/Service.md @@ -24,6 +24,7 @@ Name | Type | Description | Notes **latest_deployment_id** | **str** | | [optional] **last_provisioned_deployment_id** | **str** | | [optional] **state** | [**ServiceState**](ServiceState.md) | | [optional] +**life_cycle** | [**ServiceLifeCycle**](ServiceLifeCycle.md) | | [optional] ## Example diff --git a/koyeb/api/docs/ServiceLifeCycle.md b/koyeb/api/docs/ServiceLifeCycle.md new file mode 100644 index 00000000..af015edb --- /dev/null +++ b/koyeb/api/docs/ServiceLifeCycle.md @@ -0,0 +1,30 @@ +# ServiceLifeCycle + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**delete_after_sleep** | **int** | | [optional] +**delete_after_create** | **int** | | [optional] + +## Example + +```python +from koyeb.api.models.service_life_cycle import ServiceLifeCycle + +# TODO update the JSON string below +json = "{}" +# create an instance of ServiceLifeCycle from a JSON string +service_life_cycle_instance = ServiceLifeCycle.from_json(json) +# print the JSON string representation of the object +print(ServiceLifeCycle.to_json()) + +# convert the object into a dict +service_life_cycle_dict = service_life_cycle_instance.to_dict() +# create an instance of ServiceLifeCycle from a dict +service_life_cycle_from_dict = ServiceLifeCycle.from_dict(service_life_cycle_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/koyeb/api/docs/ServicesApi.md b/koyeb/api/docs/ServicesApi.md index 1d10d33b..123d9854 100644 --- a/koyeb/api/docs/ServicesApi.md +++ b/koyeb/api/docs/ServicesApi.md @@ -814,7 +814,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) # **update_service** -> UpdateServiceReply update_service(id, service, dry_run=dry_run) +> UpdateServiceReply update_service(id, service, dry_run=dry_run, life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, life_cycle_delete_after_create=life_cycle_delete_after_create) Update Service @@ -853,10 +853,12 @@ with koyeb.api.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the entity to update service = koyeb.api.UpdateService() # UpdateService | dry_run = True # bool | If set, run validation and check that the service exists (optional) + life_cycle_delete_after_sleep = 56 # int | (optional) + life_cycle_delete_after_create = 56 # int | (optional) try: # Update Service - api_response = api_instance.update_service(id, service, dry_run=dry_run) + api_response = api_instance.update_service(id, service, dry_run=dry_run, life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, life_cycle_delete_after_create=life_cycle_delete_after_create) print("The response of ServicesApi->update_service:\n") pprint(api_response) except Exception as e: @@ -873,6 +875,8 @@ Name | Type | Description | Notes **id** | **str**| The id of the entity to update | **service** | [**UpdateService**](UpdateService.md)| | **dry_run** | **bool**| If set, run validation and check that the service exists | [optional] + **life_cycle_delete_after_sleep** | **int**| | [optional] + **life_cycle_delete_after_create** | **int**| | [optional] ### Return type @@ -903,7 +907,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) # **update_service2** -> UpdateServiceReply update_service2(id, service, dry_run=dry_run) +> UpdateServiceReply update_service2(id, service, dry_run=dry_run, life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, life_cycle_delete_after_create=life_cycle_delete_after_create) Update Service @@ -942,10 +946,12 @@ with koyeb.api.ApiClient(configuration) as api_client: id = 'id_example' # str | The id of the entity to update service = koyeb.api.UpdateService() # UpdateService | dry_run = True # bool | If set, run validation and check that the service exists (optional) + life_cycle_delete_after_sleep = 56 # int | (optional) + life_cycle_delete_after_create = 56 # int | (optional) try: # Update Service - api_response = api_instance.update_service2(id, service, dry_run=dry_run) + api_response = api_instance.update_service2(id, service, dry_run=dry_run, life_cycle_delete_after_sleep=life_cycle_delete_after_sleep, life_cycle_delete_after_create=life_cycle_delete_after_create) print("The response of ServicesApi->update_service2:\n") pprint(api_response) except Exception as e: @@ -962,6 +968,8 @@ Name | Type | Description | Notes **id** | **str**| The id of the entity to update | **service** | [**UpdateService**](UpdateService.md)| | **dry_run** | **bool**| If set, run validation and check that the service exists | [optional] + **life_cycle_delete_after_sleep** | **int**| | [optional] + **life_cycle_delete_after_create** | **int**| | [optional] ### Return type diff --git a/koyeb/api/docs/UpdateApp.md b/koyeb/api/docs/UpdateApp.md index f81d68bb..55666050 100644 --- a/koyeb/api/docs/UpdateApp.md +++ b/koyeb/api/docs/UpdateApp.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | | [optional] +**life_cycle** | [**AppLifeCycle**](AppLifeCycle.md) | | [optional] ## Example diff --git a/koyeb/api/docs/UpdateOrganizationNameReply.md b/koyeb/api/docs/UpdateOrganizationNameReply.md new file mode 100644 index 00000000..8e51d77b --- /dev/null +++ b/koyeb/api/docs/UpdateOrganizationNameReply.md @@ -0,0 +1,29 @@ +# UpdateOrganizationNameReply + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**organization** | [**Organization**](Organization.md) | | [optional] + +## Example + +```python +from koyeb.api.models.update_organization_name_reply import UpdateOrganizationNameReply + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateOrganizationNameReply from a JSON string +update_organization_name_reply_instance = UpdateOrganizationNameReply.from_json(json) +# print the JSON string representation of the object +print(UpdateOrganizationNameReply.to_json()) + +# convert the object into a dict +update_organization_name_reply_dict = update_organization_name_reply_instance.to_dict() +# create an instance of UpdateOrganizationNameReply from a dict +update_organization_name_reply_from_dict = UpdateOrganizationNameReply.from_dict(update_organization_name_reply_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/koyeb/api/docs/UpdateOrganizationNameRequest.md b/koyeb/api/docs/UpdateOrganizationNameRequest.md new file mode 100644 index 00000000..b268ab92 --- /dev/null +++ b/koyeb/api/docs/UpdateOrganizationNameRequest.md @@ -0,0 +1,29 @@ +# UpdateOrganizationNameRequest + + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | | [optional] + +## Example + +```python +from koyeb.api.models.update_organization_name_request import UpdateOrganizationNameRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateOrganizationNameRequest from a JSON string +update_organization_name_request_instance = UpdateOrganizationNameRequest.from_json(json) +# print the JSON string representation of the object +print(UpdateOrganizationNameRequest.to_json()) + +# convert the object into a dict +update_organization_name_request_dict = update_organization_name_request_instance.to_dict() +# create an instance of UpdateOrganizationNameRequest from a dict +update_organization_name_request_from_dict = UpdateOrganizationNameRequest.from_dict(update_organization_name_request_dict) +``` +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/koyeb/api/docs/UpdateService.md b/koyeb/api/docs/UpdateService.md index 05657ab1..f8183f40 100644 --- a/koyeb/api/docs/UpdateService.md +++ b/koyeb/api/docs/UpdateService.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **metadata** | [**DeploymentMetadata**](DeploymentMetadata.md) | | [optional] **skip_build** | **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] **save_only** | **bool** | | [optional] +**life_cycle** | [**ServiceLifeCycle**](ServiceLifeCycle.md) | | [optional] ## Example diff --git a/koyeb/api/exceptions.py b/koyeb/api/exceptions.py index beb60ca4..a2d85cf1 100644 --- a/koyeb/api/exceptions.py +++ b/koyeb/api/exceptions.py @@ -1,27 +1,29 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.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 @@ -104,9 +106,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, @@ -125,17 +127,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() + self.headers = http_resp.headers @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: @@ -155,7 +157,9 @@ 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) @@ -163,14 +167,15 @@ 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) + if self.body: + error_message += "HTTP response body: {0}\n".format(self.body) + + if self.data: + error_message += "HTTP response data: {0}\n".format(self.data) return error_message @@ -197,11 +202,13 @@ class ServiceException(ApiException): class ConflictException(ApiException): """Exception for HTTP 409 Conflict.""" + pass class UnprocessableEntityException(ApiException): """Exception for HTTP 422 Unprocessable Entity.""" + pass diff --git a/koyeb/api/models/__init__.py b/koyeb/api/models/__init__.py index b8c02b51..087d0502 100644 --- a/koyeb/api/models/__init__.py +++ b/koyeb/api/models/__init__.py @@ -2,23 +2,26 @@ # flake8: noqa """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +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.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_life_cycle import AppLifeCycle 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 @@ -31,7 +34,9 @@ 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.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 @@ -39,10 +44,14 @@ 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.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.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 @@ -56,13 +65,21 @@ 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_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_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_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 @@ -79,10 +96,14 @@ 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.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.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 @@ -97,37 +118,65 @@ 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_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_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_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.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_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 @@ -143,15 +192,21 @@ 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.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_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 @@ -160,10 +215,14 @@ 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_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_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 @@ -174,7 +233,9 @@ 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_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 @@ -199,10 +260,14 @@ 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_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_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 @@ -223,20 +288,32 @@ 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_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_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_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_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 @@ -247,13 +324,21 @@ 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_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_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 @@ -264,7 +349,9 @@ 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_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 @@ -276,7 +363,9 @@ 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_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 @@ -299,18 +388,28 @@ 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_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.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.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 @@ -320,6 +419,7 @@ 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_life_cycle import ServiceLifeCycle 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 @@ -329,19 +429,31 @@ 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_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_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.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 @@ -349,22 +461,36 @@ 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_name_reply import UpdateOrganizationNameReply +from koyeb.api.models.update_organization_name_request import ( + UpdateOrganizationNameRequest, +) 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_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_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_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.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 @@ -373,5 +499,6 @@ 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 - +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 index b1f48036..251bacea 100644 --- a/koyeb/api/models/accept_organization_invitation_reply.py +++ b/koyeb/api/models/accept_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class AcceptOrganizationInvitationReply(BaseModel): """ AcceptOrganizationInvitationReply - """ # noqa: E501 + """ # noqa: E501 + invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -36,7 +38,6 @@ class AcceptOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/action.py b/koyeb/api/models/action.py index 2c83db3f..e0131ae6 100644 --- a/koyeb/api/models/action.py +++ b/koyeb/api/models/action.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,11 @@ class Action(str, Enum): """ allowed enum values """ - SIGNIN = 'signin' - SIGNUP = 'signup' - REGISTER = 'register' + SIGNIN = "signin" + SIGNUP = "signup" + REGISTER = "register" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of Action from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/activity.py b/koyeb/api/models/activity.py index d3edacb8..6a67e010 100644 --- a/koyeb/api/models/activity.py +++ b/koyeb/api/models/activity.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,17 +24,26 @@ from typing import Optional, Set from typing_extensions import Self + class Activity(BaseModel): """ Activity - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None actor: Optional[Object] = None object: Optional[Object] = None verb: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None created_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "actor", "object", "verb", "metadata", "created_at"] + __properties: ClassVar[List[str]] = [ + "id", + "actor", + "object", + "verb", + "metadata", + "created_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +51,6 @@ class Activity(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +75,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -77,10 +84,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of actor if self.actor: - _dict['actor'] = self.actor.to_dict() + _dict["actor"] = self.actor.to_dict() # override the default output from pydantic by calling `to_dict()` of object if self.object: - _dict['object'] = self.object.to_dict() + _dict["object"] = self.object.to_dict() return _dict @classmethod @@ -92,14 +99,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "actor": Object.from_dict(obj["actor"]) if obj.get("actor") is not None else None, - "object": Object.from_dict(obj["object"]) if obj.get("object") is not None else None, - "verb": obj.get("verb"), - "metadata": obj.get("metadata"), - "created_at": obj.get("created_at") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "actor": ( + Object.from_dict(obj["actor"]) + if obj.get("actor") is not None + else None + ), + "object": ( + Object.from_dict(obj["object"]) + if obj.get("object") is not None + else None + ), + "verb": obj.get("verb"), + "metadata": obj.get("metadata"), + "created_at": obj.get("created_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/activity_list.py b/koyeb/api/models/activity_list.py index db8df01a..fe0d1582 100644 --- a/koyeb/api/models/activity_list.py +++ b/koyeb/api/models/activity_list.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ActivityList(BaseModel): """ ActivityList - """ # noqa: E501 + """ # noqa: E501 + activities: Optional[List[Activity]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ActivityList(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_activities in self.activities: if _item_activities: _items.append(_item_activities.to_dict()) - _dict['activities'] = _items + _dict["activities"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "activities": [Activity.from_dict(_item) for _item in obj["activities"]] if obj.get("activities") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "activities": ( + [Activity.from_dict(_item) for _item in obj["activities"]] + if obj.get("activities") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/app.py b/koyeb/api/models/app.py index 5772aeed..34ca7b05 100644 --- a/koyeb/api/models/app.py +++ b/koyeb/api/models/app.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,15 +20,18 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.app_life_cycle import AppLifeCycle from koyeb.api.models.app_status import AppStatus from koyeb.api.models.domain import Domain from typing import Optional, Set from typing_extensions import Self + class App(BaseModel): """ App - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None @@ -43,7 +46,24 @@ class App(BaseModel): messages: Optional[List[StrictStr]] = None version: Optional[StrictStr] = None domains: Optional[List[Domain]] = None - __properties: ClassVar[List[str]] = ["id", "name", "organization_id", "created_at", "updated_at", "started_at", "succeeded_at", "paused_at", "resumed_at", "terminated_at", "status", "messages", "version", "domains"] + life_cycle: Optional[AppLifeCycle] = 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", + "life_cycle", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +71,6 @@ class App(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,8 +95,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -90,7 +108,10 @@ 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 + # override the default output from pydantic by calling `to_dict()` of life_cycle + if self.life_cycle: + _dict["life_cycle"] = self.life_cycle.to_dict() return _dict @classmethod @@ -102,22 +123,35 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "organization_id": obj.get("organization_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "paused_at": obj.get("paused_at"), - "resumed_at": obj.get("resumed_at"), - "terminated_at": obj.get("terminated_at"), - "status": obj.get("status") if obj.get("status") is not None else AppStatus.STARTING, - "messages": obj.get("messages"), - "version": obj.get("version"), - "domains": [Domain.from_dict(_item) for _item in obj["domains"]] if obj.get("domains") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "organization_id": obj.get("organization_id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "paused_at": obj.get("paused_at"), + "resumed_at": obj.get("resumed_at"), + "terminated_at": obj.get("terminated_at"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else AppStatus.STARTING + ), + "messages": obj.get("messages"), + "version": obj.get("version"), + "domains": ( + [Domain.from_dict(_item) for _item in obj["domains"]] + if obj.get("domains") is not None + else None + ), + "life_cycle": ( + AppLifeCycle.from_dict(obj["life_cycle"]) + if obj.get("life_cycle") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/app_event.py b/koyeb/api/models/app_event.py index 5c8dc0fb..6e8108f6 100644 --- a/koyeb/api/models/app_event.py +++ b/koyeb/api/models/app_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class AppEvent(BaseModel): """ AppEvent - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -34,7 +36,15 @@ class AppEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "app_id", "type", "message", "metadata"] + __properties: ClassVar[List[str]] = [ + "id", + "when", + "organization_id", + "app_id", + "type", + "message", + "metadata", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +52,6 @@ class AppEvent(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,15 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata"), + } + ) return _obj - - diff --git a/koyeb/api/models/app_life_cycle.py b/koyeb/api/models/app_life_cycle.py new file mode 100644 index 00000000..d4f8966f --- /dev/null +++ b/koyeb/api/models/app_life_cycle.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 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from pydantic import BaseModel, ConfigDict, StrictBool +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + + +class AppLifeCycle(BaseModel): + """ + AppLifeCycle + """ # noqa: E501 + + delete_when_empty: Optional[StrictBool] = None + __properties: ClassVar[List[str]] = ["delete_when_empty"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of AppLifeCycle from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other 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 AppLifeCycle from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate({"delete_when_empty": obj.get("delete_when_empty")}) + return _obj diff --git a/koyeb/api/models/app_list_item.py b/koyeb/api/models/app_list_item.py index a7b4cb8e..e274bed1 100644 --- a/koyeb/api/models/app_list_item.py +++ b/koyeb/api/models/app_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -25,10 +25,12 @@ from typing import Optional, Set from typing_extensions import Self + class AppListItem(BaseModel): """ AppListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None @@ -37,7 +39,16 @@ class AppListItem(BaseModel): domains: Optional[List[Domain]] = None status: Optional[AppStatus] = AppStatus.STARTING messages: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id", "name", "organization_id", "updated_at", "created_at", "domains", "status", "messages"] + __properties: ClassVar[List[str]] = [ + "id", + "name", + "organization_id", + "updated_at", + "created_at", + "domains", + "status", + "messages", + ] model_config = ConfigDict( populate_by_name=True, @@ -45,7 +56,6 @@ class AppListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -70,8 +80,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,7 +93,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 @@ -96,16 +105,24 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "organization_id": obj.get("organization_id"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "domains": [Domain.from_dict(_item) for _item in obj["domains"]] if obj.get("domains") is not None else None, - "status": obj.get("status") if obj.get("status") is not None else AppStatus.STARTING, - "messages": obj.get("messages") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "organization_id": obj.get("organization_id"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "domains": ( + [Domain.from_dict(_item) for _item in obj["domains"]] + if obj.get("domains") is not None + else None + ), + "status": ( + obj.get("status") + if obj.get("status") is not None + else AppStatus.STARTING + ), + "messages": obj.get("messages"), + } + ) return _obj - - diff --git a/koyeb/api/models/app_status.py b/koyeb/api/models/app_status.py index 3135ab25..d2c01e49 100644 --- a/koyeb/api/models/app_status.py +++ b/koyeb/api/models/app_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,19 +26,17 @@ class AppStatus(str, Enum): """ allowed enum values """ - STARTING = 'STARTING' - HEALTHY = 'HEALTHY' - DEGRADED = 'DEGRADED' - UNHEALTHY = 'UNHEALTHY' - DELETING = 'DELETING' - DELETED = 'DELETED' - PAUSING = 'PAUSING' - PAUSED = 'PAUSED' - RESUMING = 'RESUMING' + 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 index f921e893..91b1eac0 100644 --- a/koyeb/api/models/app_usage.py +++ b/koyeb/api/models/app_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class AppUsage(BaseModel): """ AppUsage - """ # noqa: E501 + """ # noqa: E501 + app_id: Optional[StrictStr] = None app_name: Optional[StrictStr] = None services: Optional[List[ServiceUsage]] = None @@ -40,7 +42,6 @@ class AppUsage(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +66,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -79,14 +79,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict['services'] = _items + _dict["services"] = _items # override the default output from pydantic by calling `to_dict()` of each item in databases (list) _items = [] if self.databases: for _item_databases in self.databases: if _item_databases: _items.append(_item_databases.to_dict()) - _dict['databases'] = _items + _dict["databases"] = _items return _dict @classmethod @@ -98,12 +98,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "app_id": obj.get("app_id"), - "app_name": obj.get("app_name"), - "services": [ServiceUsage.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None, - "databases": [DatabaseUsage.from_dict(_item) for _item in obj["databases"]] if obj.get("databases") is not None else None - }) + _obj = cls.model_validate( + { + "app_id": obj.get("app_id"), + "app_name": obj.get("app_name"), + "services": ( + [ServiceUsage.from_dict(_item) for _item in obj["services"]] + if obj.get("services") is not None + else None + ), + "databases": ( + [DatabaseUsage.from_dict(_item) for _item in obj["databases"]] + if obj.get("databases") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/apps_summary.py b/koyeb/api/models/apps_summary.py index ba230f96..b8d9d482 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 1da38bae..f46cb023 100644 --- a/koyeb/api/models/archive.py +++ b/koyeb/api/models/archive.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,17 +23,41 @@ from typing import Optional, Set from typing_extensions import Self + class Archive(BaseModel): """ Archive - """ # noqa: E501 - id: Optional[StrictStr] = Field(default=None, description="The archive id, that can be referenced when creating or updating a service.") - organization_id: Optional[StrictStr] = Field(default=None, description="Organization owning the archive.") - upload_url: Optional[StrictStr] = Field(default=None, description="The URL where to upload the archive. This URL is signed and can only be used to upload the archive until `valid_until`.") - size: Optional[StrictStr] = Field(default=None, description="The provisioned space for the archive.") - created_at: Optional[datetime] = Field(default=None, description="Date of creation of the archive.") - deleted_at: Optional[datetime] = Field(default=None, description="This field is automatically set by Koyeb when the archive is garbage collected.") - __properties: ClassVar[List[str]] = ["id", "organization_id", "upload_url", "size", "created_at", "deleted_at"] + """ # noqa: E501 + + id: Optional[StrictStr] = Field( + default=None, + description="The archive id, that can be referenced when creating or updating a service.", + ) + organization_id: Optional[StrictStr] = Field( + default=None, description="Organization owning the archive." + ) + upload_url: Optional[StrictStr] = Field( + default=None, + description="The URL where to upload the archive. This URL is signed and can only be used to upload the archive until `valid_until`.", + ) + size: Optional[StrictStr] = Field( + default=None, description="The provisioned space for the archive." + ) + created_at: Optional[datetime] = Field( + default=None, description="Date of creation of the archive." + ) + deleted_at: Optional[datetime] = Field( + default=None, + description="This field is automatically set by Koyeb when the archive is garbage collected.", + ) + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "upload_url", + "size", + "created_at", + "deleted_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +65,6 @@ class Archive(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +89,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -85,14 +107,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "upload_url": obj.get("upload_url"), - "size": obj.get("size"), - "created_at": obj.get("created_at"), - "deleted_at": obj.get("deleted_at") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "upload_url": obj.get("upload_url"), + "size": obj.get("size"), + "created_at": obj.get("created_at"), + "deleted_at": obj.get("deleted_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/archive_deployment_metadata.py b/koyeb/api/models/archive_deployment_metadata.py index a32752ff..4e0fd41f 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,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({ - "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 index bee9a97b..2d5f29c9 100644 --- a/koyeb/api/models/archive_source.py +++ b/koyeb/api/models/archive_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class ArchiveSource(BaseModel): """ ArchiveSource - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None buildpack: Optional[BuildpackBuilder] = None docker: Optional[DockerBuilder] = None @@ -39,7 +41,6 @@ class ArchiveSource(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -74,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of buildpack if self.buildpack: - _dict['buildpack'] = self.buildpack.to_dict() + _dict["buildpack"] = self.buildpack.to_dict() # override the default output from pydantic by calling `to_dict()` of docker if self.docker: - _dict['docker'] = self.docker.to_dict() + _dict["docker"] = self.docker.to_dict() return _dict @classmethod @@ -89,11 +89,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "buildpack": BuildpackBuilder.from_dict(obj["buildpack"]) if obj.get("buildpack") is not None else None, - "docker": DockerBuilder.from_dict(obj["docker"]) if obj.get("docker") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "buildpack": ( + BuildpackBuilder.from_dict(obj["buildpack"]) + if obj.get("buildpack") is not None + else None + ), + "docker": ( + DockerBuilder.from_dict(obj["docker"]) + if obj.get("docker") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/auto_release.py b/koyeb/api/models/auto_release.py index 5fdc930e..6ae5cef9 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +87,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({ - "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/api/models/auto_release_group.py b/koyeb/api/models/auto_release_group.py index cf9a1cf7..357dc05c 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/autocomplete_reply.py b/koyeb/api/models/autocomplete_reply.py index c3571910..f97bb9e8 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 952027b7..2cddb407 100644 --- a/koyeb/api/models/autocomplete_request.py +++ b/koyeb/api/models/autocomplete_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class AutocompleteRequest(BaseModel): """ AutocompleteRequest - """ # noqa: E501 + """ # noqa: E501 + definition: Optional[DeploymentDefinition] = None __properties: ClassVar[List[str]] = ["definition"] @@ -36,7 +38,6 @@ class AutocompleteRequest(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict['definition'] = self.definition.to_dict() + _dict["definition"] = self.definition.to_dict() return _dict @classmethod @@ -83,9 +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({ - "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None - }) + _obj = cls.model_validate( + { + "definition": ( + DeploymentDefinition.from_dict(obj["definition"]) + if obj.get("definition") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/availability_level.py b/koyeb/api/models/availability_level.py index b3af7346..3c84a955 100644 --- a/koyeb/api/models/availability_level.py +++ b/koyeb/api/models/availability_level.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,12 @@ class AvailabilityLevel(str, Enum): """ allowed enum values """ - UNKNOWN = 'UNKNOWN' - LOW = 'LOW' - MEDIUM = 'MEDIUM' - HIGH = 'HIGH' + UNKNOWN = "UNKNOWN" + LOW = "LOW" + MEDIUM = "MEDIUM" + HIGH = "HIGH" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of AvailabilityLevel from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/azure_container_registry_configuration.py b/koyeb/api/models/azure_container_registry_configuration.py index 4472ad70..bf23e924 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/budget.py b/koyeb/api/models/budget.py index 3f0c25a6..e25c00f1 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/buildpack_builder.py b/koyeb/api/models/buildpack_builder.py index cd2483e8..237340cc 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/canny_auth_reply.py b/koyeb/api/models/canny_auth_reply.py index 80454583..56ca275a 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/catalog_gpu_details.py b/koyeb/api/models/catalog_gpu_details.py index dbe27926..687d11b1 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 1ebe10ad..60b0df0f 100644 --- a/koyeb/api/models/catalog_instance.py +++ b/koyeb/api/models/catalog_instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -17,19 +17,32 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ( + BaseModel, + ConfigDict, + Field, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, +) from typing import Any, ClassVar, Dict, List, Optional, Union from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails from typing import Optional, Set from typing_extensions import Self + class CatalogInstance(BaseModel): """ CatalogInstance - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None description: Optional[StrictStr] = None - vcpu: Optional[StrictInt] = Field(default=None, description="The number of cpus. Deprecated. Use vcpu_shares instead.") + vcpu: Optional[StrictInt] = Field( + default=None, + description="The number of cpus. Deprecated. Use vcpu_shares instead.", + ) memory: Optional[StrictStr] = None disk: Optional[StrictStr] = None price_per_second: Optional[StrictStr] = None @@ -38,7 +51,9 @@ class CatalogInstance(BaseModel): regions: Optional[List[StrictStr]] = None status: Optional[StrictStr] = None require_plan: Optional[List[StrictStr]] = None - vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of vcpu shares reserved for the instance.") + vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="The number of vcpu shares reserved for the instance." + ) display_name: Optional[StrictStr] = None aliases: Optional[List[StrictStr]] = None type: Optional[StrictStr] = None @@ -46,7 +61,27 @@ class CatalogInstance(BaseModel): service_types: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None light_sleep_enabled: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["id", "description", "vcpu", "memory", "disk", "price_per_second", "price_hourly", "price_monthly", "regions", "status", "require_plan", "vcpu_shares", "display_name", "aliases", "type", "gpu", "service_types", "volumes_enabled", "light_sleep_enabled"] + __properties: ClassVar[List[str]] = [ + "id", + "description", + "vcpu", + "memory", + "disk", + "price_per_second", + "price_hourly", + "price_monthly", + "regions", + "status", + "require_plan", + "vcpu_shares", + "display_name", + "aliases", + "type", + "gpu", + "service_types", + "volumes_enabled", + "light_sleep_enabled", + ] model_config = ConfigDict( populate_by_name=True, @@ -54,7 +89,6 @@ class CatalogInstance(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -79,8 +113,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -89,7 +122,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of gpu if self.gpu: - _dict['gpu'] = self.gpu.to_dict() + _dict["gpu"] = self.gpu.to_dict() return _dict @classmethod @@ -101,27 +134,31 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "description": obj.get("description"), - "vcpu": obj.get("vcpu"), - "memory": obj.get("memory"), - "disk": obj.get("disk"), - "price_per_second": obj.get("price_per_second"), - "price_hourly": obj.get("price_hourly"), - "price_monthly": obj.get("price_monthly"), - "regions": obj.get("regions"), - "status": obj.get("status"), - "require_plan": obj.get("require_plan"), - "vcpu_shares": obj.get("vcpu_shares"), - "display_name": obj.get("display_name"), - "aliases": obj.get("aliases"), - "type": obj.get("type"), - "gpu": CatalogGPUDetails.from_dict(obj["gpu"]) if obj.get("gpu") is not None else None, - "service_types": obj.get("service_types"), - "volumes_enabled": obj.get("volumes_enabled"), - "light_sleep_enabled": obj.get("light_sleep_enabled") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "description": obj.get("description"), + "vcpu": obj.get("vcpu"), + "memory": obj.get("memory"), + "disk": obj.get("disk"), + "price_per_second": obj.get("price_per_second"), + "price_hourly": obj.get("price_hourly"), + "price_monthly": obj.get("price_monthly"), + "regions": obj.get("regions"), + "status": obj.get("status"), + "require_plan": obj.get("require_plan"), + "vcpu_shares": obj.get("vcpu_shares"), + "display_name": obj.get("display_name"), + "aliases": obj.get("aliases"), + "type": obj.get("type"), + "gpu": ( + CatalogGPUDetails.from_dict(obj["gpu"]) + if obj.get("gpu") is not None + else None + ), + "service_types": obj.get("service_types"), + "volumes_enabled": obj.get("volumes_enabled"), + "light_sleep_enabled": obj.get("light_sleep_enabled"), + } + ) return _obj - - diff --git a/koyeb/api/models/catalog_instance_list_item.py b/koyeb/api/models/catalog_instance_list_item.py index 45fb4829..14670e96 100644 --- a/koyeb/api/models/catalog_instance_list_item.py +++ b/koyeb/api/models/catalog_instance_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -17,19 +17,32 @@ import re # noqa: F401 import json -from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ( + BaseModel, + ConfigDict, + Field, + StrictBool, + StrictFloat, + StrictInt, + StrictStr, +) from typing import Any, ClassVar, Dict, List, Optional, Union from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails from typing import Optional, Set from typing_extensions import Self + class CatalogInstanceListItem(BaseModel): """ CatalogInstanceListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None description: Optional[StrictStr] = None - vcpu: Optional[StrictInt] = Field(default=None, description="The number of cpus. Deprecated. Use vcpu_shares instead.") + vcpu: Optional[StrictInt] = Field( + default=None, + description="The number of cpus. Deprecated. Use vcpu_shares instead.", + ) memory: Optional[StrictStr] = None disk: Optional[StrictStr] = None price_per_second: Optional[StrictStr] = None @@ -38,7 +51,9 @@ class CatalogInstanceListItem(BaseModel): regions: Optional[List[StrictStr]] = None status: Optional[StrictStr] = None require_plan: Optional[List[StrictStr]] = None - vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The number of vcpu shares reserved for the instance.") + vcpu_shares: Optional[Union[StrictFloat, StrictInt]] = Field( + default=None, description="The number of vcpu shares reserved for the instance." + ) display_name: Optional[StrictStr] = None aliases: Optional[List[StrictStr]] = None type: Optional[StrictStr] = None @@ -46,7 +61,27 @@ class CatalogInstanceListItem(BaseModel): service_types: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None light_sleep_enabled: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["id", "description", "vcpu", "memory", "disk", "price_per_second", "price_hourly", "price_monthly", "regions", "status", "require_plan", "vcpu_shares", "display_name", "aliases", "type", "gpu", "service_types", "volumes_enabled", "light_sleep_enabled"] + __properties: ClassVar[List[str]] = [ + "id", + "description", + "vcpu", + "memory", + "disk", + "price_per_second", + "price_hourly", + "price_monthly", + "regions", + "status", + "require_plan", + "vcpu_shares", + "display_name", + "aliases", + "type", + "gpu", + "service_types", + "volumes_enabled", + "light_sleep_enabled", + ] model_config = ConfigDict( populate_by_name=True, @@ -54,7 +89,6 @@ class CatalogInstanceListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -79,8 +113,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -89,7 +122,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of gpu if self.gpu: - _dict['gpu'] = self.gpu.to_dict() + _dict["gpu"] = self.gpu.to_dict() return _dict @classmethod @@ -101,27 +134,31 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "description": obj.get("description"), - "vcpu": obj.get("vcpu"), - "memory": obj.get("memory"), - "disk": obj.get("disk"), - "price_per_second": obj.get("price_per_second"), - "price_hourly": obj.get("price_hourly"), - "price_monthly": obj.get("price_monthly"), - "regions": obj.get("regions"), - "status": obj.get("status"), - "require_plan": obj.get("require_plan"), - "vcpu_shares": obj.get("vcpu_shares"), - "display_name": obj.get("display_name"), - "aliases": obj.get("aliases"), - "type": obj.get("type"), - "gpu": CatalogGPUDetails.from_dict(obj["gpu"]) if obj.get("gpu") is not None else None, - "service_types": obj.get("service_types"), - "volumes_enabled": obj.get("volumes_enabled"), - "light_sleep_enabled": obj.get("light_sleep_enabled") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "description": obj.get("description"), + "vcpu": obj.get("vcpu"), + "memory": obj.get("memory"), + "disk": obj.get("disk"), + "price_per_second": obj.get("price_per_second"), + "price_hourly": obj.get("price_hourly"), + "price_monthly": obj.get("price_monthly"), + "regions": obj.get("regions"), + "status": obj.get("status"), + "require_plan": obj.get("require_plan"), + "vcpu_shares": obj.get("vcpu_shares"), + "display_name": obj.get("display_name"), + "aliases": obj.get("aliases"), + "type": obj.get("type"), + "gpu": ( + CatalogGPUDetails.from_dict(obj["gpu"]) + if obj.get("gpu") is not None + else None + ), + "service_types": obj.get("service_types"), + "volumes_enabled": obj.get("volumes_enabled"), + "light_sleep_enabled": obj.get("light_sleep_enabled"), + } + ) return _obj - - diff --git a/koyeb/api/models/catalog_usage.py b/koyeb/api/models/catalog_usage.py index b0c714bf..a1ba6251 100644 --- a/koyeb/api/models/catalog_usage.py +++ b/koyeb/api/models/catalog_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class CatalogUsage(BaseModel): """ CatalogUsage - """ # noqa: E501 + """ # noqa: E501 + instances: Optional[Dict[str, InstanceAvailability]] = None __properties: ClassVar[List[str]] = ["instances"] @@ -36,7 +38,6 @@ class CatalogUsage(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -74,8 +74,10 @@ def to_dict(self) -> Dict[str, Any]: if self.instances: for _key_instances in self.instances: if self.instances[_key_instances]: - _field_dict[_key_instances] = self.instances[_key_instances].to_dict() - _dict['instances'] = _field_dict + _field_dict[_key_instances] = self.instances[ + _key_instances + ].to_dict() + _dict["instances"] = _field_dict return _dict @classmethod @@ -87,14 +89,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "instances": dict( - (_k, InstanceAvailability.from_dict(_v)) - for _k, _v in obj["instances"].items() - ) - if obj.get("instances") is not None - else None - }) + _obj = cls.model_validate( + { + "instances": ( + dict( + (_k, InstanceAvailability.from_dict(_v)) + for _k, _v in obj["instances"].items() + ) + if obj.get("instances") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/clear_idenfy_verification_result_request.py b/koyeb/api/models/clear_idenfy_verification_result_request.py index 5bb6bb39..946a3f7e 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 4a80f27b..d2ea4223 100644 --- a/koyeb/api/models/compose_reply.py +++ b/koyeb/api/models/compose_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class ComposeReply(BaseModel): """ ComposeReply - """ # noqa: E501 + """ # noqa: E501 + app: Optional[App] = None services: Optional[List[Service]] = None __properties: ClassVar[List[str]] = ["app", "services"] @@ -38,7 +40,6 @@ class ComposeReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -73,14 +73,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of app if self.app: - _dict['app'] = self.app.to_dict() + _dict["app"] = self.app.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in services (list) _items = [] if self.services: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict['services'] = _items + _dict["services"] = _items return _dict @classmethod @@ -92,10 +92,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "app": App.from_dict(obj["app"]) if obj.get("app") is not None else None, - "services": [Service.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None - }) + _obj = cls.model_validate( + { + "app": ( + App.from_dict(obj["app"]) if obj.get("app") is not None else None + ), + "services": ( + [Service.from_dict(_item) for _item in obj["services"]] + if obj.get("services") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/config_file.py b/koyeb/api/models/config_file.py index 7754f483..e6db013a 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/confirm_payment_authorization_reply.py b/koyeb/api/models/confirm_payment_authorization_reply.py index c6dd06a2..aa5bf0ae 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/create_access_token_reply.py b/koyeb/api/models/create_access_token_reply.py index cc2e11ad..281b5a30 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/create_access_token_request.py b/koyeb/api/models/create_access_token_request.py index 9e21618c..1cf05f13 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/create_account_request.py b/koyeb/api/models/create_account_request.py index 91b2c39a..1ec7abdf 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/create_app.py b/koyeb/api/models/create_app.py index 50f9c99a..9beeda55 100644 --- a/koyeb/api/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 @@ -19,15 +19,19 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.app_life_cycle import AppLifeCycle 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"] + life_cycle: Optional[AppLifeCycle] = None + __properties: ClassVar[List[str]] = ["name", "life_cycle"] model_config = ConfigDict( populate_by_name=True, @@ -35,7 +39,6 @@ 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)) @@ -60,14 +63,16 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + 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 life_cycle + if self.life_cycle: + _dict["life_cycle"] = self.life_cycle.to_dict() return _dict @classmethod @@ -79,9 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name") - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "life_cycle": ( + AppLifeCycle.from_dict(obj["life_cycle"]) + if obj.get("life_cycle") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/create_app_reply.py b/koyeb/api/models/create_app_reply.py index 67206d29..a0f5470e 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +83,7 @@ def 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/api/models/create_archive.py b/koyeb/api/models/create_archive.py index a05724e1..43ac63b4 100644 --- a/koyeb/api/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,11 +22,16 @@ 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( @@ -35,7 +40,6 @@ 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)) @@ -60,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +82,5 @@ def 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/api/models/create_archive_reply.py b/koyeb/api/models/create_archive_reply.py index fb514c14..7a75cec1 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/create_budget_reply.py b/koyeb/api/models/create_budget_reply.py index b75a4f6b..5becf69c 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 8aaeb38f..ed57b908 100644 --- a/koyeb/api/models/create_compose.py +++ b/koyeb/api/models/create_compose.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class CreateCompose(BaseModel): """ CreateCompose - """ # noqa: E501 + """ # noqa: E501 + app: Optional[CreateApp] = None services: Optional[List[CreateService]] = None __properties: ClassVar[List[str]] = ["app", "services"] @@ -38,7 +40,6 @@ class CreateCompose(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -73,14 +73,14 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of app if self.app: - _dict['app'] = self.app.to_dict() + _dict["app"] = self.app.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in services (list) _items = [] if self.services: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict['services'] = _items + _dict["services"] = _items return _dict @classmethod @@ -92,10 +92,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "app": CreateApp.from_dict(obj["app"]) if obj.get("app") is not None else None, - "services": [CreateService.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None - }) + _obj = cls.model_validate( + { + "app": ( + CreateApp.from_dict(obj["app"]) + if obj.get("app") is not None + else None + ), + "services": ( + [CreateService.from_dict(_item) for _item in obj["services"]] + if obj.get("services") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/create_credential.py b/koyeb/api/models/create_credential.py index 2fed6e3f..38f3a825 100644 --- a/koyeb/api/models/create_credential.py +++ b/koyeb/api/models/create_credential.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,22 @@ from typing import Optional, Set from typing_extensions import Self + class CreateCredential(BaseModel): """ CreateCredential - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None description: Optional[StrictStr] = None type: Optional[CredentialType] = CredentialType.INVALID organization_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["name", "description", "type", "organization_id"] + __properties: ClassVar[List[str]] = [ + "name", + "description", + "type", + "organization_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -39,7 +46,6 @@ class CreateCredential(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +70,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,12 +88,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "description": obj.get("description"), - "type": obj.get("type") if obj.get("type") is not None else CredentialType.INVALID, - "organization_id": obj.get("organization_id") - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "description": obj.get("description"), + "type": ( + obj.get("type") + if obj.get("type") is not None + else CredentialType.INVALID + ), + "organization_id": obj.get("organization_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/create_credential_reply.py b/koyeb/api/models/create_credential_reply.py index 7b3b90db..db6edebb 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 54a1f43d..7c31a4b5 100644 --- a/koyeb/api/models/create_domain.py +++ b/koyeb/api/models/create_domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,16 +24,24 @@ from typing import Optional, Set from typing_extensions import Self + class CreateDomain(BaseModel): """ CreateDomain - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None type: Optional[DomainType] = DomainType.AUTOASSIGNED app_id: Optional[StrictStr] = None cloudflare: Optional[Dict[str, Any]] = None koyeb: Optional[DomainLoadBalancerKoyeb] = None - __properties: ClassVar[List[str]] = ["name", "type", "app_id", "cloudflare", "koyeb"] + __properties: ClassVar[List[str]] = [ + "name", + "type", + "app_id", + "cloudflare", + "koyeb", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +49,6 @@ class CreateDomain(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +82,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of koyeb if self.koyeb: - _dict['koyeb'] = self.koyeb.to_dict() + _dict["koyeb"] = self.koyeb.to_dict() return _dict @classmethod @@ -88,13 +94,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "type": obj.get("type") if obj.get("type") is not None else DomainType.AUTOASSIGNED, - "app_id": obj.get("app_id"), - "cloudflare": obj.get("cloudflare"), - "koyeb": DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) if obj.get("koyeb") is not None else None - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "type": ( + obj.get("type") + if obj.get("type") is not None + else DomainType.AUTOASSIGNED + ), + "app_id": obj.get("app_id"), + "cloudflare": obj.get("cloudflare"), + "koyeb": ( + DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) + if obj.get("koyeb") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/create_domain_reply.py b/koyeb/api/models/create_domain_reply.py index 059c48c3..09c1a20b 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 7f78715a..af6b2074 100644 --- a/koyeb/api/models/create_organization_invitation_reply.py +++ b/koyeb/api/models/create_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class CreateOrganizationInvitationReply(BaseModel): """ CreateOrganizationInvitationReply - """ # noqa: E501 + """ # noqa: E501 + invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -36,7 +38,6 @@ class CreateOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/create_organization_invitation_request.py b/koyeb/api/models/create_organization_invitation_request.py index 83e33c20..3b253201 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/create_organization_reply.py b/koyeb/api/models/create_organization_reply.py index 5f4bf6ce..d5850fbb 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/create_organization_request.py b/koyeb/api/models/create_organization_request.py index 8256c023..6c5ce2cb 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/create_payment_authorization_reply.py b/koyeb/api/models/create_payment_authorization_reply.py index bce0ce53..3d5bcdc8 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/create_persistent_volume_reply.py b/koyeb/api/models/create_persistent_volume_reply.py index 564b0de8..b3bbb969 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 84ff734f..5493746c 100644 --- a/koyeb/api/models/create_persistent_volume_request.py +++ b/koyeb/api/models/create_persistent_volume_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,21 +19,34 @@ 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_backing_store import ( + PersistentVolumeBackingStore, +) from typing import Optional, Set from typing_extensions import Self + class CreatePersistentVolumeRequest(BaseModel): """ CreatePersistentVolumeRequest - """ # noqa: E501 - volume_type: Optional[PersistentVolumeBackingStore] = PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID + """ # noqa: E501 + + volume_type: Optional[PersistentVolumeBackingStore] = ( + PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID + ) name: Optional[StrictStr] = None region: Optional[StrictStr] = None read_only: Optional[StrictBool] = None max_size: Optional[StrictInt] = None snapshot_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["volume_type", "name", "region", "read_only", "max_size", "snapshot_id"] + __properties: ClassVar[List[str]] = [ + "volume_type", + "name", + "region", + "read_only", + "max_size", + "snapshot_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +54,6 @@ class CreatePersistentVolumeRequest(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +78,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -85,14 +96,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "volume_type": obj.get("volume_type") if obj.get("volume_type") is not None else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID, - "name": obj.get("name"), - "region": obj.get("region"), - "read_only": obj.get("read_only"), - "max_size": obj.get("max_size"), - "snapshot_id": obj.get("snapshot_id") - }) + _obj = cls.model_validate( + { + "volume_type": ( + obj.get("volume_type") + if obj.get("volume_type") is not None + else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID + ), + "name": obj.get("name"), + "region": obj.get("region"), + "read_only": obj.get("read_only"), + "max_size": obj.get("max_size"), + "snapshot_id": obj.get("snapshot_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/create_secret.py b/koyeb/api/models/create_secret.py index 83f6c1bc..667f33f0 100644 --- a/koyeb/api/models/create_secret.py +++ b/koyeb/api/models/create_secret.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.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,10 +19,18 @@ 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.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 @@ -30,10 +38,12 @@ from typing import Optional, Set from typing_extensions import Self + class CreateSecret(BaseModel): """ CreateSecret - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None type: Optional[SecretType] = SecretType.SIMPLE value: Optional[StrictStr] = None @@ -44,7 +54,18 @@ class CreateSecret(BaseModel): 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"] + __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, @@ -52,7 +73,6 @@ class CreateSecret(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -77,8 +97,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -87,25 +106,25 @@ def to_dict(self) -> Dict[str, Any]: ) # 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() + _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() + _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() + _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() + _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() + _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() + _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() + _dict["azure_container_registry"] = self.azure_container_registry.to_dict() return _dict @classmethod @@ -117,18 +136,56 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "type": obj.get("type") if obj.get("type") is not None else 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 - }) + _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/api/models/create_secret_reply.py b/koyeb/api/models/create_secret_reply.py index 4fecc310..c842ce3d 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index afd61faf..a42773bf 100644 --- a/koyeb/api/models/create_service.py +++ b/koyeb/api/models/create_service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,20 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional from koyeb.api.models.deployment_definition import DeploymentDefinition +from koyeb.api.models.service_life_cycle import ServiceLifeCycle from typing import Optional, Set from typing_extensions import Self + class CreateService(BaseModel): """ CreateService - """ # noqa: E501 + """ # noqa: E501 + app_id: Optional[StrictStr] = None definition: Optional[DeploymentDefinition] = None - __properties: ClassVar[List[str]] = ["app_id", "definition"] + life_cycle: Optional[ServiceLifeCycle] = None + __properties: ClassVar[List[str]] = ["app_id", "definition", "life_cycle"] model_config = ConfigDict( populate_by_name=True, @@ -37,7 +41,6 @@ class CreateService(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -72,7 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict['definition'] = self.definition.to_dict() + _dict["definition"] = self.definition.to_dict() + # override the default output from pydantic by calling `to_dict()` of life_cycle + if self.life_cycle: + _dict["life_cycle"] = self.life_cycle.to_dict() return _dict @classmethod @@ -84,10 +89,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "app_id": obj.get("app_id"), - "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None - }) + _obj = cls.model_validate( + { + "app_id": obj.get("app_id"), + "definition": ( + DeploymentDefinition.from_dict(obj["definition"]) + if obj.get("definition") is not None + else None + ), + "life_cycle": ( + ServiceLifeCycle.from_dict(obj["life_cycle"]) + if obj.get("life_cycle") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/create_service_reply.py b/koyeb/api/models/create_service_reply.py index 23d921b2..1d0228a2 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/create_snapshot_reply.py b/koyeb/api/models/create_snapshot_reply.py index 9fabcb7f..f4def592 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/create_snapshot_request.py b/koyeb/api/models/create_snapshot_request.py index 64da389f..783b0c54 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 37564f3a..8bbfbc7d 100644 --- a/koyeb/api/models/create_stage_attempt_request.py +++ b/koyeb/api/models/create_stage_attempt_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,20 +20,32 @@ 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 koyeb.api.models.deployment_provisioning_info_stage_status import ( + DeploymentProvisioningInfoStageStatus, +) from typing import Optional, Set from typing_extensions import Self + class CreateStageAttemptRequest(BaseModel): """ CreateStageAttemptRequest - """ # noqa: E501 + """ # noqa: E501 + secret: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN + status: Optional[DeploymentProvisioningInfoStageStatus] = ( + DeploymentProvisioningInfoStageStatus.UNKNOWN + ) started_at: Optional[datetime] = None messages: Optional[List[StrictStr]] = None steps: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["secret", "status", "started_at", "messages", "steps"] + __properties: ClassVar[List[str]] = [ + "secret", + "status", + "started_at", + "messages", + "steps", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +53,6 @@ class CreateStageAttemptRequest(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +77,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -85,13 +95,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "secret": obj.get("secret"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, - "started_at": obj.get("started_at"), - "messages": obj.get("messages"), - "steps": obj.get("steps") - }) + _obj = cls.model_validate( + { + "secret": obj.get("secret"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DeploymentProvisioningInfoStageStatus.UNKNOWN + ), + "started_at": obj.get("started_at"), + "messages": obj.get("messages"), + "steps": obj.get("steps"), + } + ) return _obj - - diff --git a/koyeb/api/models/credential.py b/koyeb/api/models/credential.py index 46ba4c9a..b34f5cf8 100644 --- a/koyeb/api/models/credential.py +++ b/koyeb/api/models/credential.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class Credential(BaseModel): """ Credential - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None type: Optional[CredentialType] = CredentialType.INVALID name: Optional[StrictStr] = None @@ -38,7 +40,18 @@ class Credential(BaseModel): updated_at: Optional[datetime] = None created_at: Optional[datetime] = None expires_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "type", "name", "token", "description", "user_id", "organization_id", "updated_at", "created_at", "expires_at"] + __properties: ClassVar[List[str]] = [ + "id", + "type", + "name", + "token", + "description", + "user_id", + "organization_id", + "updated_at", + "created_at", + "expires_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -46,7 +59,6 @@ class Credential(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,8 +83,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -90,18 +101,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "type": obj.get("type") if obj.get("type") is not None else CredentialType.INVALID, - "name": obj.get("name"), - "token": obj.get("token"), - "description": obj.get("description"), - "user_id": obj.get("user_id"), - "organization_id": obj.get("organization_id"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "expires_at": obj.get("expires_at") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "type": ( + obj.get("type") + if obj.get("type") is not None + else CredentialType.INVALID + ), + "name": obj.get("name"), + "token": obj.get("token"), + "description": obj.get("description"), + "user_id": obj.get("user_id"), + "organization_id": obj.get("organization_id"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "expires_at": obj.get("expires_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/credential_type.py b/koyeb/api/models/credential_type.py index bf4708ee..b329066b 100644 --- a/koyeb/api/models/credential_type.py +++ b/koyeb/api/models/credential_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,11 @@ class CredentialType(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - USER = 'USER' - ORGANIZATION = 'ORGANIZATION' + INVALID = "INVALID" + USER = "USER" + ORGANIZATION = "ORGANIZATION" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of CredentialType from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/database_deployment_metadata.py b/koyeb/api/models/database_deployment_metadata.py index dbf1d0b1..d8127233 100644 --- a/koyeb/api/models/database_deployment_metadata.py +++ b/koyeb/api/models/database_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,14 +19,18 @@ 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 koyeb.api.models.neon_postgres_database_deployment_metadata import ( + NeonPostgresDatabaseDeploymentMetadata, +) from typing import Optional, Set from typing_extensions import Self + class DatabaseDeploymentMetadata(BaseModel): """ DatabaseDeploymentMetadata - """ # noqa: E501 + """ # noqa: E501 + neon_postgres: Optional[NeonPostgresDatabaseDeploymentMetadata] = None __properties: ClassVar[List[str]] = ["neon_postgres"] @@ -36,7 +40,6 @@ class DatabaseDeploymentMetadata(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +73,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict['neon_postgres'] = self.neon_postgres.to_dict() + _dict["neon_postgres"] = self.neon_postgres.to_dict() return _dict @classmethod @@ -83,9 +85,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "neon_postgres": NeonPostgresDatabaseDeploymentMetadata.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None - }) + _obj = cls.model_validate( + { + "neon_postgres": ( + NeonPostgresDatabaseDeploymentMetadata.from_dict( + obj["neon_postgres"] + ) + if obj.get("neon_postgres") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/database_role_password.py b/koyeb/api/models/database_role_password.py index 98fe0039..b8ac10fd 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 06ef4d40..56a22554 100644 --- a/koyeb/api/models/database_source.py +++ b/koyeb/api/models/database_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class DatabaseSource(BaseModel): """ DatabaseSource - """ # noqa: E501 + """ # noqa: E501 + neon_postgres: Optional[NeonPostgresDatabase] = None __properties: ClassVar[List[str]] = ["neon_postgres"] @@ -36,7 +38,6 @@ class DatabaseSource(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict['neon_postgres'] = self.neon_postgres.to_dict() + _dict["neon_postgres"] = self.neon_postgres.to_dict() return _dict @classmethod @@ -83,9 +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({ - "neon_postgres": NeonPostgresDatabase.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None - }) + _obj = cls.model_validate( + { + "neon_postgres": ( + NeonPostgresDatabase.from_dict(obj["neon_postgres"]) + if obj.get("neon_postgres") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/database_usage.py b/koyeb/api/models/database_usage.py index f62bae78..e1e92c3f 100644 --- a/koyeb/api/models/database_usage.py +++ b/koyeb/api/models/database_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,15 +22,22 @@ from typing import Optional, Set from typing_extensions import Self + class DatabaseUsage(BaseModel): """ DatabaseUsage - """ # noqa: E501 + """ # noqa: E501 + service_id: Optional[StrictStr] = None service_name: Optional[StrictStr] = None compute_time_seconds: Optional[StrictInt] = None data_storage_megabytes_hours: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["service_id", "service_name", "compute_time_seconds", "data_storage_megabytes_hours"] + __properties: ClassVar[List[str]] = [ + "service_id", + "service_name", + "compute_time_seconds", + "data_storage_megabytes_hours", + ] model_config = ConfigDict( populate_by_name=True, @@ -38,7 +45,6 @@ class DatabaseUsage(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +69,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +87,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "compute_time_seconds": obj.get("compute_time_seconds"), - "data_storage_megabytes_hours": obj.get("data_storage_megabytes_hours") - }) + _obj = cls.model_validate( + { + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "compute_time_seconds": obj.get("compute_time_seconds"), + "data_storage_megabytes_hours": obj.get("data_storage_megabytes_hours"), + } + ) return _obj - - diff --git a/koyeb/api/models/database_usage_details.py b/koyeb/api/models/database_usage_details.py index 5b855288..71f45b16 100644 --- a/koyeb/api/models/database_usage_details.py +++ b/koyeb/api/models/database_usage_details.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class DatabaseUsageDetails(BaseModel): """ DatabaseUsageDetails - """ # noqa: E501 + """ # noqa: E501 + organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None app_name: Optional[StrictStr] = None @@ -36,7 +38,17 @@ class DatabaseUsageDetails(BaseModel): data_storage_megabytes_hour: Optional[StrictInt] = None started_at: Optional[datetime] = None terminated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["organization_id", "app_id", "app_name", "service_id", "service_name", "compute_time_seconds", "data_storage_megabytes_hour", "started_at", "terminated_at"] + __properties: ClassVar[List[str]] = [ + "organization_id", + "app_id", + "app_name", + "service_id", + "service_name", + "compute_time_seconds", + "data_storage_megabytes_hour", + "started_at", + "terminated_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -44,7 +56,6 @@ class DatabaseUsageDetails(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,8 +80,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -88,17 +98,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "app_name": obj.get("app_name"), - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "compute_time_seconds": obj.get("compute_time_seconds"), - "data_storage_megabytes_hour": obj.get("data_storage_megabytes_hour"), - "started_at": obj.get("started_at"), - "terminated_at": obj.get("terminated_at") - }) + _obj = cls.model_validate( + { + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "app_name": obj.get("app_name"), + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "compute_time_seconds": obj.get("compute_time_seconds"), + "data_storage_megabytes_hour": obj.get("data_storage_megabytes_hour"), + "started_at": obj.get("started_at"), + "terminated_at": obj.get("terminated_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/datacenter_list_item.py b/koyeb/api/models/datacenter_list_item.py index 529f28fb..4a15b143 100644 --- a/koyeb/api/models/datacenter_list_item.py +++ b/koyeb/api/models/datacenter_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,17 +22,26 @@ from typing import Optional, Set from typing_extensions import Self + class DatacenterListItem(BaseModel): """ DatacenterListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None region_id: Optional[StrictStr] = None domain: Optional[StrictStr] = None coordinates: Optional[List[StrictStr]] = None use_gpu: Optional[StrictBool] = None regions: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["id", "region_id", "domain", "coordinates", "use_gpu", "regions"] + __properties: ClassVar[List[str]] = [ + "id", + "region_id", + "domain", + "coordinates", + "use_gpu", + "regions", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +49,6 @@ class DatacenterListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,14 +91,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "region_id": obj.get("region_id"), - "domain": obj.get("domain"), - "coordinates": obj.get("coordinates"), - "use_gpu": obj.get("use_gpu"), - "regions": obj.get("regions") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "region_id": obj.get("region_id"), + "domain": obj.get("domain"), + "coordinates": obj.get("coordinates"), + "use_gpu": obj.get("use_gpu"), + "regions": obj.get("regions"), + } + ) return _obj - - diff --git a/koyeb/api/models/deactivate_organization_reply.py b/koyeb/api/models/deactivate_organization_reply.py index d0fd9a39..a644e245 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/deactivate_organization_request.py b/koyeb/api/models/deactivate_organization_request.py index c4210b91..295db468 100644 --- a/koyeb/api/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,11 +22,16 @@ 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( @@ -35,7 +40,6 @@ 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)) @@ -60,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +82,5 @@ def 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 index 19fdebf0..37c6cf84 100644 --- a/koyeb/api/models/declare_stage_progress_request.py +++ b/koyeb/api/models/declare_stage_progress_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,22 +20,36 @@ 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 koyeb.api.models.deployment_provisioning_info_stage_status import ( + DeploymentProvisioningInfoStageStatus, +) from typing import Optional, Set from typing_extensions import Self + class DeclareStageProgressRequest(BaseModel): """ DeclareStageProgressRequest - """ # noqa: E501 + """ # noqa: E501 + secret: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN + status: Optional[DeploymentProvisioningInfoStageStatus] = ( + DeploymentProvisioningInfoStageStatus.UNKNOWN + ) finished_at: Optional[datetime] = None messages: Optional[List[StrictStr]] = None image_pushed: Optional[StrictBool] = None internal_failure: Optional[StrictBool] = None retryable_failure: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["secret", "status", "finished_at", "messages", "image_pushed", "internal_failure", "retryable_failure"] + __properties: ClassVar[List[str]] = [ + "secret", + "status", + "finished_at", + "messages", + "image_pushed", + "internal_failure", + "retryable_failure", + ] model_config = ConfigDict( populate_by_name=True, @@ -43,7 +57,6 @@ class DeclareStageProgressRequest(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,8 +81,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -87,15 +99,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "secret": obj.get("secret"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, - "finished_at": obj.get("finished_at"), - "messages": obj.get("messages"), - "image_pushed": obj.get("image_pushed"), - "internal_failure": obj.get("internal_failure"), - "retryable_failure": obj.get("retryable_failure") - }) + _obj = cls.model_validate( + { + "secret": obj.get("secret"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DeploymentProvisioningInfoStageStatus.UNKNOWN + ), + "finished_at": obj.get("finished_at"), + "messages": obj.get("messages"), + "image_pushed": obj.get("image_pushed"), + "internal_failure": obj.get("internal_failure"), + "retryable_failure": obj.get("retryable_failure"), + } + ) return _obj - - diff --git a/koyeb/api/models/declare_step_progress_request.py b/koyeb/api/models/declare_step_progress_request.py index afe0038c..5dab2bc5 100644 --- a/koyeb/api/models/declare_step_progress_request.py +++ b/koyeb/api/models/declare_step_progress_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,20 +20,32 @@ 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 koyeb.api.models.deployment_provisioning_info_stage_status import ( + DeploymentProvisioningInfoStageStatus, +) from typing import Optional, Set from typing_extensions import Self + class DeclareStepProgressRequest(BaseModel): """ DeclareStepProgressRequest - """ # noqa: E501 + """ # noqa: E501 + secret: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN + status: Optional[DeploymentProvisioningInfoStageStatus] = ( + DeploymentProvisioningInfoStageStatus.UNKNOWN + ) started_at: Optional[datetime] = None finished_at: Optional[datetime] = None messages: Optional[List[StrictStr]] = None - __properties: ClassVar[List[str]] = ["secret", "status", "started_at", "finished_at", "messages"] + __properties: ClassVar[List[str]] = [ + "secret", + "status", + "started_at", + "finished_at", + "messages", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +53,6 @@ class DeclareStepProgressRequest(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +77,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -85,13 +95,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "secret": obj.get("secret"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at"), - "messages": obj.get("messages") - }) + _obj = cls.model_validate( + { + "secret": obj.get("secret"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DeploymentProvisioningInfoStageStatus.UNKNOWN + ), + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at"), + "messages": obj.get("messages"), + } + ) return _obj - - diff --git a/koyeb/api/models/decline_organization_invitation_reply.py b/koyeb/api/models/decline_organization_invitation_reply.py index 47e83c9c..473a5639 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/delete_organization_reply.py b/koyeb/api/models/delete_organization_reply.py index db095e62..808909d5 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/delete_persistent_volume_reply.py b/koyeb/api/models/delete_persistent_volume_reply.py index 2dc39b00..759a7c79 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/delete_snapshot_reply.py b/koyeb/api/models/delete_snapshot_reply.py index 30cadc32..5209193c 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/delete_user_reply.py b/koyeb/api/models/delete_user_reply.py index a1383e76..9246783b 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +83,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({ - "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 index c34e44ec..9babd8a0 100644 --- a/koyeb/api/models/deployment.py +++ b/koyeb/api/models/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 @@ -29,10 +29,12 @@ from typing import Optional, Set from typing_extensions import Self + class Deployment(BaseModel): """ Deployment - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -55,7 +57,30 @@ class Deployment(BaseModel): 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"] + __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, @@ -63,7 +88,6 @@ class Deployment(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -88,8 +112,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -98,16 +121,16 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of metadata if self.metadata: - _dict['metadata'] = self.metadata.to_dict() + _dict["metadata"] = self.metadata.to_dict() # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict['definition'] = self.definition.to_dict() + _dict["definition"] = self.definition.to_dict() # override the default output from pydantic by calling `to_dict()` of provisioning_info if self.provisioning_info: - _dict['provisioning_info'] = self.provisioning_info.to_dict() + _dict["provisioning_info"] = self.provisioning_info.to_dict() # override the default output from pydantic by calling `to_dict()` of database_info if self.database_info: - _dict['database_info'] = self.database_info.to_dict() + _dict["database_info"] = self.database_info.to_dict() return _dict @classmethod @@ -119,30 +142,54 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "allocated_at": obj.get("allocated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "parent_id": obj.get("parent_id"), - "child_id": obj.get("child_id"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentStatus.PENDING, - "metadata": DeploymentMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, - "messages": obj.get("messages"), - "provisioning_info": DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) if obj.get("provisioning_info") is not None else None, - "database_info": DeploymentDatabaseInfo.from_dict(obj["database_info"]) if obj.get("database_info") is not None else None, - "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") - }) + _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 index b6ce5b17..61667cf1 100644 --- a/koyeb/api/models/deployment_database_info.py +++ b/koyeb/api/models/deployment_database_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,14 +19,18 @@ 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 koyeb.api.models.deployment_neon_postgres_database_info import ( + DeploymentNeonPostgresDatabaseInfo, +) from typing import Optional, Set from typing_extensions import Self + class DeploymentDatabaseInfo(BaseModel): """ DeploymentDatabaseInfo - """ # noqa: E501 + """ # noqa: E501 + neon_postgres: Optional[DeploymentNeonPostgresDatabaseInfo] = None __properties: ClassVar[List[str]] = ["neon_postgres"] @@ -36,7 +40,6 @@ class DeploymentDatabaseInfo(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +73,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict['neon_postgres'] = self.neon_postgres.to_dict() + _dict["neon_postgres"] = self.neon_postgres.to_dict() return _dict @classmethod @@ -83,9 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "neon_postgres": DeploymentNeonPostgresDatabaseInfo.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None - }) + _obj = cls.model_validate( + { + "neon_postgres": ( + DeploymentNeonPostgresDatabaseInfo.from_dict(obj["neon_postgres"]) + if obj.get("neon_postgres") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_definition.py b/koyeb/api/models/deployment_definition.py index 369a3e92..d294477a 100644 --- a/koyeb/api/models/deployment_definition.py +++ b/koyeb/api/models/deployment_definition.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -37,10 +37,12 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentDefinition(BaseModel): """ DeploymentDefinition - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None type: Optional[DeploymentDefinitionType] = DeploymentDefinitionType.INVALID strategy: Optional[DeploymentStrategy] = None @@ -59,7 +61,26 @@ class DeploymentDefinition(BaseModel): 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"] + __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, @@ -67,7 +88,6 @@ class DeploymentDefinition(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -92,8 +112,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -102,82 +121,82 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of strategy if self.strategy: - _dict['strategy'] = self.strategy.to_dict() + _dict["strategy"] = self.strategy.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in routes (list) _items = [] if self.routes: for _item_routes in self.routes: if _item_routes: _items.append(_item_routes.to_dict()) - _dict['routes'] = _items + _dict["routes"] = _items # override the default output from pydantic by calling `to_dict()` of each item in ports (list) _items = [] if self.ports: for _item_ports in self.ports: if _item_ports: _items.append(_item_ports.to_dict()) - _dict['ports'] = _items + _dict["ports"] = _items # override the default output from pydantic by calling `to_dict()` of each item in proxy_ports (list) _items = [] if self.proxy_ports: for _item_proxy_ports in self.proxy_ports: if _item_proxy_ports: _items.append(_item_proxy_ports.to_dict()) - _dict['proxy_ports'] = _items + _dict["proxy_ports"] = _items # override the default output from pydantic by calling `to_dict()` of each item in env (list) _items = [] if self.env: for _item_env in self.env: if _item_env: _items.append(_item_env.to_dict()) - _dict['env'] = _items + _dict["env"] = _items # override the default output from pydantic by calling `to_dict()` of 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 + _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 + _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 + _dict["health_checks"] = _items # override the default output from pydantic by calling `to_dict()` of each item in volumes (list) _items = [] if self.volumes: for _item_volumes in self.volumes: if _item_volumes: _items.append(_item_volumes.to_dict()) - _dict['volumes'] = _items + _dict["volumes"] = _items # override the default output from pydantic by calling `to_dict()` of each item in config_files (list) _items = [] if self.config_files: for _item_config_files in self.config_files: if _item_config_files: _items.append(_item_config_files.to_dict()) - _dict['config_files'] = _items + _dict["config_files"] = _items # override the default output from pydantic by calling `to_dict()` of docker if self.docker: - _dict['docker'] = self.docker.to_dict() + _dict["docker"] = self.docker.to_dict() # override the default output from pydantic by calling `to_dict()` of git if self.git: - _dict['git'] = self.git.to_dict() + _dict["git"] = self.git.to_dict() # override the default output from pydantic by calling `to_dict()` of database if self.database: - _dict['database'] = self.database.to_dict() + _dict["database"] = self.database.to_dict() # override the default output from pydantic by calling `to_dict()` of archive if self.archive: - _dict['archive'] = self.archive.to_dict() + _dict["archive"] = self.archive.to_dict() return _dict @classmethod @@ -189,26 +208,95 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "type": obj.get("type") if obj.get("type") is not None else 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 - }) + _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 index 4897cba4..64e9cce6 100644 --- a/koyeb/api/models/deployment_definition_type.py +++ b/koyeb/api/models/deployment_definition_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,15 +26,13 @@ class DeploymentDefinitionType(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - WEB = 'WEB' - WORKER = 'WORKER' - DATABASE = 'DATABASE' - SANDBOX = 'SANDBOX' + INVALID = "INVALID" + WEB = "WEB" + WORKER = "WORKER" + DATABASE = "DATABASE" + SANDBOX = "SANDBOX" @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/api/models/deployment_env.py b/koyeb/api/models/deployment_env.py index b38bc9da..a459d6c4 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index c324e39c..2c03c913 100644 --- a/koyeb/api/models/deployment_event.py +++ b/koyeb/api/models/deployment_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentEvent(BaseModel): """ DeploymentEvent - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -34,7 +36,15 @@ class DeploymentEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "deployment_id", "type", "message", "metadata"] + __properties: ClassVar[List[str]] = [ + "id", + "when", + "organization_id", + "deployment_id", + "type", + "message", + "metadata", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +52,6 @@ class DeploymentEvent(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,15 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "deployment_id": obj.get("deployment_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "deployment_id": obj.get("deployment_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata"), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_health_check.py b/koyeb/api/models/deployment_health_check.py index e6e200cf..7d99c16c 100644 --- a/koyeb/api/models/deployment_health_check.py +++ b/koyeb/api/models/deployment_health_check.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,17 +24,26 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentHealthCheck(BaseModel): """ DeploymentHealthCheck - """ # noqa: E501 + """ # noqa: E501 + grace_period: Optional[StrictInt] = None interval: Optional[StrictInt] = None restart_limit: Optional[StrictInt] = None timeout: Optional[StrictInt] = None tcp: Optional[TCPHealthCheck] = None http: Optional[HTTPHealthCheck] = None - __properties: ClassVar[List[str]] = ["grace_period", "interval", "restart_limit", "timeout", "tcp", "http"] + __properties: ClassVar[List[str]] = [ + "grace_period", + "interval", + "restart_limit", + "timeout", + "tcp", + "http", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +51,6 @@ class DeploymentHealthCheck(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +75,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -77,10 +84,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of tcp if self.tcp: - _dict['tcp'] = self.tcp.to_dict() + _dict["tcp"] = self.tcp.to_dict() # override the default output from pydantic by calling `to_dict()` of http if self.http: - _dict['http'] = self.http.to_dict() + _dict["http"] = self.http.to_dict() return _dict @classmethod @@ -92,14 +99,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "grace_period": obj.get("grace_period"), - "interval": obj.get("interval"), - "restart_limit": obj.get("restart_limit"), - "timeout": obj.get("timeout"), - "tcp": TCPHealthCheck.from_dict(obj["tcp"]) if obj.get("tcp") is not None else None, - "http": HTTPHealthCheck.from_dict(obj["http"]) if obj.get("http") is not None else None - }) + _obj = cls.model_validate( + { + "grace_period": obj.get("grace_period"), + "interval": obj.get("interval"), + "restart_limit": obj.get("restart_limit"), + "timeout": obj.get("timeout"), + "tcp": ( + TCPHealthCheck.from_dict(obj["tcp"]) + if obj.get("tcp") is not None + else None + ), + "http": ( + HTTPHealthCheck.from_dict(obj["http"]) + if obj.get("http") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_instance_type.py b/koyeb/api/models/deployment_instance_type.py index 32dcd5b7..546c1508 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index bb77e859..fcf161bc 100644 --- a/koyeb/api/models/deployment_list_item.py +++ b/koyeb/api/models/deployment_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -28,10 +28,12 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentListItem(BaseModel): """ DeploymentListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -52,7 +54,28 @@ class DeploymentListItem(BaseModel): database_info: Optional[DeploymentDatabaseInfo] = None version: Optional[StrictStr] = None deployment_group: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "allocated_at", "started_at", "succeeded_at", "terminated_at", "organization_id", "app_id", "service_id", "parent_id", "child_id", "status", "metadata", "definition", "messages", "provisioning_info", "database_info", "version", "deployment_group"] + __properties: ClassVar[List[str]] = [ + "id", + "created_at", + "updated_at", + "allocated_at", + "started_at", + "succeeded_at", + "terminated_at", + "organization_id", + "app_id", + "service_id", + "parent_id", + "child_id", + "status", + "metadata", + "definition", + "messages", + "provisioning_info", + "database_info", + "version", + "deployment_group", + ] model_config = ConfigDict( populate_by_name=True, @@ -60,7 +83,6 @@ class DeploymentListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -85,8 +107,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -95,16 +116,16 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of metadata if self.metadata: - _dict['metadata'] = self.metadata.to_dict() + _dict["metadata"] = self.metadata.to_dict() # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict['definition'] = self.definition.to_dict() + _dict["definition"] = self.definition.to_dict() # override the default output from pydantic by calling `to_dict()` of provisioning_info if self.provisioning_info: - _dict['provisioning_info'] = self.provisioning_info.to_dict() + _dict["provisioning_info"] = self.provisioning_info.to_dict() # override the default output from pydantic by calling `to_dict()` of database_info if self.database_info: - _dict['database_info'] = self.database_info.to_dict() + _dict["database_info"] = self.database_info.to_dict() return _dict @classmethod @@ -116,28 +137,48 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "allocated_at": obj.get("allocated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "parent_id": obj.get("parent_id"), - "child_id": obj.get("child_id"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentStatus.PENDING, - "metadata": DeploymentMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, - "messages": obj.get("messages"), - "provisioning_info": DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) if obj.get("provisioning_info") is not None else None, - "database_info": DeploymentDatabaseInfo.from_dict(obj["database_info"]) if obj.get("database_info") is not None else None, - "version": obj.get("version"), - "deployment_group": obj.get("deployment_group") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "allocated_at": obj.get("allocated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "terminated_at": obj.get("terminated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "parent_id": obj.get("parent_id"), + "child_id": obj.get("child_id"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DeploymentStatus.PENDING + ), + "metadata": ( + DeploymentMetadata.from_dict(obj["metadata"]) + if obj.get("metadata") is not None + else None + ), + "definition": ( + DeploymentDefinition.from_dict(obj["definition"]) + if obj.get("definition") is not None + else None + ), + "messages": obj.get("messages"), + "provisioning_info": ( + DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) + if obj.get("provisioning_info") is not None + else None + ), + "database_info": ( + DeploymentDatabaseInfo.from_dict(obj["database_info"]) + if obj.get("database_info") is not None + else None + ), + "version": obj.get("version"), + "deployment_group": obj.get("deployment_group"), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_metadata.py b/koyeb/api/models/deployment_metadata.py index 0bb9b5b6..ce6b3747 100644 --- a/koyeb/api/models/deployment_metadata.py +++ b/koyeb/api/models/deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -27,16 +27,24 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentMetadata(BaseModel): """ DeploymentMetadata - """ # noqa: E501 + """ # noqa: E501 + trigger: Optional[TriggerDeploymentMetadata] = None database: Optional[DatabaseDeploymentMetadata] = None git: Optional[GitDeploymentMetadata] = None archive: Optional[ArchiveDeploymentMetadata] = None proxy_ports: Optional[List[DeploymentProxyPortMetadata]] = None - __properties: ClassVar[List[str]] = ["trigger", "database", "git", "archive", "proxy_ports"] + __properties: ClassVar[List[str]] = [ + "trigger", + "database", + "git", + "archive", + "proxy_ports", + ] model_config = ConfigDict( populate_by_name=True, @@ -44,7 +52,6 @@ class DeploymentMetadata(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,23 +85,23 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of trigger if self.trigger: - _dict['trigger'] = self.trigger.to_dict() + _dict["trigger"] = self.trigger.to_dict() # override the default output from pydantic by calling `to_dict()` of database if self.database: - _dict['database'] = self.database.to_dict() + _dict["database"] = self.database.to_dict() # override the default output from pydantic by calling `to_dict()` of git if self.git: - _dict['git'] = self.git.to_dict() + _dict["git"] = self.git.to_dict() # override the default output from pydantic by calling `to_dict()` of archive if self.archive: - _dict['archive'] = self.archive.to_dict() + _dict["archive"] = self.archive.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in proxy_ports (list) _items = [] if self.proxy_ports: for _item_proxy_ports in self.proxy_ports: if _item_proxy_ports: _items.append(_item_proxy_ports.to_dict()) - _dict['proxy_ports'] = _items + _dict["proxy_ports"] = _items return _dict @classmethod @@ -107,13 +113,36 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "trigger": TriggerDeploymentMetadata.from_dict(obj["trigger"]) if obj.get("trigger") is not None else None, - "database": DatabaseDeploymentMetadata.from_dict(obj["database"]) if obj.get("database") is not None else None, - "git": GitDeploymentMetadata.from_dict(obj["git"]) if obj.get("git") is not None else None, - "archive": ArchiveDeploymentMetadata.from_dict(obj["archive"]) if obj.get("archive") is not None else None, - "proxy_ports": [DeploymentProxyPortMetadata.from_dict(_item) for _item in obj["proxy_ports"]] if obj.get("proxy_ports") is not None else None - }) + _obj = cls.model_validate( + { + "trigger": ( + TriggerDeploymentMetadata.from_dict(obj["trigger"]) + if obj.get("trigger") is not None + else None + ), + "database": ( + DatabaseDeploymentMetadata.from_dict(obj["database"]) + if obj.get("database") is not None + else None + ), + "git": ( + GitDeploymentMetadata.from_dict(obj["git"]) + if obj.get("git") is not None + else None + ), + "archive": ( + ArchiveDeploymentMetadata.from_dict(obj["archive"]) + if obj.get("archive") is not None + else None + ), + "proxy_ports": ( + [ + DeploymentProxyPortMetadata.from_dict(_item) + for _item in obj["proxy_ports"] + ] + if obj.get("proxy_ports") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_neon_postgres_database_info.py b/koyeb/api/models/deployment_neon_postgres_database_info.py index 414734f1..bbb31572 100644 --- a/koyeb/api/models/deployment_neon_postgres_database_info.py +++ b/koyeb/api/models/deployment_neon_postgres_database_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,14 +20,18 @@ 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 koyeb.api.models.deployment_neon_postgres_database_info_role import ( + DeploymentNeonPostgresDatabaseInfoRole, +) from typing import Optional, Set from typing_extensions import Self + class DeploymentNeonPostgresDatabaseInfo(BaseModel): """ DeploymentNeonPostgresDatabaseInfo - """ # noqa: E501 + """ # noqa: E501 + active_time_seconds: Optional[StrictStr] = None compute_time_seconds: Optional[StrictStr] = None written_data_bytes: Optional[StrictStr] = None @@ -42,7 +46,22 @@ class DeploymentNeonPostgresDatabaseInfo(BaseModel): default_branch_state: Optional[StrictStr] = None default_branch_logical_size: Optional[StrictStr] = None roles: Optional[List[DeploymentNeonPostgresDatabaseInfoRole]] = None - __properties: ClassVar[List[str]] = ["active_time_seconds", "compute_time_seconds", "written_data_bytes", "data_transfer_bytes", "data_storage_bytes_hour", "server_host", "server_port", "endpoint_state", "endpoint_last_active", "default_branch_id", "default_branch_name", "default_branch_state", "default_branch_logical_size", "roles"] + __properties: ClassVar[List[str]] = [ + "active_time_seconds", + "compute_time_seconds", + "written_data_bytes", + "data_transfer_bytes", + "data_storage_bytes_hour", + "server_host", + "server_port", + "endpoint_state", + "endpoint_last_active", + "default_branch_id", + "default_branch_name", + "default_branch_state", + "default_branch_logical_size", + "roles", + ] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +69,6 @@ class DeploymentNeonPostgresDatabaseInfo(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,8 +93,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -89,7 +106,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_roles in self.roles: if _item_roles: _items.append(_item_roles.to_dict()) - _dict['roles'] = _items + _dict["roles"] = _items return _dict @classmethod @@ -101,22 +118,29 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "active_time_seconds": obj.get("active_time_seconds"), - "compute_time_seconds": obj.get("compute_time_seconds"), - "written_data_bytes": obj.get("written_data_bytes"), - "data_transfer_bytes": obj.get("data_transfer_bytes"), - "data_storage_bytes_hour": obj.get("data_storage_bytes_hour"), - "server_host": obj.get("server_host"), - "server_port": obj.get("server_port"), - "endpoint_state": obj.get("endpoint_state"), - "endpoint_last_active": obj.get("endpoint_last_active"), - "default_branch_id": obj.get("default_branch_id"), - "default_branch_name": obj.get("default_branch_name"), - "default_branch_state": obj.get("default_branch_state"), - "default_branch_logical_size": obj.get("default_branch_logical_size"), - "roles": [DeploymentNeonPostgresDatabaseInfoRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None - }) + _obj = cls.model_validate( + { + "active_time_seconds": obj.get("active_time_seconds"), + "compute_time_seconds": obj.get("compute_time_seconds"), + "written_data_bytes": obj.get("written_data_bytes"), + "data_transfer_bytes": obj.get("data_transfer_bytes"), + "data_storage_bytes_hour": obj.get("data_storage_bytes_hour"), + "server_host": obj.get("server_host"), + "server_port": obj.get("server_port"), + "endpoint_state": obj.get("endpoint_state"), + "endpoint_last_active": obj.get("endpoint_last_active"), + "default_branch_id": obj.get("default_branch_id"), + "default_branch_name": obj.get("default_branch_name"), + "default_branch_state": obj.get("default_branch_state"), + "default_branch_logical_size": obj.get("default_branch_logical_size"), + "roles": ( + [ + DeploymentNeonPostgresDatabaseInfoRole.from_dict(_item) + for _item in obj["roles"] + ] + if obj.get("roles") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_neon_postgres_database_info_role.py b/koyeb/api/models/deployment_neon_postgres_database_info_role.py index 7a0e3252..61f82562 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/deployment_port.py b/koyeb/api/models/deployment_port.py index 0406be19..664b84f4 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 7c0454c1..f8cc0952 100644 --- a/koyeb/api/models/deployment_provisioning_info.py +++ b/koyeb/api/models/deployment_provisioning_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,28 @@ 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 koyeb.api.models.deployment_provisioning_info_stage import ( + DeploymentProvisioningInfoStage, +) from typing import Optional, Set from typing_extensions import Self + class DeploymentProvisioningInfo(BaseModel): """ DeploymentProvisioningInfo - """ # noqa: E501 - sha: Optional[StrictStr] = Field(default=None, description="The git sha for this build (we resolve the reference at the start of the build).") - image: Optional[StrictStr] = Field(default=None, description="The docker image built as a result of this build.") - stages: Optional[List[DeploymentProvisioningInfoStage]] = Field(default=None, description="Some info about the build.") + """ # noqa: E501 + + sha: Optional[StrictStr] = Field( + default=None, + description="The git sha for this build (we resolve the reference at the start of the build).", + ) + image: Optional[StrictStr] = Field( + default=None, description="The docker image built as a result of this build." + ) + stages: Optional[List[DeploymentProvisioningInfoStage]] = Field( + default=None, description="Some info about the build." + ) __properties: ClassVar[List[str]] = ["sha", "image", "stages"] model_config = ConfigDict( @@ -38,7 +49,6 @@ class DeploymentProvisioningInfo(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +86,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_stages in self.stages: if _item_stages: _items.append(_item_stages.to_dict()) - _dict['stages'] = _items + _dict["stages"] = _items return _dict @classmethod @@ -89,11 +98,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "sha": obj.get("sha"), - "image": obj.get("image"), - "stages": [DeploymentProvisioningInfoStage.from_dict(_item) for _item in obj["stages"]] if obj.get("stages") is not None else None - }) + _obj = cls.model_validate( + { + "sha": obj.get("sha"), + "image": obj.get("image"), + "stages": ( + [ + DeploymentProvisioningInfoStage.from_dict(_item) + for _item in obj["stages"] + ] + if obj.get("stages") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_provisioning_info_stage.py b/koyeb/api/models/deployment_provisioning_info_stage.py index 8c2c6d2e..ee736d31 100644 --- a/koyeb/api/models/deployment_provisioning_info_stage.py +++ b/koyeb/api/models/deployment_provisioning_info_stage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,22 +20,37 @@ 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 koyeb.api.models.deployment_provisioning_info_stage_build_attempt import ( + DeploymentProvisioningInfoStageBuildAttempt, +) +from koyeb.api.models.deployment_provisioning_info_stage_status import ( + DeploymentProvisioningInfoStageStatus, +) from typing import Optional, Set from typing_extensions import Self + class DeploymentProvisioningInfoStage(BaseModel): """ DeploymentProvisioningInfoStage - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN + status: Optional[DeploymentProvisioningInfoStageStatus] = ( + DeploymentProvisioningInfoStageStatus.UNKNOWN + ) messages: Optional[List[StrictStr]] = None started_at: Optional[datetime] = None finished_at: Optional[datetime] = None build_attempts: Optional[List[DeploymentProvisioningInfoStageBuildAttempt]] = None - __properties: ClassVar[List[str]] = ["name", "status", "messages", "started_at", "finished_at", "build_attempts"] + __properties: ClassVar[List[str]] = [ + "name", + "status", + "messages", + "started_at", + "finished_at", + "build_attempts", + ] model_config = ConfigDict( populate_by_name=True, @@ -43,7 +58,6 @@ class DeploymentProvisioningInfoStage(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,8 +82,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -82,7 +95,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_build_attempts in self.build_attempts: if _item_build_attempts: _items.append(_item_build_attempts.to_dict()) - _dict['build_attempts'] = _items + _dict["build_attempts"] = _items return _dict @classmethod @@ -94,14 +107,25 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at"), - "build_attempts": [DeploymentProvisioningInfoStageBuildAttempt.from_dict(_item) for _item in obj["build_attempts"]] if obj.get("build_attempts") is not None else None - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DeploymentProvisioningInfoStageStatus.UNKNOWN + ), + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at"), + "build_attempts": ( + [ + DeploymentProvisioningInfoStageBuildAttempt.from_dict(_item) + for _item in obj["build_attempts"] + ] + if obj.get("build_attempts") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py index de0f8ecd..65e164b6 100644 --- a/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py +++ b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,17 +20,25 @@ 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 koyeb.api.models.deployment_provisioning_info_stage_build_attempt_build_step import ( + DeploymentProvisioningInfoStageBuildAttemptBuildStep, +) +from koyeb.api.models.deployment_provisioning_info_stage_status import ( + DeploymentProvisioningInfoStageStatus, +) from typing import Optional, Set from typing_extensions import Self + class DeploymentProvisioningInfoStageBuildAttempt(BaseModel): """ DeploymentProvisioningInfoStageBuildAttempt - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictInt] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN + status: Optional[DeploymentProvisioningInfoStageStatus] = ( + DeploymentProvisioningInfoStageStatus.UNKNOWN + ) messages: Optional[List[StrictStr]] = None started_at: Optional[datetime] = None finished_at: Optional[datetime] = None @@ -38,8 +46,22 @@ class DeploymentProvisioningInfoStageBuildAttempt(BaseModel): image_pushed: Optional[StrictBool] = None internal_failure: Optional[StrictBool] = None retryable_failure: Optional[StrictBool] = None - wait_completion: Optional[StrictBool] = Field(default=None, description="This flag is used to finalize the build, and continue the deployment in case of success, or cancel and potentially retry the build in case of failure.") - __properties: ClassVar[List[str]] = ["id", "status", "messages", "started_at", "finished_at", "steps", "image_pushed", "internal_failure", "retryable_failure", "wait_completion"] + wait_completion: Optional[StrictBool] = Field( + default=None, + description="This flag is used to finalize the build, and continue the deployment in case of success, or cancel and potentially retry the build in case of failure.", + ) + __properties: ClassVar[List[str]] = [ + "id", + "status", + "messages", + "started_at", + "finished_at", + "steps", + "image_pushed", + "internal_failure", + "retryable_failure", + "wait_completion", + ] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +69,6 @@ class DeploymentProvisioningInfoStageBuildAttempt(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,8 +93,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,7 +106,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_steps in self.steps: if _item_steps: _items.append(_item_steps.to_dict()) - _dict['steps'] = _items + _dict["steps"] = _items return _dict @classmethod @@ -98,18 +118,31 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at"), - "steps": [DeploymentProvisioningInfoStageBuildAttemptBuildStep.from_dict(_item) for _item in obj["steps"]] if obj.get("steps") is not None else None, - "image_pushed": obj.get("image_pushed"), - "internal_failure": obj.get("internal_failure"), - "retryable_failure": obj.get("retryable_failure"), - "wait_completion": obj.get("wait_completion") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DeploymentProvisioningInfoStageStatus.UNKNOWN + ), + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at"), + "steps": ( + [ + DeploymentProvisioningInfoStageBuildAttemptBuildStep.from_dict( + _item + ) + for _item in obj["steps"] + ] + if obj.get("steps") is not None + else None + ), + "image_pushed": obj.get("image_pushed"), + "internal_failure": obj.get("internal_failure"), + "retryable_failure": obj.get("retryable_failure"), + "wait_completion": obj.get("wait_completion"), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py b/koyeb/api/models/deployment_provisioning_info_stage_build_attempt_build_step.py index e5864591..01c93f32 100644 --- 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 @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,20 +20,32 @@ 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 koyeb.api.models.deployment_provisioning_info_stage_status import ( + DeploymentProvisioningInfoStageStatus, +) from typing import Optional, Set from typing_extensions import Self + class DeploymentProvisioningInfoStageBuildAttemptBuildStep(BaseModel): """ DeploymentProvisioningInfoStageBuildAttemptBuildStep - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None - status: Optional[DeploymentProvisioningInfoStageStatus] = DeploymentProvisioningInfoStageStatus.UNKNOWN + status: Optional[DeploymentProvisioningInfoStageStatus] = ( + DeploymentProvisioningInfoStageStatus.UNKNOWN + ) messages: Optional[List[StrictStr]] = None started_at: Optional[datetime] = None finished_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["name", "status", "messages", "started_at", "finished_at"] + __properties: ClassVar[List[str]] = [ + "name", + "status", + "messages", + "started_at", + "finished_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +53,6 @@ class DeploymentProvisioningInfoStageBuildAttemptBuildStep(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +77,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -85,13 +95,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "status": obj.get("status") if obj.get("status") is not None else DeploymentProvisioningInfoStageStatus.UNKNOWN, - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "finished_at": obj.get("finished_at") - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DeploymentProvisioningInfoStageStatus.UNKNOWN + ), + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "finished_at": obj.get("finished_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_provisioning_info_stage_status.py b/koyeb/api/models/deployment_provisioning_info_stage_status.py index 38fe449d..cc598007 100644 --- a/koyeb/api/models/deployment_provisioning_info_stage_status.py +++ b/koyeb/api/models/deployment_provisioning_info_stage_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,16 +26,14 @@ class DeploymentProvisioningInfoStageStatus(str, Enum): """ allowed enum values """ - UNKNOWN = 'UNKNOWN' - PENDING = 'PENDING' - RUNNING = 'RUNNING' - FAILED = 'FAILED' - COMPLETED = 'COMPLETED' - ABORTED = 'ABORTED' + UNKNOWN = "UNKNOWN" + PENDING = "PENDING" + RUNNING = "RUNNING" + FAILED = "FAILED" + COMPLETED = "COMPLETED" + ABORTED = "ABORTED" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DeploymentProvisioningInfoStageStatus from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/deployment_proxy_port.py b/koyeb/api/models/deployment_proxy_port.py index eb335816..581253d0 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,10 +81,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({ - "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 index 0cef6d39..66d4ca17 100644 --- a/koyeb/api/models/deployment_proxy_port_metadata.py +++ b/koyeb/api/models/deployment_proxy_port_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentProxyPortMetadata(BaseModel): """ DeploymentProxyPortMetadata - """ # noqa: E501 + """ # noqa: E501 + host: Optional[StrictStr] = None public_port: Optional[StrictInt] = None port: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class DeploymentProxyPortMetadata(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,12 +83,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "host": obj.get("host"), - "public_port": obj.get("public_port"), - "port": obj.get("port"), - "protocol": obj.get("protocol") if obj.get("protocol") is not None else ProxyPortProtocol.TCP - }) + _obj = cls.model_validate( + { + "host": obj.get("host"), + "public_port": obj.get("public_port"), + "port": obj.get("port"), + "protocol": ( + obj.get("protocol") + if obj.get("protocol") is not None + else ProxyPortProtocol.TCP + ), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_role.py b/koyeb/api/models/deployment_role.py index da8fe3d3..1d3f5bd2 100644 --- a/koyeb/api/models/deployment_role.py +++ b/koyeb/api/models/deployment_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,12 @@ class DeploymentRole(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - ACTIVE = 'ACTIVE' - UPCOMING = 'UPCOMING' - CURRENT = 'CURRENT' + INVALID = "INVALID" + ACTIVE = "ACTIVE" + UPCOMING = "UPCOMING" + CURRENT = "CURRENT" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DeploymentRole from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/deployment_route.py b/koyeb/api/models/deployment_route.py index 70c35206..bba58d67 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,5 @@ def 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 index a38abdf1..9cd2596c 100644 --- a/koyeb/api/models/deployment_scaling.py +++ b/koyeb/api/models/deployment_scaling.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentScaling(BaseModel): """ DeploymentScaling - """ # noqa: E501 + """ # noqa: E501 + scopes: Optional[List[StrictStr]] = None min: Optional[StrictInt] = None max: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class DeploymentScaling(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_targets in self.targets: if _item_targets: _items.append(_item_targets.to_dict()) - _dict['targets'] = _items + _dict["targets"] = _items return _dict @classmethod @@ -90,12 +90,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "scopes": obj.get("scopes"), - "min": obj.get("min"), - "max": obj.get("max"), - "targets": [DeploymentScalingTarget.from_dict(_item) for _item in obj["targets"]] if obj.get("targets") is not None else None - }) + _obj = cls.model_validate( + { + "scopes": obj.get("scopes"), + "min": obj.get("min"), + "max": obj.get("max"), + "targets": ( + [ + DeploymentScalingTarget.from_dict(_item) + for _item in obj["targets"] + ] + if obj.get("targets") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_scaling_target.py b/koyeb/api/models/deployment_scaling_target.py index 9b73bc3f..e77e07b4 100644 --- a/koyeb/api/models/deployment_scaling_target.py +++ b/koyeb/api/models/deployment_scaling_target.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,26 +19,47 @@ 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 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 + """ # 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"] + __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, @@ -46,7 +67,6 @@ class DeploymentScalingTarget(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,8 +91,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,22 +100,22 @@ def to_dict(self) -> Dict[str, Any]: ) # 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() + _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() + _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() + _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() + _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() + _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() + _dict["sleep_idle_delay"] = self.sleep_idle_delay.to_dict() return _dict @classmethod @@ -108,14 +127,46 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: 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 - }) + _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/api/models/deployment_scaling_target_average_cpu.py b/koyeb/api/models/deployment_scaling_target_average_cpu.py index 825f5d53..3b2648b4 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/deployment_scaling_target_average_mem.py b/koyeb/api/models/deployment_scaling_target_average_mem.py index 661d839f..8bcef090 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/deployment_scaling_target_concurrent_requests.py b/koyeb/api/models/deployment_scaling_target_concurrent_requests.py index ba025927..12897b01 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/deployment_scaling_target_requests_per_second.py b/koyeb/api/models/deployment_scaling_target_requests_per_second.py index ee94d13d..00166100 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/deployment_scaling_target_requests_response_time.py b/koyeb/api/models/deployment_scaling_target_requests_response_time.py index 1dbbe1c8..5777a25a 100644 --- a/koyeb/api/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,12 +22,17 @@ 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( @@ -36,7 +41,6 @@ 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)) @@ -61,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +83,7 @@ def 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 index 5c924be5..ede98372 100644 --- a/koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py +++ b/koyeb/api/models/deployment_scaling_target_sleep_idle_delay.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,14 +22,29 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentScalingTargetSleepIdleDelay(BaseModel): """ DeploymentScalingTargetSleepIdleDelay - """ # noqa: E501 - value: Optional[StrictInt] = Field(default=None, description="DEPRECATED: use deep_sleep_value instead. Delay in seconds after which a service which received 0 request is put to deep sleep.") - deep_sleep_value: Optional[StrictInt] = Field(default=None, description="Delay in seconds after which a service which received 0 request is put to deep sleep.") - light_sleep_value: Optional[StrictInt] = Field(default=None, description="Delay in seconds after which a service which received 0 request is put to light sleep.") - __properties: ClassVar[List[str]] = ["value", "deep_sleep_value", "light_sleep_value"] + """ # noqa: E501 + + value: Optional[StrictInt] = Field( + default=None, + description="DEPRECATED: use deep_sleep_value instead. Delay in seconds after which a service which received 0 request is put to deep sleep.", + ) + deep_sleep_value: Optional[StrictInt] = Field( + default=None, + description="Delay in seconds after which a service which received 0 request is put to deep sleep.", + ) + light_sleep_value: Optional[StrictInt] = Field( + default=None, + description="Delay in seconds after which a service which received 0 request is put to light sleep.", + ) + __properties: ClassVar[List[str]] = [ + "value", + "deep_sleep_value", + "light_sleep_value", + ] model_config = ConfigDict( populate_by_name=True, @@ -37,7 +52,6 @@ class DeploymentScalingTargetSleepIdleDelay(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +94,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "value": obj.get("value"), - "deep_sleep_value": obj.get("deep_sleep_value"), - "light_sleep_value": obj.get("light_sleep_value") - }) + _obj = cls.model_validate( + { + "value": obj.get("value"), + "deep_sleep_value": obj.get("deep_sleep_value"), + "light_sleep_value": obj.get("light_sleep_value"), + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_status.py b/koyeb/api/models/deployment_status.py index ce4765e8..134ea181 100644 --- a/koyeb/api/models/deployment_status.py +++ b/koyeb/api/models/deployment_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,26 +26,24 @@ class DeploymentStatus(str, Enum): """ 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' + 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 index f392a041..c5de7c38 100644 --- a/koyeb/api/models/deployment_strategy.py +++ b/koyeb/api/models/deployment_strategy.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,11 +23,15 @@ from typing import Optional, Set from typing_extensions import Self + class DeploymentStrategy(BaseModel): """ DeploymentStrategy - """ # noqa: E501 - type: Optional[DeploymentStrategyType] = DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID + """ # noqa: E501 + + type: Optional[DeploymentStrategyType] = ( + DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID + ) __properties: ClassVar[List[str]] = ["type"] model_config = ConfigDict( @@ -36,7 +40,6 @@ class DeploymentStrategy(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +82,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({ - "type": obj.get("type") if obj.get("type") is not None else DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID - }) + _obj = cls.model_validate( + { + "type": ( + obj.get("type") + if obj.get("type") is not None + else DeploymentStrategyType.DEPLOYMENT_STRATEGY_TYPE_INVALID + ) + } + ) return _obj - - diff --git a/koyeb/api/models/deployment_strategy_type.py b/koyeb/api/models/deployment_strategy_type.py index 62093fdd..3d551315 100644 --- a/koyeb/api/models/deployment_strategy_type.py +++ b/koyeb/api/models/deployment_strategy_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 @@ -20,21 +20,19 @@ 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. + - 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' + 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/api/models/deployment_volume.py b/koyeb/api/models/deployment_volume.py index b836490b..b90422ac 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/desired_deployment.py b/koyeb/api/models/desired_deployment.py index 78f21270..1fcf9fff 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +87,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({ - "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/api/models/desired_deployment_group.py b/koyeb/api/models/desired_deployment_group.py index d4a0772e..40e5a55e 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/digital_ocean_registry_configuration.py b/koyeb/api/models/digital_ocean_registry_configuration.py index 1d1d37aa..03895931 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/discourse_auth_reply.py b/koyeb/api/models/discourse_auth_reply.py index af10eeb2..a7358113 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,5 @@ def 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/api/models/discourse_auth_request.py b/koyeb/api/models/discourse_auth_request.py index ece6c503..7dc95273 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 64388dde..544abc04 100644 --- a/koyeb/api/models/docker_builder.py +++ b/koyeb/api/models/docker_builder.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,17 +22,26 @@ from typing import Optional, Set from typing_extensions import Self + class DockerBuilder(BaseModel): """ DockerBuilder - """ # noqa: E501 + """ # noqa: E501 + dockerfile: Optional[StrictStr] = None entrypoint: Optional[List[StrictStr]] = None command: Optional[StrictStr] = None args: Optional[List[StrictStr]] = None target: Optional[StrictStr] = None privileged: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["dockerfile", "entrypoint", "command", "args", "target", "privileged"] + __properties: ClassVar[List[str]] = [ + "dockerfile", + "entrypoint", + "command", + "args", + "target", + "privileged", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +49,6 @@ class DockerBuilder(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,14 +91,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "dockerfile": obj.get("dockerfile"), - "entrypoint": obj.get("entrypoint"), - "command": obj.get("command"), - "args": obj.get("args"), - "target": obj.get("target"), - "privileged": obj.get("privileged") - }) + _obj = cls.model_validate( + { + "dockerfile": obj.get("dockerfile"), + "entrypoint": obj.get("entrypoint"), + "command": obj.get("command"), + "args": obj.get("args"), + "target": obj.get("target"), + "privileged": obj.get("privileged"), + } + ) return _obj - - diff --git a/koyeb/api/models/docker_hub_registry_configuration.py b/koyeb/api/models/docker_hub_registry_configuration.py index 3dfaafed..305a0f1e 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index f70fd015..b3ca771e 100644 --- a/koyeb/api/models/docker_source.py +++ b/koyeb/api/models/docker_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,17 +22,26 @@ from typing import Optional, Set from typing_extensions import Self + class DockerSource(BaseModel): """ DockerSource - """ # noqa: E501 + """ # noqa: E501 + image: Optional[StrictStr] = None command: Optional[StrictStr] = None args: Optional[List[StrictStr]] = None image_registry_secret: Optional[StrictStr] = None entrypoint: Optional[List[StrictStr]] = None privileged: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["image", "command", "args", "image_registry_secret", "entrypoint", "privileged"] + __properties: ClassVar[List[str]] = [ + "image", + "command", + "args", + "image_registry_secret", + "entrypoint", + "privileged", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +49,6 @@ class DockerSource(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,14 +91,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "image": obj.get("image"), - "command": obj.get("command"), - "args": obj.get("args"), - "image_registry_secret": obj.get("image_registry_secret"), - "entrypoint": obj.get("entrypoint"), - "privileged": obj.get("privileged") - }) + _obj = cls.model_validate( + { + "image": obj.get("image"), + "command": obj.get("command"), + "args": obj.get("args"), + "image_registry_secret": obj.get("image_registry_secret"), + "entrypoint": obj.get("entrypoint"), + "privileged": obj.get("privileged"), + } + ) return _obj - - diff --git a/koyeb/api/models/domain.py b/koyeb/api/models/domain.py index 2d24d5e7..8f39f68d 100644 --- a/koyeb/api/models/domain.py +++ b/koyeb/api/models/domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ from typing import Optional, Set from typing_extensions import Self + class Domain(BaseModel): """ Domain - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None name: Optional[StrictStr] = None @@ -45,7 +47,23 @@ class Domain(BaseModel): version: Optional[StrictStr] = None cloudflare: Optional[Dict[str, Any]] = None koyeb: Optional[DomainLoadBalancerKoyeb] = None - __properties: ClassVar[List[str]] = ["id", "organization_id", "name", "created_at", "updated_at", "status", "type", "app_id", "deployment_group", "verified_at", "intended_cname", "messages", "version", "cloudflare", "koyeb"] + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "name", + "created_at", + "updated_at", + "status", + "type", + "app_id", + "deployment_group", + "verified_at", + "intended_cname", + "messages", + "version", + "cloudflare", + "koyeb", + ] model_config = ConfigDict( populate_by_name=True, @@ -53,7 +71,6 @@ class Domain(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -78,8 +95,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -88,7 +104,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of koyeb if self.koyeb: - _dict['koyeb'] = self.koyeb.to_dict() + _dict["koyeb"] = self.koyeb.to_dict() return _dict @classmethod @@ -100,23 +116,35 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "name": obj.get("name"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "status": obj.get("status") if obj.get("status") is not None else DomainStatus.PENDING, - "type": obj.get("type") if obj.get("type") is not None else DomainType.AUTOASSIGNED, - "app_id": obj.get("app_id"), - "deployment_group": obj.get("deployment_group"), - "verified_at": obj.get("verified_at"), - "intended_cname": obj.get("intended_cname"), - "messages": obj.get("messages"), - "version": obj.get("version"), - "cloudflare": obj.get("cloudflare"), - "koyeb": DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) if obj.get("koyeb") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "name": obj.get("name"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else DomainStatus.PENDING + ), + "type": ( + obj.get("type") + if obj.get("type") is not None + else DomainType.AUTOASSIGNED + ), + "app_id": obj.get("app_id"), + "deployment_group": obj.get("deployment_group"), + "verified_at": obj.get("verified_at"), + "intended_cname": obj.get("intended_cname"), + "messages": obj.get("messages"), + "version": obj.get("version"), + "cloudflare": obj.get("cloudflare"), + "koyeb": ( + DomainLoadBalancerKoyeb.from_dict(obj["koyeb"]) + if obj.get("koyeb") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/domain_load_balancer_koyeb.py b/koyeb/api/models/domain_load_balancer_koyeb.py index 918fda8a..034c4d1d 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,7 @@ def 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/api/models/domain_load_balancer_quotas.py b/koyeb/api/models/domain_load_balancer_quotas.py index 1a7f943f..09a2fd89 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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 index 1f441933..e05ed638 100644 --- a/koyeb/api/models/domain_status.py +++ b/koyeb/api/models/domain_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,15 +26,13 @@ class DomainStatus(str, Enum): """ allowed enum values """ - PENDING = 'PENDING' - ACTIVE = 'ACTIVE' - ERROR = 'ERROR' - DELETING = 'DELETING' - DELETED = 'DELETED' + PENDING = "PENDING" + ACTIVE = "ACTIVE" + ERROR = "ERROR" + DELETING = "DELETING" + DELETED = "DELETED" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DomainStatus from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/domain_type.py b/koyeb/api/models/domain_type.py index 6ea6ca50..f76c076e 100644 --- a/koyeb/api/models/domain_type.py +++ b/koyeb/api/models/domain_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,10 @@ class DomainType(str, Enum): """ allowed enum values """ - AUTOASSIGNED = 'AUTOASSIGNED' - CUSTOM = 'CUSTOM' + AUTOASSIGNED = "AUTOASSIGNED" + CUSTOM = "CUSTOM" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of DomainType from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/domains_summary.py b/koyeb/api/models/domains_summary.py index 8da36c7a..6305158d 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/env.py b/koyeb/api/models/env.py index 439499d9..9ec5425c 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/error.py b/koyeb/api/models/error.py index 723a0833..18c60e6a 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/error_field.py b/koyeb/api/models/error_field.py index 49123951..776fa9bf 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 4a3c574e..91aad573 100644 --- a/koyeb/api/models/error_with_fields.py +++ b/koyeb/api/models/error_with_fields.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ErrorWithFields(BaseModel): """ ErrorWithFields - """ # noqa: E501 + """ # noqa: E501 + status: Optional[StrictInt] = None code: Optional[StrictStr] = None message: Optional[StrictStr] = None @@ -39,7 +41,6 @@ class ErrorWithFields(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_fields in self.fields: if _item_fields: _items.append(_item_fields.to_dict()) - _dict['fields'] = _items + _dict["fields"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "status": obj.get("status"), - "code": obj.get("code"), - "message": obj.get("message"), - "fields": [ErrorField.from_dict(_item) for _item in obj["fields"]] if obj.get("fields") is not None else None - }) + _obj = cls.model_validate( + { + "status": obj.get("status"), + "code": obj.get("code"), + "message": obj.get("message"), + "fields": ( + [ErrorField.from_dict(_item) for _item in obj["fields"]] + if obj.get("fields") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/exec_command_io.py b/koyeb/api/models/exec_command_io.py index 4d7f0155..de37cbec 100644 --- a/koyeb/api/models/exec_command_io.py +++ b/koyeb/api/models/exec_command_io.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,22 +23,33 @@ from typing import Optional, Set from typing_extensions import Self + class ExecCommandIO(BaseModel): """ ExecCommandIO - """ # noqa: E501 - data: Optional[Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]]] = Field(default=None, description="Data is base64 encoded") - close: Optional[StrictBool] = Field(default=None, description="Indicate last data frame") + """ # noqa: E501 + + data: Optional[ + Union[Annotated[bytes, Field(strict=True)], Annotated[str, Field(strict=True)]] + ] = Field(default=None, description="Data is base64 encoded") + close: Optional[StrictBool] = Field( + default=None, description="Indicate last data frame" + ) __properties: ClassVar[List[str]] = ["data", "close"] - @field_validator('data') + @field_validator("data") def data_validate_regular_expression(cls, value): """Validates the regular expression""" if value is None: return value - if not re.match(r"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$", value): - raise ValueError(r"must validate the regular expression /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/") + if not re.match( + r"^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$", + value, + ): + raise ValueError( + r"must validate the regular expression /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/" + ) return value model_config = ConfigDict( @@ -47,7 +58,6 @@ def data_validate_regular_expression(cls, value): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,8 +82,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -91,10 +100,5 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "data": obj.get("data"), - "close": obj.get("close") - }) + _obj = cls.model_validate({"data": obj.get("data"), "close": obj.get("close")}) return _obj - - diff --git a/koyeb/api/models/exec_command_reply.py b/koyeb/api/models/exec_command_reply.py index 913a7305..77264cb5 100644 --- a/koyeb/api/models/exec_command_reply.py +++ b/koyeb/api/models/exec_command_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ExecCommandReply(BaseModel): """ ExecCommandReply - """ # noqa: E501 + """ # noqa: E501 + stdout: Optional[ExecCommandIO] = None stderr: Optional[ExecCommandIO] = None exited: Optional[StrictBool] = None @@ -39,7 +41,6 @@ class ExecCommandReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -74,10 +74,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of stdout if self.stdout: - _dict['stdout'] = self.stdout.to_dict() + _dict["stdout"] = self.stdout.to_dict() # override the default output from pydantic by calling `to_dict()` of stderr if self.stderr: - _dict['stderr'] = self.stderr.to_dict() + _dict["stderr"] = self.stderr.to_dict() return _dict @classmethod @@ -89,12 +89,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "stdout": ExecCommandIO.from_dict(obj["stdout"]) if obj.get("stdout") is not None else None, - "stderr": ExecCommandIO.from_dict(obj["stderr"]) if obj.get("stderr") is not None else None, - "exited": obj.get("exited"), - "exit_code": obj.get("exit_code") - }) + _obj = cls.model_validate( + { + "stdout": ( + ExecCommandIO.from_dict(obj["stdout"]) + if obj.get("stdout") is not None + else None + ), + "stderr": ( + ExecCommandIO.from_dict(obj["stderr"]) + if obj.get("stderr") is not None + else None + ), + "exited": obj.get("exited"), + "exit_code": obj.get("exit_code"), + } + ) return _obj - - diff --git a/koyeb/api/models/exec_command_request_body.py b/koyeb/api/models/exec_command_request_body.py index b56fc3c0..4b930cd4 100644 --- a/koyeb/api/models/exec_command_request_body.py +++ b/koyeb/api/models/exec_command_request_body.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,18 +20,28 @@ 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 koyeb.api.models.exec_command_request_terminal_size import ( + ExecCommandRequestTerminalSize, +) from typing import Optional, Set from typing_extensions import Self + class ExecCommandRequestBody(BaseModel): """ ExecCommandRequestBody - """ # noqa: E501 - command: Optional[List[StrictStr]] = Field(default=None, description="Command to exec. Mandatory in the first frame sent") + """ # noqa: E501 + + command: Optional[List[StrictStr]] = Field( + default=None, description="Command to exec. Mandatory in the first frame sent" + ) tty_size: Optional[ExecCommandRequestTerminalSize] = None stdin: Optional[ExecCommandIO] = None - disable_tty: Optional[StrictBool] = Field(default=None, description="Disable TTY. It's enough to specify it in the first frame", alias="disableTty") + disable_tty: Optional[StrictBool] = Field( + default=None, + description="Disable TTY. It's enough to specify it in the first frame", + alias="disableTty", + ) __properties: ClassVar[List[str]] = ["command", "tty_size", "stdin", "disableTty"] model_config = ConfigDict( @@ -40,7 +50,6 @@ class ExecCommandRequestBody(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +74,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,10 +83,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of tty_size if self.tty_size: - _dict['tty_size'] = self.tty_size.to_dict() + _dict["tty_size"] = self.tty_size.to_dict() # override the default output from pydantic by calling `to_dict()` of stdin if self.stdin: - _dict['stdin'] = self.stdin.to_dict() + _dict["stdin"] = self.stdin.to_dict() return _dict @classmethod @@ -90,12 +98,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "command": obj.get("command"), - "tty_size": ExecCommandRequestTerminalSize.from_dict(obj["tty_size"]) if obj.get("tty_size") is not None else None, - "stdin": ExecCommandIO.from_dict(obj["stdin"]) if obj.get("stdin") is not None else None, - "disableTty": obj.get("disableTty") - }) + _obj = cls.model_validate( + { + "command": obj.get("command"), + "tty_size": ( + ExecCommandRequestTerminalSize.from_dict(obj["tty_size"]) + if obj.get("tty_size") is not None + else None + ), + "stdin": ( + ExecCommandIO.from_dict(obj["stdin"]) + if obj.get("stdin") is not None + else None + ), + "disableTty": obj.get("disableTty"), + } + ) return _obj - - diff --git a/koyeb/api/models/exec_command_request_id_type.py b/koyeb/api/models/exec_command_request_id_type.py index 9893c9dc..c7e45305 100644 --- a/koyeb/api/models/exec_command_request_id_type.py +++ b/koyeb/api/models/exec_command_request_id_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,11 @@ class ExecCommandRequestIdType(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - INSTANCE_ID = 'INSTANCE_ID' - SERVICE_ID = 'SERVICE_ID' + INVALID = "INVALID" + INSTANCE_ID = "INSTANCE_ID" + SERVICE_ID = "SERVICE_ID" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ExecCommandRequestIdType from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/exec_command_request_terminal_size.py b/koyeb/api/models/exec_command_request_terminal_size.py index 4b65f553..2b634a0d 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/gcp_container_registry_configuration.py b/koyeb/api/models/gcp_container_registry_configuration.py index a5195a6f..4341c857 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/get_app_reply.py b/koyeb/api/models/get_app_reply.py index 2c559db0..315d6068 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +83,7 @@ def 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/api/models/get_budget_reply.py b/koyeb/api/models/get_budget_reply.py index 4e5b3c81..725427ef 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/get_catalog_instance_reply.py b/koyeb/api/models/get_catalog_instance_reply.py index 5bd5b116..dd8fb2bb 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_credential_reply.py b/koyeb/api/models/get_credential_reply.py index ec2c6fdc..35d351b5 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/get_deployment_reply.py b/koyeb/api/models/get_deployment_reply.py index f33bcb78..4cdb287b 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 013064e7..2d1f7fe4 100644 --- a/koyeb/api/models/get_deployment_scaling_reply.py +++ b/koyeb/api/models/get_deployment_scaling_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,14 +19,18 @@ 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 koyeb.api.models.get_deployment_scaling_reply_item import ( + GetDeploymentScalingReplyItem, +) from typing import Optional, Set from typing_extensions import Self + class GetDeploymentScalingReply(BaseModel): """ GetDeploymentScalingReply - """ # noqa: E501 + """ # noqa: E501 + replicas: Optional[List[GetDeploymentScalingReplyItem]] = None __properties: ClassVar[List[str]] = ["replicas"] @@ -36,7 +40,6 @@ class GetDeploymentScalingReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_replicas in self.replicas: if _item_replicas: _items.append(_item_replicas.to_dict()) - _dict['replicas'] = _items + _dict["replicas"] = _items return _dict @classmethod @@ -87,9 +89,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "replicas": [GetDeploymentScalingReplyItem.from_dict(_item) for _item in obj["replicas"]] if obj.get("replicas") is not None else None - }) + _obj = cls.model_validate( + { + "replicas": ( + [ + GetDeploymentScalingReplyItem.from_dict(_item) + for _item in obj["replicas"] + ] + if obj.get("replicas") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/get_deployment_scaling_reply_item.py b/koyeb/api/models/get_deployment_scaling_reply_item.py index f93fa1ec..1faac741 100644 --- a/koyeb/api/models/get_deployment_scaling_reply_item.py +++ b/koyeb/api/models/get_deployment_scaling_reply_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,13 +23,18 @@ from typing import Optional, Set from typing_extensions import Self + class GetDeploymentScalingReplyItem(BaseModel): """ GetDeploymentScalingReplyItem - """ # noqa: E501 + """ # noqa: E501 + region: Optional[StrictStr] = None replica_index: Optional[StrictInt] = None - instances: Optional[List[Instance]] = Field(default=None, description="An array of `active` and `starting` instances. Status of the active instance (and if none the most recent instance) string status = 4; Status message of the active instance (and if none the most recent instance) string message = 5;") + instances: Optional[List[Instance]] = Field( + default=None, + description="An array of `active` and `starting` instances. Status of the active instance (and if none the most recent instance) string status = 4; Status message of the active instance (and if none the most recent instance) string message = 5;", + ) __properties: ClassVar[List[str]] = ["region", "replica_index", "instances"] model_config = ConfigDict( @@ -38,7 +43,6 @@ class GetDeploymentScalingReplyItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +67,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +80,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict['instances'] = _items + _dict["instances"] = _items return _dict @classmethod @@ -89,11 +92,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "region": obj.get("region"), - "replica_index": obj.get("replica_index"), - "instances": [Instance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None - }) + _obj = cls.model_validate( + { + "region": obj.get("region"), + "replica_index": obj.get("replica_index"), + "instances": ( + [Instance.from_dict(_item) for _item in obj["instances"]] + if obj.get("instances") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/get_domain_reply.py b/koyeb/api/models/get_domain_reply.py index a7fc8611..1eb9bccc 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index f042cc71..2e1d7581 100644 --- a/koyeb/api/models/get_github_installation_reply.py +++ b/koyeb/api/models/get_github_installation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,26 +20,45 @@ 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_github_installation_status import ( + KgitproxyGithubInstallationStatus, +) from koyeb.api.models.kgitproxy_indexing_status import KgitproxyIndexingStatus from typing import Optional, Set from typing_extensions import Self + class GetGithubInstallationReply(BaseModel): """ GetGithubInstallationReply - """ # noqa: E501 + """ # noqa: E501 + installation_id: Optional[StrictStr] = None installation_url: Optional[StrictStr] = None name: Optional[StrictStr] = None avatar_url: Optional[StrictStr] = None - status: Optional[KgitproxyGithubInstallationStatus] = KgitproxyGithubInstallationStatus.INVALID + status: Optional[KgitproxyGithubInstallationStatus] = ( + KgitproxyGithubInstallationStatus.INVALID + ) installed_at: Optional[datetime] = None suspended_at: Optional[datetime] = None - indexing_status: Optional[KgitproxyIndexingStatus] = KgitproxyIndexingStatus.INVALID_INDEXING_STATUS + indexing_status: Optional[KgitproxyIndexingStatus] = ( + KgitproxyIndexingStatus.INVALID_INDEXING_STATUS + ) indexed_repositories: Optional[StrictInt] = None total_repositories: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["installation_id", "installation_url", "name", "avatar_url", "status", "installed_at", "suspended_at", "indexing_status", "indexed_repositories", "total_repositories"] + __properties: ClassVar[List[str]] = [ + "installation_id", + "installation_url", + "name", + "avatar_url", + "status", + "installed_at", + "suspended_at", + "indexing_status", + "indexed_repositories", + "total_repositories", + ] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +66,6 @@ class GetGithubInstallationReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,8 +90,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -91,18 +108,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "installation_id": obj.get("installation_id"), - "installation_url": obj.get("installation_url"), - "name": obj.get("name"), - "avatar_url": obj.get("avatar_url"), - "status": obj.get("status") if obj.get("status") is not None else KgitproxyGithubInstallationStatus.INVALID, - "installed_at": obj.get("installed_at"), - "suspended_at": obj.get("suspended_at"), - "indexing_status": obj.get("indexing_status") if obj.get("indexing_status") is not None else KgitproxyIndexingStatus.INVALID_INDEXING_STATUS, - "indexed_repositories": obj.get("indexed_repositories"), - "total_repositories": obj.get("total_repositories") - }) + _obj = cls.model_validate( + { + "installation_id": obj.get("installation_id"), + "installation_url": obj.get("installation_url"), + "name": obj.get("name"), + "avatar_url": obj.get("avatar_url"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else KgitproxyGithubInstallationStatus.INVALID + ), + "installed_at": obj.get("installed_at"), + "suspended_at": obj.get("suspended_at"), + "indexing_status": ( + obj.get("indexing_status") + if obj.get("indexing_status") is not None + else KgitproxyIndexingStatus.INVALID_INDEXING_STATUS + ), + "indexed_repositories": obj.get("indexed_repositories"), + "total_repositories": obj.get("total_repositories"), + } + ) return _obj - - diff --git a/koyeb/api/models/get_idenfy_token_reply.py b/koyeb/api/models/get_idenfy_token_reply.py index 2115901c..d180873d 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/get_instance_reply.py b/koyeb/api/models/get_instance_reply.py index 61686ce2..76397a9c 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_intercom_profile_reply.py b/koyeb/api/models/get_intercom_profile_reply.py index c080f046..4c50c0f0 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/get_metrics_reply.py b/koyeb/api/models/get_metrics_reply.py index cfebacda..56471c5b 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +87,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({ - "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/api/models/get_metrics_reply_metric.py b/koyeb/api/models/get_metrics_reply_metric.py index 370c2c21..c054b97f 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,10 +88,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({ - "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/api/models/get_o_auth_options_reply.py b/koyeb/api/models/get_o_auth_options_reply.py index 888fffd0..07929973 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +87,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({ - "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 index 58cb7137..a2d987b0 100644 --- a/koyeb/api/models/get_organization_invitation_reply.py +++ b/koyeb/api/models/get_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class GetOrganizationInvitationReply(BaseModel): """ GetOrganizationInvitationReply - """ # noqa: E501 + """ # noqa: E501 + invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -36,7 +38,6 @@ class GetOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_organization_reply.py b/koyeb/api/models/get_organization_reply.py index ffe3271e..1f2f378f 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_organization_summary_reply.py b/koyeb/api/models/get_organization_summary_reply.py index 0f1c2abb..d4fcb8f8 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 39b38beb..cdb25087 100644 --- a/koyeb/api/models/get_organization_usage_details_reply.py +++ b/koyeb/api/models/get_organization_usage_details_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,17 +24,26 @@ from typing import Optional, Set from typing_extensions import Self + class GetOrganizationUsageDetailsReply(BaseModel): """ GetOrganizationUsageDetailsReply - """ # noqa: E501 + """ # noqa: E501 + usage_details: Optional[List[UsageDetails]] = None database_details: Optional[List[DatabaseUsageDetails]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None order: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["usage_details", "database_details", "limit", "offset", "count", "order"] + __properties: ClassVar[List[str]] = [ + "usage_details", + "database_details", + "limit", + "offset", + "count", + "order", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +51,6 @@ class GetOrganizationUsageDetailsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +75,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +88,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_usage_details in self.usage_details: if _item_usage_details: _items.append(_item_usage_details.to_dict()) - _dict['usage_details'] = _items + _dict["usage_details"] = _items # override the default output from pydantic by calling `to_dict()` of each item in database_details (list) _items = [] if self.database_details: for _item_database_details in self.database_details: if _item_database_details: _items.append(_item_database_details.to_dict()) - _dict['database_details'] = _items + _dict["database_details"] = _items return _dict @classmethod @@ -100,14 +107,25 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "usage_details": [UsageDetails.from_dict(_item) for _item in obj["usage_details"]] if obj.get("usage_details") is not None else None, - "database_details": [DatabaseUsageDetails.from_dict(_item) for _item in obj["database_details"]] if obj.get("database_details") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "order": obj.get("order") - }) + _obj = cls.model_validate( + { + "usage_details": ( + [UsageDetails.from_dict(_item) for _item in obj["usage_details"]] + if obj.get("usage_details") is not None + else None + ), + "database_details": ( + [ + DatabaseUsageDetails.from_dict(_item) + for _item in obj["database_details"] + ] + if obj.get("database_details") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "order": obj.get("order"), + } + ) return _obj - - diff --git a/koyeb/api/models/get_organization_usage_reply.py b/koyeb/api/models/get_organization_usage_reply.py index 954be1ea..a78e7519 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index dd33e4c5..75a00c2a 100644 --- a/koyeb/api/models/get_payment_method_reply.py +++ b/koyeb/api/models/get_payment_method_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class GetPaymentMethodReply(BaseModel): """ GetPaymentMethodReply - """ # noqa: E501 + """ # noqa: E501 + payment_method: Optional[PaymentMethod] = None __properties: ClassVar[List[str]] = ["payment_method"] @@ -36,7 +38,6 @@ class GetPaymentMethodReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_persistent_volume_reply.py b/koyeb/api/models/get_persistent_volume_reply.py index a9ddf855..ea691ea3 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/get_quotas_reply.py b/koyeb/api/models/get_quotas_reply.py index bb412462..fc0b9b7c 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_region_reply.py b/koyeb/api/models/get_region_reply.py index f78a555d..afaa42f0 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 4b025b3b..bd5777a2 100644 --- a/koyeb/api/models/get_regional_deployment_reply.py +++ b/koyeb/api/models/get_regional_deployment_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class GetRegionalDeploymentReply(BaseModel): """ GetRegionalDeploymentReply - """ # noqa: E501 + """ # noqa: E501 + regional_deployment: Optional[RegionalDeployment] = None __properties: ClassVar[List[str]] = ["regional_deployment"] @@ -36,7 +38,6 @@ class GetRegionalDeploymentReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -71,7 +71,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of regional_deployment if self.regional_deployment: - _dict['regional_deployment'] = self.regional_deployment.to_dict() + _dict["regional_deployment"] = self.regional_deployment.to_dict() return _dict @classmethod @@ -83,9 +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({ - "regional_deployment": RegionalDeployment.from_dict(obj["regional_deployment"]) if obj.get("regional_deployment") is not None else None - }) + _obj = cls.model_validate( + { + "regional_deployment": ( + RegionalDeployment.from_dict(obj["regional_deployment"]) + if obj.get("regional_deployment") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/get_secret_reply.py b/koyeb/api/models/get_secret_reply.py index 384c2f63..4b93a9d1 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/get_service_reply.py b/koyeb/api/models/get_service_reply.py index c6be9cd8..a582cbe2 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_snapshot_reply.py b/koyeb/api/models/get_snapshot_reply.py index 174b393a..b8e198dd 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_subscription_reply.py b/koyeb/api/models/get_subscription_reply.py index ee9d4c59..fac64633 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_user_organization_invitation_reply.py b/koyeb/api/models/get_user_organization_invitation_reply.py index e53655da..594975a1 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/get_user_settings_reply.py b/koyeb/api/models/get_user_settings_reply.py index f8331bfa..69a478b8 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 422b67f8..484de4ae 100644 --- a/koyeb/api/models/git_deployment_metadata.py +++ b/koyeb/api/models/git_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class GitDeploymentMetadata(BaseModel): """ GitDeploymentMetadata - """ # noqa: E501 + """ # noqa: E501 + last_provisioned_deployment_id: Optional[StrictStr] = None git_env: Optional[GitEnvDeploymentMetadata] = None __properties: ClassVar[List[str]] = ["last_provisioned_deployment_id", "git_env"] @@ -37,7 +39,6 @@ class GitDeploymentMetadata(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of git_env if self.git_env: - _dict['git_env'] = self.git_env.to_dict() + _dict["git_env"] = self.git_env.to_dict() return _dict @classmethod @@ -84,10 +84,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "last_provisioned_deployment_id": obj.get("last_provisioned_deployment_id"), - "git_env": GitEnvDeploymentMetadata.from_dict(obj["git_env"]) if obj.get("git_env") is not None else None - }) + _obj = cls.model_validate( + { + "last_provisioned_deployment_id": obj.get( + "last_provisioned_deployment_id" + ), + "git_env": ( + GitEnvDeploymentMetadata.from_dict(obj["git_env"]) + if obj.get("git_env") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/git_env_deployment_metadata.py b/koyeb/api/models/git_env_deployment_metadata.py index 7f427c6e..96de36b9 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/git_hub_registry_configuration.py b/koyeb/api/models/git_hub_registry_configuration.py index 0fae9ee4..cc78a454 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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_lab_registry_configuration.py b/koyeb/api/models/git_lab_registry_configuration.py index 1f18cf7a..48b03c02 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index de75355c..ba381a46 100644 --- a/koyeb/api/models/git_source.py +++ b/koyeb/api/models/git_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,11 +24,16 @@ from typing import Optional, Set from typing_extensions import Self + class GitSource(BaseModel): """ GitSource - """ # noqa: E501 - repository: Optional[StrictStr] = Field(default=None, description="A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test.") + """ # noqa: E501 + + repository: Optional[StrictStr] = Field( + default=None, + description="A url to a git repository (contains the provider as well) .e.g: github.com/koyeb/test.", + ) branch: Optional[StrictStr] = None tag: Optional[StrictStr] = None sha: Optional[StrictStr] = None @@ -38,7 +43,18 @@ class GitSource(BaseModel): workdir: Optional[StrictStr] = None buildpack: Optional[BuildpackBuilder] = None docker: Optional[DockerBuilder] = None - __properties: ClassVar[List[str]] = ["repository", "branch", "tag", "sha", "build_command", "run_command", "no_deploy_on_push", "workdir", "buildpack", "docker"] + __properties: ClassVar[List[str]] = [ + "repository", + "branch", + "tag", + "sha", + "build_command", + "run_command", + "no_deploy_on_push", + "workdir", + "buildpack", + "docker", + ] model_config = ConfigDict( populate_by_name=True, @@ -46,7 +62,6 @@ class GitSource(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,8 +86,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,10 +95,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of buildpack if self.buildpack: - _dict['buildpack'] = self.buildpack.to_dict() + _dict["buildpack"] = self.buildpack.to_dict() # override the default output from pydantic by calling `to_dict()` of docker if self.docker: - _dict['docker'] = self.docker.to_dict() + _dict["docker"] = self.docker.to_dict() return _dict @classmethod @@ -96,18 +110,26 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "repository": obj.get("repository"), - "branch": obj.get("branch"), - "tag": obj.get("tag"), - "sha": obj.get("sha"), - "build_command": obj.get("build_command"), - "run_command": obj.get("run_command"), - "no_deploy_on_push": obj.get("no_deploy_on_push"), - "workdir": obj.get("workdir"), - "buildpack": BuildpackBuilder.from_dict(obj["buildpack"]) if obj.get("buildpack") is not None else None, - "docker": DockerBuilder.from_dict(obj["docker"]) if obj.get("docker") is not None else None - }) + _obj = cls.model_validate( + { + "repository": obj.get("repository"), + "branch": obj.get("branch"), + "tag": obj.get("tag"), + "sha": obj.get("sha"), + "build_command": obj.get("build_command"), + "run_command": obj.get("run_command"), + "no_deploy_on_push": obj.get("no_deploy_on_push"), + "workdir": obj.get("workdir"), + "buildpack": ( + BuildpackBuilder.from_dict(obj["buildpack"]) + if obj.get("buildpack") is not None + else None + ), + "docker": ( + DockerBuilder.from_dict(obj["docker"]) + if obj.get("docker") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/github_installation_reply.py b/koyeb/api/models/github_installation_reply.py index 6ffcaa98..b800aaa5 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/github_installation_request.py b/koyeb/api/models/github_installation_request.py index a04aebe8..3ddd8051 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/google_protobuf_any.py b/koyeb/api/models/google_protobuf_any.py index 17578045..6769bd51 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -62,9 +63,11 @@ 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, @@ -87,14 +90,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({ - "@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 index 3b72b255..52e4bfdb 100644 --- a/koyeb/api/models/google_protobuf_null_value.py +++ b/koyeb/api/models/google_protobuf_null_value.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,9 @@ class GoogleProtobufNullValue(str, Enum): """ allowed enum values """ - NULL_VALUE = 'NULL_VALUE' + NULL_VALUE = "NULL_VALUE" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of GoogleProtobufNullValue from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/google_rpc_status.py b/koyeb/api/models/google_rpc_status.py index fbdd21a3..f3217432 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,11 +89,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "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/api/models/has_unpaid_invoices_reply.py b/koyeb/api/models/has_unpaid_invoices_reply.py index 06675b35..55d38692 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,7 @@ def 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/api/models/http_header.py b/koyeb/api/models/http_header.py index 8fac45ca..9b009168 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,5 @@ def 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/api/models/http_health_check.py b/koyeb/api/models/http_health_check.py index 0ad0d21e..9f6bff3b 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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 @@ -39,7 +41,6 @@ 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)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "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 index f103f470..8b60cb0b 100644 --- a/koyeb/api/models/instance.py +++ b/koyeb/api/models/instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class Instance(BaseModel): """ Instance - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -46,8 +48,31 @@ class Instance(BaseModel): started_at: Optional[datetime] = None succeeded_at: Optional[datetime] = None terminated_at: Optional[datetime] = None - xyz_deployment_id: Optional[StrictStr] = Field(default=None, description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.") - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "organization_id", "app_id", "service_id", "regional_deployment_id", "allocation_id", "type", "replica_index", "region", "datacenter", "hypervisor", "status", "messages", "started_at", "succeeded_at", "terminated_at", "xyz_deployment_id"] + xyz_deployment_id: Optional[StrictStr] = Field( + default=None, + description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.", + ) + __properties: ClassVar[List[str]] = [ + "id", + "created_at", + "updated_at", + "organization_id", + "app_id", + "service_id", + "regional_deployment_id", + "allocation_id", + "type", + "replica_index", + "region", + "datacenter", + "hypervisor", + "status", + "messages", + "started_at", + "succeeded_at", + "terminated_at", + "xyz_deployment_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -55,7 +80,6 @@ class Instance(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -80,8 +104,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -99,27 +122,31 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "allocation_id": obj.get("allocation_id"), - "type": obj.get("type"), - "replica_index": obj.get("replica_index"), - "region": obj.get("region"), - "datacenter": obj.get("datacenter"), - "hypervisor": obj.get("hypervisor"), - "status": obj.get("status") if obj.get("status") is not None else InstanceStatus.ALLOCATING, - "messages": obj.get("messages"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "xyz_deployment_id": obj.get("xyz_deployment_id") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "allocation_id": obj.get("allocation_id"), + "type": obj.get("type"), + "replica_index": obj.get("replica_index"), + "region": obj.get("region"), + "datacenter": obj.get("datacenter"), + "hypervisor": obj.get("hypervisor"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else InstanceStatus.ALLOCATING + ), + "messages": obj.get("messages"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "terminated_at": obj.get("terminated_at"), + "xyz_deployment_id": obj.get("xyz_deployment_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/instance_availability.py b/koyeb/api/models/instance_availability.py index 78ba4f2a..ab3aba85 100644 --- a/koyeb/api/models/instance_availability.py +++ b/koyeb/api/models/instance_availability.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class InstanceAvailability(BaseModel): """ InstanceAvailability - """ # noqa: E501 + """ # noqa: E501 + regions: Optional[Dict[str, RegionAvailability]] = None availability: Optional[AvailabilityLevel] = AvailabilityLevel.UNKNOWN __properties: ClassVar[List[str]] = ["regions", "availability"] @@ -38,7 +40,6 @@ class InstanceAvailability(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_regions in self.regions: if self.regions[_key_regions]: _field_dict[_key_regions] = self.regions[_key_regions].to_dict() - _dict['regions'] = _field_dict + _dict["regions"] = _field_dict return _dict @classmethod @@ -89,15 +89,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "regions": dict( - (_k, RegionAvailability.from_dict(_v)) - for _k, _v in obj["regions"].items() - ) - if obj.get("regions") is not None - else None, - "availability": obj.get("availability") if obj.get("availability") is not None else AvailabilityLevel.UNKNOWN - }) + _obj = cls.model_validate( + { + "regions": ( + dict( + (_k, RegionAvailability.from_dict(_v)) + for _k, _v in obj["regions"].items() + ) + if obj.get("regions") is not None + else None + ), + "availability": ( + obj.get("availability") + if obj.get("availability") is not None + else AvailabilityLevel.UNKNOWN + ), + } + ) return _obj - - diff --git a/koyeb/api/models/instance_event.py b/koyeb/api/models/instance_event.py index 0884c912..fb8ff082 100644 --- a/koyeb/api/models/instance_event.py +++ b/koyeb/api/models/instance_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class InstanceEvent(BaseModel): """ InstanceEvent - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -34,7 +36,15 @@ class InstanceEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "instance_id", "type", "message", "metadata"] + __properties: ClassVar[List[str]] = [ + "id", + "when", + "organization_id", + "instance_id", + "type", + "message", + "metadata", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +52,6 @@ class InstanceEvent(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,15 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "instance_id": obj.get("instance_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "instance_id": obj.get("instance_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata"), + } + ) return _obj - - diff --git a/koyeb/api/models/instance_list_item.py b/koyeb/api/models/instance_list_item.py index 9d2462a9..982f1b6f 100644 --- a/koyeb/api/models/instance_list_item.py +++ b/koyeb/api/models/instance_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class InstanceListItem(BaseModel): """ InstanceListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -42,8 +44,27 @@ class InstanceListItem(BaseModel): datacenter: Optional[StrictStr] = None status: Optional[InstanceStatus] = InstanceStatus.ALLOCATING messages: Optional[List[StrictStr]] = None - xyz_deployment_id: Optional[StrictStr] = Field(default=None, description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.") - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "organization_id", "app_id", "service_id", "regional_deployment_id", "allocation_id", "type", "replica_index", "region", "datacenter", "status", "messages", "xyz_deployment_id"] + xyz_deployment_id: Optional[StrictStr] = Field( + default=None, + description="WARNING: Please don't use the following attribute. Koyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice. USE AT YOUR OWN RISK.", + ) + __properties: ClassVar[List[str]] = [ + "id", + "created_at", + "updated_at", + "organization_id", + "app_id", + "service_id", + "regional_deployment_id", + "allocation_id", + "type", + "replica_index", + "region", + "datacenter", + "status", + "messages", + "xyz_deployment_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +72,6 @@ class InstanceListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,8 +96,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -95,23 +114,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "allocation_id": obj.get("allocation_id"), - "type": obj.get("type"), - "replica_index": obj.get("replica_index"), - "region": obj.get("region"), - "datacenter": obj.get("datacenter"), - "status": obj.get("status") if obj.get("status") is not None else InstanceStatus.ALLOCATING, - "messages": obj.get("messages"), - "xyz_deployment_id": obj.get("xyz_deployment_id") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "allocation_id": obj.get("allocation_id"), + "type": obj.get("type"), + "replica_index": obj.get("replica_index"), + "region": obj.get("region"), + "datacenter": obj.get("datacenter"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else InstanceStatus.ALLOCATING + ), + "messages": obj.get("messages"), + "xyz_deployment_id": obj.get("xyz_deployment_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/instance_status.py b/koyeb/api/models/instance_status.py index 10443720..f1eb8fba 100644 --- a/koyeb/api/models/instance_status.py +++ b/koyeb/api/models/instance_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,18 +26,16 @@ class InstanceStatus(str, Enum): """ allowed enum values """ - ALLOCATING = 'ALLOCATING' - STARTING = 'STARTING' - HEALTHY = 'HEALTHY' - UNHEALTHY = 'UNHEALTHY' - STOPPING = 'STOPPING' - STOPPED = 'STOPPED' - ERROR = 'ERROR' - SLEEPING = 'SLEEPING' + 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/api/models/instance_usage.py b/koyeb/api/models/instance_usage.py index c71ed20f..da5e3ab6 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/instances_summary.py b/koyeb/api/models/instances_summary.py index 6e3f8ef8..7baae165 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/invite_user_request.py b/koyeb/api/models/invite_user_request.py index 6009b788..f06099c0 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 6d03553e..105a572e 100644 --- a/koyeb/api/models/kgitproxy_branch.py +++ b/koyeb/api/models/kgitproxy_branch.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,18 +23,30 @@ from typing import Optional, Set from typing_extensions import Self + class KgitproxyBranch(BaseModel): """ KgitproxyBranch - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None repository_id: Optional[StrictStr] = None name: Optional[StrictStr] = None is_default: Optional[StrictBool] = None is_protected: Optional[StrictBool] = None - provider: Optional[KgitproxyRepositoryProvider] = KgitproxyRepositoryProvider.INVALID_PROVIDER - __properties: ClassVar[List[str]] = ["id", "organization_id", "repository_id", "name", "is_default", "is_protected", "provider"] + provider: Optional[KgitproxyRepositoryProvider] = ( + KgitproxyRepositoryProvider.INVALID_PROVIDER + ) + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "repository_id", + "name", + "is_default", + "is_protected", + "provider", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +54,6 @@ class KgitproxyBranch(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +78,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,15 +96,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "repository_id": obj.get("repository_id"), - "name": obj.get("name"), - "is_default": obj.get("is_default"), - "is_protected": obj.get("is_protected"), - "provider": obj.get("provider") if obj.get("provider") is not None else KgitproxyRepositoryProvider.INVALID_PROVIDER - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "repository_id": obj.get("repository_id"), + "name": obj.get("name"), + "is_default": obj.get("is_default"), + "is_protected": obj.get("is_protected"), + "provider": ( + obj.get("provider") + if obj.get("provider") is not None + else KgitproxyRepositoryProvider.INVALID_PROVIDER + ), + } + ) return _obj - - diff --git a/koyeb/api/models/kgitproxy_git_hub_repository.py b/koyeb/api/models/kgitproxy_git_hub_repository.py index 77647e28..05a2db4d 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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 index 9d281028..a534e6de 100644 --- a/koyeb/api/models/kgitproxy_github_installation_status.py +++ b/koyeb/api/models/kgitproxy_github_installation_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,12 @@ class KgitproxyGithubInstallationStatus(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - INSTALLED = 'INSTALLED' - SUSPENDED = 'SUSPENDED' - DELETED = 'DELETED' + INVALID = "INVALID" + INSTALLED = "INSTALLED" + SUSPENDED = "SUSPENDED" + DELETED = "DELETED" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of KgitproxyGithubInstallationStatus from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/kgitproxy_indexing_status.py b/koyeb/api/models/kgitproxy_indexing_status.py index 50cf2426..428a53ec 100644 --- a/koyeb/api/models/kgitproxy_indexing_status.py +++ b/koyeb/api/models/kgitproxy_indexing_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,12 @@ class KgitproxyIndexingStatus(str, Enum): """ allowed enum values """ - INVALID_INDEXING_STATUS = 'INVALID_INDEXING_STATUS' - NOT_STARTED = 'NOT_STARTED' - IN_PROGRESS = 'IN_PROGRESS' - COMPLETED = 'COMPLETED' + INVALID_INDEXING_STATUS = "INVALID_INDEXING_STATUS" + NOT_STARTED = "NOT_STARTED" + IN_PROGRESS = "IN_PROGRESS" + COMPLETED = "COMPLETED" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of KgitproxyIndexingStatus from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/kgitproxy_list_branches_reply.py b/koyeb/api/models/kgitproxy_list_branches_reply.py index 6dfaef56..cc892d81 100644 --- a/koyeb/api/models/kgitproxy_list_branches_reply.py +++ b/koyeb/api/models/kgitproxy_list_branches_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,14 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class KgitproxyListBranchesReply(BaseModel): """ KgitproxyListBranchesReply - """ # noqa: E501 - branches: Optional[List[KgitproxyBranch]] = Field(default=None, description="The collection of branches.") - limit: Optional[StrictInt] = Field(default=None, description="The limit in the request.") - offset: Optional[StrictInt] = Field(default=None, description="The offset in the request.") - count: Optional[StrictInt] = Field(default=None, description="The total number of items.") + """ # noqa: E501 + + branches: Optional[List[KgitproxyBranch]] = Field( + default=None, description="The collection of branches." + ) + limit: Optional[StrictInt] = Field( + default=None, description="The limit in the request." + ) + offset: Optional[StrictInt] = Field( + default=None, description="The offset in the request." + ) + count: Optional[StrictInt] = Field( + default=None, description="The total number of items." + ) __properties: ClassVar[List[str]] = ["branches", "limit", "offset", "count"] model_config = ConfigDict( @@ -39,7 +49,6 @@ class KgitproxyListBranchesReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +86,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_branches in self.branches: if _item_branches: _items.append(_item_branches.to_dict()) - _dict['branches'] = _items + _dict["branches"] = _items return _dict @classmethod @@ -90,12 +98,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "branches": [KgitproxyBranch.from_dict(_item) for _item in obj["branches"]] if obj.get("branches") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "branches": ( + [KgitproxyBranch.from_dict(_item) for _item in obj["branches"]] + if obj.get("branches") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/kgitproxy_list_repositories_reply.py b/koyeb/api/models/kgitproxy_list_repositories_reply.py index 8c2848eb..07acf144 100644 --- a/koyeb/api/models/kgitproxy_list_repositories_reply.py +++ b/koyeb/api/models/kgitproxy_list_repositories_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,14 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class KgitproxyListRepositoriesReply(BaseModel): """ KgitproxyListRepositoriesReply - """ # noqa: E501 - repositories: Optional[List[KgitproxyRepository]] = Field(default=None, description="The collection of repositories.") - limit: Optional[StrictInt] = Field(default=None, description="The limit in the request.") - offset: Optional[StrictInt] = Field(default=None, description="The offset in the request.") - count: Optional[StrictInt] = Field(default=None, description="The total number of items.") + """ # noqa: E501 + + repositories: Optional[List[KgitproxyRepository]] = Field( + default=None, description="The collection of repositories." + ) + limit: Optional[StrictInt] = Field( + default=None, description="The limit in the request." + ) + offset: Optional[StrictInt] = Field( + default=None, description="The offset in the request." + ) + count: Optional[StrictInt] = Field( + default=None, description="The total number of items." + ) __properties: ClassVar[List[str]] = ["repositories", "limit", "offset", "count"] model_config = ConfigDict( @@ -39,7 +49,6 @@ class KgitproxyListRepositoriesReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +86,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_repositories in self.repositories: if _item_repositories: _items.append(_item_repositories.to_dict()) - _dict['repositories'] = _items + _dict["repositories"] = _items return _dict @classmethod @@ -90,12 +98,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "repositories": [KgitproxyRepository.from_dict(_item) for _item in obj["repositories"]] if obj.get("repositories") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "repositories": ( + [ + KgitproxyRepository.from_dict(_item) + for _item in obj["repositories"] + ] + if obj.get("repositories") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/kgitproxy_repository.py b/koyeb/api/models/kgitproxy_repository.py index 2ae437a5..5daab974 100644 --- a/koyeb/api/models/kgitproxy_repository.py +++ b/koyeb/api/models/kgitproxy_repository.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -25,10 +25,12 @@ from typing import Optional, Set from typing_extensions import Self + class KgitproxyRepository(BaseModel): """ KgitproxyRepository - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None name: Optional[StrictStr] = None @@ -37,10 +39,24 @@ class KgitproxyRepository(BaseModel): is_private: Optional[StrictBool] = None is_disabled: Optional[StrictBool] = None default_branch: Optional[StrictStr] = None - provider: Optional[KgitproxyRepositoryProvider] = KgitproxyRepositoryProvider.INVALID_PROVIDER + provider: Optional[KgitproxyRepositoryProvider] = ( + KgitproxyRepositoryProvider.INVALID_PROVIDER + ) last_push_date: Optional[datetime] = None github: Optional[KgitproxyGitHubRepository] = None - __properties: ClassVar[List[str]] = ["id", "organization_id", "name", "url", "description", "is_private", "is_disabled", "default_branch", "provider", "last_push_date", "github"] + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "name", + "url", + "description", + "is_private", + "is_disabled", + "default_branch", + "provider", + "last_push_date", + "github", + ] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +64,6 @@ class KgitproxyRepository(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,8 +88,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +97,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of github if self.github: - _dict['github'] = self.github.to_dict() + _dict["github"] = self.github.to_dict() return _dict @classmethod @@ -95,19 +109,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "name": obj.get("name"), - "url": obj.get("url"), - "description": obj.get("description"), - "is_private": obj.get("is_private"), - "is_disabled": obj.get("is_disabled"), - "default_branch": obj.get("default_branch"), - "provider": obj.get("provider") if obj.get("provider") is not None else KgitproxyRepositoryProvider.INVALID_PROVIDER, - "last_push_date": obj.get("last_push_date"), - "github": KgitproxyGitHubRepository.from_dict(obj["github"]) if obj.get("github") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "name": obj.get("name"), + "url": obj.get("url"), + "description": obj.get("description"), + "is_private": obj.get("is_private"), + "is_disabled": obj.get("is_disabled"), + "default_branch": obj.get("default_branch"), + "provider": ( + obj.get("provider") + if obj.get("provider") is not None + else KgitproxyRepositoryProvider.INVALID_PROVIDER + ), + "last_push_date": obj.get("last_push_date"), + "github": ( + KgitproxyGitHubRepository.from_dict(obj["github"]) + if obj.get("github") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/kgitproxy_repository_provider.py b/koyeb/api/models/kgitproxy_repository_provider.py index 123d8ee8..53913b60 100644 --- a/koyeb/api/models/kgitproxy_repository_provider.py +++ b/koyeb/api/models/kgitproxy_repository_provider.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,10 @@ class KgitproxyRepositoryProvider(str, Enum): """ allowed enum values """ - INVALID_PROVIDER = 'INVALID_PROVIDER' - GITHUB = 'GITHUB' + INVALID_PROVIDER = "INVALID_PROVIDER" + GITHUB = "GITHUB" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of KgitproxyRepositoryProvider from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/ksearch_app.py b/koyeb/api/models/ksearch_app.py index 39002689..0d18ba4f 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 2c23406c..bf9c1629 100644 --- a/koyeb/api/models/ksearch_global_deployment.py +++ b/koyeb/api/models/ksearch_global_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,15 +22,22 @@ from typing import Optional, Set from typing_extensions import Self + class KsearchGlobalDeployment(BaseModel): """ KsearchGlobalDeployment - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None service_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "organization_id", "app_id", "service_id"] + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "app_id", + "service_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -38,7 +45,6 @@ class KsearchGlobalDeployment(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +69,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +87,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/ksearch_instance.py b/koyeb/api/models/ksearch_instance.py index 45fe55ba..221d567b 100644 --- a/koyeb/api/models/ksearch_instance.py +++ b/koyeb/api/models/ksearch_instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,16 +22,24 @@ from typing import Optional, Set from typing_extensions import Self + class KsearchInstance(BaseModel): """ KsearchInstance - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None service_id: Optional[StrictStr] = None allocation_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "organization_id", "app_id", "service_id", "allocation_id"] + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "app_id", + "service_id", + "allocation_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -39,7 +47,6 @@ class KsearchInstance(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +71,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +89,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "allocation_id": obj.get("allocation_id") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "allocation_id": obj.get("allocation_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/ksearch_organization.py b/koyeb/api/models/ksearch_organization.py index 2009ea9c..7f87d995 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,5 @@ def 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 index 88da3ca6..0c352cdb 100644 --- a/koyeb/api/models/ksearch_regional_deployment.py +++ b/koyeb/api/models/ksearch_regional_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,16 +22,24 @@ from typing import Optional, Set from typing_extensions import Self + class KsearchRegionalDeployment(BaseModel): """ KsearchRegionalDeployment - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None service_id: Optional[StrictStr] = None region: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "organization_id", "app_id", "service_id", "region"] + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "app_id", + "service_id", + "region", + ] model_config = ConfigDict( populate_by_name=True, @@ -39,7 +47,6 @@ class KsearchRegionalDeployment(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +71,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +89,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "region": obj.get("region") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "region": obj.get("region"), + } + ) return _obj - - diff --git a/koyeb/api/models/ksearch_search_reply.py b/koyeb/api/models/ksearch_search_reply.py index 6e8e7081..9a70f216 100644 --- a/koyeb/api/models/ksearch_search_reply.py +++ b/koyeb/api/models/ksearch_search_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -29,10 +29,12 @@ from typing import Optional, Set from typing_extensions import Self + class KsearchSearchReply(BaseModel): """ KsearchSearchReply - """ # noqa: E501 + """ # noqa: E501 + organizations: Optional[List[KsearchOrganization]] = None users: Optional[List[KsearchUser]] = None apps: Optional[List[KsearchApp]] = None @@ -40,7 +42,15 @@ class KsearchSearchReply(BaseModel): global_deployments: Optional[List[KsearchGlobalDeployment]] = None regional_deployments: Optional[List[KsearchRegionalDeployment]] = None instances: Optional[List[KsearchInstance]] = None - __properties: ClassVar[List[str]] = ["organizations", "users", "apps", "services", "global_deployments", "regional_deployments", "instances"] + __properties: ClassVar[List[str]] = [ + "organizations", + "users", + "apps", + "services", + "global_deployments", + "regional_deployments", + "instances", + ] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +58,6 @@ class KsearchSearchReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,8 +82,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -87,49 +95,49 @@ def to_dict(self) -> Dict[str, Any]: for _item_organizations in self.organizations: if _item_organizations: _items.append(_item_organizations.to_dict()) - _dict['organizations'] = _items + _dict["organizations"] = _items # override the default output from pydantic by calling `to_dict()` of each item in users (list) _items = [] if self.users: for _item_users in self.users: if _item_users: _items.append(_item_users.to_dict()) - _dict['users'] = _items + _dict["users"] = _items # override the default output from pydantic by calling `to_dict()` of each item in apps (list) _items = [] if self.apps: for _item_apps in self.apps: if _item_apps: _items.append(_item_apps.to_dict()) - _dict['apps'] = _items + _dict["apps"] = _items # override the default output from pydantic by calling `to_dict()` of each item in services (list) _items = [] if self.services: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict['services'] = _items + _dict["services"] = _items # override the default output from pydantic by calling `to_dict()` of each item in global_deployments (list) _items = [] if self.global_deployments: for _item_global_deployments in self.global_deployments: if _item_global_deployments: _items.append(_item_global_deployments.to_dict()) - _dict['global_deployments'] = _items + _dict["global_deployments"] = _items # override the default output from pydantic by calling `to_dict()` of each item in regional_deployments (list) _items = [] if self.regional_deployments: for _item_regional_deployments in self.regional_deployments: if _item_regional_deployments: _items.append(_item_regional_deployments.to_dict()) - _dict['regional_deployments'] = _items + _dict["regional_deployments"] = _items # override the default output from pydantic by calling `to_dict()` of each item in instances (list) _items = [] if self.instances: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict['instances'] = _items + _dict["instances"] = _items return _dict @classmethod @@ -141,15 +149,52 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "organizations": [KsearchOrganization.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None, - "users": [KsearchUser.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None, - "apps": [KsearchApp.from_dict(_item) for _item in obj["apps"]] if obj.get("apps") is not None else None, - "services": [KsearchService.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None, - "global_deployments": [KsearchGlobalDeployment.from_dict(_item) for _item in obj["global_deployments"]] if obj.get("global_deployments") is not None else None, - "regional_deployments": [KsearchRegionalDeployment.from_dict(_item) for _item in obj["regional_deployments"]] if obj.get("regional_deployments") is not None else None, - "instances": [KsearchInstance.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None - }) + _obj = cls.model_validate( + { + "organizations": ( + [ + KsearchOrganization.from_dict(_item) + for _item in obj["organizations"] + ] + if obj.get("organizations") is not None + else None + ), + "users": ( + [KsearchUser.from_dict(_item) for _item in obj["users"]] + if obj.get("users") is not None + else None + ), + "apps": ( + [KsearchApp.from_dict(_item) for _item in obj["apps"]] + if obj.get("apps") is not None + else None + ), + "services": ( + [KsearchService.from_dict(_item) for _item in obj["services"]] + if obj.get("services") is not None + else None + ), + "global_deployments": ( + [ + KsearchGlobalDeployment.from_dict(_item) + for _item in obj["global_deployments"] + ] + if obj.get("global_deployments") is not None + else None + ), + "regional_deployments": ( + [ + KsearchRegionalDeployment.from_dict(_item) + for _item in obj["regional_deployments"] + ] + if obj.get("regional_deployments") is not None + else None + ), + "instances": ( + [KsearchInstance.from_dict(_item) for _item in obj["instances"]] + if obj.get("instances") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/ksearch_service.py b/koyeb/api/models/ksearch_service.py index 0ef74ed8..9adfd0f2 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/ksearch_user.py b/koyeb/api/models/ksearch_user.py index 75bcef37..03458a61 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index f35e2c73..b97a2065 100644 --- a/koyeb/api/models/list_app_events_reply.py +++ b/koyeb/api/models/list_app_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListAppEventsReply(BaseModel): """ ListAppEventsReply - """ # noqa: E501 + """ # noqa: E501 + events: Optional[List[AppEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] + __properties: ClassVar[List[str]] = [ + "events", + "limit", + "offset", + "order", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListAppEventsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict['events'] = _items + _dict["events"] = _items return _dict @classmethod @@ -91,13 +97,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "events": [AppEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "events": ( + [AppEvent.from_dict(_item) for _item in obj["events"]] + if obj.get("events") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_apps_reply.py b/koyeb/api/models/list_apps_reply.py index bda0210d..1f19caac 100644 --- a/koyeb/api/models/list_apps_reply.py +++ b/koyeb/api/models/list_apps_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListAppsReply(BaseModel): """ ListAppsReply - """ # noqa: E501 + """ # noqa: E501 + apps: Optional[List[AppListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -40,7 +42,6 @@ class ListAppsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +66,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_apps in self.apps: if _item_apps: _items.append(_item_apps.to_dict()) - _dict['apps'] = _items + _dict["apps"] = _items return _dict @classmethod @@ -91,13 +91,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "apps": [AppListItem.from_dict(_item) for _item in obj["apps"]] if obj.get("apps") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "apps": ( + [AppListItem.from_dict(_item) for _item in obj["apps"]] + if obj.get("apps") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_catalog_instances_reply.py b/koyeb/api/models/list_catalog_instances_reply.py index 0de65f35..ac6b53fb 100644 --- a/koyeb/api/models/list_catalog_instances_reply.py +++ b/koyeb/api/models/list_catalog_instances_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListCatalogInstancesReply(BaseModel): """ ListCatalogInstancesReply - """ # noqa: E501 + """ # noqa: E501 + instances: Optional[List[CatalogInstanceListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListCatalogInstancesReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict['instances'] = _items + _dict["instances"] = _items return _dict @classmethod @@ -90,12 +90,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "instances": [CatalogInstanceListItem.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "instances": ( + [ + CatalogInstanceListItem.from_dict(_item) + for _item in obj["instances"] + ] + if obj.get("instances") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_credentials_reply.py b/koyeb/api/models/list_credentials_reply.py index 6d94f3b1..d5156d1a 100644 --- a/koyeb/api/models/list_credentials_reply.py +++ b/koyeb/api/models/list_credentials_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListCredentialsReply(BaseModel): """ ListCredentialsReply - """ # noqa: E501 + """ # noqa: E501 + credentials: Optional[List[Credential]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListCredentialsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_credentials in self.credentials: if _item_credentials: _items.append(_item_credentials.to_dict()) - _dict['credentials'] = _items + _dict["credentials"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "credentials": [Credential.from_dict(_item) for _item in obj["credentials"]] if obj.get("credentials") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "credentials": ( + [Credential.from_dict(_item) for _item in obj["credentials"]] + if obj.get("credentials") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_datacenters_reply.py b/koyeb/api/models/list_datacenters_reply.py index 775e4304..e913ddad 100644 --- a/koyeb/api/models/list_datacenters_reply.py +++ b/koyeb/api/models/list_datacenters_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListDatacentersReply(BaseModel): """ ListDatacentersReply - """ # noqa: E501 + """ # noqa: E501 + datacenters: Optional[List[DatacenterListItem]] = None __properties: ClassVar[List[str]] = ["datacenters"] @@ -36,7 +38,6 @@ class ListDatacentersReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_datacenters in self.datacenters: if _item_datacenters: _items.append(_item_datacenters.to_dict()) - _dict['datacenters'] = _items + _dict["datacenters"] = _items return _dict @classmethod @@ -87,9 +87,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "datacenters": [DatacenterListItem.from_dict(_item) for _item in obj["datacenters"]] if obj.get("datacenters") is not None else None - }) + _obj = cls.model_validate( + { + "datacenters": ( + [ + DatacenterListItem.from_dict(_item) + for _item in obj["datacenters"] + ] + if obj.get("datacenters") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/list_deployment_events_reply.py b/koyeb/api/models/list_deployment_events_reply.py index 25974cb8..0a0c3335 100644 --- a/koyeb/api/models/list_deployment_events_reply.py +++ b/koyeb/api/models/list_deployment_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListDeploymentEventsReply(BaseModel): """ ListDeploymentEventsReply - """ # noqa: E501 + """ # noqa: E501 + events: Optional[List[DeploymentEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] + __properties: ClassVar[List[str]] = [ + "events", + "limit", + "offset", + "order", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListDeploymentEventsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict['events'] = _items + _dict["events"] = _items return _dict @classmethod @@ -91,13 +97,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "events": [DeploymentEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "events": ( + [DeploymentEvent.from_dict(_item) for _item in obj["events"]] + if obj.get("events") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_deployments_reply.py b/koyeb/api/models/list_deployments_reply.py index e99ea154..f072b58c 100644 --- a/koyeb/api/models/list_deployments_reply.py +++ b/koyeb/api/models/list_deployments_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListDeploymentsReply(BaseModel): """ ListDeploymentsReply - """ # noqa: E501 + """ # noqa: E501 + deployments: Optional[List[DeploymentListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["deployments", "limit", "offset", "count", "has_next"] + __properties: ClassVar[List[str]] = [ + "deployments", + "limit", + "offset", + "count", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListDeploymentsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_deployments in self.deployments: if _item_deployments: _items.append(_item_deployments.to_dict()) - _dict['deployments'] = _items + _dict["deployments"] = _items return _dict @classmethod @@ -91,13 +97,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "deployments": [DeploymentListItem.from_dict(_item) for _item in obj["deployments"]] if obj.get("deployments") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "deployments": ( + [ + DeploymentListItem.from_dict(_item) + for _item in obj["deployments"] + ] + if obj.get("deployments") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_domains_reply.py b/koyeb/api/models/list_domains_reply.py index a4669c35..26cbab01 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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 @@ -39,7 +41,6 @@ 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)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "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 index a46d93e6..29fc8ead 100644 --- a/koyeb/api/models/list_instance_events_reply.py +++ b/koyeb/api/models/list_instance_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListInstanceEventsReply(BaseModel): """ ListInstanceEventsReply - """ # noqa: E501 + """ # noqa: E501 + events: Optional[List[InstanceEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] + __properties: ClassVar[List[str]] = [ + "events", + "limit", + "offset", + "order", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListInstanceEventsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict['events'] = _items + _dict["events"] = _items return _dict @classmethod @@ -91,13 +97,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "events": [InstanceEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "events": ( + [InstanceEvent.from_dict(_item) for _item in obj["events"]] + if obj.get("events") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_instances_reply.py b/koyeb/api/models/list_instances_reply.py index f787df7a..65414566 100644 --- a/koyeb/api/models/list_instances_reply.py +++ b/koyeb/api/models/list_instances_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListInstancesReply(BaseModel): """ ListInstancesReply - """ # noqa: E501 + """ # noqa: E501 + instances: Optional[List[InstanceListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None order: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["instances", "limit", "offset", "count", "order"] + __properties: ClassVar[List[str]] = [ + "instances", + "limit", + "offset", + "count", + "order", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListInstancesReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_instances in self.instances: if _item_instances: _items.append(_item_instances.to_dict()) - _dict['instances'] = _items + _dict["instances"] = _items return _dict @classmethod @@ -91,13 +97,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "instances": [InstanceListItem.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "order": obj.get("order") - }) + _obj = cls.model_validate( + { + "instances": ( + [InstanceListItem.from_dict(_item) for _item in obj["instances"]] + if obj.get("instances") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "order": obj.get("order"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_organization_invitations_reply.py b/koyeb/api/models/list_organization_invitations_reply.py index 87188b99..d4346c53 100644 --- a/koyeb/api/models/list_organization_invitations_reply.py +++ b/koyeb/api/models/list_organization_invitations_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListOrganizationInvitationsReply(BaseModel): """ ListOrganizationInvitationsReply - """ # noqa: E501 + """ # noqa: E501 + invitations: Optional[List[OrganizationInvitation]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListOrganizationInvitationsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_invitations in self.invitations: if _item_invitations: _items.append(_item_invitations.to_dict()) - _dict['invitations'] = _items + _dict["invitations"] = _items return _dict @classmethod @@ -90,12 +90,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "invitations": [OrganizationInvitation.from_dict(_item) for _item in obj["invitations"]] if obj.get("invitations") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "invitations": ( + [ + OrganizationInvitation.from_dict(_item) + for _item in obj["invitations"] + ] + if obj.get("invitations") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_organization_members_reply.py b/koyeb/api/models/list_organization_members_reply.py index 9c3fbd76..8e3a8874 100644 --- a/koyeb/api/models/list_organization_members_reply.py +++ b/koyeb/api/models/list_organization_members_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListOrganizationMembersReply(BaseModel): """ ListOrganizationMembersReply - """ # noqa: E501 + """ # noqa: E501 + members: Optional[List[OrganizationMember]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListOrganizationMembersReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_members in self.members: if _item_members: _items.append(_item_members.to_dict()) - _dict['members'] = _items + _dict["members"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "members": [OrganizationMember.from_dict(_item) for _item in obj["members"]] if obj.get("members") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "members": ( + [OrganizationMember.from_dict(_item) for _item in obj["members"]] + if obj.get("members") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_payment_methods_reply.py b/koyeb/api/models/list_payment_methods_reply.py index e3fa354a..a66bf8a7 100644 --- a/koyeb/api/models/list_payment_methods_reply.py +++ b/koyeb/api/models/list_payment_methods_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListPaymentMethodsReply(BaseModel): """ ListPaymentMethodsReply - """ # noqa: E501 + """ # noqa: E501 + payment_methods: Optional[List[PaymentMethod]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListPaymentMethodsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_payment_methods in self.payment_methods: if _item_payment_methods: _items.append(_item_payment_methods.to_dict()) - _dict['payment_methods'] = _items + _dict["payment_methods"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "payment_methods": [PaymentMethod.from_dict(_item) for _item in obj["payment_methods"]] if obj.get("payment_methods") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "payment_methods": ( + [PaymentMethod.from_dict(_item) for _item in obj["payment_methods"]] + if obj.get("payment_methods") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_persistent_volume_events_reply.py b/koyeb/api/models/list_persistent_volume_events_reply.py index db567ac9..a512f9ab 100644 --- a/koyeb/api/models/list_persistent_volume_events_reply.py +++ b/koyeb/api/models/list_persistent_volume_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListPersistentVolumeEventsReply(BaseModel): """ ListPersistentVolumeEventsReply - """ # noqa: E501 + """ # noqa: E501 + events: Optional[List[PersistentVolumeEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] + __properties: ClassVar[List[str]] = [ + "events", + "limit", + "offset", + "order", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListPersistentVolumeEventsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict['events'] = _items + _dict["events"] = _items return _dict @classmethod @@ -91,13 +97,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "events": [PersistentVolumeEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "events": ( + [PersistentVolumeEvent.from_dict(_item) for _item in obj["events"]] + if obj.get("events") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_persistent_volumes_reply.py b/koyeb/api/models/list_persistent_volumes_reply.py index 40120635..933c770d 100644 --- a/koyeb/api/models/list_persistent_volumes_reply.py +++ b/koyeb/api/models/list_persistent_volumes_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListPersistentVolumesReply(BaseModel): """ ListPersistentVolumesReply - """ # noqa: E501 + """ # noqa: E501 + volumes: Optional[List[PersistentVolume]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListPersistentVolumesReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_volumes in self.volumes: if _item_volumes: _items.append(_item_volumes.to_dict()) - _dict['volumes'] = _items + _dict["volumes"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "volumes": [PersistentVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "volumes": ( + [PersistentVolume.from_dict(_item) for _item in obj["volumes"]] + if obj.get("volumes") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_regional_deployment_events_reply.py b/koyeb/api/models/list_regional_deployment_events_reply.py index bf00c3b3..0c520e09 100644 --- a/koyeb/api/models/list_regional_deployment_events_reply.py +++ b/koyeb/api/models/list_regional_deployment_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListRegionalDeploymentEventsReply(BaseModel): """ ListRegionalDeploymentEventsReply - """ # noqa: E501 + """ # noqa: E501 + events: Optional[List[RegionalDeploymentEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] + __properties: ClassVar[List[str]] = [ + "events", + "limit", + "offset", + "order", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListRegionalDeploymentEventsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict['events'] = _items + _dict["events"] = _items return _dict @classmethod @@ -91,13 +97,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "events": [RegionalDeploymentEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "events": ( + [ + RegionalDeploymentEvent.from_dict(_item) + for _item in obj["events"] + ] + if obj.get("events") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_regional_deployments_reply.py b/koyeb/api/models/list_regional_deployments_reply.py index 89a2c444..e5ddf263 100644 --- a/koyeb/api/models/list_regional_deployments_reply.py +++ b/koyeb/api/models/list_regional_deployments_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListRegionalDeploymentsReply(BaseModel): """ ListRegionalDeploymentsReply - """ # noqa: E501 + """ # noqa: E501 + regional_deployments: Optional[List[RegionalDeploymentListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["regional_deployments", "limit", "offset", "count", "has_next"] + __properties: ClassVar[List[str]] = [ + "regional_deployments", + "limit", + "offset", + "count", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListRegionalDeploymentsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_regional_deployments in self.regional_deployments: if _item_regional_deployments: _items.append(_item_regional_deployments.to_dict()) - _dict['regional_deployments'] = _items + _dict["regional_deployments"] = _items return _dict @classmethod @@ -91,13 +97,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "regional_deployments": [RegionalDeploymentListItem.from_dict(_item) for _item in obj["regional_deployments"]] if obj.get("regional_deployments") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "regional_deployments": ( + [ + RegionalDeploymentListItem.from_dict(_item) + for _item in obj["regional_deployments"] + ] + if obj.get("regional_deployments") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_regions_reply.py b/koyeb/api/models/list_regions_reply.py index f11cec40..68c90606 100644 --- a/koyeb/api/models/list_regions_reply.py +++ b/koyeb/api/models/list_regions_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListRegionsReply(BaseModel): """ ListRegionsReply - """ # noqa: E501 + """ # noqa: E501 + regions: Optional[List[RegionListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListRegionsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_regions in self.regions: if _item_regions: _items.append(_item_regions.to_dict()) - _dict['regions'] = _items + _dict["regions"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "regions": [RegionListItem.from_dict(_item) for _item in obj["regions"]] if obj.get("regions") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "regions": ( + [RegionListItem.from_dict(_item) for _item in obj["regions"]] + if obj.get("regions") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_secrets_reply.py b/koyeb/api/models/list_secrets_reply.py index 635d83ac..0a3efd39 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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 @@ -39,7 +41,6 @@ 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)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "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 index ce24c623..7d4d9321 100644 --- a/koyeb/api/models/list_service_events_reply.py +++ b/koyeb/api/models/list_service_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListServiceEventsReply(BaseModel): """ ListServiceEventsReply - """ # noqa: E501 + """ # noqa: E501 + events: Optional[List[ServiceEvent]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None order: Optional[StrictStr] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["events", "limit", "offset", "order", "has_next"] + __properties: ClassVar[List[str]] = [ + "events", + "limit", + "offset", + "order", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListServiceEventsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_events in self.events: if _item_events: _items.append(_item_events.to_dict()) - _dict['events'] = _items + _dict["events"] = _items return _dict @classmethod @@ -91,13 +97,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "events": [ServiceEvent.from_dict(_item) for _item in obj["events"]] if obj.get("events") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "order": obj.get("order"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "events": ( + [ServiceEvent.from_dict(_item) for _item in obj["events"]] + if obj.get("events") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "order": obj.get("order"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_services_reply.py b/koyeb/api/models/list_services_reply.py index 312bba23..20392061 100644 --- a/koyeb/api/models/list_services_reply.py +++ b/koyeb/api/models/list_services_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,16 +23,24 @@ from typing import Optional, Set from typing_extensions import Self + class ListServicesReply(BaseModel): """ ListServicesReply - """ # noqa: E501 + """ # noqa: E501 + services: Optional[List[ServiceListItem]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None count: Optional[StrictInt] = None has_next: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["services", "limit", "offset", "count", "has_next"] + __properties: ClassVar[List[str]] = [ + "services", + "limit", + "offset", + "count", + "has_next", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +48,6 @@ class ListServicesReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_services in self.services: if _item_services: _items.append(_item_services.to_dict()) - _dict['services'] = _items + _dict["services"] = _items return _dict @classmethod @@ -91,13 +97,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "services": [ServiceListItem.from_dict(_item) for _item in obj["services"]] if obj.get("services") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "services": ( + [ServiceListItem.from_dict(_item) for _item in obj["services"]] + if obj.get("services") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_snapshots_reply.py b/koyeb/api/models/list_snapshots_reply.py index b3191921..7c047a4e 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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 @@ -39,7 +41,6 @@ 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)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "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/api/models/list_usage_reply.py b/koyeb/api/models/list_usage_reply.py index 3f0f96c8..1a860c66 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 7c0afc0a..6bd0adfa 100644 --- a/koyeb/api/models/list_user_organization_invitations_reply.py +++ b/koyeb/api/models/list_user_organization_invitations_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListUserOrganizationInvitationsReply(BaseModel): """ ListUserOrganizationInvitationsReply - """ # noqa: E501 + """ # noqa: E501 + invitations: Optional[List[OrganizationInvitation]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListUserOrganizationInvitationsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_invitations in self.invitations: if _item_invitations: _items.append(_item_invitations.to_dict()) - _dict['invitations'] = _items + _dict["invitations"] = _items return _dict @classmethod @@ -90,12 +90,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "invitations": [OrganizationInvitation.from_dict(_item) for _item in obj["invitations"]] if obj.get("invitations") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count") - }) + _obj = cls.model_validate( + { + "invitations": ( + [ + OrganizationInvitation.from_dict(_item) + for _item in obj["invitations"] + ] + if obj.get("invitations") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + } + ) return _obj - - diff --git a/koyeb/api/models/list_user_organizations_reply.py b/koyeb/api/models/list_user_organizations_reply.py index efa0161c..ad411166 100644 --- a/koyeb/api/models/list_user_organizations_reply.py +++ b/koyeb/api/models/list_user_organizations_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ListUserOrganizationsReply(BaseModel): """ ListUserOrganizationsReply - """ # noqa: E501 + """ # noqa: E501 + organizations: Optional[List[Organization]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -39,7 +41,6 @@ class ListUserOrganizationsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_organizations in self.organizations: if _item_organizations: _items.append(_item_organizations.to_dict()) - _dict['organizations'] = _items + _dict["organizations"] = _items return _dict @classmethod @@ -90,12 +90,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "organizations": [Organization.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "has_next": obj.get("has_next") - }) + _obj = cls.model_validate( + { + "organizations": ( + [Organization.from_dict(_item) for _item in obj["organizations"]] + if obj.get("organizations") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "has_next": obj.get("has_next"), + } + ) return _obj - - diff --git a/koyeb/api/models/log_entry.py b/koyeb/api/models/log_entry.py index 7733a9e1..3c1230c5 100644 --- a/koyeb/api/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,10 +23,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/login_method_reply.py b/koyeb/api/models/login_method_reply.py index 3da96b61..be1d0a1b 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +80,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({ - "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 index a27e8297..ae71be68 100644 --- a/koyeb/api/models/login_method_reply_method.py +++ b/koyeb/api/models/login_method_reply_method.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,10 @@ class LoginMethodReplyMethod(str, Enum): """ allowed enum values """ - KOYEB = 'KOYEB' - WORKOS = 'WORKOS' + KOYEB = "KOYEB" + WORKOS = "WORKOS" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of LoginMethodReplyMethod from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/login_reply.py b/koyeb/api/models/login_reply.py index 0bbf35d0..873a4c24 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/login_request.py b/koyeb/api/models/login_request.py index fb820d76..aab9b26b 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/manage_reply.py b/koyeb/api/models/manage_reply.py index bb68ce34..d803618e 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/members_summary.py b/koyeb/api/models/members_summary.py index f73e001b..5048ac70 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 34f66cf4..330a64f8 100644 --- a/koyeb/api/models/metric_name.py +++ b/koyeb/api/models/metric_name.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,20 +26,18 @@ class MetricName(str, Enum): """ 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' + 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 index f72eea2b..70aa0c6f 100644 --- a/koyeb/api/models/neon_postgres_database.py +++ b/koyeb/api/models/neon_postgres_database.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,21 +19,33 @@ 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 koyeb.api.models.neon_postgres_database_neon_database import ( + NeonPostgresDatabaseNeonDatabase, +) +from koyeb.api.models.neon_postgres_database_neon_role import ( + NeonPostgresDatabaseNeonRole, +) from typing import Optional, Set from typing_extensions import Self + class NeonPostgresDatabase(BaseModel): """ NeonPostgresDatabase - """ # noqa: E501 + """ # noqa: E501 + pg_version: Optional[StrictInt] = None region: Optional[StrictStr] = None instance_type: Optional[StrictStr] = None roles: Optional[List[NeonPostgresDatabaseNeonRole]] = None databases: Optional[List[NeonPostgresDatabaseNeonDatabase]] = None - __properties: ClassVar[List[str]] = ["pg_version", "region", "instance_type", "roles", "databases"] + __properties: ClassVar[List[str]] = [ + "pg_version", + "region", + "instance_type", + "roles", + "databases", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +53,6 @@ class NeonPostgresDatabase(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +77,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,14 +90,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_roles in self.roles: if _item_roles: _items.append(_item_roles.to_dict()) - _dict['roles'] = _items + _dict["roles"] = _items # override the default output from pydantic by calling `to_dict()` of each item in databases (list) _items = [] if self.databases: for _item_databases in self.databases: if _item_databases: _items.append(_item_databases.to_dict()) - _dict['databases'] = _items + _dict["databases"] = _items return _dict @classmethod @@ -99,13 +109,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "pg_version": obj.get("pg_version"), - "region": obj.get("region"), - "instance_type": obj.get("instance_type"), - "roles": [NeonPostgresDatabaseNeonRole.from_dict(_item) for _item in obj["roles"]] if obj.get("roles") is not None else None, - "databases": [NeonPostgresDatabaseNeonDatabase.from_dict(_item) for _item in obj["databases"]] if obj.get("databases") is not None else None - }) + _obj = cls.model_validate( + { + "pg_version": obj.get("pg_version"), + "region": obj.get("region"), + "instance_type": obj.get("instance_type"), + "roles": ( + [ + NeonPostgresDatabaseNeonRole.from_dict(_item) + for _item in obj["roles"] + ] + if obj.get("roles") is not None + else None + ), + "databases": ( + [ + NeonPostgresDatabaseNeonDatabase.from_dict(_item) + for _item in obj["databases"] + ] + if obj.get("databases") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/neon_postgres_database_deployment_metadata.py b/koyeb/api/models/neon_postgres_database_deployment_metadata.py index 6426c79f..f1220e99 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,7 @@ def 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/api/models/neon_postgres_database_neon_database.py b/koyeb/api/models/neon_postgres_database_neon_database.py index af4acdba..d41f7292 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,5 @@ def 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/api/models/neon_postgres_database_neon_role.py b/koyeb/api/models/neon_postgres_database_neon_role.py index eeec93a7..63ad74b7 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/neon_postgres_summary.py b/koyeb/api/models/neon_postgres_summary.py index 0634bf5e..3bd24e36 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index a8909b61..8219505c 100644 --- a/koyeb/api/models/next_invoice_reply.py +++ b/koyeb/api/models/next_invoice_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class NextInvoiceReply(BaseModel): """ NextInvoiceReply - """ # noqa: E501 + """ # noqa: E501 + stripe_invoice: Optional[Dict[str, Any]] = None lines: Optional[List[NextInvoiceReplyLine]] = None discounts: Optional[List[NextInvoiceReplyDiscount]] = None @@ -39,7 +41,6 @@ class NextInvoiceReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -78,14 +78,14 @@ def to_dict(self) -> Dict[str, Any]: for _item_lines in self.lines: if _item_lines: _items.append(_item_lines.to_dict()) - _dict['lines'] = _items + _dict["lines"] = _items # override the default output from pydantic by calling `to_dict()` of each item in discounts (list) _items = [] if self.discounts: for _item_discounts in self.discounts: if _item_discounts: _items.append(_item_discounts.to_dict()) - _dict['discounts'] = _items + _dict["discounts"] = _items return _dict @classmethod @@ -97,11 +97,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "stripe_invoice": obj.get("stripe_invoice"), - "lines": [NextInvoiceReplyLine.from_dict(_item) for _item in obj["lines"]] if obj.get("lines") is not None else None, - "discounts": [NextInvoiceReplyDiscount.from_dict(_item) for _item in obj["discounts"]] if obj.get("discounts") is not None else None - }) + _obj = cls.model_validate( + { + "stripe_invoice": obj.get("stripe_invoice"), + "lines": ( + [NextInvoiceReplyLine.from_dict(_item) for _item in obj["lines"]] + if obj.get("lines") is not None + else None + ), + "discounts": ( + [ + NextInvoiceReplyDiscount.from_dict(_item) + for _item in obj["discounts"] + ] + if obj.get("discounts") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/next_invoice_reply_discount.py b/koyeb/api/models/next_invoice_reply_discount.py index b441734e..7f365cfa 100644 --- a/koyeb/api/models/next_invoice_reply_discount.py +++ b/koyeb/api/models/next_invoice_reply_discount.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,15 +19,21 @@ 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 koyeb.api.models.next_invoice_reply_discount_type import ( + NextInvoiceReplyDiscountType, +) from typing import Optional, Set from typing_extensions import Self + class NextInvoiceReplyDiscount(BaseModel): """ NextInvoiceReplyDiscount - """ # noqa: E501 - type: Optional[NextInvoiceReplyDiscountType] = NextInvoiceReplyDiscountType.PERCENT_OFF + """ # noqa: E501 + + type: Optional[NextInvoiceReplyDiscountType] = ( + NextInvoiceReplyDiscountType.PERCENT_OFF + ) name: Optional[StrictStr] = None amount: Optional[StrictStr] = None __properties: ClassVar[List[str]] = ["type", "name", "amount"] @@ -38,7 +44,6 @@ class NextInvoiceReplyDiscount(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +68,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "type": obj.get("type") if obj.get("type") is not None else NextInvoiceReplyDiscountType.PERCENT_OFF, - "name": obj.get("name"), - "amount": obj.get("amount") - }) + _obj = cls.model_validate( + { + "type": ( + obj.get("type") + if obj.get("type") is not None + else NextInvoiceReplyDiscountType.PERCENT_OFF + ), + "name": obj.get("name"), + "amount": obj.get("amount"), + } + ) return _obj - - diff --git a/koyeb/api/models/next_invoice_reply_discount_type.py b/koyeb/api/models/next_invoice_reply_discount_type.py index 482f2960..baad6a52 100644 --- a/koyeb/api/models/next_invoice_reply_discount_type.py +++ b/koyeb/api/models/next_invoice_reply_discount_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,10 @@ class NextInvoiceReplyDiscountType(str, Enum): """ allowed enum values """ - PERCENT_OFF = 'PERCENT_OFF' - AMOUNT_OFF = 'AMOUNT_OFF' + PERCENT_OFF = "PERCENT_OFF" + AMOUNT_OFF = "AMOUNT_OFF" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of NextInvoiceReplyDiscountType from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/next_invoice_reply_line.py b/koyeb/api/models/next_invoice_reply_line.py index 58f9bfd2..14e80e2d 100644 --- a/koyeb/api/models/next_invoice_reply_line.py +++ b/koyeb/api/models/next_invoice_reply_line.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,16 +24,24 @@ from typing import Optional, Set from typing_extensions import Self + class NextInvoiceReplyLine(BaseModel): """ NextInvoiceReplyLine - """ # noqa: E501 + """ # noqa: E501 + amount_excluding_tax: Optional[StrictInt] = None period: Optional[NextInvoiceReplyLinePeriod] = None plan_nickname: Optional[StrictStr] = None price: Optional[NextInvoiceReplyLinePrice] = None quantity: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["amount_excluding_tax", "period", "plan_nickname", "price", "quantity"] + __properties: ClassVar[List[str]] = [ + "amount_excluding_tax", + "period", + "plan_nickname", + "price", + "quantity", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +49,6 @@ class NextInvoiceReplyLine(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,10 +82,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of period if self.period: - _dict['period'] = self.period.to_dict() + _dict["period"] = self.period.to_dict() # override the default output from pydantic by calling `to_dict()` of price if self.price: - _dict['price'] = self.price.to_dict() + _dict["price"] = self.price.to_dict() return _dict @classmethod @@ -91,13 +97,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "amount_excluding_tax": obj.get("amount_excluding_tax"), - "period": NextInvoiceReplyLinePeriod.from_dict(obj["period"]) if obj.get("period") is not None else None, - "plan_nickname": obj.get("plan_nickname"), - "price": NextInvoiceReplyLinePrice.from_dict(obj["price"]) if obj.get("price") is not None else None, - "quantity": obj.get("quantity") - }) + _obj = cls.model_validate( + { + "amount_excluding_tax": obj.get("amount_excluding_tax"), + "period": ( + NextInvoiceReplyLinePeriod.from_dict(obj["period"]) + if obj.get("period") is not None + else None + ), + "plan_nickname": obj.get("plan_nickname"), + "price": ( + NextInvoiceReplyLinePrice.from_dict(obj["price"]) + if obj.get("price") is not None + else None + ), + "quantity": obj.get("quantity"), + } + ) return _obj - - diff --git a/koyeb/api/models/next_invoice_reply_line_period.py b/koyeb/api/models/next_invoice_reply_line_period.py index b69d2337..30c528a0 100644 --- a/koyeb/api/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,10 +23,12 @@ 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"] @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,10 +81,5 @@ def 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/api/models/next_invoice_reply_line_price.py b/koyeb/api/models/next_invoice_reply_line_price.py index 7f42b898..b26b1a8c 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,7 @@ def 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 index 723664a7..cbd97965 100644 --- a/koyeb/api/models/notification.py +++ b/koyeb/api/models/notification.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,16 +24,24 @@ from typing import Optional, Set from typing_extensions import Self + class Notification(BaseModel): """ Notification - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None activity: Optional[Activity] = None is_read: Optional[StrictBool] = None is_seen: Optional[StrictBool] = None created_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "activity", "is_read", "is_seen", "created_at"] + __properties: ClassVar[List[str]] = [ + "id", + "activity", + "is_read", + "is_seen", + "created_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -41,7 +49,6 @@ class Notification(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -66,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +82,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of activity if self.activity: - _dict['activity'] = self.activity.to_dict() + _dict["activity"] = self.activity.to_dict() return _dict @classmethod @@ -88,13 +94,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "activity": Activity.from_dict(obj["activity"]) if obj.get("activity") is not None else None, - "is_read": obj.get("is_read"), - "is_seen": obj.get("is_seen"), - "created_at": obj.get("created_at") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "activity": ( + Activity.from_dict(obj["activity"]) + if obj.get("activity") is not None + else None + ), + "is_read": obj.get("is_read"), + "is_seen": obj.get("is_seen"), + "created_at": obj.get("created_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/notification_list.py b/koyeb/api/models/notification_list.py index 43a0d7b0..70caedaa 100644 --- a/koyeb/api/models/notification_list.py +++ b/koyeb/api/models/notification_list.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class NotificationList(BaseModel): """ NotificationList - """ # noqa: E501 + """ # noqa: E501 + notifications: Optional[List[Notification]] = None limit: Optional[StrictInt] = None offset: Optional[StrictInt] = None @@ -35,7 +37,16 @@ class NotificationList(BaseModel): is_seen: Optional[StrictBool] = None unread: Optional[StrictInt] = None unseen: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["notifications", "limit", "offset", "count", "is_read", "is_seen", "unread", "unseen"] + __properties: ClassVar[List[str]] = [ + "notifications", + "limit", + "offset", + "count", + "is_read", + "is_seen", + "unread", + "unseen", + ] model_config = ConfigDict( populate_by_name=True, @@ -43,7 +54,6 @@ class NotificationList(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,8 +78,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -82,7 +91,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_notifications in self.notifications: if _item_notifications: _items.append(_item_notifications.to_dict()) - _dict['notifications'] = _items + _dict["notifications"] = _items return _dict @classmethod @@ -94,16 +103,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "notifications": [Notification.from_dict(_item) for _item in obj["notifications"]] if obj.get("notifications") is not None else None, - "limit": obj.get("limit"), - "offset": obj.get("offset"), - "count": obj.get("count"), - "is_read": obj.get("is_read"), - "is_seen": obj.get("is_seen"), - "unread": obj.get("unread"), - "unseen": obj.get("unseen") - }) + _obj = cls.model_validate( + { + "notifications": ( + [Notification.from_dict(_item) for _item in obj["notifications"]] + if obj.get("notifications") is not None + else None + ), + "limit": obj.get("limit"), + "offset": obj.get("offset"), + "count": obj.get("count"), + "is_read": obj.get("is_read"), + "is_seen": obj.get("is_seen"), + "unread": obj.get("unread"), + "unseen": obj.get("unseen"), + } + ) return _obj - - diff --git a/koyeb/api/models/o_auth_callback_reply.py b/koyeb/api/models/o_auth_callback_reply.py index 90e5f334..f2c5a2b0 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index f1976db8..12e7b97a 100644 --- a/koyeb/api/models/o_auth_callback_request.py +++ b/koyeb/api/models/o_auth_callback_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,15 +22,28 @@ from typing import Optional, Set from typing_extensions import Self + class OAuthCallbackRequest(BaseModel): """ OAuthCallbackRequest - """ # noqa: E501 + """ # noqa: E501 + state: Optional[StrictStr] = None code: Optional[StrictStr] = None - setup_action: Optional[StrictStr] = Field(default=None, description="setup_action is populated in the context of a GitHub app installation request. For logins and signups, it is not set.") - installation_id: Optional[StrictStr] = Field(default=None, description="installation_id is populated in the context of a GitHub app installation request. For logins and signups, it is not set.") - __properties: ClassVar[List[str]] = ["state", "code", "setup_action", "installation_id"] + setup_action: Optional[StrictStr] = Field( + default=None, + description="setup_action is populated in the context of a GitHub app installation request. For logins and signups, it is not set.", + ) + installation_id: Optional[StrictStr] = Field( + default=None, + description="installation_id is populated in the context of a GitHub app installation request. For logins and signups, it is not set.", + ) + __properties: ClassVar[List[str]] = [ + "state", + "code", + "setup_action", + "installation_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -38,7 +51,6 @@ class OAuthCallbackRequest(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +75,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +93,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "state": obj.get("state"), - "code": obj.get("code"), - "setup_action": obj.get("setup_action"), - "installation_id": obj.get("installation_id") - }) + _obj = cls.model_validate( + { + "state": obj.get("state"), + "code": obj.get("code"), + "setup_action": obj.get("setup_action"), + "installation_id": obj.get("installation_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/o_auth_provider.py b/koyeb/api/models/o_auth_provider.py index 0d8e985c..7d569365 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/object.py b/koyeb/api/models/object.py index f44e75b5..aefb5026 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -39,7 +41,6 @@ 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)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 48114d79..cd10e056 100644 --- a/koyeb/api/models/organization.py +++ b/koyeb/api/models/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 @@ -20,17 +20,21 @@ 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_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 + """ # noqa: E501 + id: Optional[StrictStr] = None external_id: Optional[StrictStr] = None provisioning: Optional[StrictBool] = None @@ -53,8 +57,12 @@ class Organization(BaseModel): 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 + 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 @@ -62,7 +70,39 @@ class Organization(BaseModel): 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", "provisioning", "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"] + __properties: ClassVar[List[str]] = [ + "id", + "external_id", + "provisioning", + "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, @@ -70,7 +110,6 @@ class Organization(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -95,8 +134,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -114,39 +152,51 @@ def 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"), - "external_id": obj.get("external_id"), - "provisioning": obj.get("provisioning"), - "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") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "external_id": obj.get("external_id"), + "provisioning": obj.get("provisioning"), + "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 index f7c78f6e..52eb10d7 100644 --- a/koyeb/api/models/organization_deactivation_reason.py +++ b/koyeb/api/models/organization_deactivation_reason.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,16 +26,14 @@ class OrganizationDeactivationReason(str, Enum): """ 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' + 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 index 18a8ad08..a791668b 100644 --- a/koyeb/api/models/organization_detailed_status.py +++ b/koyeb/api/models/organization_detailed_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,20 +26,18 @@ class OrganizationDetailedStatus(str, Enum): """ 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' + 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 index 192da45f..be3abb82 100644 --- a/koyeb/api/models/organization_invitation.py +++ b/koyeb/api/models/organization_invitation.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -27,14 +27,18 @@ from typing import Optional, Set from typing_extensions import Self + class OrganizationInvitation(BaseModel): """ OrganizationInvitation - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None email: Optional[StrictStr] = None role: Optional[UserRoleRole] = UserRoleRole.INVALID - status: Optional[OrganizationInvitationStatus] = OrganizationInvitationStatus.INVALID + status: Optional[OrganizationInvitationStatus] = ( + OrganizationInvitationStatus.INVALID + ) expires_at: Optional[datetime] = None organization_id: Optional[StrictStr] = None organization: Optional[PublicOrganization] = None @@ -42,7 +46,19 @@ class OrganizationInvitation(BaseModel): invitee: Optional[PublicUser] = None inviter_id: Optional[StrictStr] = None inviter: Optional[PublicUser] = None - __properties: ClassVar[List[str]] = ["id", "email", "role", "status", "expires_at", "organization_id", "organization", "invitee_id", "invitee", "inviter_id", "inviter"] + __properties: ClassVar[List[str]] = [ + "id", + "email", + "role", + "status", + "expires_at", + "organization_id", + "organization", + "invitee_id", + "invitee", + "inviter_id", + "inviter", + ] model_config = ConfigDict( populate_by_name=True, @@ -50,7 +66,6 @@ class OrganizationInvitation(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -75,8 +90,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -85,13 +99,13 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict['organization'] = self.organization.to_dict() + _dict["organization"] = self.organization.to_dict() # override the default output from pydantic by calling `to_dict()` of invitee if self.invitee: - _dict['invitee'] = self.invitee.to_dict() + _dict["invitee"] = self.invitee.to_dict() # override the default output from pydantic by calling `to_dict()` of inviter if self.inviter: - _dict['inviter'] = self.inviter.to_dict() + _dict["inviter"] = self.inviter.to_dict() return _dict @classmethod @@ -103,19 +117,39 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "email": obj.get("email"), - "role": obj.get("role") if obj.get("role") is not None else UserRoleRole.INVALID, - "status": obj.get("status") if obj.get("status") is not None else OrganizationInvitationStatus.INVALID, - "expires_at": obj.get("expires_at"), - "organization_id": obj.get("organization_id"), - "organization": PublicOrganization.from_dict(obj["organization"]) if obj.get("organization") is not None else None, - "invitee_id": obj.get("invitee_id"), - "invitee": PublicUser.from_dict(obj["invitee"]) if obj.get("invitee") is not None else None, - "inviter_id": obj.get("inviter_id"), - "inviter": PublicUser.from_dict(obj["inviter"]) if obj.get("inviter") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "email": obj.get("email"), + "role": ( + obj.get("role") + if obj.get("role") is not None + else UserRoleRole.INVALID + ), + "status": ( + obj.get("status") + if obj.get("status") is not None + else OrganizationInvitationStatus.INVALID + ), + "expires_at": obj.get("expires_at"), + "organization_id": obj.get("organization_id"), + "organization": ( + PublicOrganization.from_dict(obj["organization"]) + if obj.get("organization") is not None + else None + ), + "invitee_id": obj.get("invitee_id"), + "invitee": ( + PublicUser.from_dict(obj["invitee"]) + if obj.get("invitee") is not None + else None + ), + "inviter_id": obj.get("inviter_id"), + "inviter": ( + PublicUser.from_dict(obj["inviter"]) + if obj.get("inviter") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/organization_invitation_status.py b/koyeb/api/models/organization_invitation_status.py index 256fce22..835730da 100644 --- a/koyeb/api/models/organization_invitation_status.py +++ b/koyeb/api/models/organization_invitation_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,15 +26,13 @@ class OrganizationInvitationStatus(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - PENDING = 'PENDING' - ACCEPTED = 'ACCEPTED' - REFUSED = 'REFUSED' - EXPIRED = 'EXPIRED' + INVALID = "INVALID" + PENDING = "PENDING" + ACCEPTED = "ACCEPTED" + REFUSED = "REFUSED" + EXPIRED = "EXPIRED" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of OrganizationInvitationStatus from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/organization_member.py b/koyeb/api/models/organization_member.py index 222293ce..f0c4d33c 100644 --- a/koyeb/api/models/organization_member.py +++ b/koyeb/api/models/organization_member.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -27,19 +27,32 @@ from typing import Optional, Set from typing_extensions import Self + class OrganizationMember(BaseModel): """ OrganizationMember - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None user_id: Optional[StrictStr] = None + external_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"] + __properties: ClassVar[List[str]] = [ + "id", + "organization_id", + "user_id", + "external_id", + "joined_at", + "role", + "status", + "user", + "organization", + ] model_config = ConfigDict( populate_by_name=True, @@ -47,7 +60,6 @@ class OrganizationMember(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -72,8 +84,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -82,10 +93,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of user if self.user: - _dict['user'] = self.user.to_dict() + _dict["user"] = self.user.to_dict() # override the default output from pydantic by calling `to_dict()` of organization if self.organization: - _dict['organization'] = self.organization.to_dict() + _dict["organization"] = self.organization.to_dict() return _dict @classmethod @@ -97,16 +108,33 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "organization_id": obj.get("organization_id"), - "user_id": obj.get("user_id"), - "joined_at": obj.get("joined_at"), - "role": obj.get("role") if obj.get("role") is not None else UserRoleRole.INVALID, - "status": obj.get("status") if obj.get("status") is not None else OrganizationMemberStatus.INVALID, - "user": PublicUser.from_dict(obj["user"]) if obj.get("user") is not None else None, - "organization": PublicOrganization.from_dict(obj["organization"]) if obj.get("organization") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "organization_id": obj.get("organization_id"), + "user_id": obj.get("user_id"), + "external_id": obj.get("external_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 index eb1a7f38..d2cc8fcb 100644 --- a/koyeb/api/models/organization_member_status.py +++ b/koyeb/api/models/organization_member_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,11 @@ class OrganizationMemberStatus(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - ACTIVE = 'ACTIVE' - DELETED = 'DELETED' + INVALID = "INVALID" + ACTIVE = "ACTIVE" + DELETED = "DELETED" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of OrganizationMemberStatus from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/organization_status.py b/koyeb/api/models/organization_status.py index b8b6c050..41c13fbf 100644 --- a/koyeb/api/models/organization_status.py +++ b/koyeb/api/models/organization_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,17 +26,15 @@ class OrganizationStatus(str, Enum): """ allowed enum values """ - WARNING = 'WARNING' - LOCKED = 'LOCKED' - ACTIVE = 'ACTIVE' - DEACTIVATING = 'DEACTIVATING' - DEACTIVATED = 'DEACTIVATED' - DELETING = 'DELETING' - DELETED = 'DELETED' + 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 index 10ae8a69..43c322ae 100644 --- a/koyeb/api/models/organization_summary.py +++ b/koyeb/api/models/organization_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -29,10 +29,12 @@ from typing import Optional, Set from typing_extensions import Self + class OrganizationSummary(BaseModel): """ OrganizationSummary - """ # noqa: E501 + """ # noqa: E501 + organization_id: Optional[StrictStr] = None instances: Optional[InstancesSummary] = None apps: Optional[AppsSummary] = None @@ -41,7 +43,16 @@ class OrganizationSummary(BaseModel): secrets: Optional[SecretsSummary] = None neon_postgres: Optional[NeonPostgresSummary] = None members: Optional[MembersSummary] = None - __properties: ClassVar[List[str]] = ["organization_id", "instances", "apps", "services", "domains", "secrets", "neon_postgres", "members"] + __properties: ClassVar[List[str]] = [ + "organization_id", + "instances", + "apps", + "services", + "domains", + "secrets", + "neon_postgres", + "members", + ] model_config = ConfigDict( populate_by_name=True, @@ -49,7 +60,6 @@ class OrganizationSummary(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -74,8 +84,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,29 +93,29 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of instances if self.instances: - _dict['instances'] = self.instances.to_dict() + _dict["instances"] = self.instances.to_dict() # override the default output from pydantic by calling `to_dict()` of apps if self.apps: - _dict['apps'] = self.apps.to_dict() + _dict["apps"] = self.apps.to_dict() # override the default output from pydantic by calling `to_dict()` of each value in services (dict) _field_dict = {} if self.services: for _key_services in self.services: if self.services[_key_services]: _field_dict[_key_services] = self.services[_key_services].to_dict() - _dict['services'] = _field_dict + _dict["services"] = _field_dict # override the default output from pydantic by calling `to_dict()` of domains if self.domains: - _dict['domains'] = self.domains.to_dict() + _dict["domains"] = self.domains.to_dict() # override the default output from pydantic by calling `to_dict()` of secrets if self.secrets: - _dict['secrets'] = self.secrets.to_dict() + _dict["secrets"] = self.secrets.to_dict() # override the default output from pydantic by calling `to_dict()` of neon_postgres if self.neon_postgres: - _dict['neon_postgres'] = self.neon_postgres.to_dict() + _dict["neon_postgres"] = self.neon_postgres.to_dict() # override the default output from pydantic by calling `to_dict()` of members if self.members: - _dict['members'] = self.members.to_dict() + _dict["members"] = self.members.to_dict() return _dict @classmethod @@ -118,21 +127,47 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "organization_id": obj.get("organization_id"), - "instances": InstancesSummary.from_dict(obj["instances"]) if obj.get("instances") is not None else None, - "apps": AppsSummary.from_dict(obj["apps"]) if obj.get("apps") is not None else None, - "services": dict( - (_k, ServiceSummary.from_dict(_v)) - for _k, _v in obj["services"].items() - ) - if obj.get("services") is not None - else None, - "domains": DomainsSummary.from_dict(obj["domains"]) if obj.get("domains") is not None else None, - "secrets": SecretsSummary.from_dict(obj["secrets"]) if obj.get("secrets") is not None else None, - "neon_postgres": NeonPostgresSummary.from_dict(obj["neon_postgres"]) if obj.get("neon_postgres") is not None else None, - "members": MembersSummary.from_dict(obj["members"]) if obj.get("members") is not None else None - }) + _obj = cls.model_validate( + { + "organization_id": obj.get("organization_id"), + "instances": ( + InstancesSummary.from_dict(obj["instances"]) + if obj.get("instances") is not None + else None + ), + "apps": ( + AppsSummary.from_dict(obj["apps"]) + if obj.get("apps") is not None + else None + ), + "services": ( + dict( + (_k, ServiceSummary.from_dict(_v)) + for _k, _v in obj["services"].items() + ) + if obj.get("services") is not None + else None + ), + "domains": ( + DomainsSummary.from_dict(obj["domains"]) + if obj.get("domains") is not None + else None + ), + "secrets": ( + SecretsSummary.from_dict(obj["secrets"]) + if obj.get("secrets") is not None + else None + ), + "neon_postgres": ( + NeonPostgresSummary.from_dict(obj["neon_postgres"]) + if obj.get("neon_postgres") is not None + else None + ), + "members": ( + MembersSummary.from_dict(obj["members"]) + if obj.get("members") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/payment_method.py b/koyeb/api/models/payment_method.py index 53e6c43a..09440af5 100644 --- a/koyeb/api/models/payment_method.py +++ b/koyeb/api/models/payment_method.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class PaymentMethod(BaseModel): """ PaymentMethod - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -49,7 +51,29 @@ class PaymentMethod(BaseModel): card_last_digits: Optional[StrictStr] = None card_expiration_month: Optional[StrictInt] = None card_expiration_year: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "version", "organization_id", "type", "provider", "status", "messages", "stripe_payment_method_id", "authorization_verified_at", "authorization_canceled_at", "authorization_stripe_payment_intent_id", "authorization_stripe_payment_intent_client_secret", "card_brand", "card_country", "card_funding", "card_fingerprint", "card_last_digits", "card_expiration_month", "card_expiration_year"] + __properties: ClassVar[List[str]] = [ + "id", + "created_at", + "updated_at", + "version", + "organization_id", + "type", + "provider", + "status", + "messages", + "stripe_payment_method_id", + "authorization_verified_at", + "authorization_canceled_at", + "authorization_stripe_payment_intent_id", + "authorization_stripe_payment_intent_client_secret", + "card_brand", + "card_country", + "card_funding", + "card_fingerprint", + "card_last_digits", + "card_expiration_month", + "card_expiration_year", + ] model_config = ConfigDict( populate_by_name=True, @@ -57,7 +81,6 @@ class PaymentMethod(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,8 +105,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -101,29 +123,37 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "version": obj.get("version"), - "organization_id": obj.get("organization_id"), - "type": obj.get("type"), - "provider": obj.get("provider"), - "status": obj.get("status") if obj.get("status") is not None else PaymentMethodStatus.INVALID, - "messages": obj.get("messages"), - "stripe_payment_method_id": obj.get("stripe_payment_method_id"), - "authorization_verified_at": obj.get("authorization_verified_at"), - "authorization_canceled_at": obj.get("authorization_canceled_at"), - "authorization_stripe_payment_intent_id": obj.get("authorization_stripe_payment_intent_id"), - "authorization_stripe_payment_intent_client_secret": obj.get("authorization_stripe_payment_intent_client_secret"), - "card_brand": obj.get("card_brand"), - "card_country": obj.get("card_country"), - "card_funding": obj.get("card_funding"), - "card_fingerprint": obj.get("card_fingerprint"), - "card_last_digits": obj.get("card_last_digits"), - "card_expiration_month": obj.get("card_expiration_month"), - "card_expiration_year": obj.get("card_expiration_year") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "version": obj.get("version"), + "organization_id": obj.get("organization_id"), + "type": obj.get("type"), + "provider": obj.get("provider"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else PaymentMethodStatus.INVALID + ), + "messages": obj.get("messages"), + "stripe_payment_method_id": obj.get("stripe_payment_method_id"), + "authorization_verified_at": obj.get("authorization_verified_at"), + "authorization_canceled_at": obj.get("authorization_canceled_at"), + "authorization_stripe_payment_intent_id": obj.get( + "authorization_stripe_payment_intent_id" + ), + "authorization_stripe_payment_intent_client_secret": obj.get( + "authorization_stripe_payment_intent_client_secret" + ), + "card_brand": obj.get("card_brand"), + "card_country": obj.get("card_country"), + "card_funding": obj.get("card_funding"), + "card_fingerprint": obj.get("card_fingerprint"), + "card_last_digits": obj.get("card_last_digits"), + "card_expiration_month": obj.get("card_expiration_month"), + "card_expiration_year": obj.get("card_expiration_year"), + } + ) return _obj - - diff --git a/koyeb/api/models/payment_method_status.py b/koyeb/api/models/payment_method_status.py index bb5f4d84..c5e26480 100644 --- a/koyeb/api/models/payment_method_status.py +++ b/koyeb/api/models/payment_method_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,17 +26,15 @@ class PaymentMethodStatus(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - CREATED = 'CREATED' - AUTHORIZED = 'AUTHORIZED' - DECLINED = 'DECLINED' - CANCELED = 'CANCELED' - EXPIRED = 'EXPIRED' - UNCHECKED = 'UNCHECKED' + 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/api/models/period_usage.py b/koyeb/api/models/period_usage.py index ffcb2ebd..6181ef58 100644 --- a/koyeb/api/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 @@ -24,10 +24,12 @@ 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 @@ -39,7 +41,6 @@ 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)) @@ -64,8 +65,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,11 +90,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "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 index 50e94590..c7fe3493 100644 --- a/koyeb/api/models/persistent_volume.py +++ b/koyeb/api/models/persistent_volume.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,15 +20,19 @@ 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_backing_store import ( + PersistentVolumeBackingStore, +) from koyeb.api.models.persistent_volume_status import PersistentVolumeStatus from typing import Optional, Set from typing_extensions import Self + class PersistentVolume(BaseModel): """ PersistentVolume - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None snapshot_id: Optional[StrictStr] = None @@ -41,9 +45,28 @@ class PersistentVolume(BaseModel): read_only: Optional[StrictBool] = None max_size: Optional[StrictInt] = None cur_size: Optional[StrictInt] = None - status: Optional[PersistentVolumeStatus] = PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID - backing_store: Optional[PersistentVolumeBackingStore] = PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID - __properties: ClassVar[List[str]] = ["id", "name", "snapshot_id", "created_at", "updated_at", "deleted_at", "organization_id", "service_id", "region", "read_only", "max_size", "cur_size", "status", "backing_store"] + status: Optional[PersistentVolumeStatus] = ( + PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID + ) + backing_store: Optional[PersistentVolumeBackingStore] = ( + PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID + ) + __properties: ClassVar[List[str]] = [ + "id", + "name", + "snapshot_id", + "created_at", + "updated_at", + "deleted_at", + "organization_id", + "service_id", + "region", + "read_only", + "max_size", + "cur_size", + "status", + "backing_store", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +74,6 @@ class PersistentVolume(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,8 +98,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -95,22 +116,30 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "snapshot_id": obj.get("snapshot_id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "deleted_at": obj.get("deleted_at"), - "organization_id": obj.get("organization_id"), - "service_id": obj.get("service_id"), - "region": obj.get("region"), - "read_only": obj.get("read_only"), - "max_size": obj.get("max_size"), - "cur_size": obj.get("cur_size"), - "status": obj.get("status") if obj.get("status") is not None else PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID, - "backing_store": obj.get("backing_store") if obj.get("backing_store") is not None else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "snapshot_id": obj.get("snapshot_id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "deleted_at": obj.get("deleted_at"), + "organization_id": obj.get("organization_id"), + "service_id": obj.get("service_id"), + "region": obj.get("region"), + "read_only": obj.get("read_only"), + "max_size": obj.get("max_size"), + "cur_size": obj.get("cur_size"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else PersistentVolumeStatus.PERSISTENT_VOLUME_STATUS_INVALID + ), + "backing_store": ( + obj.get("backing_store") + if obj.get("backing_store") is not None + else PersistentVolumeBackingStore.PERSISTENT_VOLUME_BACKING_STORE_INVALID + ), + } + ) return _obj - - diff --git a/koyeb/api/models/persistent_volume_backing_store.py b/koyeb/api/models/persistent_volume_backing_store.py index 9f8a3494..90329229 100644 --- a/koyeb/api/models/persistent_volume_backing_store.py +++ b/koyeb/api/models/persistent_volume_backing_store.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,12 @@ class PersistentVolumeBackingStore(str, Enum): """ 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' + 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 index 87e70ce4..52ddcf27 100644 --- a/koyeb/api/models/persistent_volume_event.py +++ b/koyeb/api/models/persistent_volume_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class PersistentVolumeEvent(BaseModel): """ PersistentVolumeEvent - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -34,7 +36,15 @@ class PersistentVolumeEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "persistent_volume_id", "type", "message", "metadata"] + __properties: ClassVar[List[str]] = [ + "id", + "when", + "organization_id", + "persistent_volume_id", + "type", + "message", + "metadata", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +52,6 @@ class PersistentVolumeEvent(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,15 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "persistent_volume_id": obj.get("persistent_volume_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "persistent_volume_id": obj.get("persistent_volume_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata"), + } + ) return _obj - - diff --git a/koyeb/api/models/persistent_volume_quotas.py b/koyeb/api/models/persistent_volume_quotas.py index e274a251..929e30cc 100644 --- a/koyeb/api/models/persistent_volume_quotas.py +++ b/koyeb/api/models/persistent_volume_quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,14 +22,28 @@ from typing import Optional, Set from typing_extensions import Self + class PersistentVolumeQuotas(BaseModel): """ PersistentVolumeQuotas - """ # noqa: E501 - max_total_size: Optional[StrictInt] = Field(default=None, description="MaxTotalSize for all volumes on a region (in Gigabyte / GB).") - max_volume_size: Optional[StrictInt] = Field(default=None, description="MaxVolumeSize for one volume (in Gigabyte / GB).") - max_per_instance_size: Optional[StrictInt] = Field(default=None, description="MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB).") - __properties: ClassVar[List[str]] = ["max_total_size", "max_volume_size", "max_per_instance_size"] + """ # noqa: E501 + + max_total_size: Optional[StrictInt] = Field( + default=None, + description="MaxTotalSize for all volumes on a region (in Gigabyte / GB).", + ) + max_volume_size: Optional[StrictInt] = Field( + default=None, description="MaxVolumeSize for one volume (in Gigabyte / GB)." + ) + max_per_instance_size: Optional[StrictInt] = Field( + default=None, + description="MaxPerInstanceSize for all volumes on an instance (in Gigabyte / GB).", + ) + __properties: ClassVar[List[str]] = [ + "max_total_size", + "max_volume_size", + "max_per_instance_size", + ] model_config = ConfigDict( populate_by_name=True, @@ -37,7 +51,6 @@ class PersistentVolumeQuotas(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,8 +75,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +93,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "max_total_size": obj.get("max_total_size"), - "max_volume_size": obj.get("max_volume_size"), - "max_per_instance_size": obj.get("max_per_instance_size") - }) + _obj = cls.model_validate( + { + "max_total_size": obj.get("max_total_size"), + "max_volume_size": obj.get("max_volume_size"), + "max_per_instance_size": obj.get("max_per_instance_size"), + } + ) return _obj - - diff --git a/koyeb/api/models/persistent_volume_status.py b/koyeb/api/models/persistent_volume_status.py index c9c9de6b..bb64c5bb 100644 --- a/koyeb/api/models/persistent_volume_status.py +++ b/koyeb/api/models/persistent_volume_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,15 +26,13 @@ class PersistentVolumeStatus(str, Enum): """ 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' + 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 index ea762666..8907ec8e 100644 --- a/koyeb/api/models/plan.py +++ b/koyeb/api/models/plan.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,22 +26,20 @@ class Plan(str, Enum): """ 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' + 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/api/models/port.py b/koyeb/api/models/port.py index d1c2687d..c565a5bd 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/private_registry_configuration.py b/koyeb/api/models/private_registry_configuration.py index ee841506..f2d71725 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 3d253437..b2a3b2bf 100644 --- a/koyeb/api/models/proxy_port_protocol.py +++ b/koyeb/api/models/proxy_port_protocol.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,11 +26,9 @@ class ProxyPortProtocol(str, Enum): """ allowed enum values """ - TCP = 'tcp' + TCP = "tcp" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of ProxyPortProtocol from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/public_organization.py b/koyeb/api/models/public_organization.py index 044d69e6..ec4df05c 100644 --- a/koyeb/api/models/public_organization.py +++ b/koyeb/api/models/public_organization.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,15 +24,18 @@ from typing import Optional, Set from typing_extensions import Self + class PublicOrganization(BaseModel): """ PublicOrganization - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None plan: Optional[Plan] = Plan.HOBBY status: Optional[OrganizationStatus] = OrganizationStatus.WARNING - __properties: ClassVar[List[str]] = ["id", "name", "plan", "status"] + external_id: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["id", "name", "plan", "status", "external_id"] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +43,6 @@ class PublicOrganization(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +67,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,12 +85,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY, - "status": obj.get("status") if obj.get("status") is not None else OrganizationStatus.WARNING - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "plan": obj.get("plan") if obj.get("plan") is not None else Plan.HOBBY, + "status": ( + obj.get("status") + if obj.get("status") is not None + else OrganizationStatus.WARNING + ), + "external_id": obj.get("external_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/public_user.py b/koyeb/api/models/public_user.py index 1905c848..18831045 100644 --- a/koyeb/api/models/public_user.py +++ b/koyeb/api/models/public_user.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,17 +22,26 @@ from typing import Optional, Set from typing_extensions import Self + class PublicUser(BaseModel): """ PublicUser - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None email: Optional[StrictStr] = None name: Optional[StrictStr] = None avatar_url: Optional[StrictStr] = None github_id: Optional[StrictStr] = None github_user: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "email", "name", "avatar_url", "github_id", "github_user"] + __properties: ClassVar[List[str]] = [ + "id", + "email", + "name", + "avatar_url", + "github_id", + "github_user", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +49,6 @@ class PublicUser(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,14 +91,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "email": obj.get("email"), - "name": obj.get("name"), - "avatar_url": obj.get("avatar_url"), - "github_id": obj.get("github_id"), - "github_user": obj.get("github_user") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "email": obj.get("email"), + "name": obj.get("name"), + "avatar_url": obj.get("avatar_url"), + "github_id": obj.get("github_id"), + "github_user": obj.get("github_user"), + } + ) return _obj - - diff --git a/koyeb/api/models/query_logs_reply.py b/koyeb/api/models/query_logs_reply.py index 0836d1f5..12c8f789 100644 --- a/koyeb/api/models/query_logs_reply.py +++ b/koyeb/api/models/query_logs_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class QueryLogsReply(BaseModel): """ QueryLogsReply - """ # noqa: E501 + """ # noqa: E501 + data: Optional[List[LogEntry]] = None pagination: Optional[QueryLogsReplyPagination] = None __properties: ClassVar[List[str]] = ["data", "pagination"] @@ -38,7 +40,6 @@ class QueryLogsReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -77,10 +77,10 @@ def to_dict(self) -> Dict[str, Any]: for _item_data in self.data: if _item_data: _items.append(_item_data.to_dict()) - _dict['data'] = _items + _dict["data"] = _items # override the default output from pydantic by calling `to_dict()` of pagination if self.pagination: - _dict['pagination'] = self.pagination.to_dict() + _dict["pagination"] = self.pagination.to_dict() return _dict @classmethod @@ -92,10 +92,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "data": [LogEntry.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None, - "pagination": QueryLogsReplyPagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None - }) + _obj = cls.model_validate( + { + "data": ( + [LogEntry.from_dict(_item) for _item in obj["data"]] + if obj.get("data") is not None + else None + ), + "pagination": ( + QueryLogsReplyPagination.from_dict(obj["pagination"]) + if obj.get("pagination") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/query_logs_reply_pagination.py b/koyeb/api/models/query_logs_reply_pagination.py index beb868fc..89cb3022 100644 --- a/koyeb/api/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,10 +23,12 @@ 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 @@ -38,7 +40,6 @@ 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)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index bb9b2375..8bfe6f94 100644 --- a/koyeb/api/models/quotas.py +++ b/koyeb/api/models/quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -25,10 +25,12 @@ from typing import Optional, Set from typing_extensions import Self + class Quotas(BaseModel): """ Quotas - """ # noqa: E501 + """ # noqa: E501 + apps: Optional[StrictStr] = None services: Optional[StrictStr] = None domains: Optional[StrictStr] = None @@ -49,7 +51,28 @@ class Quotas(BaseModel): 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"] + __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, @@ -57,7 +80,6 @@ class Quotas(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,8 +104,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -95,14 +116,18 @@ def to_dict(self) -> Dict[str, Any]: if self.persistent_volumes_by_region: for _key_persistent_volumes_by_region in self.persistent_volumes_by_region: if self.persistent_volumes_by_region[_key_persistent_volumes_by_region]: - _field_dict[_key_persistent_volumes_by_region] = self.persistent_volumes_by_region[_key_persistent_volumes_by_region].to_dict() - _dict['persistent_volumes_by_region'] = _field_dict + _field_dict[_key_persistent_volumes_by_region] = ( + self.persistent_volumes_by_region[ + _key_persistent_volumes_by_region + ].to_dict() + ) + _dict["persistent_volumes_by_region"] = _field_dict # override the default output from pydantic by calling `to_dict()` of domains_load_balancer if self.domains_load_balancer: - _dict['domains_load_balancer'] = self.domains_load_balancer.to_dict() + _dict["domains_load_balancer"] = self.domains_load_balancer.to_dict() # override the default output from pydantic by calling `to_dict()` of scale_to_zero if self.scale_to_zero: - _dict['scale_to_zero'] = self.scale_to_zero.to_dict() + _dict["scale_to_zero"] = self.scale_to_zero.to_dict() return _dict @classmethod @@ -114,33 +139,45 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "apps": obj.get("apps"), - "services": obj.get("services"), - "domains": obj.get("domains"), - "services_by_app": obj.get("services_by_app"), - "service_provisioning_concurrency": obj.get("service_provisioning_concurrency"), - "memory_mb": obj.get("memory_mb"), - "instance_types": obj.get("instance_types"), - "regions": obj.get("regions"), - "max_organization_members": obj.get("max_organization_members"), - "max_instances_by_type": obj.get("max_instances_by_type"), - "persistent_volumes_by_region": dict( - (_k, PersistentVolumeQuotas.from_dict(_v)) - for _k, _v in obj["persistent_volumes_by_region"].items() - ) - if obj.get("persistent_volumes_by_region") is not None - else None, - "custom_domains": obj.get("custom_domains"), - "domains_load_balancer": DomainLoadBalancerQuotas.from_dict(obj["domains_load_balancer"]) if obj.get("domains_load_balancer") is not None else None, - "metrics_retention": obj.get("metrics_retention"), - "logs_retention": obj.get("logs_retention"), - "access_reserved_subdomains": obj.get("access_reserved_subdomains"), - "proxy_ports": obj.get("proxy_ports"), - "scale_to_zero": ScaleToZeroQuotas.from_dict(obj["scale_to_zero"]) if obj.get("scale_to_zero") is not None else None, - "archives": obj.get("archives"), - "archive_max_size_mb": obj.get("archive_max_size_mb") - }) + _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/api/models/reactivate_organization_reply.py b/koyeb/api/models/reactivate_organization_reply.py index 14a0dc0b..b3b1ff75 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/redeem_coupon_request.py b/koyeb/api/models/redeem_coupon_request.py index 39caa12e..22feee3d 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/redeploy_reply.py b/koyeb/api/models/redeploy_reply.py index 25045c9a..65203104 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 6c4c2bc9..bdd867ef 100644 --- a/koyeb/api/models/redeploy_request_info.py +++ b/koyeb/api/models/redeploy_request_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,15 +22,25 @@ from typing import Optional, Set from typing_extensions import Self + class RedeployRequestInfo(BaseModel): """ RedeployRequestInfo - """ # noqa: E501 + """ # noqa: E501 + deployment_group: Optional[StrictStr] = None sha: Optional[StrictStr] = None use_cache: Optional[StrictBool] = None - skip_build: Optional[StrictBool] = Field(default=None, description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.") - __properties: ClassVar[List[str]] = ["deployment_group", "sha", "use_cache", "skip_build"] + skip_build: Optional[StrictBool] = Field( + default=None, + description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.", + ) + __properties: ClassVar[List[str]] = [ + "deployment_group", + "sha", + "use_cache", + "skip_build", + ] model_config = ConfigDict( populate_by_name=True, @@ -38,7 +48,6 @@ class RedeployRequestInfo(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +72,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +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({ - "deployment_group": obj.get("deployment_group"), - "sha": obj.get("sha"), - "use_cache": obj.get("use_cache"), - "skip_build": obj.get("skip_build") - }) + _obj = cls.model_validate( + { + "deployment_group": obj.get("deployment_group"), + "sha": obj.get("sha"), + "use_cache": obj.get("use_cache"), + "skip_build": obj.get("skip_build"), + } + ) return _obj - - diff --git a/koyeb/api/models/region.py b/koyeb/api/models/region.py index 1b687af5..00bb9aa2 100644 --- a/koyeb/api/models/region.py +++ b/koyeb/api/models/region.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,10 +22,12 @@ from typing import Optional, Set from typing_extensions import Self + class Region(BaseModel): """ Region - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None coordinates: Optional[List[StrictStr]] = None @@ -33,8 +35,20 @@ class Region(BaseModel): instances: Optional[List[StrictStr]] = None datacenters: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None - scope: Optional[StrictStr] = Field(default=None, description="The scope of the region, continent, metropolitan area, etc.") - __properties: ClassVar[List[str]] = ["id", "name", "coordinates", "status", "instances", "datacenters", "volumes_enabled", "scope"] + scope: Optional[StrictStr] = Field( + default=None, + description="The scope of the region, continent, metropolitan area, etc.", + ) + __properties: ClassVar[List[str]] = [ + "id", + "name", + "coordinates", + "status", + "instances", + "datacenters", + "volumes_enabled", + "scope", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +56,6 @@ class Region(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +80,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,16 +98,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "coordinates": obj.get("coordinates"), - "status": obj.get("status"), - "instances": obj.get("instances"), - "datacenters": obj.get("datacenters"), - "volumes_enabled": obj.get("volumes_enabled"), - "scope": obj.get("scope") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "coordinates": obj.get("coordinates"), + "status": obj.get("status"), + "instances": obj.get("instances"), + "datacenters": obj.get("datacenters"), + "volumes_enabled": obj.get("volumes_enabled"), + "scope": obj.get("scope"), + } + ) return _obj - - diff --git a/koyeb/api/models/region_availability.py b/koyeb/api/models/region_availability.py index 4be6a8a7..9bb7e0fd 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +80,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({ - "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 index c475016e..b8c189d0 100644 --- a/koyeb/api/models/region_list_item.py +++ b/koyeb/api/models/region_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,10 +22,12 @@ from typing import Optional, Set from typing_extensions import Self + class RegionListItem(BaseModel): """ RegionListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None coordinates: Optional[List[StrictStr]] = None @@ -33,8 +35,20 @@ class RegionListItem(BaseModel): instances: Optional[List[StrictStr]] = None datacenters: Optional[List[StrictStr]] = None volumes_enabled: Optional[StrictBool] = None - scope: Optional[StrictStr] = Field(default=None, description="The scope of the region, continent, metropolitan area, etc.") - __properties: ClassVar[List[str]] = ["id", "name", "coordinates", "status", "instances", "datacenters", "volumes_enabled", "scope"] + scope: Optional[StrictStr] = Field( + default=None, + description="The scope of the region, continent, metropolitan area, etc.", + ) + __properties: ClassVar[List[str]] = [ + "id", + "name", + "coordinates", + "status", + "instances", + "datacenters", + "volumes_enabled", + "scope", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +56,6 @@ class RegionListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +80,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,16 +98,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "coordinates": obj.get("coordinates"), - "status": obj.get("status"), - "instances": obj.get("instances"), - "datacenters": obj.get("datacenters"), - "volumes_enabled": obj.get("volumes_enabled"), - "scope": obj.get("scope") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "coordinates": obj.get("coordinates"), + "status": obj.get("status"), + "instances": obj.get("instances"), + "datacenters": obj.get("datacenters"), + "volumes_enabled": obj.get("volumes_enabled"), + "scope": obj.get("scope"), + } + ) return _obj - - diff --git a/koyeb/api/models/region_usage.py b/koyeb/api/models/region_usage.py index 80344d33..f772c2a6 100644 --- a/koyeb/api/models/region_usage.py +++ b/koyeb/api/models/region_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class RegionUsage(BaseModel): """ RegionUsage - """ # noqa: E501 + """ # noqa: E501 + instances: Optional[Dict[str, InstanceUsage]] = None __properties: ClassVar[List[str]] = ["instances"] @@ -36,7 +38,6 @@ class RegionUsage(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -74,8 +74,10 @@ def to_dict(self) -> Dict[str, Any]: if self.instances: for _key_instances in self.instances: if self.instances[_key_instances]: - _field_dict[_key_instances] = self.instances[_key_instances].to_dict() - _dict['instances'] = _field_dict + _field_dict[_key_instances] = self.instances[ + _key_instances + ].to_dict() + _dict["instances"] = _field_dict return _dict @classmethod @@ -87,14 +89,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "instances": dict( - (_k, InstanceUsage.from_dict(_v)) - for _k, _v in obj["instances"].items() - ) - if obj.get("instances") is not None - else None - }) + _obj = cls.model_validate( + { + "instances": ( + dict( + (_k, InstanceUsage.from_dict(_v)) + for _k, _v in obj["instances"].items() + ) + if obj.get("instances") is not None + else None + ) + } + ) return _obj - - diff --git a/koyeb/api/models/regional_deployment.py b/koyeb/api/models/regional_deployment.py index 4bbdfb58..e393813a 100644 --- a/koyeb/api/models/regional_deployment.py +++ b/koyeb/api/models/regional_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -27,10 +27,12 @@ from typing import Optional, Set from typing_extensions import Self + class RegionalDeployment(BaseModel): """ RegionalDeployment - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -55,7 +57,32 @@ class RegionalDeployment(BaseModel): version: Optional[StrictStr] = None deployment_group: Optional[StrictStr] = None deployment_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "scheduled_at", "allocated_at", "started_at", "succeeded_at", "terminated_at", "organization_id", "app_id", "service_id", "region", "parent_id", "child_id", "status", "messages", "definition", "datacenters", "metadata", "provisioning_info", "role", "version", "deployment_group", "deployment_id"] + __properties: ClassVar[List[str]] = [ + "id", + "created_at", + "updated_at", + "scheduled_at", + "allocated_at", + "started_at", + "succeeded_at", + "terminated_at", + "organization_id", + "app_id", + "service_id", + "region", + "parent_id", + "child_id", + "status", + "messages", + "definition", + "datacenters", + "metadata", + "provisioning_info", + "role", + "version", + "deployment_group", + "deployment_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -63,7 +90,6 @@ class RegionalDeployment(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -88,8 +114,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -98,10 +123,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict['definition'] = self.definition.to_dict() + _dict["definition"] = self.definition.to_dict() # override the default output from pydantic by calling `to_dict()` of provisioning_info if self.provisioning_info: - _dict['provisioning_info'] = self.provisioning_info.to_dict() + _dict["provisioning_info"] = self.provisioning_info.to_dict() return _dict @classmethod @@ -113,32 +138,48 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "scheduled_at": obj.get("scheduled_at"), - "allocated_at": obj.get("allocated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "terminated_at": obj.get("terminated_at"), - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "service_id": obj.get("service_id"), - "region": obj.get("region"), - "parent_id": obj.get("parent_id"), - "child_id": obj.get("child_id"), - "status": obj.get("status") if obj.get("status") is not None else RegionalDeploymentStatus.PENDING, - "messages": obj.get("messages"), - "definition": RegionalDeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, - "datacenters": obj.get("datacenters"), - "metadata": obj.get("metadata"), - "provisioning_info": DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) if obj.get("provisioning_info") is not None else None, - "role": obj.get("role") if obj.get("role") is not None else RegionalDeploymentRole.INVALID, - "version": obj.get("version"), - "deployment_group": obj.get("deployment_group"), - "deployment_id": obj.get("deployment_id") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "scheduled_at": obj.get("scheduled_at"), + "allocated_at": obj.get("allocated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "terminated_at": obj.get("terminated_at"), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "service_id": obj.get("service_id"), + "region": obj.get("region"), + "parent_id": obj.get("parent_id"), + "child_id": obj.get("child_id"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else RegionalDeploymentStatus.PENDING + ), + "messages": obj.get("messages"), + "definition": ( + RegionalDeploymentDefinition.from_dict(obj["definition"]) + if obj.get("definition") is not None + else None + ), + "datacenters": obj.get("datacenters"), + "metadata": obj.get("metadata"), + "provisioning_info": ( + DeploymentProvisioningInfo.from_dict(obj["provisioning_info"]) + if obj.get("provisioning_info") is not None + else None + ), + "role": ( + obj.get("role") + if obj.get("role") is not None + else RegionalDeploymentRole.INVALID + ), + "version": obj.get("version"), + "deployment_group": obj.get("deployment_group"), + "deployment_id": obj.get("deployment_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/regional_deployment_definition.py b/koyeb/api/models/regional_deployment_definition.py index ee8f0209..d8f5d23f 100644 --- a/koyeb/api/models/regional_deployment_definition.py +++ b/koyeb/api/models/regional_deployment_definition.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -27,19 +27,25 @@ 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_definition_type import ( + RegionalDeploymentDefinitionType, +) from koyeb.api.models.regional_deployment_volume import RegionalDeploymentVolume from koyeb.api.models.route import Route from koyeb.api.models.scaling import Scaling from typing import Optional, Set from typing_extensions import Self + class RegionalDeploymentDefinition(BaseModel): """ RegionalDeploymentDefinition - """ # noqa: E501 + """ # noqa: E501 + name: Optional[StrictStr] = None - type: Optional[RegionalDeploymentDefinitionType] = RegionalDeploymentDefinitionType.INVALID + type: Optional[RegionalDeploymentDefinitionType] = ( + RegionalDeploymentDefinitionType.INVALID + ) strategy: Optional[DeploymentStrategy] = None routes: Optional[List[Route]] = None ports: Optional[List[Port]] = None @@ -55,7 +61,25 @@ class RegionalDeploymentDefinition(BaseModel): docker: Optional[DockerSource] = None git: Optional[GitSource] = None archive: Optional[ArchiveSource] = None - __properties: ClassVar[List[str]] = ["name", "type", "strategy", "routes", "ports", "env", "region", "scaling", "instance_type", "deployment_group", "health_checks", "volumes", "config_files", "skip_cache", "docker", "git", "archive"] + __properties: ClassVar[List[str]] = [ + "name", + "type", + "strategy", + "routes", + "ports", + "env", + "region", + "scaling", + "instance_type", + "deployment_group", + "health_checks", + "volumes", + "config_files", + "skip_cache", + "docker", + "git", + "archive", + ] model_config = ConfigDict( populate_by_name=True, @@ -63,7 +87,6 @@ class RegionalDeploymentDefinition(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -88,8 +111,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -98,61 +120,61 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of strategy if self.strategy: - _dict['strategy'] = self.strategy.to_dict() + _dict["strategy"] = self.strategy.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in routes (list) _items = [] if self.routes: for _item_routes in self.routes: if _item_routes: _items.append(_item_routes.to_dict()) - _dict['routes'] = _items + _dict["routes"] = _items # override the default output from pydantic by calling `to_dict()` of each item in ports (list) _items = [] if self.ports: for _item_ports in self.ports: if _item_ports: _items.append(_item_ports.to_dict()) - _dict['ports'] = _items + _dict["ports"] = _items # override the default output from pydantic by calling `to_dict()` of each item in env (list) _items = [] if self.env: for _item_env in self.env: if _item_env: _items.append(_item_env.to_dict()) - _dict['env'] = _items + _dict["env"] = _items # override the default output from pydantic by calling `to_dict()` of scaling if self.scaling: - _dict['scaling'] = self.scaling.to_dict() + _dict["scaling"] = self.scaling.to_dict() # override the default output from pydantic by calling `to_dict()` of each item in health_checks (list) _items = [] if self.health_checks: for _item_health_checks in self.health_checks: if _item_health_checks: _items.append(_item_health_checks.to_dict()) - _dict['health_checks'] = _items + _dict["health_checks"] = _items # override the default output from pydantic by calling `to_dict()` of each item in volumes (list) _items = [] if self.volumes: for _item_volumes in self.volumes: if _item_volumes: _items.append(_item_volumes.to_dict()) - _dict['volumes'] = _items + _dict["volumes"] = _items # override the default output from pydantic by calling `to_dict()` of each item in config_files (list) _items = [] if self.config_files: for _item_config_files in self.config_files: if _item_config_files: _items.append(_item_config_files.to_dict()) - _dict['config_files'] = _items + _dict["config_files"] = _items # override the default output from pydantic by calling `to_dict()` of docker if self.docker: - _dict['docker'] = self.docker.to_dict() + _dict["docker"] = self.docker.to_dict() # override the default output from pydantic by calling `to_dict()` of git if self.git: - _dict['git'] = self.git.to_dict() + _dict["git"] = self.git.to_dict() # override the default output from pydantic by calling `to_dict()` of archive if self.archive: - _dict['archive'] = self.archive.to_dict() + _dict["archive"] = self.archive.to_dict() return _dict @classmethod @@ -164,25 +186,79 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name"), - "type": obj.get("type") if obj.get("type") is not None else RegionalDeploymentDefinitionType.INVALID, - "strategy": DeploymentStrategy.from_dict(obj["strategy"]) if obj.get("strategy") is not None else None, - "routes": [Route.from_dict(_item) for _item in obj["routes"]] if obj.get("routes") is not None else None, - "ports": [Port.from_dict(_item) for _item in obj["ports"]] if obj.get("ports") is not None else None, - "env": [Env.from_dict(_item) for _item in obj["env"]] if obj.get("env") is not None else None, - "region": obj.get("region"), - "scaling": Scaling.from_dict(obj["scaling"]) if obj.get("scaling") is not None else None, - "instance_type": obj.get("instance_type"), - "deployment_group": obj.get("deployment_group"), - "health_checks": [DeploymentHealthCheck.from_dict(_item) for _item in obj["health_checks"]] if obj.get("health_checks") is not None else None, - "volumes": [RegionalDeploymentVolume.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None, - "config_files": [ConfigFile.from_dict(_item) for _item in obj["config_files"]] if obj.get("config_files") is not None else None, - "skip_cache": obj.get("skip_cache"), - "docker": DockerSource.from_dict(obj["docker"]) if obj.get("docker") is not None else None, - "git": GitSource.from_dict(obj["git"]) if obj.get("git") is not None else None, - "archive": ArchiveSource.from_dict(obj["archive"]) if obj.get("archive") is not None else None - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "type": ( + obj.get("type") + if obj.get("type") is not None + else RegionalDeploymentDefinitionType.INVALID + ), + "strategy": ( + DeploymentStrategy.from_dict(obj["strategy"]) + if obj.get("strategy") is not None + else None + ), + "routes": ( + [Route.from_dict(_item) for _item in obj["routes"]] + if obj.get("routes") is not None + else None + ), + "ports": ( + [Port.from_dict(_item) for _item in obj["ports"]] + if obj.get("ports") is not None + else None + ), + "env": ( + [Env.from_dict(_item) for _item in obj["env"]] + if obj.get("env") is not None + else None + ), + "region": obj.get("region"), + "scaling": ( + Scaling.from_dict(obj["scaling"]) + if obj.get("scaling") is not None + else None + ), + "instance_type": obj.get("instance_type"), + "deployment_group": obj.get("deployment_group"), + "health_checks": ( + [ + DeploymentHealthCheck.from_dict(_item) + for _item in obj["health_checks"] + ] + if obj.get("health_checks") is not None + else None + ), + "volumes": ( + [ + RegionalDeploymentVolume.from_dict(_item) + for _item in obj["volumes"] + ] + if obj.get("volumes") is not None + else None + ), + "config_files": ( + [ConfigFile.from_dict(_item) for _item in obj["config_files"]] + if obj.get("config_files") is not None + else None + ), + "skip_cache": obj.get("skip_cache"), + "docker": ( + DockerSource.from_dict(obj["docker"]) + if obj.get("docker") is not None + else None + ), + "git": ( + GitSource.from_dict(obj["git"]) + if obj.get("git") is not None + else None + ), + "archive": ( + ArchiveSource.from_dict(obj["archive"]) + if obj.get("archive") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/regional_deployment_definition_type.py b/koyeb/api/models/regional_deployment_definition_type.py index 377ae05d..7da672ed 100644 --- a/koyeb/api/models/regional_deployment_definition_type.py +++ b/koyeb/api/models/regional_deployment_definition_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,13 @@ class RegionalDeploymentDefinitionType(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - WEB = 'WEB' - WORKER = 'WORKER' - SANDBOX = 'SANDBOX' + INVALID = "INVALID" + WEB = "WEB" + WORKER = "WORKER" + UNDERSCORE = "_" + SANDBOX = "SANDBOX" @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 index e9af1ab2..bcd23e99 100644 --- a/koyeb/api/models/regional_deployment_event.py +++ b/koyeb/api/models/regional_deployment_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class RegionalDeploymentEvent(BaseModel): """ RegionalDeploymentEvent - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -34,7 +36,15 @@ class RegionalDeploymentEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "regional_deployment_id", "type", "message", "metadata"] + __properties: ClassVar[List[str]] = [ + "id", + "when", + "organization_id", + "regional_deployment_id", + "type", + "message", + "metadata", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +52,6 @@ class RegionalDeploymentEvent(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,15 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata"), + } + ) return _obj - - diff --git a/koyeb/api/models/regional_deployment_list_item.py b/koyeb/api/models/regional_deployment_list_item.py index 281e1183..52547a0a 100644 --- a/koyeb/api/models/regional_deployment_list_item.py +++ b/koyeb/api/models/regional_deployment_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -25,10 +25,12 @@ from typing import Optional, Set from typing_extensions import Self + class RegionalDeploymentListItem(BaseModel): """ RegionalDeploymentListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -36,7 +38,15 @@ class RegionalDeploymentListItem(BaseModel): status: Optional[RegionalDeploymentStatus] = RegionalDeploymentStatus.PENDING messages: Optional[List[StrictStr]] = None definition: Optional[RegionalDeploymentDefinition] = None - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "region", "status", "messages", "definition"] + __properties: ClassVar[List[str]] = [ + "id", + "created_at", + "updated_at", + "region", + "status", + "messages", + "definition", + ] model_config = ConfigDict( populate_by_name=True, @@ -44,7 +54,6 @@ class RegionalDeploymentListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -69,8 +78,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +87,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict['definition'] = self.definition.to_dict() + _dict["definition"] = self.definition.to_dict() return _dict @classmethod @@ -91,15 +99,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "region": obj.get("region"), - "status": obj.get("status") if obj.get("status") is not None else RegionalDeploymentStatus.PENDING, - "messages": obj.get("messages"), - "definition": RegionalDeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "region": obj.get("region"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else RegionalDeploymentStatus.PENDING + ), + "messages": obj.get("messages"), + "definition": ( + RegionalDeploymentDefinition.from_dict(obj["definition"]) + if obj.get("definition") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/regional_deployment_role.py b/koyeb/api/models/regional_deployment_role.py index 1a17b3e3..dfa5e2ad 100644 --- a/koyeb/api/models/regional_deployment_role.py +++ b/koyeb/api/models/regional_deployment_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,12 @@ class RegionalDeploymentRole(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - ACTIVE = 'ACTIVE' - UPCOMING = 'UPCOMING' - CURRENT = 'CURRENT' + INVALID = "INVALID" + ACTIVE = "ACTIVE" + UPCOMING = "UPCOMING" + CURRENT = "CURRENT" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of RegionalDeploymentRole from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/regional_deployment_status.py b/koyeb/api/models/regional_deployment_status.py index fc0a3635..083e79e2 100644 --- a/koyeb/api/models/regional_deployment_status.py +++ b/koyeb/api/models/regional_deployment_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,25 +26,23 @@ class RegionalDeploymentStatus(str, Enum): """ 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' + 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/api/models/regional_deployment_volume.py b/koyeb/api/models/regional_deployment_volume.py index c2eb190c..11a96845 100644 --- a/koyeb/api/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,10 +22,12 @@ 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 @@ -37,7 +39,6 @@ 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)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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/api/models/remove_organization_member_reply.py b/koyeb/api/models/remove_organization_member_reply.py index bf656798..774b8f85 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 2b4b587a..f386bd4a 100644 --- a/koyeb/api/models/resend_organization_invitation_reply.py +++ b/koyeb/api/models/resend_organization_invitation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ResendOrganizationInvitationReply(BaseModel): """ ResendOrganizationInvitationReply - """ # noqa: E501 + """ # noqa: E501 + invitation: Optional[OrganizationInvitation] = None __properties: ClassVar[List[str]] = ["invitation"] @@ -36,7 +38,6 @@ class ResendOrganizationInvitationReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/reset_password_request.py b/koyeb/api/models/reset_password_request.py index 350b65e9..db029043 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/reveal_secret_reply.py b/koyeb/api/models/reveal_secret_reply.py index c663f88c..1cec0282 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/review_organization_capacity_reply.py b/koyeb/api/models/review_organization_capacity_reply.py index f351911c..a6d51f5d 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/review_organization_capacity_request.py b/koyeb/api/models/review_organization_capacity_request.py index 2c8632cb..d79a3cd4 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/route.py b/koyeb/api/models/route.py index c0eb7e45..1472a07e 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,5 @@ def 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/sample.py b/koyeb/api/models/sample.py index 43d6fb1f..6ba1f284 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index faf8bc3a..ad114f00 100644 --- a/koyeb/api/models/scale_to_zero_quotas.py +++ b/koyeb/api/models/scale_to_zero_quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,17 +22,26 @@ from typing import Optional, Set from typing_extensions import Self + class ScaleToZeroQuotas(BaseModel): """ ScaleToZeroQuotas - """ # noqa: E501 + """ # noqa: E501 + is_deep_sleep_enabled: Optional[StrictBool] = None deep_sleep_idle_delay_min: Optional[StrictInt] = None deep_sleep_idle_delay_max: Optional[StrictInt] = None is_light_sleep_enabled: Optional[StrictBool] = None light_sleep_idle_delay_min: Optional[StrictInt] = None light_sleep_idle_delay_max: Optional[StrictInt] = None - __properties: ClassVar[List[str]] = ["is_deep_sleep_enabled", "deep_sleep_idle_delay_min", "deep_sleep_idle_delay_max", "is_light_sleep_enabled", "light_sleep_idle_delay_min", "light_sleep_idle_delay_max"] + __properties: ClassVar[List[str]] = [ + "is_deep_sleep_enabled", + "deep_sleep_idle_delay_min", + "deep_sleep_idle_delay_max", + "is_light_sleep_enabled", + "light_sleep_idle_delay_min", + "light_sleep_idle_delay_max", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +49,6 @@ class ScaleToZeroQuotas(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,14 +91,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "is_deep_sleep_enabled": obj.get("is_deep_sleep_enabled"), - "deep_sleep_idle_delay_min": obj.get("deep_sleep_idle_delay_min"), - "deep_sleep_idle_delay_max": obj.get("deep_sleep_idle_delay_max"), - "is_light_sleep_enabled": obj.get("is_light_sleep_enabled"), - "light_sleep_idle_delay_min": obj.get("light_sleep_idle_delay_min"), - "light_sleep_idle_delay_max": obj.get("light_sleep_idle_delay_max") - }) + _obj = cls.model_validate( + { + "is_deep_sleep_enabled": obj.get("is_deep_sleep_enabled"), + "deep_sleep_idle_delay_min": obj.get("deep_sleep_idle_delay_min"), + "deep_sleep_idle_delay_max": obj.get("deep_sleep_idle_delay_max"), + "is_light_sleep_enabled": obj.get("is_light_sleep_enabled"), + "light_sleep_idle_delay_min": obj.get("light_sleep_idle_delay_min"), + "light_sleep_idle_delay_max": obj.get("light_sleep_idle_delay_max"), + } + ) return _obj - - diff --git a/koyeb/api/models/scaling.py b/koyeb/api/models/scaling.py index 1ca041ec..7b0a417c 100644 --- a/koyeb/api/models/scaling.py +++ b/koyeb/api/models/scaling.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class Scaling(BaseModel): """ Scaling - """ # noqa: E501 + """ # noqa: E501 + min: Optional[StrictInt] = None max: Optional[StrictInt] = None targets: Optional[List[DeploymentScalingTarget]] = None @@ -38,7 +40,6 @@ class Scaling(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _item_targets in self.targets: if _item_targets: _items.append(_item_targets.to_dict()) - _dict['targets'] = _items + _dict["targets"] = _items return _dict @classmethod @@ -89,11 +89,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "min": obj.get("min"), - "max": obj.get("max"), - "targets": [DeploymentScalingTarget.from_dict(_item) for _item in obj["targets"]] if obj.get("targets") is not None else None - }) + _obj = cls.model_validate( + { + "min": obj.get("min"), + "max": obj.get("max"), + "targets": ( + [ + DeploymentScalingTarget.from_dict(_item) + for _item in obj["targets"] + ] + if obj.get("targets") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/secret.py b/koyeb/api/models/secret.py index 4f83b6c0..8f3686a2 100644 --- a/koyeb/api/models/secret.py +++ b/koyeb/api/models/secret.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.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,11 +20,19 @@ 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.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.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 @@ -32,10 +40,12 @@ from typing import Optional, Set from typing_extensions import Self + class Secret(BaseModel): """ Secret - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None @@ -51,7 +61,23 @@ class Secret(BaseModel): 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"] + __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, @@ -59,7 +85,6 @@ class Secret(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -84,8 +109,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -94,28 +118,28 @@ def to_dict(self) -> Dict[str, Any]: ) # 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() + _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() + _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() + _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() + _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() + _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() + _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() + _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() + _dict["database_role_password"] = self.database_role_password.to_dict() return _dict @classmethod @@ -127,23 +151,65 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "organization_id": obj.get("organization_id"), - "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 - }) + _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 index 241aca98..bd981586 100644 --- a/koyeb/api/models/secret_type.py +++ b/koyeb/api/models/secret_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,11 @@ class SecretType(str, Enum): """ allowed enum values """ - SIMPLE = 'SIMPLE' - REGISTRY = 'REGISTRY' - MANAGED = 'MANAGED' + SIMPLE = "SIMPLE" + REGISTRY = "REGISTRY" + MANAGED = "MANAGED" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of SecretType from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/secrets_summary.py b/koyeb/api/models/secrets_summary.py index f4f05185..6a09084e 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 164256ce..0f4b8ea5 100644 --- a/koyeb/api/models/service.py +++ b/koyeb/api/models/service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,16 +20,19 @@ from datetime import datetime from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.service_life_cycle import ServiceLifeCycle from koyeb.api.models.service_state import ServiceState from koyeb.api.models.service_status import ServiceStatus from koyeb.api.models.service_type import ServiceType from typing import Optional, Set from typing_extensions import Self + class Service(BaseModel): """ Service - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -49,7 +52,29 @@ class Service(BaseModel): latest_deployment_id: Optional[StrictStr] = None last_provisioned_deployment_id: Optional[StrictStr] = None state: Optional[ServiceState] = None - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "started_at", "succeeded_at", "paused_at", "resumed_at", "terminated_at", "name", "type", "organization_id", "app_id", "status", "messages", "version", "active_deployment_id", "latest_deployment_id", "last_provisioned_deployment_id", "state"] + life_cycle: Optional[ServiceLifeCycle] = 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", + "life_cycle", + ] model_config = ConfigDict( populate_by_name=True, @@ -57,7 +82,6 @@ class Service(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -82,8 +106,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -92,7 +115,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of state if self.state: - _dict['state'] = self.state.to_dict() + _dict["state"] = self.state.to_dict() + # override the default output from pydantic by calling `to_dict()` of life_cycle + if self.life_cycle: + _dict["life_cycle"] = self.life_cycle.to_dict() return _dict @classmethod @@ -104,27 +130,46 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "started_at": obj.get("started_at"), - "succeeded_at": obj.get("succeeded_at"), - "paused_at": obj.get("paused_at"), - "resumed_at": obj.get("resumed_at"), - "terminated_at": obj.get("terminated_at"), - "name": obj.get("name"), - "type": obj.get("type") if obj.get("type") is not None else ServiceType.INVALID_TYPE, - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "status": obj.get("status") if obj.get("status") is not None else ServiceStatus.STARTING, - "messages": obj.get("messages"), - "version": obj.get("version"), - "active_deployment_id": obj.get("active_deployment_id"), - "latest_deployment_id": obj.get("latest_deployment_id"), - "last_provisioned_deployment_id": obj.get("last_provisioned_deployment_id"), - "state": ServiceState.from_dict(obj["state"]) if obj.get("state") is not None else None - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "started_at": obj.get("started_at"), + "succeeded_at": obj.get("succeeded_at"), + "paused_at": obj.get("paused_at"), + "resumed_at": obj.get("resumed_at"), + "terminated_at": obj.get("terminated_at"), + "name": obj.get("name"), + "type": ( + obj.get("type") + if obj.get("type") is not None + else ServiceType.INVALID_TYPE + ), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else ServiceStatus.STARTING + ), + "messages": obj.get("messages"), + "version": obj.get("version"), + "active_deployment_id": obj.get("active_deployment_id"), + "latest_deployment_id": obj.get("latest_deployment_id"), + "last_provisioned_deployment_id": obj.get( + "last_provisioned_deployment_id" + ), + "state": ( + ServiceState.from_dict(obj["state"]) + if obj.get("state") is not None + else None + ), + "life_cycle": ( + ServiceLifeCycle.from_dict(obj["life_cycle"]) + if obj.get("life_cycle") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/service_event.py b/koyeb/api/models/service_event.py index 27facaa7..68d2c5e2 100644 --- a/koyeb/api/models/service_event.py +++ b/koyeb/api/models/service_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ServiceEvent(BaseModel): """ ServiceEvent - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None when: Optional[datetime] = None organization_id: Optional[StrictStr] = None @@ -34,7 +36,15 @@ class ServiceEvent(BaseModel): type: Optional[StrictStr] = None message: Optional[StrictStr] = None metadata: Optional[Dict[str, Any]] = None - __properties: ClassVar[List[str]] = ["id", "when", "organization_id", "service_id", "type", "message", "metadata"] + __properties: ClassVar[List[str]] = [ + "id", + "when", + "organization_id", + "service_id", + "type", + "message", + "metadata", + ] model_config = ConfigDict( populate_by_name=True, @@ -42,7 +52,6 @@ class ServiceEvent(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -67,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,15 +94,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "when": obj.get("when"), - "organization_id": obj.get("organization_id"), - "service_id": obj.get("service_id"), - "type": obj.get("type"), - "message": obj.get("message"), - "metadata": obj.get("metadata") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "when": obj.get("when"), + "organization_id": obj.get("organization_id"), + "service_id": obj.get("service_id"), + "type": obj.get("type"), + "message": obj.get("message"), + "metadata": obj.get("metadata"), + } + ) return _obj - - diff --git a/koyeb/api/models/service_life_cycle.py b/koyeb/api/models/service_life_cycle.py new file mode 100644 index 00000000..73e5b5b4 --- /dev/null +++ b/koyeb/api/models/service_life_cycle.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, StrictInt +from typing import Any, ClassVar, Dict, List, Optional +from typing import Optional, Set +from typing_extensions import Self + + +class ServiceLifeCycle(BaseModel): + """ + ServiceLifeCycle + """ # noqa: E501 + + delete_after_sleep: Optional[StrictInt] = None + delete_after_create: Optional[StrictInt] = None + __properties: ClassVar[List[str]] = ["delete_after_sleep", "delete_after_create"] + + model_config = ConfigDict( + populate_by_name=True, + validate_assignment=True, + protected_namespaces=(), + ) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.model_dump(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> Optional[Self]: + """Create an instance of ServiceLifeCycle from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other 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 ServiceLifeCycle from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return cls.model_validate(obj) + + _obj = cls.model_validate( + { + "delete_after_sleep": obj.get("delete_after_sleep"), + "delete_after_create": obj.get("delete_after_create"), + } + ) + return _obj diff --git a/koyeb/api/models/service_list_item.py b/koyeb/api/models/service_list_item.py index df76848b..28084e8b 100644 --- a/koyeb/api/models/service_list_item.py +++ b/koyeb/api/models/service_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,10 +26,12 @@ from typing import Optional, Set from typing_extensions import Self + class ServiceListItem(BaseModel): """ ServiceListItem - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None type: Optional[ServiceType] = ServiceType.INVALID_TYPE @@ -43,7 +45,21 @@ class ServiceListItem(BaseModel): state: Optional[ServiceState] = None active_deployment_id: Optional[StrictStr] = None latest_deployment_id: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "name", "type", "organization_id", "app_id", "updated_at", "created_at", "status", "messages", "version", "state", "active_deployment_id", "latest_deployment_id"] + __properties: ClassVar[List[str]] = [ + "id", + "name", + "type", + "organization_id", + "app_id", + "updated_at", + "created_at", + "status", + "messages", + "version", + "state", + "active_deployment_id", + "latest_deployment_id", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +67,6 @@ class ServiceListItem(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,8 +91,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -86,7 +100,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of state if self.state: - _dict['state'] = self.state.to_dict() + _dict["state"] = self.state.to_dict() return _dict @classmethod @@ -98,21 +112,33 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "type": obj.get("type") if obj.get("type") is not None else ServiceType.INVALID_TYPE, - "organization_id": obj.get("organization_id"), - "app_id": obj.get("app_id"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "status": obj.get("status") if obj.get("status") is not None else ServiceStatus.STARTING, - "messages": obj.get("messages"), - "version": obj.get("version"), - "state": ServiceState.from_dict(obj["state"]) if obj.get("state") is not None else None, - "active_deployment_id": obj.get("active_deployment_id"), - "latest_deployment_id": obj.get("latest_deployment_id") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "type": ( + obj.get("type") + if obj.get("type") is not None + else ServiceType.INVALID_TYPE + ), + "organization_id": obj.get("organization_id"), + "app_id": obj.get("app_id"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else ServiceStatus.STARTING + ), + "messages": obj.get("messages"), + "version": obj.get("version"), + "state": ( + ServiceState.from_dict(obj["state"]) + if obj.get("state") is not None + else None + ), + "active_deployment_id": obj.get("active_deployment_id"), + "latest_deployment_id": obj.get("latest_deployment_id"), + } + ) return _obj - - diff --git a/koyeb/api/models/service_state.py b/koyeb/api/models/service_state.py index 73decf17..3901a194 100644 --- a/koyeb/api/models/service_state.py +++ b/koyeb/api/models/service_state.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class ServiceState(BaseModel): """ ServiceState - """ # noqa: E501 + """ # noqa: E501 + desired_deployment: Optional[DesiredDeployment] = None auto_release: Optional[AutoRelease] = None __properties: ClassVar[List[str]] = ["desired_deployment", "auto_release"] @@ -38,7 +40,6 @@ class ServiceState(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -73,10 +73,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of desired_deployment if self.desired_deployment: - _dict['desired_deployment'] = self.desired_deployment.to_dict() + _dict["desired_deployment"] = self.desired_deployment.to_dict() # override the default output from pydantic by calling `to_dict()` of auto_release if self.auto_release: - _dict['auto_release'] = self.auto_release.to_dict() + _dict["auto_release"] = self.auto_release.to_dict() return _dict @classmethod @@ -88,10 +88,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "desired_deployment": DesiredDeployment.from_dict(obj["desired_deployment"]) if obj.get("desired_deployment") is not None else None, - "auto_release": AutoRelease.from_dict(obj["auto_release"]) if obj.get("auto_release") is not None else None - }) + _obj = cls.model_validate( + { + "desired_deployment": ( + DesiredDeployment.from_dict(obj["desired_deployment"]) + if obj.get("desired_deployment") is not None + else None + ), + "auto_release": ( + AutoRelease.from_dict(obj["auto_release"]) + if obj.get("auto_release") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/service_status.py b/koyeb/api/models/service_status.py index f0f5bfb1..13361867 100644 --- a/koyeb/api/models/service_status.py +++ b/koyeb/api/models/service_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,19 +26,17 @@ class ServiceStatus(str, Enum): """ allowed enum values """ - STARTING = 'STARTING' - HEALTHY = 'HEALTHY' - DEGRADED = 'DEGRADED' - UNHEALTHY = 'UNHEALTHY' - DELETING = 'DELETING' - DELETED = 'DELETED' - PAUSING = 'PAUSING' - PAUSED = 'PAUSED' - RESUMING = 'RESUMING' + 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/api/models/service_summary.py b/koyeb/api/models/service_summary.py index 4931b705..a9792d7f 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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 index 684e867e..bfe1799f 100644 --- a/koyeb/api/models/service_type.py +++ b/koyeb/api/models/service_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,15 +26,13 @@ class ServiceType(str, Enum): """ allowed enum values """ - INVALID_TYPE = 'INVALID_TYPE' - WEB = 'WEB' - WORKER = 'WORKER' - DATABASE = 'DATABASE' - SANDBOX = 'SANDBOX' + INVALID_TYPE = "INVALID_TYPE" + WEB = "WEB" + WORKER = "WORKER" + DATABASE = "DATABASE" + SANDBOX = "SANDBOX" @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 index 3297852e..8549b726 100644 --- a/koyeb/api/models/service_usage.py +++ b/koyeb/api/models/service_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class ServiceUsage(BaseModel): """ ServiceUsage - """ # noqa: E501 + """ # noqa: E501 + service_id: Optional[StrictStr] = None service_name: Optional[StrictStr] = None regions: Optional[Dict[str, RegionUsage]] = None @@ -38,7 +40,6 @@ class ServiceUsage(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_regions in self.regions: if self.regions[_key_regions]: _field_dict[_key_regions] = self.regions[_key_regions].to_dict() - _dict['regions'] = _field_dict + _dict["regions"] = _field_dict return _dict @classmethod @@ -89,16 +89,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "regions": dict( - (_k, RegionUsage.from_dict(_v)) - for _k, _v in obj["regions"].items() - ) - if obj.get("regions") is not None - else None - }) + _obj = cls.model_validate( + { + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "regions": ( + dict( + (_k, RegionUsage.from_dict(_v)) + for _k, _v in obj["regions"].items() + ) + if obj.get("regions") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/snapshot.py b/koyeb/api/models/snapshot.py index fc9bc7ba..e73f244a 100644 --- a/koyeb/api/models/snapshot.py +++ b/koyeb/api/models/snapshot.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -25,10 +25,12 @@ from typing import Optional, Set from typing_extensions import Self + class Snapshot(BaseModel): """ The object that represents a snapshot. It can either be local, on a node, or remote, in a cold storage. - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None name: Optional[StrictStr] = None size: Optional[StrictInt] = None @@ -40,7 +42,19 @@ class Snapshot(BaseModel): region: Optional[StrictStr] = None status: Optional[SnapshotStatus] = SnapshotStatus.SNAPSHOT_STATUS_INVALID type: Optional[SnapshotType] = SnapshotType.SNAPSHOT_TYPE_INVALID - __properties: ClassVar[List[str]] = ["id", "name", "size", "created_at", "updated_at", "deleted_at", "organization_id", "parent_volume_id", "region", "status", "type"] + __properties: ClassVar[List[str]] = [ + "id", + "name", + "size", + "created_at", + "updated_at", + "deleted_at", + "organization_id", + "parent_volume_id", + "region", + "status", + "type", + ] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +62,6 @@ class Snapshot(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,8 +86,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -92,19 +104,27 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "name": obj.get("name"), - "size": obj.get("size"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "deleted_at": obj.get("deleted_at"), - "organization_id": obj.get("organization_id"), - "parent_volume_id": obj.get("parent_volume_id"), - "region": obj.get("region"), - "status": obj.get("status") if obj.get("status") is not None else SnapshotStatus.SNAPSHOT_STATUS_INVALID, - "type": obj.get("type") if obj.get("type") is not None else SnapshotType.SNAPSHOT_TYPE_INVALID - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "name": obj.get("name"), + "size": obj.get("size"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "deleted_at": obj.get("deleted_at"), + "organization_id": obj.get("organization_id"), + "parent_volume_id": obj.get("parent_volume_id"), + "region": obj.get("region"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else SnapshotStatus.SNAPSHOT_STATUS_INVALID + ), + "type": ( + obj.get("type") + if obj.get("type") is not None + else SnapshotType.SNAPSHOT_TYPE_INVALID + ), + } + ) return _obj - - diff --git a/koyeb/api/models/snapshot_status.py b/koyeb/api/models/snapshot_status.py index ec7f810c..276a1703 100644 --- a/koyeb/api/models/snapshot_status.py +++ b/koyeb/api/models/snapshot_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,16 +26,14 @@ class SnapshotStatus(str, Enum): """ 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' + 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 index bbe3f47a..ffb02a39 100644 --- a/koyeb/api/models/snapshot_type.py +++ b/koyeb/api/models/snapshot_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,11 @@ class SnapshotType(str, Enum): """ allowed enum values """ - SNAPSHOT_TYPE_INVALID = 'SNAPSHOT_TYPE_INVALID' - SNAPSHOT_TYPE_LOCAL = 'SNAPSHOT_TYPE_LOCAL' - SNAPSHOT_TYPE_REMOTE = 'SNAPSHOT_TYPE_REMOTE' + 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 index 4842b4b2..828a1fe2 100644 --- a/koyeb/api/models/stream_result_of_exec_command_reply.py +++ b/koyeb/api/models/stream_result_of_exec_command_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class StreamResultOfExecCommandReply(BaseModel): """ StreamResultOfExecCommandReply - """ # noqa: E501 + """ # noqa: E501 + result: Optional[ExecCommandReply] = None error: Optional[GoogleRpcStatus] = None __properties: ClassVar[List[str]] = ["result", "error"] @@ -38,7 +40,6 @@ class StreamResultOfExecCommandReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -73,10 +73,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of result if self.result: - _dict['result'] = self.result.to_dict() + _dict["result"] = self.result.to_dict() # override the default output from pydantic by calling `to_dict()` of error if self.error: - _dict['error'] = self.error.to_dict() + _dict["error"] = self.error.to_dict() return _dict @classmethod @@ -88,10 +88,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "result": ExecCommandReply.from_dict(obj["result"]) if obj.get("result") is not None else None, - "error": GoogleRpcStatus.from_dict(obj["error"]) if obj.get("error") is not None else None - }) + _obj = cls.model_validate( + { + "result": ( + ExecCommandReply.from_dict(obj["result"]) + if obj.get("result") is not None + else None + ), + "error": ( + GoogleRpcStatus.from_dict(obj["error"]) + if obj.get("error") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/stream_result_of_log_entry.py b/koyeb/api/models/stream_result_of_log_entry.py index 09dd065c..e8ded709 100644 --- a/koyeb/api/models/stream_result_of_log_entry.py +++ b/koyeb/api/models/stream_result_of_log_entry.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class StreamResultOfLogEntry(BaseModel): """ StreamResultOfLogEntry - """ # noqa: E501 + """ # noqa: E501 + result: Optional[LogEntry] = None error: Optional[GoogleRpcStatus] = None __properties: ClassVar[List[str]] = ["result", "error"] @@ -38,7 +40,6 @@ class StreamResultOfLogEntry(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -73,10 +73,10 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of result if self.result: - _dict['result'] = self.result.to_dict() + _dict["result"] = self.result.to_dict() # override the default output from pydantic by calling `to_dict()` of error if self.error: - _dict['error'] = self.error.to_dict() + _dict["error"] = self.error.to_dict() return _dict @classmethod @@ -88,10 +88,18 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "result": LogEntry.from_dict(obj["result"]) if obj.get("result") is not None else None, - "error": GoogleRpcStatus.from_dict(obj["error"]) if obj.get("error") is not None else None - }) + _obj = cls.model_validate( + { + "result": ( + LogEntry.from_dict(obj["result"]) + if obj.get("result") is not None + else None + ), + "error": ( + GoogleRpcStatus.from_dict(obj["error"]) + if obj.get("error") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/subscription.py b/koyeb/api/models/subscription.py index b9b06196..8605dff5 100644 --- a/koyeb/api/models/subscription.py +++ b/koyeb/api/models/subscription.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -25,10 +25,12 @@ from typing import Optional, Set from typing_extensions import Self + class Subscription(BaseModel): """ Subscription - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None created_at: Optional[datetime] = None updated_at: Optional[datetime] = None @@ -53,7 +55,32 @@ class Subscription(BaseModel): trial_ends_at: Optional[datetime] = None trial_max_spend: Optional[StrictStr] = None current_spend: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "created_at", "updated_at", "version", "organization_id", "stripe_subscription_id", "status", "messages", "has_pending_update", "stripe_pending_invoice_id", "terminate_at", "canceled_at", "terminated_at", "current_period_start", "current_period_end", "currency", "amount_payable", "amount_paid", "amount_remaining", "payment_failure", "trialing", "trial_ends_at", "trial_max_spend", "current_spend"] + __properties: ClassVar[List[str]] = [ + "id", + "created_at", + "updated_at", + "version", + "organization_id", + "stripe_subscription_id", + "status", + "messages", + "has_pending_update", + "stripe_pending_invoice_id", + "terminate_at", + "canceled_at", + "terminated_at", + "current_period_start", + "current_period_end", + "currency", + "amount_payable", + "amount_paid", + "amount_remaining", + "payment_failure", + "trialing", + "trial_ends_at", + "trial_max_spend", + "current_spend", + ] model_config = ConfigDict( populate_by_name=True, @@ -61,7 +88,6 @@ class Subscription(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -86,8 +112,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -96,7 +121,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of payment_failure if self.payment_failure: - _dict['payment_failure'] = self.payment_failure.to_dict() + _dict["payment_failure"] = self.payment_failure.to_dict() return _dict @classmethod @@ -108,32 +133,40 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "created_at": obj.get("created_at"), - "updated_at": obj.get("updated_at"), - "version": obj.get("version"), - "organization_id": obj.get("organization_id"), - "stripe_subscription_id": obj.get("stripe_subscription_id"), - "status": obj.get("status") if obj.get("status") is not None else SubscriptionStatus.INVALID, - "messages": obj.get("messages"), - "has_pending_update": obj.get("has_pending_update"), - "stripe_pending_invoice_id": obj.get("stripe_pending_invoice_id"), - "terminate_at": obj.get("terminate_at"), - "canceled_at": obj.get("canceled_at"), - "terminated_at": obj.get("terminated_at"), - "current_period_start": obj.get("current_period_start"), - "current_period_end": obj.get("current_period_end"), - "currency": obj.get("currency"), - "amount_payable": obj.get("amount_payable"), - "amount_paid": obj.get("amount_paid"), - "amount_remaining": obj.get("amount_remaining"), - "payment_failure": SubscriptionPaymentFailure.from_dict(obj["payment_failure"]) if obj.get("payment_failure") is not None else None, - "trialing": obj.get("trialing"), - "trial_ends_at": obj.get("trial_ends_at"), - "trial_max_spend": obj.get("trial_max_spend"), - "current_spend": obj.get("current_spend") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "created_at": obj.get("created_at"), + "updated_at": obj.get("updated_at"), + "version": obj.get("version"), + "organization_id": obj.get("organization_id"), + "stripe_subscription_id": obj.get("stripe_subscription_id"), + "status": ( + obj.get("status") + if obj.get("status") is not None + else SubscriptionStatus.INVALID + ), + "messages": obj.get("messages"), + "has_pending_update": obj.get("has_pending_update"), + "stripe_pending_invoice_id": obj.get("stripe_pending_invoice_id"), + "terminate_at": obj.get("terminate_at"), + "canceled_at": obj.get("canceled_at"), + "terminated_at": obj.get("terminated_at"), + "current_period_start": obj.get("current_period_start"), + "current_period_end": obj.get("current_period_end"), + "currency": obj.get("currency"), + "amount_payable": obj.get("amount_payable"), + "amount_paid": obj.get("amount_paid"), + "amount_remaining": obj.get("amount_remaining"), + "payment_failure": ( + SubscriptionPaymentFailure.from_dict(obj["payment_failure"]) + if obj.get("payment_failure") is not None + else None + ), + "trialing": obj.get("trialing"), + "trial_ends_at": obj.get("trial_ends_at"), + "trial_max_spend": obj.get("trial_max_spend"), + "current_spend": obj.get("current_spend"), + } + ) return _obj - - diff --git a/koyeb/api/models/subscription_payment_failure.py b/koyeb/api/models/subscription_payment_failure.py index 41caeb58..724a68cb 100644 --- a/koyeb/api/models/subscription_payment_failure.py +++ b/koyeb/api/models/subscription_payment_failure.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -20,14 +20,18 @@ 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 koyeb.api.models.subscription_payment_failure_stripe_sdk import ( + SubscriptionPaymentFailureStripeSDK, +) from typing import Optional, Set from typing_extensions import Self + class SubscriptionPaymentFailure(BaseModel): """ SubscriptionPaymentFailure - """ # noqa: E501 + """ # noqa: E501 + failed_at: Optional[datetime] = None next_attempt: Optional[datetime] = None attempt_count: Optional[StrictStr] = None @@ -38,7 +42,18 @@ class SubscriptionPaymentFailure(BaseModel): payment_method_required: Optional[StrictBool] = None redirect_url: Optional[StrictStr] = None stripe_sdk: Optional[SubscriptionPaymentFailureStripeSDK] = None - __properties: ClassVar[List[str]] = ["failed_at", "next_attempt", "attempt_count", "error_code", "error_reason", "error_type", "error_message", "payment_method_required", "redirect_url", "stripe_sdk"] + __properties: ClassVar[List[str]] = [ + "failed_at", + "next_attempt", + "attempt_count", + "error_code", + "error_reason", + "error_type", + "error_message", + "payment_method_required", + "redirect_url", + "stripe_sdk", + ] model_config = ConfigDict( populate_by_name=True, @@ -46,7 +61,6 @@ class SubscriptionPaymentFailure(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -71,8 +85,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +94,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of stripe_sdk if self.stripe_sdk: - _dict['stripe_sdk'] = self.stripe_sdk.to_dict() + _dict["stripe_sdk"] = self.stripe_sdk.to_dict() return _dict @classmethod @@ -93,18 +106,22 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "failed_at": obj.get("failed_at"), - "next_attempt": obj.get("next_attempt"), - "attempt_count": obj.get("attempt_count"), - "error_code": obj.get("error_code"), - "error_reason": obj.get("error_reason"), - "error_type": obj.get("error_type"), - "error_message": obj.get("error_message"), - "payment_method_required": obj.get("payment_method_required"), - "redirect_url": obj.get("redirect_url"), - "stripe_sdk": SubscriptionPaymentFailureStripeSDK.from_dict(obj["stripe_sdk"]) if obj.get("stripe_sdk") is not None else None - }) + _obj = cls.model_validate( + { + "failed_at": obj.get("failed_at"), + "next_attempt": obj.get("next_attempt"), + "attempt_count": obj.get("attempt_count"), + "error_code": obj.get("error_code"), + "error_reason": obj.get("error_reason"), + "error_type": obj.get("error_type"), + "error_message": obj.get("error_message"), + "payment_method_required": obj.get("payment_method_required"), + "redirect_url": obj.get("redirect_url"), + "stripe_sdk": ( + SubscriptionPaymentFailureStripeSDK.from_dict(obj["stripe_sdk"]) + if obj.get("stripe_sdk") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/subscription_payment_failure_stripe_sdk.py b/koyeb/api/models/subscription_payment_failure_stripe_sdk.py index 717cd0e5..a4a4d6a3 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 index 486f6efa..b1fbb160 100644 --- a/koyeb/api/models/subscription_status.py +++ b/koyeb/api/models/subscription_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,19 +26,17 @@ class SubscriptionStatus(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - CREATED = 'CREATED' - ACTIVE = 'ACTIVE' - WARNING = 'WARNING' - URGENT = 'URGENT' - CANCELING = 'CANCELING' - CANCELED = 'CANCELED' - TERMINATING = 'TERMINATING' - TERMINATED = 'TERMINATED' + 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/api/models/tcp_health_check.py b/koyeb/api/models/tcp_health_check.py index fbda9889..998c850f 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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 index bc3778a2..ee8a37db 100644 --- a/koyeb/api/models/token.py +++ b/koyeb/api/models/token.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,15 +23,22 @@ from typing import Optional, Set from typing_extensions import Self + class Token(BaseModel): """ Token - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None user_id: Optional[StrictStr] = None organization_id: Optional[StrictStr] = None expires_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["id", "user_id", "organization_id", "expires_at"] + __properties: ClassVar[List[str]] = [ + "id", + "user_id", + "organization_id", + "expires_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -39,7 +46,6 @@ class Token(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -64,8 +70,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,12 +88,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "user_id": obj.get("user_id"), - "organization_id": obj.get("organization_id"), - "expires_at": obj.get("expires_at") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "user_id": obj.get("user_id"), + "organization_id": obj.get("organization_id"), + "expires_at": obj.get("expires_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/trigger_deployment_metadata.py b/koyeb/api/models/trigger_deployment_metadata.py index f7603d35..f174b360 100644 --- a/koyeb/api/models/trigger_deployment_metadata.py +++ b/koyeb/api/models/trigger_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,18 +19,30 @@ 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 koyeb.api.models.trigger_deployment_metadata_actor_type import ( + TriggerDeploymentMetadataActorType, +) +from koyeb.api.models.trigger_deployment_metadata_trigger_type import ( + TriggerDeploymentMetadataTriggerType, +) +from koyeb.api.models.trigger_git_deployment_metadata import ( + TriggerGitDeploymentMetadata, +) from typing import Optional, Set from typing_extensions import Self + class TriggerDeploymentMetadata(BaseModel): """ TriggerDeploymentMetadata - """ # noqa: E501 - type: Optional[TriggerDeploymentMetadataTriggerType] = TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE - actor: Optional[TriggerDeploymentMetadataActorType] = TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR + """ # noqa: E501 + + type: Optional[TriggerDeploymentMetadataTriggerType] = ( + TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE + ) + actor: Optional[TriggerDeploymentMetadataActorType] = ( + TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR + ) git: Optional[TriggerGitDeploymentMetadata] = None __properties: ClassVar[List[str]] = ["type", "actor", "git"] @@ -40,7 +52,6 @@ class TriggerDeploymentMetadata(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +76,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,7 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of git if self.git: - _dict['git'] = self.git.to_dict() + _dict["git"] = self.git.to_dict() return _dict @classmethod @@ -87,11 +97,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "type": obj.get("type") if obj.get("type") is not None else TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE, - "actor": obj.get("actor") if obj.get("actor") is not None else TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR, - "git": TriggerGitDeploymentMetadata.from_dict(obj["git"]) if obj.get("git") is not None else None - }) + _obj = cls.model_validate( + { + "type": ( + obj.get("type") + if obj.get("type") is not None + else TriggerDeploymentMetadataTriggerType.UNKNOWN_TYPE + ), + "actor": ( + obj.get("actor") + if obj.get("actor") is not None + else TriggerDeploymentMetadataActorType.UNKNOWN_ACTOR + ), + "git": ( + TriggerGitDeploymentMetadata.from_dict(obj["git"]) + if obj.get("git") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/trigger_deployment_metadata_actor_type.py b/koyeb/api/models/trigger_deployment_metadata_actor_type.py index a74aa835..efb6e32f 100644 --- a/koyeb/api/models/trigger_deployment_metadata_actor_type.py +++ b/koyeb/api/models/trigger_deployment_metadata_actor_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,13 +26,11 @@ class TriggerDeploymentMetadataActorType(str, Enum): """ allowed enum values """ - UNKNOWN_ACTOR = 'UNKNOWN_ACTOR' - USER = 'USER' - SYSTEM = 'SYSTEM' + UNKNOWN_ACTOR = "UNKNOWN_ACTOR" + USER = "USER" + SYSTEM = "SYSTEM" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of TriggerDeploymentMetadataActorType from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/trigger_deployment_metadata_trigger_type.py b/koyeb/api/models/trigger_deployment_metadata_trigger_type.py index 3aac8381..a6a25aac 100644 --- a/koyeb/api/models/trigger_deployment_metadata_trigger_type.py +++ b/koyeb/api/models/trigger_deployment_metadata_trigger_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,14 +26,12 @@ class TriggerDeploymentMetadataTriggerType(str, Enum): """ allowed enum values """ - UNKNOWN_TYPE = 'UNKNOWN_TYPE' - GIT = 'GIT' - RESUME = 'RESUME' - DATABASE_SYNC = 'DATABASE_SYNC' + UNKNOWN_TYPE = "UNKNOWN_TYPE" + GIT = "GIT" + RESUME = "RESUME" + DATABASE_SYNC = "DATABASE_SYNC" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of TriggerDeploymentMetadataTriggerType from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/trigger_git_deployment_metadata.py b/koyeb/api/models/trigger_git_deployment_metadata.py index 93502700..7939a706 100644 --- a/koyeb/api/models/trigger_git_deployment_metadata.py +++ b/koyeb/api/models/trigger_git_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,15 +19,21 @@ 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 koyeb.api.models.trigger_git_deployment_metadata_provider import ( + TriggerGitDeploymentMetadataProvider, +) from typing import Optional, Set from typing_extensions import Self + class TriggerGitDeploymentMetadata(BaseModel): """ TriggerGitDeploymentMetadata - """ # noqa: E501 - provider: Optional[TriggerGitDeploymentMetadataProvider] = TriggerGitDeploymentMetadataProvider.UNKNOWN + """ # noqa: E501 + + provider: Optional[TriggerGitDeploymentMetadataProvider] = ( + TriggerGitDeploymentMetadataProvider.UNKNOWN + ) repository: Optional[StrictStr] = None branch: Optional[StrictStr] = None sha: Optional[StrictStr] = None @@ -35,7 +41,16 @@ class TriggerGitDeploymentMetadata(BaseModel): sender_username: Optional[StrictStr] = None sender_avatar_url: Optional[StrictStr] = None sender_profile_url: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["provider", "repository", "branch", "sha", "message", "sender_username", "sender_avatar_url", "sender_profile_url"] + __properties: ClassVar[List[str]] = [ + "provider", + "repository", + "branch", + "sha", + "message", + "sender_username", + "sender_avatar_url", + "sender_profile_url", + ] model_config = ConfigDict( populate_by_name=True, @@ -43,7 +58,6 @@ class TriggerGitDeploymentMetadata(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -68,8 +82,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -87,16 +100,20 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "provider": obj.get("provider") if obj.get("provider") is not None else TriggerGitDeploymentMetadataProvider.UNKNOWN, - "repository": obj.get("repository"), - "branch": obj.get("branch"), - "sha": obj.get("sha"), - "message": obj.get("message"), - "sender_username": obj.get("sender_username"), - "sender_avatar_url": obj.get("sender_avatar_url"), - "sender_profile_url": obj.get("sender_profile_url") - }) + _obj = cls.model_validate( + { + "provider": ( + obj.get("provider") + if obj.get("provider") is not None + else TriggerGitDeploymentMetadataProvider.UNKNOWN + ), + "repository": obj.get("repository"), + "branch": obj.get("branch"), + "sha": obj.get("sha"), + "message": obj.get("message"), + "sender_username": obj.get("sender_username"), + "sender_avatar_url": obj.get("sender_avatar_url"), + "sender_profile_url": obj.get("sender_profile_url"), + } + ) return _obj - - diff --git a/koyeb/api/models/trigger_git_deployment_metadata_provider.py b/koyeb/api/models/trigger_git_deployment_metadata_provider.py index c2f10198..d6cdda4d 100644 --- a/koyeb/api/models/trigger_git_deployment_metadata_provider.py +++ b/koyeb/api/models/trigger_git_deployment_metadata_provider.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,10 @@ class TriggerGitDeploymentMetadataProvider(str, Enum): """ allowed enum values """ - UNKNOWN = 'UNKNOWN' - GITHUB = 'GITHUB' + UNKNOWN = "UNKNOWN" + GITHUB = "GITHUB" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of TriggerGitDeploymentMetadataProvider from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/update_app.py b/koyeb/api/models/update_app.py index 1a1cfcdf..44c33fc0 100644 --- a/koyeb/api/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 @@ -19,15 +19,19 @@ from pydantic import BaseModel, ConfigDict, StrictStr from typing import Any, ClassVar, Dict, List, Optional +from koyeb.api.models.app_life_cycle import AppLifeCycle 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"] + life_cycle: Optional[AppLifeCycle] = None + __properties: ClassVar[List[str]] = ["name", "life_cycle"] model_config = ConfigDict( populate_by_name=True, @@ -35,7 +39,6 @@ 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)) @@ -60,14 +63,16 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + 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 life_cycle + if self.life_cycle: + _dict["life_cycle"] = self.life_cycle.to_dict() return _dict @classmethod @@ -79,9 +84,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "name": obj.get("name") - }) + _obj = cls.model_validate( + { + "name": obj.get("name"), + "life_cycle": ( + AppLifeCycle.from_dict(obj["life_cycle"]) + if obj.get("life_cycle") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/update_app_reply.py b/koyeb/api/models/update_app_reply.py index 636b0f4a..7e8edf45 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +83,7 @@ def 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/api/models/update_budget_reply.py b/koyeb/api/models/update_budget_reply.py index f7f1ebbf..d5bdf57e 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/update_budget_request.py b/koyeb/api/models/update_budget_request.py index 427c0e8a..e494b082 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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/api/models/update_credential_reply.py b/koyeb/api/models/update_credential_reply.py index 25364912..154717cb 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index 0ba886c7..3d21dc08 100644 --- a/koyeb/api/models/update_domain.py +++ b/koyeb/api/models/update_domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,12 +22,18 @@ from typing import Optional, Set from typing_extensions import Self + class UpdateDomain(BaseModel): """ UpdateDomain - """ # noqa: E501 - app_id: Optional[StrictStr] = Field(default=None, description="To attach or detach from an app for custom domain.") - subdomain: Optional[StrictStr] = Field(default=None, description="To change subdomain for auto-assigned domain.") + """ # noqa: E501 + + app_id: Optional[StrictStr] = Field( + default=None, description="To attach or detach from an app for custom domain." + ) + subdomain: Optional[StrictStr] = Field( + default=None, description="To change subdomain for auto-assigned domain." + ) __properties: ClassVar[List[str]] = ["app_id", "subdomain"] model_config = ConfigDict( @@ -36,7 +42,6 @@ class UpdateDomain(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -61,8 +66,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "app_id": obj.get("app_id"), - "subdomain": obj.get("subdomain") - }) + _obj = cls.model_validate( + {"app_id": obj.get("app_id"), "subdomain": obj.get("subdomain")} + ) return _obj - - diff --git a/koyeb/api/models/update_domain_reply.py b/koyeb/api/models/update_domain_reply.py index d9795dad..a61d520c 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/update_organization_name_reply.py b/koyeb/api/models/update_organization_name_reply.py new file mode 100644 index 00000000..9f0cebf6 --- /dev/null +++ b/koyeb/api/models/update_organization_name_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.organization import Organization +from typing import Optional, Set +from typing_extensions import Self + + +class UpdateOrganizationNameReply(BaseModel): + """ + UpdateOrganizationNameReply + """ # noqa: E501 + + organization: Optional[Organization] = None + __properties: ClassVar[List[str]] = ["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 UpdateOrganizationNameReply from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other 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() + return _dict + + @classmethod + def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: + """Create an instance of UpdateOrganizationNameReply from a dict""" + if obj is None: + return None + + 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 + ) + } + ) + return _obj diff --git a/koyeb/api/models/update_organization_name_request.py b/koyeb/api/models/update_organization_name_request.py new file mode 100644 index 00000000..db7cd850 --- /dev/null +++ b/koyeb/api/models/update_organization_name_request.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 + + +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 UpdateOrganizationNameRequest(BaseModel): + """ + UpdateOrganizationNameRequest + """ # noqa: E501 + + name: Optional[StrictStr] = None + __properties: ClassVar[List[str]] = ["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 UpdateOrganizationNameRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self) -> Dict[str, Any]: + """Return the dictionary representation of the model using alias. + + This has the following differences from calling pydantic's + `self.model_dump(by_alias=True)`: + + * `None` is only added to the output dict for nullable fields that + were set at model initialization. Other 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 UpdateOrganizationNameRequest 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")}) + return _obj diff --git a/koyeb/api/models/update_organization_plan_reply.py b/koyeb/api/models/update_organization_plan_reply.py index a3990e2b..2f421d70 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/update_organization_plan_request.py b/koyeb/api/models/update_organization_plan_request.py index 5273e803..5d03c690 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +80,7 @@ def 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/api/models/update_organization_reply.py b/koyeb/api/models/update_organization_reply.py index 55125f48..ae129c1d 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/update_password_request.py b/koyeb/api/models/update_password_request.py index d37ffcf1..ceea9493 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/update_persistent_volume_reply.py b/koyeb/api/models/update_persistent_volume_reply.py index 4c2bf197..d29a5bb9 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/update_persistent_volume_request.py b/koyeb/api/models/update_persistent_volume_request.py index a8dd514d..70065649 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,7 @@ def 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/api/models/update_secret_reply.py b/koyeb/api/models/update_secret_reply.py index 2283f392..80e77252 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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 index c0f10be6..5756e907 100644 --- a/koyeb/api/models/update_service.py +++ b/koyeb/api/models/update_service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -21,18 +21,31 @@ 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 koyeb.api.models.service_life_cycle import ServiceLifeCycle from typing import Optional, Set from typing_extensions import Self + class UpdateService(BaseModel): """ UpdateService - """ # noqa: E501 + """ # noqa: E501 + definition: Optional[DeploymentDefinition] = None metadata: Optional[DeploymentMetadata] = None - skip_build: Optional[StrictBool] = Field(default=None, description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.") + skip_build: Optional[StrictBool] = Field( + default=None, + description="If set to true, the build stage will be skipped and the image coming from the last successful build step will be used instead. The call fails if no previous successful builds happened.", + ) save_only: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["definition", "metadata", "skip_build", "save_only"] + life_cycle: Optional[ServiceLifeCycle] = None + __properties: ClassVar[List[str]] = [ + "definition", + "metadata", + "skip_build", + "save_only", + "life_cycle", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +53,6 @@ class UpdateService(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +77,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,10 +86,13 @@ def to_dict(self) -> Dict[str, Any]: ) # override the default output from pydantic by calling `to_dict()` of definition if self.definition: - _dict['definition'] = self.definition.to_dict() + _dict["definition"] = self.definition.to_dict() # override the default output from pydantic by calling `to_dict()` of metadata if self.metadata: - _dict['metadata'] = self.metadata.to_dict() + _dict["metadata"] = self.metadata.to_dict() + # override the default output from pydantic by calling `to_dict()` of life_cycle + if self.life_cycle: + _dict["life_cycle"] = self.life_cycle.to_dict() return _dict @classmethod @@ -90,12 +104,25 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "definition": DeploymentDefinition.from_dict(obj["definition"]) if obj.get("definition") is not None else None, - "metadata": DeploymentMetadata.from_dict(obj["metadata"]) if obj.get("metadata") is not None else None, - "skip_build": obj.get("skip_build"), - "save_only": obj.get("save_only") - }) + _obj = cls.model_validate( + { + "definition": ( + DeploymentDefinition.from_dict(obj["definition"]) + if obj.get("definition") is not None + else None + ), + "metadata": ( + DeploymentMetadata.from_dict(obj["metadata"]) + if obj.get("metadata") is not None + else None + ), + "skip_build": obj.get("skip_build"), + "save_only": obj.get("save_only"), + "life_cycle": ( + ServiceLifeCycle.from_dict(obj["life_cycle"]) + if obj.get("life_cycle") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/update_service_reply.py b/koyeb/api/models/update_service_reply.py index e2785537..1aadb7e6 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/update_snapshot_reply.py b/koyeb/api/models/update_snapshot_reply.py index b9e510e0..6e54e4a2 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/update_snapshot_request.py b/koyeb/api/models/update_snapshot_request.py index 55ecbe95..9dd4ac6b 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,5 @@ def 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 index 60beb530..2240dd4c 100644 --- a/koyeb/api/models/update_user_request_user_update_body.py +++ b/koyeb/api/models/update_user_request_user_update_body.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,17 +22,26 @@ from typing import Optional, Set from typing_extensions import Self + class UpdateUserRequestUserUpdateBody(BaseModel): """ UpdateUserRequestUserUpdateBody - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None email: Optional[StrictStr] = None current_password: Optional[StrictStr] = None password: Optional[StrictStr] = None newsletter_subscribed: Optional[StrictBool] = None name: Optional[StrictStr] = None - __properties: ClassVar[List[str]] = ["id", "email", "current_password", "password", "newsletter_subscribed", "name"] + __properties: ClassVar[List[str]] = [ + "id", + "email", + "current_password", + "password", + "newsletter_subscribed", + "name", + ] model_config = ConfigDict( populate_by_name=True, @@ -40,7 +49,6 @@ class UpdateUserRequestUserUpdateBody(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -65,8 +73,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -84,14 +91,14 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "email": obj.get("email"), - "current_password": obj.get("current_password"), - "password": obj.get("password"), - "newsletter_subscribed": obj.get("newsletter_subscribed"), - "name": obj.get("name") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "email": obj.get("email"), + "current_password": obj.get("current_password"), + "password": obj.get("password"), + "newsletter_subscribed": obj.get("newsletter_subscribed"), + "name": obj.get("name"), + } + ) return _obj - - diff --git a/koyeb/api/models/update_user_settings_reply.py b/koyeb/api/models/update_user_settings_reply.py index 3f62b885..38487dd1 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/update_user_settings_request.py b/koyeb/api/models/update_user_settings_request.py index 3ece7969..f71b7620 100644 --- a/koyeb/api/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,11 +22,16 @@ 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( @@ -35,7 +40,6 @@ 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)) @@ -60,8 +64,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/upsert_signup_qualification_reply.py b/koyeb/api/models/upsert_signup_qualification_reply.py index b029fa5f..f1c8aa77 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +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({ - "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/api/models/upsert_signup_qualification_request.py b/koyeb/api/models/upsert_signup_qualification_request.py index 14f7392a..7e3c96a7 100644 --- a/koyeb/api/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,10 +22,12 @@ 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"] @@ -35,7 +37,6 @@ 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)) @@ -60,8 +61,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +79,7 @@ def 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 index 02d8874b..050a0bee 100644 --- a/koyeb/api/models/usage.py +++ b/koyeb/api/models/usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class Usage(BaseModel): """ Usage - """ # noqa: E501 + """ # noqa: E501 + organization_id: Optional[StrictStr] = None periods: Optional[Dict[str, PeriodUsage]] = None __properties: ClassVar[List[str]] = ["organization_id", "periods"] @@ -37,7 +39,6 @@ class Usage(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,8 +63,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]: for _key_periods in self.periods: if self.periods[_key_periods]: _field_dict[_key_periods] = self.periods[_key_periods].to_dict() - _dict['periods'] = _field_dict + _dict["periods"] = _field_dict return _dict @classmethod @@ -88,15 +88,17 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "organization_id": obj.get("organization_id"), - "periods": dict( - (_k, PeriodUsage.from_dict(_v)) - for _k, _v in obj["periods"].items() - ) - if obj.get("periods") is not None - else None - }) + _obj = cls.model_validate( + { + "organization_id": obj.get("organization_id"), + "periods": ( + dict( + (_k, PeriodUsage.from_dict(_v)) + for _k, _v in obj["periods"].items() + ) + if obj.get("periods") is not None + else None + ), + } + ) return _obj - - diff --git a/koyeb/api/models/usage_details.py b/koyeb/api/models/usage_details.py index c643f86d..baafe744 100644 --- a/koyeb/api/models/usage_details.py +++ b/koyeb/api/models/usage_details.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -23,10 +23,12 @@ from typing import Optional, Set from typing_extensions import Self + class UsageDetails(BaseModel): """ UsageDetails - """ # noqa: E501 + """ # noqa: E501 + organization_id: Optional[StrictStr] = None instance_id: Optional[StrictStr] = None app_id: Optional[StrictStr] = None @@ -40,7 +42,21 @@ class UsageDetails(BaseModel): duration_seconds: Optional[StrictInt] = None started_at: Optional[datetime] = None terminated_at: Optional[datetime] = None - __properties: ClassVar[List[str]] = ["organization_id", "instance_id", "app_id", "app_name", "service_id", "service_name", "regional_deployment_id", "region", "deployment_id", "instance_type", "duration_seconds", "started_at", "terminated_at"] + __properties: ClassVar[List[str]] = [ + "organization_id", + "instance_id", + "app_id", + "app_name", + "service_id", + "service_name", + "regional_deployment_id", + "region", + "deployment_id", + "instance_type", + "duration_seconds", + "started_at", + "terminated_at", + ] model_config = ConfigDict( populate_by_name=True, @@ -48,7 +64,6 @@ class UsageDetails(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -73,8 +88,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -92,21 +106,21 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "organization_id": obj.get("organization_id"), - "instance_id": obj.get("instance_id"), - "app_id": obj.get("app_id"), - "app_name": obj.get("app_name"), - "service_id": obj.get("service_id"), - "service_name": obj.get("service_name"), - "regional_deployment_id": obj.get("regional_deployment_id"), - "region": obj.get("region"), - "deployment_id": obj.get("deployment_id"), - "instance_type": obj.get("instance_type"), - "duration_seconds": obj.get("duration_seconds"), - "started_at": obj.get("started_at"), - "terminated_at": obj.get("terminated_at") - }) + _obj = cls.model_validate( + { + "organization_id": obj.get("organization_id"), + "instance_id": obj.get("instance_id"), + "app_id": obj.get("app_id"), + "app_name": obj.get("app_name"), + "service_id": obj.get("service_id"), + "service_name": obj.get("service_name"), + "regional_deployment_id": obj.get("regional_deployment_id"), + "region": obj.get("region"), + "deployment_id": obj.get("deployment_id"), + "instance_type": obj.get("instance_type"), + "duration_seconds": obj.get("duration_seconds"), + "started_at": obj.get("started_at"), + "terminated_at": obj.get("terminated_at"), + } + ) return _obj - - diff --git a/koyeb/api/models/user.py b/koyeb/api/models/user.py index 87d300fe..062b802a 100644 --- a/koyeb/api/models/user.py +++ b/koyeb/api/models/user.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -24,10 +24,12 @@ from typing import Optional, Set from typing_extensions import Self + class User(BaseModel): """ User - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None email: Optional[StrictStr] = None avatar_url: Optional[StrictStr] = None @@ -43,7 +45,23 @@ class User(BaseModel): name: Optional[StrictStr] = None email_validated: Optional[StrictBool] = None trialed: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["id", "email", "avatar_url", "two_factor_authentication", "last_login", "last_login_ip", "updated_at", "created_at", "newsletter_subscribed", "github_id", "github_user", "flags", "name", "email_validated", "trialed"] + __properties: ClassVar[List[str]] = [ + "id", + "email", + "avatar_url", + "two_factor_authentication", + "last_login", + "last_login_ip", + "updated_at", + "created_at", + "newsletter_subscribed", + "github_id", + "github_user", + "flags", + "name", + "email_validated", + "trialed", + ] model_config = ConfigDict( populate_by_name=True, @@ -51,7 +69,6 @@ class User(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -76,8 +93,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. Other fields with value `None` are ignored. """ - excluded_fields: Set[str] = set([ - ]) + excluded_fields: Set[str] = set([]) _dict = self.model_dump( by_alias=True, @@ -95,23 +111,23 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "email": obj.get("email"), - "avatar_url": obj.get("avatar_url"), - "two_factor_authentication": obj.get("two_factor_authentication"), - "last_login": obj.get("last_login"), - "last_login_ip": obj.get("last_login_ip"), - "updated_at": obj.get("updated_at"), - "created_at": obj.get("created_at"), - "newsletter_subscribed": obj.get("newsletter_subscribed"), - "github_id": obj.get("github_id"), - "github_user": obj.get("github_user"), - "flags": obj.get("flags"), - "name": obj.get("name"), - "email_validated": obj.get("email_validated"), - "trialed": obj.get("trialed") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "email": obj.get("email"), + "avatar_url": obj.get("avatar_url"), + "two_factor_authentication": obj.get("two_factor_authentication"), + "last_login": obj.get("last_login"), + "last_login_ip": obj.get("last_login_ip"), + "updated_at": obj.get("updated_at"), + "created_at": obj.get("created_at"), + "newsletter_subscribed": obj.get("newsletter_subscribed"), + "github_id": obj.get("github_id"), + "github_user": obj.get("github_user"), + "flags": obj.get("flags"), + "name": obj.get("name"), + "email_validated": obj.get("email_validated"), + "trialed": obj.get("trialed"), + } + ) return _obj - - diff --git a/koyeb/api/models/user_flags.py b/koyeb/api/models/user_flags.py index 4a31b7c9..a2b7a91e 100644 --- a/koyeb/api/models/user_flags.py +++ b/koyeb/api/models/user_flags.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,23 +26,23 @@ class UserFlags(str, Enum): """ 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' + 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/api/models/user_reply.py b/koyeb/api/models/user_reply.py index e297b953..bbb1fe8e 100644 --- a/koyeb/api/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 @@ -23,10 +23,12 @@ 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"] @@ -36,7 +38,6 @@ 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)) @@ -61,8 +62,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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,9 +83,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({ - "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 index f964e609..966994e7 100644 --- a/koyeb/api/models/user_role_role.py +++ b/koyeb/api/models/user_role_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,12 +26,10 @@ class UserRoleRole(str, Enum): """ allowed enum values """ - INVALID = 'INVALID' - OWNER = 'OWNER' + INVALID = "INVALID" + OWNER = "OWNER" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of UserRoleRole from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/models/user_settings.py b/koyeb/api/models/user_settings.py index 7bb700a2..cc7463b9 100644 --- a/koyeb/api/models/user_settings.py +++ b/koyeb/api/models/user_settings.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -22,14 +22,20 @@ from typing import Optional, Set from typing_extensions import Self + class UserSettings(BaseModel): """ UserSettings - """ # noqa: E501 + """ # noqa: E501 + id: Optional[StrictStr] = None user_id: Optional[StrictStr] = None failed_deployment_email_notification: Optional[StrictBool] = None - __properties: ClassVar[List[str]] = ["id", "user_id", "failed_deployment_email_notification"] + __properties: ClassVar[List[str]] = [ + "id", + "user_id", + "failed_deployment_email_notification", + ] model_config = ConfigDict( populate_by_name=True, @@ -37,7 +43,6 @@ class UserSettings(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -62,8 +67,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +85,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "id": obj.get("id"), - "user_id": obj.get("user_id"), - "failed_deployment_email_notification": obj.get("failed_deployment_email_notification") - }) + _obj = cls.model_validate( + { + "id": obj.get("id"), + "user_id": obj.get("user_id"), + "failed_deployment_email_notification": obj.get( + "failed_deployment_email_notification" + ), + } + ) return _obj - - diff --git a/koyeb/api/models/verify_docker_image_reply.py b/koyeb/api/models/verify_docker_image_reply.py index 393f02b8..1fa3d0fa 100644 --- a/koyeb/api/models/verify_docker_image_reply.py +++ b/koyeb/api/models/verify_docker_image_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -19,17 +19,23 @@ 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 koyeb.api.models.verify_docker_image_reply_err_code import ( + VerifyDockerImageReplyErrCode, +) from typing import Optional, Set from typing_extensions import Self + class VerifyDockerImageReply(BaseModel): """ VerifyDockerImageReply - """ # noqa: E501 + """ # noqa: E501 + success: Optional[StrictBool] = None reason: Optional[StrictStr] = None - code: Optional[VerifyDockerImageReplyErrCode] = VerifyDockerImageReplyErrCode.UNKNOWN + code: Optional[VerifyDockerImageReplyErrCode] = ( + VerifyDockerImageReplyErrCode.UNKNOWN + ) __properties: ClassVar[List[str]] = ["success", "reason", "code"] model_config = ConfigDict( @@ -38,7 +44,6 @@ class VerifyDockerImageReply(BaseModel): protected_namespaces=(), ) - def to_str(self) -> str: """Returns the string representation of the model using alias""" return pprint.pformat(self.model_dump(by_alias=True)) @@ -63,8 +68,7 @@ def to_dict(self) -> Dict[str, Any]: were set at model initialization. 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 +86,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]: if not isinstance(obj, dict): return cls.model_validate(obj) - _obj = cls.model_validate({ - "success": obj.get("success"), - "reason": obj.get("reason"), - "code": obj.get("code") if obj.get("code") is not None else VerifyDockerImageReplyErrCode.UNKNOWN - }) + _obj = cls.model_validate( + { + "success": obj.get("success"), + "reason": obj.get("reason"), + "code": ( + obj.get("code") + if obj.get("code") is not None + else VerifyDockerImageReplyErrCode.UNKNOWN + ), + } + ) return _obj - - diff --git a/koyeb/api/models/verify_docker_image_reply_err_code.py b/koyeb/api/models/verify_docker_image_reply_err_code.py index fb4d4ae6..9dedc7d2 100644 --- a/koyeb/api/models/verify_docker_image_reply_err_code.py +++ b/koyeb/api/models/verify_docker_image_reply_err_code.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -26,23 +26,21 @@ class VerifyDockerImageReplyErrCode(str, Enum): """ allowed enum values """ - UNKNOWN = 'UNKNOWN' - AUTH_ACCESS_DENIED = 'AUTH_ACCESS_DENIED' - ANON_ACCESS_DENIED = 'ANON_ACCESS_DENIED' - AUTH_NOT_FOUND = 'AUTH_NOT_FOUND' - ANON_NOT_FOUND = 'ANON_NOT_FOUND' - REGISTRY_ERROR = 'REGISTRY_ERROR' - TIMEOUT = 'TIMEOUT' - DNS = 'DNS' - MALFORMED = 'MALFORMED' - INVALID_OS = 'INVALID_OS' - INVALID_ARCH = 'INVALID_ARCH' - INVALID_SCHEME = 'INVALID_SCHEME' - GENERIC = 'GENERIC' + UNKNOWN = "UNKNOWN" + AUTH_ACCESS_DENIED = "AUTH_ACCESS_DENIED" + ANON_ACCESS_DENIED = "ANON_ACCESS_DENIED" + AUTH_NOT_FOUND = "AUTH_NOT_FOUND" + ANON_NOT_FOUND = "ANON_NOT_FOUND" + REGISTRY_ERROR = "REGISTRY_ERROR" + TIMEOUT = "TIMEOUT" + DNS = "DNS" + MALFORMED = "MALFORMED" + INVALID_OS = "INVALID_OS" + INVALID_ARCH = "INVALID_ARCH" + INVALID_SCHEME = "INVALID_SCHEME" + GENERIC = "GENERIC" @classmethod def from_json(cls, json_str: str) -> Self: """Create an instance of VerifyDockerImageReplyErrCode from a JSON string""" return cls(json.loads(json_str)) - - diff --git a/koyeb/api/rest.py b/koyeb/api/rest.py index fe4ae0da..aa3c62bb 100644 --- a/koyeb/api/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 @@ -48,12 +48,17 @@ def read(self): self.data = self.response.data return self.data + @property + def headers(self): + """Returns a dictionary of response headers.""" + return self.response.headers + def getheaders(self): - """Returns a dictionary of the response headers.""" + """Returns a dictionary of the response headers; use ``headers`` instead.""" return self.response.headers def getheader(self, name, default=None): - """Returns a given response header.""" + """Returns a given response header; use ``headers.get()`` instead.""" return self.response.headers.get(name, default) @@ -79,22 +84,19 @@ 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 @@ -102,6 +104,7 @@ 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) @@ -119,7 +122,7 @@ def request( headers=None, body=None, post_params=None, - _request_timeout=None + _request_timeout=None, ): """Perform requests. @@ -136,15 +139,7 @@ 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( @@ -158,25 +153,18 @@ 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) @@ -186,9 +174,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, @@ -196,15 +184,18 @@ 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, @@ -212,7 +203,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 @@ -224,9 +215,11 @@ 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, @@ -234,7 +227,8 @@ 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 @@ -249,7 +243,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/api/test/test_accept_organization_invitation_reply.py b/koyeb/api/test/test_accept_organization_invitation_reply.py index efdfd6b4..df70bfdb 100644 --- a/koyeb/api/test/test_accept_organization_invitation_reply.py +++ b/koyeb/api/test/test_accept_organization_invitation_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.accept_organization_invitation_reply import AcceptOrganizationInvitationReply +from koyeb.api.models.accept_organization_invitation_reply import ( + AcceptOrganizationInvitationReply, +) + class TestAcceptOrganizationInvitationReply(unittest.TestCase): """AcceptOrganizationInvitationReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AcceptOrganizationInvitationReply: """Test AcceptOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AcceptOrganizationInvitationReply` """ model = AcceptOrganizationInvitationReply() @@ -73,5 +76,6 @@ def testAcceptOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_action.py b/koyeb/api/test/test_action.py index ad285006..8407ce8c 100644 --- a/koyeb/api/test/test_action.py +++ b/koyeb/api/test/test_action.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.action import Action + class TestAction(unittest.TestCase): """Action unit test stubs""" @@ -29,5 +30,6 @@ def testAction(self): """Test Action""" # inst = Action() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_activity.py b/koyeb/api/test/test_activity.py index 152bf7c6..b165540c 100644 --- a/koyeb/api/test/test_activity.py +++ b/koyeb/api/test/test_activity.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.activity import Activity + class TestActivity(unittest.TestCase): """Activity unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Activity: """Test Activity - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Activity` """ model = Activity() @@ -62,5 +63,6 @@ def testActivity(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_activity_api.py b/koyeb/api/test/test_activity_api.py index 3e12ff8d..2b1450de 100644 --- a/koyeb/api/test/test_activity_api.py +++ b/koyeb/api/test/test_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 @@ -27,9 +27,7 @@ def tearDown(self) -> None: pass def test_get_account_activities(self) -> None: - """Test case for get_account_activities - - """ + """Test case for get_account_activities""" pass def test_list_activities(self) -> None: @@ -47,5 +45,5 @@ def test_list_notifications(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_activity_list.py b/koyeb/api/test/test_activity_list.py index 803f103b..6a20ea68 100644 --- a/koyeb/api/test/test_activity_list.py +++ b/koyeb/api/test/test_activity_list.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.activity_list import ActivityList + class TestActivityList(unittest.TestCase): """ActivityList unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ActivityList: """Test ActivityList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ActivityList` """ model = ActivityList() @@ -68,5 +69,6 @@ def testActivityList(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_app.py b/koyeb/api/test/test_app.py index 9d053289..ca7e070c 100644 --- a/koyeb/api/test/test_app.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.app import App + class TestApp(unittest.TestCase): """App unit test stubs""" @@ -27,9 +28,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() @@ -82,5 +83,6 @@ 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 index 4e9aba52..a417e7b6 100644 --- a/koyeb/api/test/test_app_event.py +++ b/koyeb/api/test/test_app_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.app_event import AppEvent + class TestAppEvent(unittest.TestCase): """AppEvent unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppEvent: """Test AppEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AppEvent` """ model = AppEvent() @@ -53,5 +54,6 @@ def testAppEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_app_life_cycle.py b/koyeb/api/test/test_app_life_cycle.py new file mode 100644 index 00000000..2f13a74e --- /dev/null +++ b/koyeb/api/test/test_app_life_cycle.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.app_life_cycle import AppLifeCycle + + +class TestAppLifeCycle(unittest.TestCase): + """AppLifeCycle unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> AppLifeCycle: + """Test AppLifeCycle + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `AppLifeCycle` + """ + model = AppLifeCycle() + if include_optional: + return AppLifeCycle( + delete_when_empty = True + ) + else: + return AppLifeCycle( + ) + """ + + def testAppLifeCycle(self): + """Test AppLifeCycle""" + # inst_req_only = self.make_instance(include_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 index 29216f93..19146878 100644 --- a/koyeb/api/test/test_app_list_item.py +++ b/koyeb/api/test/test_app_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.app_list_item import AppListItem + class TestAppListItem(unittest.TestCase): """AppListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppListItem: """Test AppListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AppListItem` """ model = AppListItem() @@ -76,5 +77,6 @@ def testAppListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_app_status.py b/koyeb/api/test/test_app_status.py index cf4dcee9..af508032 100644 --- a/koyeb/api/test/test_app_status.py +++ b/koyeb/api/test/test_app_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 @@ -16,6 +16,7 @@ from koyeb.api.models.app_status import AppStatus + class TestAppStatus(unittest.TestCase): """AppStatus unit test stubs""" @@ -29,5 +30,6 @@ def testAppStatus(self): """Test AppStatus""" # inst = AppStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_app_usage.py b/koyeb/api/test/test_app_usage.py index c6823f8b..e5f4cd87 100644 --- a/koyeb/api/test/test_app_usage.py +++ b/koyeb/api/test/test_app_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.app_usage import AppUsage + class TestAppUsage(unittest.TestCase): """AppUsage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppUsage: """Test AppUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AppUsage` """ model = AppUsage() @@ -67,5 +68,6 @@ def testAppUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_apps_api.py b/koyeb/api/test/test_apps_api.py index 65cb8fad..2d4d1aa1 100644 --- a/koyeb/api/test/test_apps_api.py +++ b/koyeb/api/test/test_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 @@ -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 index 545c343b..95379e28 100644 --- a/koyeb/api/test/test_apps_summary.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.apps_summary import AppsSummary + class TestAppsSummary(unittest.TestCase): """AppsSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AppsSummary: """Test AppsSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AppsSummary` """ model = AppsSummary() @@ -50,5 +51,6 @@ def testAppsSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_archive.py b/koyeb/api/test/test_archive.py index dbe65ef6..c5e25cb6 100644 --- a/koyeb/api/test/test_archive.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.archive import Archive + class TestArchive(unittest.TestCase): """Archive unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Archive: """Test Archive - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Archive` """ model = Archive() @@ -52,5 +53,6 @@ def testArchive(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_archive_deployment_metadata.py b/koyeb/api/test/test_archive_deployment_metadata.py index fd1f1890..80cc4e69 100644 --- a/koyeb/api/test/test_archive_deployment_metadata.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.archive_deployment_metadata import ArchiveDeploymentMetadata + class TestArchiveDeploymentMetadata(unittest.TestCase): """ArchiveDeploymentMetadata unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ArchiveDeploymentMetadata: """Test ArchiveDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ArchiveDeploymentMetadata` """ model = ArchiveDeploymentMetadata() @@ -47,5 +48,6 @@ def testArchiveDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_archive_source.py b/koyeb/api/test/test_archive_source.py index 2abaa112..14c10237 100644 --- a/koyeb/api/test/test_archive_source.py +++ b/koyeb/api/test/test_archive_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.archive_source import ArchiveSource + class TestArchiveSource(unittest.TestCase): """ArchiveSource unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ArchiveSource: """Test ArchiveSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ArchiveSource` """ model = ArchiveSource() @@ -62,5 +63,6 @@ def testArchiveSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_archives_api.py b/koyeb/api/test/test_archives_api.py index c21c2c0c..c5961c64 100644 --- a/koyeb/api/test/test_archives_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_create_archive(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_auto_release.py b/koyeb/api/test/test_auto_release.py index f4ae6a38..a1cab23f 100644 --- a/koyeb/api/test/test_auto_release.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.auto_release import AutoRelease + class TestAutoRelease(unittest.TestCase): """AutoRelease unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AutoRelease: """Test AutoRelease - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AutoRelease` """ model = AutoRelease() @@ -53,5 +54,6 @@ def testAutoRelease(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_auto_release_group.py b/koyeb/api/test/test_auto_release_group.py index c3aa40b2..0ca90616 100644 --- a/koyeb/api/test/test_auto_release_group.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.auto_release_group import AutoReleaseGroup + class TestAutoReleaseGroup(unittest.TestCase): """AutoReleaseGroup unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AutoReleaseGroup: """Test AutoReleaseGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AutoReleaseGroup` """ model = AutoReleaseGroup() @@ -50,5 +51,6 @@ def testAutoReleaseGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_autocomplete_reply.py b/koyeb/api/test/test_autocomplete_reply.py index ffb682c7..8f9db392 100644 --- a/koyeb/api/test/test_autocomplete_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.autocomplete_reply import AutocompleteReply + class TestAutocompleteReply(unittest.TestCase): """AutocompleteReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AutocompleteReply: """Test AutocompleteReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AutocompleteReply` """ model = AutocompleteReply() @@ -55,5 +56,6 @@ def testAutocompleteReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_autocomplete_request.py b/koyeb/api/test/test_autocomplete_request.py index 111233fa..83000193 100644 --- a/koyeb/api/test/test_autocomplete_request.py +++ b/koyeb/api/test/test_autocomplete_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.autocomplete_request import AutocompleteRequest + class TestAutocompleteRequest(unittest.TestCase): """AutocompleteRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AutocompleteRequest: """Test AutocompleteRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AutocompleteRequest` """ model = AutocompleteRequest() @@ -175,5 +176,6 @@ def testAutocompleteRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_availability_level.py b/koyeb/api/test/test_availability_level.py index 5ba9f7f9..d62b8834 100644 --- a/koyeb/api/test/test_availability_level.py +++ b/koyeb/api/test/test_availability_level.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.availability_level import AvailabilityLevel + class TestAvailabilityLevel(unittest.TestCase): """AvailabilityLevel unit test stubs""" @@ -29,5 +30,6 @@ def testAvailabilityLevel(self): """Test AvailabilityLevel""" # inst = AvailabilityLevel() -if __name__ == '__main__': + +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 index 4c2bb050..0fc5be93 100644 --- a/koyeb/api/test/test_azure_container_registry_configuration.py +++ b/koyeb/api/test/test_azure_container_registry_configuration.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.azure_container_registry_configuration import AzureContainerRegistryConfiguration +from koyeb.api.models.azure_container_registry_configuration import ( + AzureContainerRegistryConfiguration, +) + class TestAzureContainerRegistryConfiguration(unittest.TestCase): """AzureContainerRegistryConfiguration unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> AzureContainerRegistryConfiguration: """Test AzureContainerRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `AzureContainerRegistryConfiguration` """ model = AzureContainerRegistryConfiguration() @@ -49,5 +52,6 @@ def testAzureContainerRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_billing_api.py b/koyeb/api/test/test_billing_api.py index 6a12982d..ed06d50c 100644 --- a/koyeb/api/test/test_billing_api.py +++ b/koyeb/api/test/test_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 @@ -34,9 +34,7 @@ def test_has_unpaid_invoices(self) -> None: pass def test_manage(self) -> None: - """Test case for manage - - """ + """Test case for manage""" pass def test_next_invoice(self) -> None: @@ -47,5 +45,5 @@ def test_next_invoice(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_budget.py b/koyeb/api/test/test_budget.py index ff73c3a5..2a610584 100644 --- a/koyeb/api/test/test_budget.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.budget import Budget + class TestBudget(unittest.TestCase): """Budget unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Budget: """Test Budget - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Budget` """ model = Budget() @@ -50,5 +51,6 @@ def testBudget(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_buildpack_builder.py b/koyeb/api/test/test_buildpack_builder.py index b8dfbad4..f47289b8 100644 --- a/koyeb/api/test/test_buildpack_builder.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.buildpack_builder import BuildpackBuilder + class TestBuildpackBuilder(unittest.TestCase): """BuildpackBuilder unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> BuildpackBuilder: """Test BuildpackBuilder - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `BuildpackBuilder` """ model = BuildpackBuilder() @@ -49,5 +50,6 @@ def testBuildpackBuilder(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_canny_auth_reply.py b/koyeb/api/test/test_canny_auth_reply.py index 62cc9b6c..b217eb85 100644 --- a/koyeb/api/test/test_canny_auth_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.canny_auth_reply import CannyAuthReply + class TestCannyAuthReply(unittest.TestCase): """CannyAuthReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CannyAuthReply: """Test CannyAuthReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CannyAuthReply` """ model = CannyAuthReply() @@ -47,5 +48,6 @@ def testCannyAuthReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_catalog_datacenters_api.py b/koyeb/api/test/test_catalog_datacenters_api.py index 169bdc70..50d6035b 100644 --- a/koyeb/api/test/test_catalog_datacenters_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_list_datacenters(self) -> None: pass -if __name__ == '__main__': +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 index f8db8c3b..984c44ff 100644 --- a/koyeb/api/test/test_catalog_gpu_details.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.catalog_gpu_details import CatalogGPUDetails + class TestCatalogGPUDetails(unittest.TestCase): """CatalogGPUDetails unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogGPUDetails: """Test CatalogGPUDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CatalogGPUDetails` """ model = CatalogGPUDetails() @@ -50,5 +51,6 @@ def testCatalogGPUDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_catalog_instance.py b/koyeb/api/test/test_catalog_instance.py index bb9d4189..4d579420 100644 --- a/koyeb/api/test/test_catalog_instance.py +++ b/koyeb/api/test/test_catalog_instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.catalog_instance import CatalogInstance + class TestCatalogInstance(unittest.TestCase): """CatalogInstance unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogInstance: """Test CatalogInstance - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CatalogInstance` """ model = CatalogInstance() @@ -77,5 +78,6 @@ def testCatalogInstance(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_catalog_instance_list_item.py b/koyeb/api/test/test_catalog_instance_list_item.py index f124d4e3..f48e96b9 100644 --- a/koyeb/api/test/test_catalog_instance_list_item.py +++ b/koyeb/api/test/test_catalog_instance_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.catalog_instance_list_item import CatalogInstanceListItem + class TestCatalogInstanceListItem(unittest.TestCase): """CatalogInstanceListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogInstanceListItem: """Test CatalogInstanceListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CatalogInstanceListItem` """ model = CatalogInstanceListItem() @@ -77,5 +78,6 @@ def testCatalogInstanceListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_catalog_instance_usage_api.py b/koyeb/api/test/test_catalog_instance_usage_api.py index aa0e2d29..4d195c6b 100644 --- a/koyeb/api/test/test_catalog_instance_usage_api.py +++ b/koyeb/api/test/test_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 @@ -27,11 +27,9 @@ def tearDown(self) -> None: pass def test_list_usage(self) -> None: - """Test case for list_usage - - """ + """Test case for list_usage""" pass -if __name__ == '__main__': +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 index 2a015896..b795bfa3 100644 --- a/koyeb/api/test/test_catalog_instances_api.py +++ b/koyeb/api/test/test_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 @@ -41,5 +41,5 @@ def test_list_catalog_instances(self) -> None: pass -if __name__ == '__main__': +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 index a60fafa3..6e4de185 100644 --- a/koyeb/api/test/test_catalog_regions_api.py +++ b/koyeb/api/test/test_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 @@ -41,5 +41,5 @@ def test_list_regions(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_catalog_usage.py b/koyeb/api/test/test_catalog_usage.py index 9fd487a4..7d936861 100644 --- a/koyeb/api/test/test_catalog_usage.py +++ b/koyeb/api/test/test_catalog_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.catalog_usage import CatalogUsage + class TestCatalogUsage(unittest.TestCase): """CatalogUsage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CatalogUsage: """Test CatalogUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CatalogUsage` """ model = CatalogUsage() @@ -54,5 +55,6 @@ def testCatalogUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_clear_idenfy_verification_result_request.py b/koyeb/api/test/test_clear_idenfy_verification_result_request.py index 3c579c66..6b6b3b72 100644 --- a/koyeb/api/test/test_clear_idenfy_verification_result_request.py +++ b/koyeb/api/test/test_clear_idenfy_verification_result_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.clear_idenfy_verification_result_request import ClearIdenfyVerificationResultRequest +from koyeb.api.models.clear_idenfy_verification_result_request import ( + ClearIdenfyVerificationResultRequest, +) + class TestClearIdenfyVerificationResultRequest(unittest.TestCase): """ClearIdenfyVerificationResultRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ClearIdenfyVerificationResultRequest: """Test ClearIdenfyVerificationResultRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ClearIdenfyVerificationResultRequest` """ model = ClearIdenfyVerificationResultRequest() @@ -48,5 +51,6 @@ def testClearIdenfyVerificationResultRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_compose_api.py b/koyeb/api/test/test_compose_api.py index 7937480d..0266d49b 100644 --- a/koyeb/api/test/test_compose_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_compose(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_compose_reply.py b/koyeb/api/test/test_compose_reply.py index 0b859788..cb2562c8 100644 --- a/koyeb/api/test/test_compose_reply.py +++ b/koyeb/api/test/test_compose_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.compose_reply import ComposeReply + class TestComposeReply(unittest.TestCase): """ComposeReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -112,5 +113,6 @@ 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 index 6e0f71e7..7f7f1bb3 100644 --- a/koyeb/api/test/test_config_file.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.config_file import ConfigFile + class TestConfigFile(unittest.TestCase): """ConfigFile unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ConfigFile: """Test ConfigFile - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ConfigFile` """ model = ConfigFile() @@ -49,5 +50,6 @@ def testConfigFile(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_confirm_payment_authorization_reply.py b/koyeb/api/test/test_confirm_payment_authorization_reply.py index 291407d4..e186cf07 100644 --- a/koyeb/api/test/test_confirm_payment_authorization_reply.py +++ b/koyeb/api/test/test_confirm_payment_authorization_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.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""" @@ -27,9 +30,9 @@ 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() @@ -70,5 +73,6 @@ 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 index 7c31e0be..44b1ddaf 100644 --- a/koyeb/api/test/test_coupons_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_redeem_coupon(self) -> None: pass -if __name__ == '__main__': +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 index 446b8b32..57d030ca 100644 --- a/koyeb/api/test/test_create_access_token_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_access_token_reply import CreateAccessTokenReply + class TestCreateAccessTokenReply(unittest.TestCase): """CreateAccessTokenReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateAccessTokenReply: """Test CreateAccessTokenReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateAccessTokenReply` """ model = CreateAccessTokenReply() @@ -47,5 +48,6 @@ def testCreateAccessTokenReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_access_token_request.py b/koyeb/api/test/test_create_access_token_request.py index 29569315..aff2d273 100644 --- a/koyeb/api/test/test_create_access_token_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_access_token_request import CreateAccessTokenRequest + class TestCreateAccessTokenRequest(unittest.TestCase): """CreateAccessTokenRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateAccessTokenRequest: """Test CreateAccessTokenRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateAccessTokenRequest` """ model = CreateAccessTokenRequest() @@ -47,5 +48,6 @@ def testCreateAccessTokenRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_account_request.py b/koyeb/api/test/test_create_account_request.py index 07623ad9..2a0bd9b0 100644 --- a/koyeb/api/test/test_create_account_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_account_request import CreateAccountRequest + class TestCreateAccountRequest(unittest.TestCase): """CreateAccountRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateAccountRequest: """Test CreateAccountRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateAccountRequest` """ model = CreateAccountRequest() @@ -52,5 +53,6 @@ def testCreateAccountRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_app.py b/koyeb/api/test/test_create_app.py index efb4dc74..24556e2c 100644 --- a/koyeb/api/test/test_create_app.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_app import CreateApp + class TestCreateApp(unittest.TestCase): """CreateApp unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateApp: """Test CreateApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateApp` """ model = CreateApp() @@ -47,5 +48,6 @@ def testCreateApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_app_reply.py b/koyeb/api/test/test_create_app_reply.py index 9088c010..f4adc63b 100644 --- a/koyeb/api/test/test_create_app_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_app_reply import CreateAppReply + class TestCreateAppReply(unittest.TestCase): """CreateAppReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -79,5 +80,6 @@ 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 index f759d6f1..d4e51593 100644 --- a/koyeb/api/test/test_create_archive.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_archive import CreateArchive + class TestCreateArchive(unittest.TestCase): """CreateArchive unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateArchive: """Test CreateArchive - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateArchive` """ model = CreateArchive() @@ -47,5 +48,6 @@ def testCreateArchive(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_archive_reply.py b/koyeb/api/test/test_create_archive_reply.py index 415ab0fb..33beb9a9 100644 --- a/koyeb/api/test/test_create_archive_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_archive_reply import CreateArchiveReply + class TestCreateArchiveReply(unittest.TestCase): """CreateArchiveReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateArchiveReply: """Test CreateArchiveReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateArchiveReply` """ model = CreateArchiveReply() @@ -53,5 +54,6 @@ def testCreateArchiveReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_budget_reply.py b/koyeb/api/test/test_create_budget_reply.py index e6516a92..a3e9085e 100644 --- a/koyeb/api/test/test_create_budget_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_budget_reply import CreateBudgetReply + class TestCreateBudgetReply(unittest.TestCase): """CreateBudgetReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateBudgetReply: """Test CreateBudgetReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateBudgetReply` """ model = CreateBudgetReply() @@ -51,5 +52,6 @@ def testCreateBudgetReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_compose.py b/koyeb/api/test/test_create_compose.py index b7e8cc33..d97755d1 100644 --- a/koyeb/api/test/test_create_compose.py +++ b/koyeb/api/test/test_create_compose.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.create_compose import CreateCompose + class TestCreateCompose(unittest.TestCase): """CreateCompose unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateCompose: """Test CreateCompose - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateCompose` """ model = CreateCompose() @@ -181,5 +182,6 @@ def testCreateCompose(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_credential.py b/koyeb/api/test/test_create_credential.py index 3ec87117..767cf5f4 100644 --- a/koyeb/api/test/test_create_credential.py +++ b/koyeb/api/test/test_create_credential.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.create_credential import CreateCredential + class TestCreateCredential(unittest.TestCase): """CreateCredential unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateCredential: """Test CreateCredential - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateCredential` """ model = CreateCredential() @@ -50,5 +51,6 @@ def testCreateCredential(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_credential_reply.py b/koyeb/api/test/test_create_credential_reply.py index 790c5e81..8eba4450 100644 --- a/koyeb/api/test/test_create_credential_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_credential_reply import CreateCredentialReply + class TestCreateCredentialReply(unittest.TestCase): """CreateCredentialReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateCredentialReply: """Test CreateCredentialReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateCredentialReply` """ model = CreateCredentialReply() @@ -57,5 +58,6 @@ def testCreateCredentialReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_domain.py b/koyeb/api/test/test_create_domain.py index b9257372..67ba418c 100644 --- a/koyeb/api/test/test_create_domain.py +++ b/koyeb/api/test/test_create_domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.create_domain import CreateDomain + class TestCreateDomain(unittest.TestCase): """CreateDomain unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateDomain: """Test CreateDomain - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateDomain` """ model = CreateDomain() @@ -52,5 +53,6 @@ def testCreateDomain(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_domain_reply.py b/koyeb/api/test/test_create_domain_reply.py index 9f8e68a3..25b01ce2 100644 --- a/koyeb/api/test/test_create_domain_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_domain_reply import CreateDomainReply + class TestCreateDomainReply(unittest.TestCase): """CreateDomainReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateDomainReply: """Test CreateDomainReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateDomainReply` """ model = CreateDomainReply() @@ -65,5 +66,6 @@ def testCreateDomainReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_organization_invitation_reply.py b/koyeb/api/test/test_create_organization_invitation_reply.py index 2ef72f42..6b880d3e 100644 --- a/koyeb/api/test/test_create_organization_invitation_reply.py +++ b/koyeb/api/test/test_create_organization_invitation_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.create_organization_invitation_reply import CreateOrganizationInvitationReply +from koyeb.api.models.create_organization_invitation_reply import ( + CreateOrganizationInvitationReply, +) + class TestCreateOrganizationInvitationReply(unittest.TestCase): """CreateOrganizationInvitationReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationInvitationReply: """Test CreateOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateOrganizationInvitationReply` """ model = CreateOrganizationInvitationReply() @@ -73,5 +76,6 @@ def testCreateOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_organization_invitation_request.py b/koyeb/api/test/test_create_organization_invitation_request.py index d2b1642d..5feb16fc 100644 --- a/koyeb/api/test/test_create_organization_invitation_request.py +++ b/koyeb/api/test/test_create_organization_invitation_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.create_organization_invitation_request import CreateOrganizationInvitationRequest +from koyeb.api.models.create_organization_invitation_request import ( + CreateOrganizationInvitationRequest, +) + class TestCreateOrganizationInvitationRequest(unittest.TestCase): """CreateOrganizationInvitationRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationInvitationRequest: """Test CreateOrganizationInvitationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateOrganizationInvitationRequest` """ model = CreateOrganizationInvitationRequest() @@ -47,5 +50,6 @@ def testCreateOrganizationInvitationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_organization_reply.py b/koyeb/api/test/test_create_organization_reply.py index c171ac7c..db5bdb69 100644 --- a/koyeb/api/test/test_create_organization_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_organization_reply import CreateOrganizationReply + class TestCreateOrganizationReply(unittest.TestCase): """CreateOrganizationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationReply: """Test CreateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateOrganizationReply` """ model = CreateOrganizationReply() @@ -79,5 +80,6 @@ def testCreateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_organization_request.py b/koyeb/api/test/test_create_organization_request.py index 2b6fe6c9..b784c3b4 100644 --- a/koyeb/api/test/test_create_organization_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_organization_request import CreateOrganizationRequest + class TestCreateOrganizationRequest(unittest.TestCase): """CreateOrganizationRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateOrganizationRequest: """Test CreateOrganizationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateOrganizationRequest` """ model = CreateOrganizationRequest() @@ -47,5 +48,6 @@ def testCreateOrganizationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_payment_authorization_reply.py b/koyeb/api/test/test_create_payment_authorization_reply.py index 96620eaf..7e32a002 100644 --- a/koyeb/api/test/test_create_payment_authorization_reply.py +++ b/koyeb/api/test/test_create_payment_authorization_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.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""" @@ -27,9 +30,9 @@ 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() @@ -70,5 +73,6 @@ 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 index 7da95a02..7f090c30 100644 --- a/koyeb/api/test/test_create_persistent_volume_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_persistent_volume_reply import CreatePersistentVolumeReply + class TestCreatePersistentVolumeReply(unittest.TestCase): """CreatePersistentVolumeReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreatePersistentVolumeReply: """Test CreatePersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreatePersistentVolumeReply` """ model = CreatePersistentVolumeReply() @@ -61,5 +62,6 @@ def testCreatePersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_persistent_volume_request.py b/koyeb/api/test/test_create_persistent_volume_request.py index 84c834ae..e365a2af 100644 --- a/koyeb/api/test/test_create_persistent_volume_request.py +++ b/koyeb/api/test/test_create_persistent_volume_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.create_persistent_volume_request import CreatePersistentVolumeRequest +from koyeb.api.models.create_persistent_volume_request import ( + CreatePersistentVolumeRequest, +) + class TestCreatePersistentVolumeRequest(unittest.TestCase): """CreatePersistentVolumeRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreatePersistentVolumeRequest: """Test CreatePersistentVolumeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreatePersistentVolumeRequest` """ model = CreatePersistentVolumeRequest() @@ -52,5 +55,6 @@ def testCreatePersistentVolumeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_secret.py b/koyeb/api/test/test_create_secret.py index 5fc98045..64e9beda 100644 --- a/koyeb/api/test/test_create_secret.py +++ b/koyeb/api/test/test_create_secret.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.create_secret import CreateSecret + class TestCreateSecret(unittest.TestCase): """CreateSecret unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSecret: """Test CreateSecret - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateSecret` """ model = CreateSecret() @@ -72,5 +73,6 @@ def testCreateSecret(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_secret_reply.py b/koyeb/api/test/test_create_secret_reply.py index 88c021d9..0f7e1866 100644 --- a/koyeb/api/test/test_create_secret_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_secret_reply import CreateSecretReply + class TestCreateSecretReply(unittest.TestCase): """CreateSecretReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSecretReply: """Test CreateSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateSecretReply` """ model = CreateSecretReply() @@ -80,5 +81,6 @@ def testCreateSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_service.py b/koyeb/api/test/test_create_service.py index 3595e55d..15ea11d4 100644 --- a/koyeb/api/test/test_create_service.py +++ b/koyeb/api/test/test_create_service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.create_service import CreateService + class TestCreateService(unittest.TestCase): """CreateService unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateService: """Test CreateService - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateService` """ model = CreateService() @@ -176,5 +177,6 @@ def testCreateService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_service_reply.py b/koyeb/api/test/test_create_service_reply.py index 4e228455..b25c9eca 100644 --- a/koyeb/api/test/test_create_service_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_service_reply import CreateServiceReply + class TestCreateServiceReply(unittest.TestCase): """CreateServiceReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateServiceReply: """Test CreateServiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateServiceReply` """ model = CreateServiceReply() @@ -77,5 +78,6 @@ def testCreateServiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_snapshot_reply.py b/koyeb/api/test/test_create_snapshot_reply.py index 830d9d9e..03a1265e 100644 --- a/koyeb/api/test/test_create_snapshot_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_snapshot_reply import CreateSnapshotReply + class TestCreateSnapshotReply(unittest.TestCase): """CreateSnapshotReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSnapshotReply: """Test CreateSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateSnapshotReply` """ model = CreateSnapshotReply() @@ -58,5 +59,6 @@ def testCreateSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_snapshot_request.py b/koyeb/api/test/test_create_snapshot_request.py index c5fb8c87..c999e9cd 100644 --- a/koyeb/api/test/test_create_snapshot_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.create_snapshot_request import CreateSnapshotRequest + class TestCreateSnapshotRequest(unittest.TestCase): """CreateSnapshotRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateSnapshotRequest: """Test CreateSnapshotRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateSnapshotRequest` """ model = CreateSnapshotRequest() @@ -48,5 +49,6 @@ def testCreateSnapshotRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_create_stage_attempt_request.py b/koyeb/api/test/test_create_stage_attempt_request.py index 4a1c68ad..0df6c2a0 100644 --- a/koyeb/api/test/test_create_stage_attempt_request.py +++ b/koyeb/api/test/test_create_stage_attempt_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.create_stage_attempt_request import CreateStageAttemptRequest + class TestCreateStageAttemptRequest(unittest.TestCase): """CreateStageAttemptRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> CreateStageAttemptRequest: """Test CreateStageAttemptRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `CreateStageAttemptRequest` """ model = CreateStageAttemptRequest() @@ -55,5 +56,6 @@ def testCreateStageAttemptRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_credential.py b/koyeb/api/test/test_credential.py index 16a71779..3bd575e8 100644 --- a/koyeb/api/test/test_credential.py +++ b/koyeb/api/test/test_credential.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.credential import Credential + class TestCredential(unittest.TestCase): """Credential unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Credential: """Test Credential - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Credential` """ model = Credential() @@ -56,5 +57,6 @@ def testCredential(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_credential_type.py b/koyeb/api/test/test_credential_type.py index 493a1d59..12c455a4 100644 --- a/koyeb/api/test/test_credential_type.py +++ b/koyeb/api/test/test_credential_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.credential_type import CredentialType + class TestCredentialType(unittest.TestCase): """CredentialType unit test stubs""" @@ -29,5 +30,6 @@ def testCredentialType(self): """Test CredentialType""" # inst = CredentialType() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_credentials_api.py b/koyeb/api/test/test_credentials_api.py index 7b8c04c1..5d7dcd3a 100644 --- a/koyeb/api/test/test_credentials_api.py +++ b/koyeb/api/test/test_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 @@ -69,5 +69,5 @@ def test_update_credential2(self) -> None: pass -if __name__ == '__main__': +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 index bdcc3d23..b7f04420 100644 --- a/koyeb/api/test/test_database_deployment_metadata.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.database_deployment_metadata import DatabaseDeploymentMetadata + class TestDatabaseDeploymentMetadata(unittest.TestCase): """DatabaseDeploymentMetadata unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseDeploymentMetadata: """Test DatabaseDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DatabaseDeploymentMetadata` """ model = DatabaseDeploymentMetadata() @@ -50,5 +51,6 @@ def testDatabaseDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_database_role_password.py b/koyeb/api/test/test_database_role_password.py index 40f2b9ac..c5284a50 100644 --- a/koyeb/api/test/test_database_role_password.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.database_role_password import DatabaseRolePassword + class TestDatabaseRolePassword(unittest.TestCase): """DatabaseRolePassword unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseRolePassword: """Test DatabaseRolePassword - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DatabaseRolePassword` """ model = DatabaseRolePassword() @@ -48,5 +49,6 @@ def testDatabaseRolePassword(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_database_source.py b/koyeb/api/test/test_database_source.py index f3a1ad95..8aa0bfcf 100644 --- a/koyeb/api/test/test_database_source.py +++ b/koyeb/api/test/test_database_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.database_source import DatabaseSource + class TestDatabaseSource(unittest.TestCase): """DatabaseSource unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseSource: """Test DatabaseSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DatabaseSource` """ model = DatabaseSource() @@ -60,5 +61,6 @@ def testDatabaseSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_database_usage.py b/koyeb/api/test/test_database_usage.py index 59a95827..19cc41db 100644 --- a/koyeb/api/test/test_database_usage.py +++ b/koyeb/api/test/test_database_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.database_usage import DatabaseUsage + class TestDatabaseUsage(unittest.TestCase): """DatabaseUsage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseUsage: """Test DatabaseUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DatabaseUsage` """ model = DatabaseUsage() @@ -50,5 +51,6 @@ def testDatabaseUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_database_usage_details.py b/koyeb/api/test/test_database_usage_details.py index c03b54cf..4e20eb36 100644 --- a/koyeb/api/test/test_database_usage_details.py +++ b/koyeb/api/test/test_database_usage_details.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.database_usage_details import DatabaseUsageDetails + class TestDatabaseUsageDetails(unittest.TestCase): """DatabaseUsageDetails unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatabaseUsageDetails: """Test DatabaseUsageDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DatabaseUsageDetails` """ model = DatabaseUsageDetails() @@ -55,5 +56,6 @@ def testDatabaseUsageDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_datacenter_list_item.py b/koyeb/api/test/test_datacenter_list_item.py index 2bf7b104..302c3967 100644 --- a/koyeb/api/test/test_datacenter_list_item.py +++ b/koyeb/api/test/test_datacenter_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.datacenter_list_item import DatacenterListItem + class TestDatacenterListItem(unittest.TestCase): """DatacenterListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DatacenterListItem: """Test DatacenterListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DatacenterListItem` """ model = DatacenterListItem() @@ -56,5 +57,6 @@ def testDatacenterListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deactivate_organization_reply.py b/koyeb/api/test/test_deactivate_organization_reply.py index 482478d1..b45c11d5 100644 --- a/koyeb/api/test/test_deactivate_organization_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deactivate_organization_reply import DeactivateOrganizationReply + class TestDeactivateOrganizationReply(unittest.TestCase): """DeactivateOrganizationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeactivateOrganizationReply: """Test DeactivateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeactivateOrganizationReply` """ model = DeactivateOrganizationReply() @@ -79,5 +80,6 @@ def testDeactivateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deactivate_organization_request.py b/koyeb/api/test/test_deactivate_organization_request.py index 3e701bf9..e08c0267 100644 --- a/koyeb/api/test/test_deactivate_organization_request.py +++ b/koyeb/api/test/test_deactivate_organization_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deactivate_organization_request import DeactivateOrganizationRequest +from koyeb.api.models.deactivate_organization_request import ( + DeactivateOrganizationRequest, +) + class TestDeactivateOrganizationRequest(unittest.TestCase): """DeactivateOrganizationRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeactivateOrganizationRequest: """Test DeactivateOrganizationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeactivateOrganizationRequest` """ model = DeactivateOrganizationRequest() @@ -47,5 +50,6 @@ def testDeactivateOrganizationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_declare_stage_progress_request.py b/koyeb/api/test/test_declare_stage_progress_request.py index 5c527b85..0b051948 100644 --- a/koyeb/api/test/test_declare_stage_progress_request.py +++ b/koyeb/api/test/test_declare_stage_progress_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.declare_stage_progress_request import DeclareStageProgressRequest + class TestDeclareStageProgressRequest(unittest.TestCase): """DeclareStageProgressRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeclareStageProgressRequest: """Test DeclareStageProgressRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeclareStageProgressRequest` """ model = DeclareStageProgressRequest() @@ -55,5 +56,6 @@ def testDeclareStageProgressRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_declare_step_progress_request.py b/koyeb/api/test/test_declare_step_progress_request.py index f6258594..e2c6d79e 100644 --- a/koyeb/api/test/test_declare_step_progress_request.py +++ b/koyeb/api/test/test_declare_step_progress_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.declare_step_progress_request import DeclareStepProgressRequest + class TestDeclareStepProgressRequest(unittest.TestCase): """DeclareStepProgressRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeclareStepProgressRequest: """Test DeclareStepProgressRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeclareStepProgressRequest` """ model = DeclareStepProgressRequest() @@ -53,5 +54,6 @@ def testDeclareStepProgressRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_decline_organization_invitation_reply.py b/koyeb/api/test/test_decline_organization_invitation_reply.py index 132c49f5..6405e014 100644 --- a/koyeb/api/test/test_decline_organization_invitation_reply.py +++ b/koyeb/api/test/test_decline_organization_invitation_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.decline_organization_invitation_reply import DeclineOrganizationInvitationReply +from koyeb.api.models.decline_organization_invitation_reply import ( + DeclineOrganizationInvitationReply, +) + class TestDeclineOrganizationInvitationReply(unittest.TestCase): """DeclineOrganizationInvitationReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeclineOrganizationInvitationReply: """Test DeclineOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeclineOrganizationInvitationReply` """ model = DeclineOrganizationInvitationReply() @@ -73,5 +76,6 @@ def testDeclineOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_delete_organization_reply.py b/koyeb/api/test/test_delete_organization_reply.py index 7ed7944e..fac04709 100644 --- a/koyeb/api/test/test_delete_organization_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.delete_organization_reply import DeleteOrganizationReply + class TestDeleteOrganizationReply(unittest.TestCase): """DeleteOrganizationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeleteOrganizationReply: """Test DeleteOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeleteOrganizationReply` """ model = DeleteOrganizationReply() @@ -79,5 +80,6 @@ def testDeleteOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_delete_persistent_volume_reply.py b/koyeb/api/test/test_delete_persistent_volume_reply.py index 112083d9..dee9c3a0 100644 --- a/koyeb/api/test/test_delete_persistent_volume_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.delete_persistent_volume_reply import DeletePersistentVolumeReply + class TestDeletePersistentVolumeReply(unittest.TestCase): """DeletePersistentVolumeReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeletePersistentVolumeReply: """Test DeletePersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeletePersistentVolumeReply` """ model = DeletePersistentVolumeReply() @@ -61,5 +62,6 @@ def testDeletePersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_delete_snapshot_reply.py b/koyeb/api/test/test_delete_snapshot_reply.py index 3655ddc3..c8dcc43d 100644 --- a/koyeb/api/test/test_delete_snapshot_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.delete_snapshot_reply import DeleteSnapshotReply + class TestDeleteSnapshotReply(unittest.TestCase): """DeleteSnapshotReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeleteSnapshotReply: """Test DeleteSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeleteSnapshotReply` """ model = DeleteSnapshotReply() @@ -58,5 +59,6 @@ def testDeleteSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_delete_user_reply.py b/koyeb/api/test/test_delete_user_reply.py index 576b7fa8..4281a208 100644 --- a/koyeb/api/test/test_delete_user_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.delete_user_reply import DeleteUserReply + class TestDeleteUserReply(unittest.TestCase): """DeleteUserReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeleteUserReply: """Test DeleteUserReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeleteUserReply` """ model = DeleteUserReply() @@ -47,5 +48,6 @@ def testDeleteUserReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment.py b/koyeb/api/test/test_deployment.py index 53addad9..6d4d798e 100644 --- a/koyeb/api/test/test_deployment.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment import Deployment + class TestDeployment(unittest.TestCase): """Deployment unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Deployment: """Test Deployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Deployment` """ model = Deployment() @@ -277,5 +278,6 @@ def testDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_database_info.py b/koyeb/api/test/test_deployment_database_info.py index 978dcc09..b0fe49cb 100644 --- a/koyeb/api/test/test_deployment_database_info.py +++ b/koyeb/api/test/test_deployment_database_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_database_info import DeploymentDatabaseInfo + class TestDeploymentDatabaseInfo(unittest.TestCase): """DeploymentDatabaseInfo unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentDatabaseInfo: """Test DeploymentDatabaseInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentDatabaseInfo` """ model = DeploymentDatabaseInfo() @@ -65,5 +66,6 @@ def testDeploymentDatabaseInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_definition.py b/koyeb/api/test/test_deployment_definition.py index 9fe77672..1b980c43 100644 --- a/koyeb/api/test/test_deployment_definition.py +++ b/koyeb/api/test/test_deployment_definition.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_definition import DeploymentDefinition + class TestDeploymentDefinition(unittest.TestCase): """DeploymentDefinition unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentDefinition: """Test DeploymentDefinition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentDefinition` """ model = DeploymentDefinition() @@ -211,5 +212,6 @@ def testDeploymentDefinition(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_definition_type.py b/koyeb/api/test/test_deployment_definition_type.py index 0034d7eb..ab1b3bf2 100644 --- a/koyeb/api/test/test_deployment_definition_type.py +++ b/koyeb/api/test/test_deployment_definition_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_definition_type import DeploymentDefinitionType + class TestDeploymentDefinitionType(unittest.TestCase): """DeploymentDefinitionType unit test stubs""" @@ -29,5 +30,6 @@ def testDeploymentDefinitionType(self): """Test DeploymentDefinitionType""" # inst = DeploymentDefinitionType() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_env.py b/koyeb/api/test/test_deployment_env.py index 40757d71..e6e3ff8c 100644 --- a/koyeb/api/test/test_deployment_env.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_env import DeploymentEnv + class TestDeploymentEnv(unittest.TestCase): """DeploymentEnv unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentEnv: """Test DeploymentEnv - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentEnv` """ model = DeploymentEnv() @@ -52,5 +53,6 @@ def testDeploymentEnv(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_event.py b/koyeb/api/test/test_deployment_event.py index dffc1de1..0ad4e4a4 100644 --- a/koyeb/api/test/test_deployment_event.py +++ b/koyeb/api/test/test_deployment_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_event import DeploymentEvent + class TestDeploymentEvent(unittest.TestCase): """DeploymentEvent unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentEvent: """Test DeploymentEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentEvent` """ model = DeploymentEvent() @@ -53,5 +54,6 @@ def testDeploymentEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_health_check.py b/koyeb/api/test/test_deployment_health_check.py index 2db52fba..35b2ad98 100644 --- a/koyeb/api/test/test_deployment_health_check.py +++ b/koyeb/api/test/test_deployment_health_check.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_health_check import DeploymentHealthCheck + class TestDeploymentHealthCheck(unittest.TestCase): """DeploymentHealthCheck unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentHealthCheck: """Test DeploymentHealthCheck - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentHealthCheck` """ model = DeploymentHealthCheck() @@ -61,5 +62,6 @@ def testDeploymentHealthCheck(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_instance_type.py b/koyeb/api/test/test_deployment_instance_type.py index b4916853..3edcda1a 100644 --- a/koyeb/api/test/test_deployment_instance_type.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_instance_type import DeploymentInstanceType + class TestDeploymentInstanceType(unittest.TestCase): """DeploymentInstanceType unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentInstanceType: """Test DeploymentInstanceType - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentInstanceType` """ model = DeploymentInstanceType() @@ -50,5 +51,6 @@ def testDeploymentInstanceType(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_list_item.py b/koyeb/api/test/test_deployment_list_item.py index e62f545a..4053a451 100644 --- a/koyeb/api/test/test_deployment_list_item.py +++ b/koyeb/api/test/test_deployment_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_list_item import DeploymentListItem + class TestDeploymentListItem(unittest.TestCase): """DeploymentListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentListItem: """Test DeploymentListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentListItem` """ model = DeploymentListItem() @@ -275,5 +276,6 @@ def testDeploymentListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_metadata.py b/koyeb/api/test/test_deployment_metadata.py index 836e40b2..6a3a24e0 100644 --- a/koyeb/api/test/test_deployment_metadata.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_metadata import DeploymentMetadata + class TestDeploymentMetadata(unittest.TestCase): """DeploymentMetadata unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentMetadata: """Test DeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentMetadata` """ model = DeploymentMetadata() @@ -78,5 +79,6 @@ def testDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_neon_postgres_database_info.py b/koyeb/api/test/test_deployment_neon_postgres_database_info.py index 54a781d9..83b02439 100644 --- a/koyeb/api/test/test_deployment_neon_postgres_database_info.py +++ b/koyeb/api/test/test_deployment_neon_postgres_database_info.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_neon_postgres_database_info import DeploymentNeonPostgresDatabaseInfo +from koyeb.api.models.deployment_neon_postgres_database_info import ( + DeploymentNeonPostgresDatabaseInfo, +) + class TestDeploymentNeonPostgresDatabaseInfo(unittest.TestCase): """DeploymentNeonPostgresDatabaseInfo unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentNeonPostgresDatabaseInfo: """Test DeploymentNeonPostgresDatabaseInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfo` """ model = DeploymentNeonPostgresDatabaseInfo() @@ -64,5 +67,6 @@ def testDeploymentNeonPostgresDatabaseInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py b/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py index c82176fa..2a1b0e74 100644 --- a/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py +++ b/koyeb/api/test/test_deployment_neon_postgres_database_info_role.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_neon_postgres_database_info_role import DeploymentNeonPostgresDatabaseInfoRole +from koyeb.api.models.deployment_neon_postgres_database_info_role import ( + DeploymentNeonPostgresDatabaseInfoRole, +) + class TestDeploymentNeonPostgresDatabaseInfoRole(unittest.TestCase): """DeploymentNeonPostgresDatabaseInfoRole unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentNeonPostgresDatabaseInfoRole: """Test DeploymentNeonPostgresDatabaseInfoRole - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentNeonPostgresDatabaseInfoRole` """ model = DeploymentNeonPostgresDatabaseInfoRole() @@ -48,5 +51,6 @@ def testDeploymentNeonPostgresDatabaseInfoRole(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_port.py b/koyeb/api/test/test_deployment_port.py index 933ec5a3..2e5661e1 100644 --- a/koyeb/api/test/test_deployment_port.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_port import DeploymentPort + class TestDeploymentPort(unittest.TestCase): """DeploymentPort unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentPort: """Test DeploymentPort - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentPort` """ model = DeploymentPort() @@ -48,5 +49,6 @@ def testDeploymentPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_provisioning_info.py b/koyeb/api/test/test_deployment_provisioning_info.py index 2c7a2e31..38acc404 100644 --- a/koyeb/api/test/test_deployment_provisioning_info.py +++ b/koyeb/api/test/test_deployment_provisioning_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_provisioning_info import DeploymentProvisioningInfo + class TestDeploymentProvisioningInfo(unittest.TestCase): """DeploymentProvisioningInfo unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProvisioningInfo: """Test DeploymentProvisioningInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentProvisioningInfo` """ model = DeploymentProvisioningInfo() @@ -74,5 +75,6 @@ def testDeploymentProvisioningInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_provisioning_info_stage.py b/koyeb/api/test/test_deployment_provisioning_info_stage.py index bc7e0549..911a71ce 100644 --- a/koyeb/api/test/test_deployment_provisioning_info_stage.py +++ b/koyeb/api/test/test_deployment_provisioning_info_stage.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_provisioning_info_stage import DeploymentProvisioningInfoStage +from koyeb.api.models.deployment_provisioning_info_stage import ( + DeploymentProvisioningInfoStage, +) + class TestDeploymentProvisioningInfoStage(unittest.TestCase): """DeploymentProvisioningInfoStage unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProvisioningInfoStage: """Test DeploymentProvisioningInfoStage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentProvisioningInfoStage` """ model = DeploymentProvisioningInfoStage() @@ -73,5 +76,6 @@ def testDeploymentProvisioningInfoStage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py index 823493eb..08dd8951 100644 --- a/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py +++ b/koyeb/api/test/test_deployment_provisioning_info_stage_build_attempt.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_provisioning_info_stage_build_attempt import DeploymentProvisioningInfoStageBuildAttempt +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt import ( + DeploymentProvisioningInfoStageBuildAttempt, +) + class TestDeploymentProvisioningInfoStageBuildAttempt(unittest.TestCase): """DeploymentProvisioningInfoStageBuildAttempt unit test stubs""" @@ -25,11 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeploymentProvisioningInfoStageBuildAttempt: + def make_instance( + self, include_optional + ) -> DeploymentProvisioningInfoStageBuildAttempt: """Test DeploymentProvisioningInfoStageBuildAttempt - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttempt` """ model = DeploymentProvisioningInfoStageBuildAttempt() @@ -67,5 +72,6 @@ def testDeploymentProvisioningInfoStageBuildAttempt(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/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 index 480ab67c..98f4196b 100644 --- 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 @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_provisioning_info_stage_build_attempt_build_step import DeploymentProvisioningInfoStageBuildAttemptBuildStep +from koyeb.api.models.deployment_provisioning_info_stage_build_attempt_build_step import ( + DeploymentProvisioningInfoStageBuildAttemptBuildStep, +) + class TestDeploymentProvisioningInfoStageBuildAttemptBuildStep(unittest.TestCase): """DeploymentProvisioningInfoStageBuildAttemptBuildStep unit test stubs""" @@ -25,11 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeploymentProvisioningInfoStageBuildAttemptBuildStep: + def make_instance( + self, include_optional + ) -> DeploymentProvisioningInfoStageBuildAttemptBuildStep: """Test DeploymentProvisioningInfoStageBuildAttemptBuildStep - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentProvisioningInfoStageBuildAttemptBuildStep` """ model = DeploymentProvisioningInfoStageBuildAttemptBuildStep() @@ -53,5 +58,6 @@ def testDeploymentProvisioningInfoStageBuildAttemptBuildStep(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_provisioning_info_stage_status.py b/koyeb/api/test/test_deployment_provisioning_info_stage_status.py index 9398ccbc..20601366 100644 --- a/koyeb/api/test/test_deployment_provisioning_info_stage_status.py +++ b/koyeb/api/test/test_deployment_provisioning_info_stage_status.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_provisioning_info_stage_status import DeploymentProvisioningInfoStageStatus +from koyeb.api.models.deployment_provisioning_info_stage_status import ( + DeploymentProvisioningInfoStageStatus, +) + class TestDeploymentProvisioningInfoStageStatus(unittest.TestCase): """DeploymentProvisioningInfoStageStatus unit test stubs""" @@ -29,5 +32,6 @@ def testDeploymentProvisioningInfoStageStatus(self): """Test DeploymentProvisioningInfoStageStatus""" # inst = DeploymentProvisioningInfoStageStatus() -if __name__ == '__main__': + +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 index 7482bc9f..25be1493 100644 --- a/koyeb/api/test/test_deployment_proxy_port.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_proxy_port import DeploymentProxyPort + class TestDeploymentProxyPort(unittest.TestCase): """DeploymentProxyPort unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProxyPort: """Test DeploymentProxyPort - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentProxyPort` """ model = DeploymentProxyPort() @@ -48,5 +49,6 @@ def testDeploymentProxyPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_proxy_port_metadata.py b/koyeb/api/test/test_deployment_proxy_port_metadata.py index f85dc388..099e5c4c 100644 --- a/koyeb/api/test/test_deployment_proxy_port_metadata.py +++ b/koyeb/api/test/test_deployment_proxy_port_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_proxy_port_metadata import DeploymentProxyPortMetadata + class TestDeploymentProxyPortMetadata(unittest.TestCase): """DeploymentProxyPortMetadata unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentProxyPortMetadata: """Test DeploymentProxyPortMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentProxyPortMetadata` """ model = DeploymentProxyPortMetadata() @@ -50,5 +51,6 @@ def testDeploymentProxyPortMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_role.py b/koyeb/api/test/test_deployment_role.py index f716a71d..e5b708ec 100644 --- a/koyeb/api/test/test_deployment_role.py +++ b/koyeb/api/test/test_deployment_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_role import DeploymentRole + class TestDeploymentRole(unittest.TestCase): """DeploymentRole unit test stubs""" @@ -29,5 +30,6 @@ def testDeploymentRole(self): """Test DeploymentRole""" # inst = DeploymentRole() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_route.py b/koyeb/api/test/test_deployment_route.py index 85d91d46..427e3ade 100644 --- a/koyeb/api/test/test_deployment_route.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_route import DeploymentRoute + class TestDeploymentRoute(unittest.TestCase): """DeploymentRoute unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentRoute: """Test DeploymentRoute - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentRoute` """ model = DeploymentRoute() @@ -48,5 +49,6 @@ def testDeploymentRoute(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling.py b/koyeb/api/test/test_deployment_scaling.py index a9295c48..6bc19b3b 100644 --- a/koyeb/api/test/test_deployment_scaling.py +++ b/koyeb/api/test/test_deployment_scaling.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_scaling import DeploymentScaling + class TestDeploymentScaling(unittest.TestCase): """DeploymentScaling unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): 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 """ + include_optional is a 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() @@ -69,5 +70,6 @@ def testDeploymentScaling(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target.py b/koyeb/api/test/test_deployment_scaling_target.py index 99299973..49edad70 100644 --- a/koyeb/api/test/test_deployment_scaling_target.py +++ b/koyeb/api/test/test_deployment_scaling_target.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_scaling_target import DeploymentScalingTarget + class TestDeploymentScalingTarget(unittest.TestCase): """DeploymentScalingTarget unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): 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 """ + include_optional is a 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() @@ -61,5 +62,6 @@ def testDeploymentScalingTarget(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target_average_cpu.py b/koyeb/api/test/test_deployment_scaling_target_average_cpu.py index d37b4b92..17b2494f 100644 --- a/koyeb/api/test/test_deployment_scaling_target_average_cpu.py +++ b/koyeb/api/test/test_deployment_scaling_target_average_cpu.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_scaling_target_average_cpu import DeploymentScalingTargetAverageCPU +from koyeb.api.models.deployment_scaling_target_average_cpu import ( + DeploymentScalingTargetAverageCPU, +) + class TestDeploymentScalingTargetAverageCPU(unittest.TestCase): """DeploymentScalingTargetAverageCPU unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentScalingTargetAverageCPU: """Test DeploymentScalingTargetAverageCPU - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentScalingTargetAverageCPU` """ model = DeploymentScalingTargetAverageCPU() @@ -47,5 +50,6 @@ def testDeploymentScalingTargetAverageCPU(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target_average_mem.py b/koyeb/api/test/test_deployment_scaling_target_average_mem.py index 609d7305..53b40581 100644 --- a/koyeb/api/test/test_deployment_scaling_target_average_mem.py +++ b/koyeb/api/test/test_deployment_scaling_target_average_mem.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_scaling_target_average_mem import DeploymentScalingTargetAverageMem +from koyeb.api.models.deployment_scaling_target_average_mem import ( + DeploymentScalingTargetAverageMem, +) + class TestDeploymentScalingTargetAverageMem(unittest.TestCase): """DeploymentScalingTargetAverageMem unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentScalingTargetAverageMem: """Test DeploymentScalingTargetAverageMem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentScalingTargetAverageMem` """ model = DeploymentScalingTargetAverageMem() @@ -47,5 +50,6 @@ def testDeploymentScalingTargetAverageMem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py b/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py index f0027da8..4f6c679d 100644 --- a/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py +++ b/koyeb/api/test/test_deployment_scaling_target_concurrent_requests.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_scaling_target_concurrent_requests import DeploymentScalingTargetConcurrentRequests +from koyeb.api.models.deployment_scaling_target_concurrent_requests import ( + DeploymentScalingTargetConcurrentRequests, +) + class TestDeploymentScalingTargetConcurrentRequests(unittest.TestCase): """DeploymentScalingTargetConcurrentRequests unit test stubs""" @@ -25,11 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeploymentScalingTargetConcurrentRequests: + def make_instance( + self, include_optional + ) -> DeploymentScalingTargetConcurrentRequests: """Test DeploymentScalingTargetConcurrentRequests - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentScalingTargetConcurrentRequests` """ model = DeploymentScalingTargetConcurrentRequests() @@ -47,5 +52,6 @@ def testDeploymentScalingTargetConcurrentRequests(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target_requests_per_second.py b/koyeb/api/test/test_deployment_scaling_target_requests_per_second.py index 8c9a25fa..982e53ec 100644 --- a/koyeb/api/test/test_deployment_scaling_target_requests_per_second.py +++ b/koyeb/api/test/test_deployment_scaling_target_requests_per_second.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_scaling_target_requests_per_second import DeploymentScalingTargetRequestsPerSecond +from koyeb.api.models.deployment_scaling_target_requests_per_second import ( + DeploymentScalingTargetRequestsPerSecond, +) + class TestDeploymentScalingTargetRequestsPerSecond(unittest.TestCase): """DeploymentScalingTargetRequestsPerSecond unit test stubs""" @@ -25,11 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeploymentScalingTargetRequestsPerSecond: + def make_instance( + self, include_optional + ) -> DeploymentScalingTargetRequestsPerSecond: """Test DeploymentScalingTargetRequestsPerSecond - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentScalingTargetRequestsPerSecond` """ model = DeploymentScalingTargetRequestsPerSecond() @@ -47,5 +52,6 @@ def testDeploymentScalingTargetRequestsPerSecond(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py b/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py index 76fc93a2..f6ad7b03 100644 --- a/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py +++ b/koyeb/api/test/test_deployment_scaling_target_requests_response_time.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_scaling_target_requests_response_time import DeploymentScalingTargetRequestsResponseTime +from koyeb.api.models.deployment_scaling_target_requests_response_time import ( + DeploymentScalingTargetRequestsResponseTime, +) + class TestDeploymentScalingTargetRequestsResponseTime(unittest.TestCase): """DeploymentScalingTargetRequestsResponseTime unit test stubs""" @@ -25,11 +28,13 @@ def setUp(self): def tearDown(self): pass - def make_instance(self, include_optional) -> DeploymentScalingTargetRequestsResponseTime: + def make_instance( + self, include_optional + ) -> DeploymentScalingTargetRequestsResponseTime: """Test DeploymentScalingTargetRequestsResponseTime - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentScalingTargetRequestsResponseTime` """ model = DeploymentScalingTargetRequestsResponseTime() @@ -48,5 +53,6 @@ def testDeploymentScalingTargetRequestsResponseTime(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py b/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py index 87a030f2..8640b8bb 100644 --- a/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py +++ b/koyeb/api/test/test_deployment_scaling_target_sleep_idle_delay.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.deployment_scaling_target_sleep_idle_delay import DeploymentScalingTargetSleepIdleDelay +from koyeb.api.models.deployment_scaling_target_sleep_idle_delay import ( + DeploymentScalingTargetSleepIdleDelay, +) + class TestDeploymentScalingTargetSleepIdleDelay(unittest.TestCase): """DeploymentScalingTargetSleepIdleDelay unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentScalingTargetSleepIdleDelay: """Test DeploymentScalingTargetSleepIdleDelay - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentScalingTargetSleepIdleDelay` """ model = DeploymentScalingTargetSleepIdleDelay() @@ -49,5 +52,6 @@ def testDeploymentScalingTargetSleepIdleDelay(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_status.py b/koyeb/api/test/test_deployment_status.py index c7e342bd..357eecdb 100644 --- a/koyeb/api/test/test_deployment_status.py +++ b/koyeb/api/test/test_deployment_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_status import DeploymentStatus + class TestDeploymentStatus(unittest.TestCase): """DeploymentStatus unit test stubs""" @@ -29,5 +30,6 @@ def testDeploymentStatus(self): """Test DeploymentStatus""" # inst = DeploymentStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_strategy.py b/koyeb/api/test/test_deployment_strategy.py index 0189c030..6c502122 100644 --- a/koyeb/api/test/test_deployment_strategy.py +++ b/koyeb/api/test/test_deployment_strategy.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_strategy import DeploymentStrategy + class TestDeploymentStrategy(unittest.TestCase): """DeploymentStrategy unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentStrategy: """Test DeploymentStrategy - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentStrategy` """ model = DeploymentStrategy() @@ -47,5 +48,6 @@ def testDeploymentStrategy(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_strategy_type.py b/koyeb/api/test/test_deployment_strategy_type.py index fa39bc4a..9a2bcfec 100644 --- a/koyeb/api/test/test_deployment_strategy_type.py +++ b/koyeb/api/test/test_deployment_strategy_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_strategy_type import DeploymentStrategyType + class TestDeploymentStrategyType(unittest.TestCase): """DeploymentStrategyType unit test stubs""" @@ -29,5 +30,6 @@ def testDeploymentStrategyType(self): """Test DeploymentStrategyType""" # inst = DeploymentStrategyType() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployment_volume.py b/koyeb/api/test/test_deployment_volume.py index 4bcc1f88..3b4cb4bc 100644 --- a/koyeb/api/test/test_deployment_volume.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.deployment_volume import DeploymentVolume + class TestDeploymentVolume(unittest.TestCase): """DeploymentVolume unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DeploymentVolume: """Test DeploymentVolume - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DeploymentVolume` """ model = DeploymentVolume() @@ -52,5 +53,6 @@ def testDeploymentVolume(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_deployments_api.py b/koyeb/api/test/test_deployments_api.py index 096640a7..02b83f7d 100644 --- a/koyeb/api/test/test_deployments_api.py +++ b/koyeb/api/test/test_deployments_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -62,5 +62,5 @@ def test_list_deployments(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_desired_deployment.py b/koyeb/api/test/test_desired_deployment.py index 7188a6ee..7a9115e3 100644 --- a/koyeb/api/test/test_desired_deployment.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.desired_deployment import DesiredDeployment + class TestDesiredDeployment(unittest.TestCase): """DesiredDeployment unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DesiredDeployment: """Test DesiredDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DesiredDeployment` """ model = DesiredDeployment() @@ -53,5 +54,6 @@ def testDesiredDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_desired_deployment_group.py b/koyeb/api/test/test_desired_deployment_group.py index d5ce9559..078e1387 100644 --- a/koyeb/api/test/test_desired_deployment_group.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.desired_deployment_group import DesiredDeploymentGroup + class TestDesiredDeploymentGroup(unittest.TestCase): """DesiredDeploymentGroup unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DesiredDeploymentGroup: """Test DesiredDeploymentGroup - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DesiredDeploymentGroup` """ model = DesiredDeploymentGroup() @@ -50,5 +51,6 @@ def testDesiredDeploymentGroup(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_digital_ocean_registry_configuration.py b/koyeb/api/test/test_digital_ocean_registry_configuration.py index 073a570e..93224da7 100644 --- a/koyeb/api/test/test_digital_ocean_registry_configuration.py +++ b/koyeb/api/test/test_digital_ocean_registry_configuration.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.digital_ocean_registry_configuration import DigitalOceanRegistryConfiguration +from koyeb.api.models.digital_ocean_registry_configuration import ( + DigitalOceanRegistryConfiguration, +) + class TestDigitalOceanRegistryConfiguration(unittest.TestCase): """DigitalOceanRegistryConfiguration unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DigitalOceanRegistryConfiguration: """Test DigitalOceanRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DigitalOceanRegistryConfiguration` """ model = DigitalOceanRegistryConfiguration() @@ -48,5 +51,6 @@ def testDigitalOceanRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_discourse_auth_reply.py b/koyeb/api/test/test_discourse_auth_reply.py index f9be9d69..40844a63 100644 --- a/koyeb/api/test/test_discourse_auth_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.discourse_auth_reply import DiscourseAuthReply + class TestDiscourseAuthReply(unittest.TestCase): """DiscourseAuthReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscourseAuthReply: """Test DiscourseAuthReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DiscourseAuthReply` """ model = DiscourseAuthReply() @@ -48,5 +49,6 @@ def testDiscourseAuthReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_discourse_auth_request.py b/koyeb/api/test/test_discourse_auth_request.py index 036fd652..ca2e8c89 100644 --- a/koyeb/api/test/test_discourse_auth_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.discourse_auth_request import DiscourseAuthRequest + class TestDiscourseAuthRequest(unittest.TestCase): """DiscourseAuthRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DiscourseAuthRequest: """Test DiscourseAuthRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DiscourseAuthRequest` """ model = DiscourseAuthRequest() @@ -48,5 +49,6 @@ def testDiscourseAuthRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_docker_builder.py b/koyeb/api/test/test_docker_builder.py index 748926f2..27e2a9d2 100644 --- a/koyeb/api/test/test_docker_builder.py +++ b/koyeb/api/test/test_docker_builder.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.docker_builder import DockerBuilder + class TestDockerBuilder(unittest.TestCase): """DockerBuilder unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DockerBuilder: """Test DockerBuilder - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DockerBuilder` """ model = DockerBuilder() @@ -56,5 +57,6 @@ def testDockerBuilder(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_docker_helper_api.py b/koyeb/api/test/test_docker_helper_api.py index b93ba981..086b2394 100644 --- a/koyeb/api/test/test_docker_helper_api.py +++ b/koyeb/api/test/test_docker_helper_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -34,5 +34,5 @@ def test_verify_docker_image(self) -> None: pass -if __name__ == '__main__': +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 index 88533154..564b13de 100644 --- a/koyeb/api/test/test_docker_hub_registry_configuration.py +++ b/koyeb/api/test/test_docker_hub_registry_configuration.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.docker_hub_registry_configuration import DockerHubRegistryConfiguration +from koyeb.api.models.docker_hub_registry_configuration import ( + DockerHubRegistryConfiguration, +) + class TestDockerHubRegistryConfiguration(unittest.TestCase): """DockerHubRegistryConfiguration unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DockerHubRegistryConfiguration: """Test DockerHubRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DockerHubRegistryConfiguration` """ model = DockerHubRegistryConfiguration() @@ -48,5 +51,6 @@ def testDockerHubRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_docker_source.py b/koyeb/api/test/test_docker_source.py index d5c88002..cc88f67d 100644 --- a/koyeb/api/test/test_docker_source.py +++ b/koyeb/api/test/test_docker_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.docker_source import DockerSource + class TestDockerSource(unittest.TestCase): """DockerSource unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DockerSource: """Test DockerSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DockerSource` """ model = DockerSource() @@ -56,5 +57,6 @@ def testDockerSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_domain.py b/koyeb/api/test/test_domain.py index faff203a..dd946066 100644 --- a/koyeb/api/test/test_domain.py +++ b/koyeb/api/test/test_domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.domain import Domain + class TestDomain(unittest.TestCase): """Domain unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Domain: """Test Domain - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Domain` """ model = Domain() @@ -64,5 +65,6 @@ def testDomain(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_domain_load_balancer_koyeb.py b/koyeb/api/test/test_domain_load_balancer_koyeb.py index 89ea0e1a..1ed48ac3 100644 --- a/koyeb/api/test/test_domain_load_balancer_koyeb.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.domain_load_balancer_koyeb import DomainLoadBalancerKoyeb + class TestDomainLoadBalancerKoyeb(unittest.TestCase): """DomainLoadBalancerKoyeb unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DomainLoadBalancerKoyeb: """Test DomainLoadBalancerKoyeb - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DomainLoadBalancerKoyeb` """ model = DomainLoadBalancerKoyeb() @@ -47,5 +48,6 @@ def testDomainLoadBalancerKoyeb(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_domain_load_balancer_quotas.py b/koyeb/api/test/test_domain_load_balancer_quotas.py index d3b59b10..e3473afd 100644 --- a/koyeb/api/test/test_domain_load_balancer_quotas.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.domain_load_balancer_quotas import DomainLoadBalancerQuotas + class TestDomainLoadBalancerQuotas(unittest.TestCase): """DomainLoadBalancerQuotas unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DomainLoadBalancerQuotas: """Test DomainLoadBalancerQuotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DomainLoadBalancerQuotas` """ model = DomainLoadBalancerQuotas() @@ -47,5 +48,6 @@ def testDomainLoadBalancerQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_domain_status.py b/koyeb/api/test/test_domain_status.py index b448f2b2..a555baab 100644 --- a/koyeb/api/test/test_domain_status.py +++ b/koyeb/api/test/test_domain_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.domain_status import DomainStatus + class TestDomainStatus(unittest.TestCase): """DomainStatus unit test stubs""" @@ -29,5 +30,6 @@ def testDomainStatus(self): """Test DomainStatus""" # inst = DomainStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_domain_type.py b/koyeb/api/test/test_domain_type.py index b2d4a4f7..778f1eca 100644 --- a/koyeb/api/test/test_domain_type.py +++ b/koyeb/api/test/test_domain_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.domain_type import DomainType + class TestDomainType(unittest.TestCase): """DomainType unit test stubs""" @@ -29,5 +30,6 @@ def testDomainType(self): """Test DomainType""" # inst = DomainType() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_domains_api.py b/koyeb/api/test/test_domains_api.py index 916931c6..2863bfe2 100644 --- a/koyeb/api/test/test_domains_api.py +++ b/koyeb/api/test/test_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 @@ -69,5 +69,5 @@ def test_update_domain(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_domains_summary.py b/koyeb/api/test/test_domains_summary.py index 5baa9c91..291e40f8 100644 --- a/koyeb/api/test/test_domains_summary.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.domains_summary import DomainsSummary + class TestDomainsSummary(unittest.TestCase): """DomainsSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> DomainsSummary: """Test DomainsSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `DomainsSummary` """ model = DomainsSummary() @@ -50,5 +51,6 @@ def testDomainsSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_env.py b/koyeb/api/test/test_env.py index af8bb55f..339b040a 100644 --- a/koyeb/api/test/test_env.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.env import Env + class TestEnv(unittest.TestCase): """Env unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Env: """Test Env - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Env` """ model = Env() @@ -49,5 +50,6 @@ def testEnv(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_error.py b/koyeb/api/test/test_error.py index cb21c03d..c98590be 100644 --- a/koyeb/api/test/test_error.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.error import Error + class TestError(unittest.TestCase): """Error unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Error: """Test Error - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Error` """ model = Error() @@ -49,5 +50,6 @@ def testError(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_error_field.py b/koyeb/api/test/test_error_field.py index 34550bf5..231a8c88 100644 --- a/koyeb/api/test/test_error_field.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.error_field import ErrorField + class TestErrorField(unittest.TestCase): """ErrorField unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ErrorField: """Test ErrorField - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ErrorField` """ model = ErrorField() @@ -48,5 +49,6 @@ def testErrorField(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_error_with_fields.py b/koyeb/api/test/test_error_with_fields.py index cce8f2d4..e1b5f3d9 100644 --- a/koyeb/api/test/test_error_with_fields.py +++ b/koyeb/api/test/test_error_with_fields.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.error_with_fields import ErrorWithFields + class TestErrorWithFields(unittest.TestCase): """ErrorWithFields unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ErrorWithFields: """Test ErrorWithFields - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ErrorWithFields` """ model = ErrorWithFields() @@ -54,5 +55,6 @@ def testErrorWithFields(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_exec_command_io.py b/koyeb/api/test/test_exec_command_io.py index e44b7301..15680de6 100644 --- a/koyeb/api/test/test_exec_command_io.py +++ b/koyeb/api/test/test_exec_command_io.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.exec_command_io import ExecCommandIO + class TestExecCommandIO(unittest.TestCase): """ExecCommandIO unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandIO: """Test ExecCommandIO - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ExecCommandIO` """ model = ExecCommandIO() @@ -48,5 +49,6 @@ def testExecCommandIO(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_exec_command_reply.py b/koyeb/api/test/test_exec_command_reply.py index 9876281c..5ffd2b16 100644 --- a/koyeb/api/test/test_exec_command_reply.py +++ b/koyeb/api/test/test_exec_command_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.exec_command_reply import ExecCommandReply + class TestExecCommandReply(unittest.TestCase): """ExecCommandReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandReply: """Test ExecCommandReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ExecCommandReply` """ model = ExecCommandReply() @@ -54,5 +55,6 @@ def testExecCommandReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_exec_command_request_body.py b/koyeb/api/test/test_exec_command_request_body.py index df1b097a..eb05ea57 100644 --- a/koyeb/api/test/test_exec_command_request_body.py +++ b/koyeb/api/test/test_exec_command_request_body.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.exec_command_request_body import ExecCommandRequestBody + class TestExecCommandRequestBody(unittest.TestCase): """ExecCommandRequestBody unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandRequestBody: """Test ExecCommandRequestBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ExecCommandRequestBody` """ model = ExecCommandRequestBody() @@ -56,5 +57,6 @@ def testExecCommandRequestBody(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_exec_command_request_id_type.py b/koyeb/api/test/test_exec_command_request_id_type.py index c1a7e916..fa9ebdb5 100644 --- a/koyeb/api/test/test_exec_command_request_id_type.py +++ b/koyeb/api/test/test_exec_command_request_id_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.exec_command_request_id_type import ExecCommandRequestIdType + class TestExecCommandRequestIdType(unittest.TestCase): """ExecCommandRequestIdType unit test stubs""" @@ -29,5 +30,6 @@ def testExecCommandRequestIdType(self): """Test ExecCommandRequestIdType""" # inst = ExecCommandRequestIdType() -if __name__ == '__main__': + +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 index a97f7ff4..6d0d14b7 100644 --- a/koyeb/api/test/test_exec_command_request_terminal_size.py +++ b/koyeb/api/test/test_exec_command_request_terminal_size.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.exec_command_request_terminal_size import ExecCommandRequestTerminalSize +from koyeb.api.models.exec_command_request_terminal_size import ( + ExecCommandRequestTerminalSize, +) + class TestExecCommandRequestTerminalSize(unittest.TestCase): """ExecCommandRequestTerminalSize unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ExecCommandRequestTerminalSize: """Test ExecCommandRequestTerminalSize - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ExecCommandRequestTerminalSize` """ model = ExecCommandRequestTerminalSize() @@ -48,5 +51,6 @@ def testExecCommandRequestTerminalSize(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_gcp_container_registry_configuration.py b/koyeb/api/test/test_gcp_container_registry_configuration.py index 1a456250..2516592b 100644 --- a/koyeb/api/test/test_gcp_container_registry_configuration.py +++ b/koyeb/api/test/test_gcp_container_registry_configuration.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.gcp_container_registry_configuration import GCPContainerRegistryConfiguration +from koyeb.api.models.gcp_container_registry_configuration import ( + GCPContainerRegistryConfiguration, +) + class TestGCPContainerRegistryConfiguration(unittest.TestCase): """GCPContainerRegistryConfiguration unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GCPContainerRegistryConfiguration: """Test GCPContainerRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GCPContainerRegistryConfiguration` """ model = GCPContainerRegistryConfiguration() @@ -48,5 +51,6 @@ def testGCPContainerRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_app_reply.py b/koyeb/api/test/test_get_app_reply.py index 19745f42..9b5a2138 100644 --- a/koyeb/api/test/test_get_app_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_app_reply import GetAppReply + class TestGetAppReply(unittest.TestCase): """GetAppReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -79,5 +80,6 @@ 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 index 13dc234a..1ab3e45c 100644 --- a/koyeb/api/test/test_get_budget_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_budget_reply import GetBudgetReply + class TestGetBudgetReply(unittest.TestCase): """GetBudgetReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetBudgetReply: """Test GetBudgetReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetBudgetReply` """ model = GetBudgetReply() @@ -51,5 +52,6 @@ def testGetBudgetReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_catalog_instance_reply.py b/koyeb/api/test/test_get_catalog_instance_reply.py index 966e3c92..393c12c8 100644 --- a/koyeb/api/test/test_get_catalog_instance_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_catalog_instance_reply import GetCatalogInstanceReply + class TestGetCatalogInstanceReply(unittest.TestCase): """GetCatalogInstanceReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetCatalogInstanceReply: """Test GetCatalogInstanceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetCatalogInstanceReply` """ model = GetCatalogInstanceReply() @@ -78,5 +79,6 @@ def testGetCatalogInstanceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_credential_reply.py b/koyeb/api/test/test_get_credential_reply.py index 725eaf6a..b4a26d62 100644 --- a/koyeb/api/test/test_get_credential_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_credential_reply import GetCredentialReply + class TestGetCredentialReply(unittest.TestCase): """GetCredentialReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetCredentialReply: """Test GetCredentialReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetCredentialReply` """ model = GetCredentialReply() @@ -57,5 +58,6 @@ def testGetCredentialReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_deployment_reply.py b/koyeb/api/test/test_get_deployment_reply.py index c6625e37..52bf6bca 100644 --- a/koyeb/api/test/test_get_deployment_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_deployment_reply import GetDeploymentReply + class TestGetDeploymentReply(unittest.TestCase): """GetDeploymentReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetDeploymentReply: """Test GetDeploymentReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetDeploymentReply` """ model = GetDeploymentReply() @@ -218,5 +219,6 @@ def testGetDeploymentReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_deployment_scaling_reply.py b/koyeb/api/test/test_get_deployment_scaling_reply.py index 8780cd82..14877c7c 100644 --- a/koyeb/api/test/test_get_deployment_scaling_reply.py +++ b/koyeb/api/test/test_get_deployment_scaling_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.get_deployment_scaling_reply import GetDeploymentScalingReply + class TestGetDeploymentScalingReply(unittest.TestCase): """GetDeploymentScalingReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -75,5 +76,6 @@ 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/api/test/test_get_deployment_scaling_reply_item.py b/koyeb/api/test/test_get_deployment_scaling_reply_item.py index 1e141ae1..206e07d5 100644 --- a/koyeb/api/test/test_get_deployment_scaling_reply_item.py +++ b/koyeb/api/test/test_get_deployment_scaling_reply_item.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.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""" @@ -27,9 +30,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() @@ -72,5 +75,6 @@ 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 index ad137805..447b894a 100644 --- a/koyeb/api/test/test_get_domain_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_domain_reply import GetDomainReply + class TestGetDomainReply(unittest.TestCase): """GetDomainReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetDomainReply: """Test GetDomainReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetDomainReply` """ model = GetDomainReply() @@ -65,5 +66,6 @@ def testGetDomainReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_github_installation_reply.py b/koyeb/api/test/test_get_github_installation_reply.py index 41bce9ed..f256fd4f 100644 --- a/koyeb/api/test/test_get_github_installation_reply.py +++ b/koyeb/api/test/test_get_github_installation_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.get_github_installation_reply import GetGithubInstallationReply + class TestGetGithubInstallationReply(unittest.TestCase): """GetGithubInstallationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetGithubInstallationReply: """Test GetGithubInstallationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetGithubInstallationReply` """ model = GetGithubInstallationReply() @@ -56,5 +57,6 @@ def testGetGithubInstallationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_idenfy_token_reply.py b/koyeb/api/test/test_get_idenfy_token_reply.py index 123bff94..faa74f09 100644 --- a/koyeb/api/test/test_get_idenfy_token_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_idenfy_token_reply import GetIdenfyTokenReply + class TestGetIdenfyTokenReply(unittest.TestCase): """GetIdenfyTokenReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetIdenfyTokenReply: """Test GetIdenfyTokenReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetIdenfyTokenReply` """ model = GetIdenfyTokenReply() @@ -47,5 +48,6 @@ def testGetIdenfyTokenReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_instance_reply.py b/koyeb/api/test/test_get_instance_reply.py index 11d38f97..acb30851 100644 --- a/koyeb/api/test/test_get_instance_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_instance_reply import GetInstanceReply + class TestGetInstanceReply(unittest.TestCase): """GetInstanceReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -68,5 +69,6 @@ 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 index 7d8d97b8..aa223562 100644 --- a/koyeb/api/test/test_get_intercom_profile_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_intercom_profile_reply import GetIntercomProfileReply + class TestGetIntercomProfileReply(unittest.TestCase): """GetIntercomProfileReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetIntercomProfileReply: """Test GetIntercomProfileReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetIntercomProfileReply` """ model = GetIntercomProfileReply() @@ -47,5 +48,6 @@ def testGetIntercomProfileReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_metrics_reply.py b/koyeb/api/test/test_get_metrics_reply.py index 37ec2186..4f9ff6f6 100644 --- a/koyeb/api/test/test_get_metrics_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_metrics_reply import GetMetricsReply + class TestGetMetricsReply(unittest.TestCase): """GetMetricsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetMetricsReply: """Test GetMetricsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetMetricsReply` """ model = GetMetricsReply() @@ -57,5 +58,6 @@ def testGetMetricsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_metrics_reply_metric.py b/koyeb/api/test/test_get_metrics_reply_metric.py index c91e8ef2..9c6f257a 100644 --- a/koyeb/api/test/test_get_metrics_reply_metric.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_metrics_reply_metric import GetMetricsReplyMetric + class TestGetMetricsReplyMetric(unittest.TestCase): """GetMetricsReplyMetric unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetMetricsReplyMetric: """Test GetMetricsReplyMetric - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetMetricsReplyMetric` """ model = GetMetricsReplyMetric() @@ -54,5 +55,6 @@ def testGetMetricsReplyMetric(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_o_auth_options_reply.py b/koyeb/api/test/test_get_o_auth_options_reply.py index cbec87e7..93c1a6b8 100644 --- a/koyeb/api/test/test_get_o_auth_options_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_o_auth_options_reply import GetOAuthOptionsReply + class TestGetOAuthOptionsReply(unittest.TestCase): """GetOAuthOptionsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOAuthOptionsReply: """Test GetOAuthOptionsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetOAuthOptionsReply` """ model = GetOAuthOptionsReply() @@ -52,5 +53,6 @@ def testGetOAuthOptionsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_organization_invitation_reply.py b/koyeb/api/test/test_get_organization_invitation_reply.py index 6c5759ed..ba410576 100644 --- a/koyeb/api/test/test_get_organization_invitation_reply.py +++ b/koyeb/api/test/test_get_organization_invitation_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.get_organization_invitation_reply import GetOrganizationInvitationReply +from koyeb.api.models.get_organization_invitation_reply import ( + GetOrganizationInvitationReply, +) + class TestGetOrganizationInvitationReply(unittest.TestCase): """GetOrganizationInvitationReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationInvitationReply: """Test GetOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetOrganizationInvitationReply` """ model = GetOrganizationInvitationReply() @@ -73,5 +76,6 @@ def testGetOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_organization_reply.py b/koyeb/api/test/test_get_organization_reply.py index dda1c4d2..bb4f409c 100644 --- a/koyeb/api/test/test_get_organization_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_organization_reply import GetOrganizationReply + class TestGetOrganizationReply(unittest.TestCase): """GetOrganizationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationReply: """Test GetOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetOrganizationReply` """ model = GetOrganizationReply() @@ -79,5 +80,6 @@ def testGetOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_organization_summary_reply.py b/koyeb/api/test/test_get_organization_summary_reply.py index 1356df4d..73920e9f 100644 --- a/koyeb/api/test/test_get_organization_summary_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_organization_summary_reply import GetOrganizationSummaryReply + class TestGetOrganizationSummaryReply(unittest.TestCase): """GetOrganizationSummaryReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationSummaryReply: """Test GetOrganizationSummaryReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetOrganizationSummaryReply` """ model = GetOrganizationSummaryReply() @@ -85,5 +86,6 @@ def testGetOrganizationSummaryReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_organization_usage_details_reply.py b/koyeb/api/test/test_get_organization_usage_details_reply.py index f800ce5a..614d1186 100644 --- a/koyeb/api/test/test_get_organization_usage_details_reply.py +++ b/koyeb/api/test/test_get_organization_usage_details_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.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""" @@ -27,9 +30,9 @@ 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() @@ -78,5 +81,6 @@ 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 index 12649952..d6b28193 100644 --- a/koyeb/api/test/test_get_organization_usage_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_organization_usage_reply import GetOrganizationUsageReply + class TestGetOrganizationUsageReply(unittest.TestCase): """GetOrganizationUsageReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetOrganizationUsageReply: """Test GetOrganizationUsageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetOrganizationUsageReply` """ model = GetOrganizationUsageReply() @@ -77,5 +78,6 @@ def testGetOrganizationUsageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_payment_method_reply.py b/koyeb/api/test/test_get_payment_method_reply.py index 90c8f0d8..2fb6c87d 100644 --- a/koyeb/api/test/test_get_payment_method_reply.py +++ b/koyeb/api/test/test_get_payment_method_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.get_payment_method_reply import GetPaymentMethodReply + class TestGetPaymentMethodReply(unittest.TestCase): """GetPaymentMethodReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -70,5 +71,6 @@ 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 index fa90d662..705488c1 100644 --- a/koyeb/api/test/test_get_persistent_volume_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_persistent_volume_reply import GetPersistentVolumeReply + class TestGetPersistentVolumeReply(unittest.TestCase): """GetPersistentVolumeReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetPersistentVolumeReply: """Test GetPersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetPersistentVolumeReply` """ model = GetPersistentVolumeReply() @@ -61,5 +62,6 @@ def testGetPersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_quotas_reply.py b/koyeb/api/test/test_get_quotas_reply.py index 46e88848..acd6ff94 100644 --- a/koyeb/api/test/test_get_quotas_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_quotas_reply import GetQuotasReply + class TestGetQuotasReply(unittest.TestCase): """GetQuotasReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetQuotasReply: """Test GetQuotasReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetQuotasReply` """ model = GetQuotasReply() @@ -87,5 +88,6 @@ def testGetQuotasReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_region_reply.py b/koyeb/api/test/test_get_region_reply.py index f5898eb4..66f2ae49 100644 --- a/koyeb/api/test/test_get_region_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_region_reply import GetRegionReply + class TestGetRegionReply(unittest.TestCase): """GetRegionReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetRegionReply: """Test GetRegionReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetRegionReply` """ model = GetRegionReply() @@ -61,5 +62,6 @@ def testGetRegionReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_regional_deployment_reply.py b/koyeb/api/test/test_get_regional_deployment_reply.py index 1b7f5fb4..79795c5c 100644 --- a/koyeb/api/test/test_get_regional_deployment_reply.py +++ b/koyeb/api/test/test_get_regional_deployment_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.get_regional_deployment_reply import GetRegionalDeploymentReply + class TestGetRegionalDeploymentReply(unittest.TestCase): """GetRegionalDeploymentReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetRegionalDeploymentReply: """Test GetRegionalDeploymentReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetRegionalDeploymentReply` """ model = GetRegionalDeploymentReply() @@ -199,5 +200,6 @@ def testGetRegionalDeploymentReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_secret_reply.py b/koyeb/api/test/test_get_secret_reply.py index 8348d5fc..55ea74e4 100644 --- a/koyeb/api/test/test_get_secret_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_secret_reply import GetSecretReply + class TestGetSecretReply(unittest.TestCase): """GetSecretReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetSecretReply: """Test GetSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetSecretReply` """ model = GetSecretReply() @@ -80,5 +81,6 @@ def testGetSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_service_reply.py b/koyeb/api/test/test_get_service_reply.py index 65f69106..9c23f880 100644 --- a/koyeb/api/test/test_get_service_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_service_reply import GetServiceReply + class TestGetServiceReply(unittest.TestCase): """GetServiceReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetServiceReply: """Test GetServiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetServiceReply` """ model = GetServiceReply() @@ -77,5 +78,6 @@ def testGetServiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_snapshot_reply.py b/koyeb/api/test/test_get_snapshot_reply.py index b4ec36d0..9740f6c8 100644 --- a/koyeb/api/test/test_get_snapshot_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_snapshot_reply import GetSnapshotReply + class TestGetSnapshotReply(unittest.TestCase): """GetSnapshotReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetSnapshotReply: """Test GetSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetSnapshotReply` """ model = GetSnapshotReply() @@ -58,5 +59,6 @@ def testGetSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_subscription_reply.py b/koyeb/api/test/test_get_subscription_reply.py index ab11b455..97806538 100644 --- a/koyeb/api/test/test_get_subscription_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_subscription_reply import GetSubscriptionReply + class TestGetSubscriptionReply(unittest.TestCase): """GetSubscriptionReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -85,5 +86,6 @@ 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 index 308b3151..8716f1da 100644 --- a/koyeb/api/test/test_get_user_organization_invitation_reply.py +++ b/koyeb/api/test/test_get_user_organization_invitation_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.get_user_organization_invitation_reply import GetUserOrganizationInvitationReply +from koyeb.api.models.get_user_organization_invitation_reply import ( + GetUserOrganizationInvitationReply, +) + class TestGetUserOrganizationInvitationReply(unittest.TestCase): """GetUserOrganizationInvitationReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetUserOrganizationInvitationReply: """Test GetUserOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetUserOrganizationInvitationReply` """ model = GetUserOrganizationInvitationReply() @@ -73,5 +76,6 @@ def testGetUserOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_get_user_settings_reply.py b/koyeb/api/test/test_get_user_settings_reply.py index 8648bc2a..92651105 100644 --- a/koyeb/api/test/test_get_user_settings_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.get_user_settings_reply import GetUserSettingsReply + class TestGetUserSettingsReply(unittest.TestCase): """GetUserSettingsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GetUserSettingsReply: """Test GetUserSettingsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GetUserSettingsReply` """ model = GetUserSettingsReply() @@ -50,5 +51,6 @@ def testGetUserSettingsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_git_deployment_metadata.py b/koyeb/api/test/test_git_deployment_metadata.py index 4310edb1..86fccaa6 100644 --- a/koyeb/api/test/test_git_deployment_metadata.py +++ b/koyeb/api/test/test_git_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.git_deployment_metadata import GitDeploymentMetadata + class TestGitDeploymentMetadata(unittest.TestCase): """GitDeploymentMetadata unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitDeploymentMetadata: """Test GitDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GitDeploymentMetadata` """ model = GitDeploymentMetadata() @@ -51,5 +52,6 @@ def testGitDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_git_env_deployment_metadata.py b/koyeb/api/test/test_git_env_deployment_metadata.py index 948c92d2..92743790 100644 --- a/koyeb/api/test/test_git_env_deployment_metadata.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.git_env_deployment_metadata import GitEnvDeploymentMetadata + class TestGitEnvDeploymentMetadata(unittest.TestCase): """GitEnvDeploymentMetadata unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitEnvDeploymentMetadata: """Test GitEnvDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GitEnvDeploymentMetadata` """ model = GitEnvDeploymentMetadata() @@ -49,5 +50,6 @@ def testGitEnvDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_git_hub_registry_configuration.py b/koyeb/api/test/test_git_hub_registry_configuration.py index a577f85d..affd36e4 100644 --- a/koyeb/api/test/test_git_hub_registry_configuration.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.git_hub_registry_configuration import GitHubRegistryConfiguration + class TestGitHubRegistryConfiguration(unittest.TestCase): """GitHubRegistryConfiguration unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitHubRegistryConfiguration: """Test GitHubRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GitHubRegistryConfiguration` """ model = GitHubRegistryConfiguration() @@ -48,5 +49,6 @@ def testGitHubRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_git_lab_registry_configuration.py b/koyeb/api/test/test_git_lab_registry_configuration.py index 69c63f3b..5806683f 100644 --- a/koyeb/api/test/test_git_lab_registry_configuration.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.git_lab_registry_configuration import GitLabRegistryConfiguration + class TestGitLabRegistryConfiguration(unittest.TestCase): """GitLabRegistryConfiguration unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitLabRegistryConfiguration: """Test GitLabRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GitLabRegistryConfiguration` """ model = GitLabRegistryConfiguration() @@ -48,5 +49,6 @@ def testGitLabRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_git_source.py b/koyeb/api/test/test_git_source.py index 6ecf081b..dd351a5e 100644 --- a/koyeb/api/test/test_git_source.py +++ b/koyeb/api/test/test_git_source.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.git_source import GitSource + class TestGitSource(unittest.TestCase): """GitSource unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GitSource: """Test GitSource - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GitSource` """ model = GitSource() @@ -69,5 +70,6 @@ def testGitSource(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_github_installation_reply.py b/koyeb/api/test/test_github_installation_reply.py index a7c1f710..0f24999c 100644 --- a/koyeb/api/test/test_github_installation_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.github_installation_reply import GithubInstallationReply + class TestGithubInstallationReply(unittest.TestCase): """GithubInstallationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GithubInstallationReply: """Test GithubInstallationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GithubInstallationReply` """ model = GithubInstallationReply() @@ -50,5 +51,6 @@ def testGithubInstallationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_github_installation_request.py b/koyeb/api/test/test_github_installation_request.py index 0013a069..5b09a07e 100644 --- a/koyeb/api/test/test_github_installation_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.github_installation_request import GithubInstallationRequest + class TestGithubInstallationRequest(unittest.TestCase): """GithubInstallationRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GithubInstallationRequest: """Test GithubInstallationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GithubInstallationRequest` """ model = GithubInstallationRequest() @@ -47,5 +48,6 @@ def testGithubInstallationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_google_protobuf_any.py b/koyeb/api/test/test_google_protobuf_any.py index f6b00e52..c9185eb8 100644 --- a/koyeb/api/test/test_google_protobuf_any.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.google_protobuf_any import GoogleProtobufAny + class TestGoogleProtobufAny(unittest.TestCase): """GoogleProtobufAny unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GoogleProtobufAny: """Test GoogleProtobufAny - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GoogleProtobufAny` """ model = GoogleProtobufAny() @@ -47,5 +48,6 @@ def testGoogleProtobufAny(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_google_protobuf_null_value.py b/koyeb/api/test/test_google_protobuf_null_value.py index bf12fd53..56498e87 100644 --- a/koyeb/api/test/test_google_protobuf_null_value.py +++ b/koyeb/api/test/test_google_protobuf_null_value.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.google_protobuf_null_value import GoogleProtobufNullValue + class TestGoogleProtobufNullValue(unittest.TestCase): """GoogleProtobufNullValue unit test stubs""" @@ -29,5 +30,6 @@ def testGoogleProtobufNullValue(self): """Test GoogleProtobufNullValue""" # inst = GoogleProtobufNullValue() -if __name__ == '__main__': + +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 index 2d965688..a4ee6e8f 100644 --- a/koyeb/api/test/test_google_rpc_status.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.google_rpc_status import GoogleRpcStatus + class TestGoogleRpcStatus(unittest.TestCase): """GoogleRpcStatus unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> GoogleRpcStatus: """Test GoogleRpcStatus - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `GoogleRpcStatus` """ model = GoogleRpcStatus() @@ -53,5 +54,6 @@ def testGoogleRpcStatus(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_has_unpaid_invoices_reply.py b/koyeb/api/test/test_has_unpaid_invoices_reply.py index bdd4c4dc..e86689a7 100644 --- a/koyeb/api/test/test_has_unpaid_invoices_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.has_unpaid_invoices_reply import HasUnpaidInvoicesReply + class TestHasUnpaidInvoicesReply(unittest.TestCase): """HasUnpaidInvoicesReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HasUnpaidInvoicesReply: """Test HasUnpaidInvoicesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `HasUnpaidInvoicesReply` """ model = HasUnpaidInvoicesReply() @@ -47,5 +48,6 @@ def testHasUnpaidInvoicesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_http_header.py b/koyeb/api/test/test_http_header.py index 603e3890..63a002f9 100644 --- a/koyeb/api/test/test_http_header.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.http_header import HTTPHeader + class TestHTTPHeader(unittest.TestCase): """HTTPHeader unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HTTPHeader: """Test HTTPHeader - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `HTTPHeader` """ model = HTTPHeader() @@ -48,5 +49,6 @@ def testHTTPHeader(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_http_health_check.py b/koyeb/api/test/test_http_health_check.py index 4aaa6398..e4523119 100644 --- a/koyeb/api/test/test_http_health_check.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.http_health_check import HTTPHealthCheck + class TestHTTPHealthCheck(unittest.TestCase): """HTTPHealthCheck unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> HTTPHealthCheck: """Test HTTPHealthCheck - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `HTTPHealthCheck` """ model = HTTPHealthCheck() @@ -54,5 +55,6 @@ def testHTTPHealthCheck(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_instance.py b/koyeb/api/test/test_instance.py index daca168d..05403bdb 100644 --- a/koyeb/api/test/test_instance.py +++ b/koyeb/api/test/test_instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.instance import Instance + class TestInstance(unittest.TestCase): """Instance unit test stubs""" @@ -27,9 +28,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() @@ -67,5 +68,6 @@ 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 index acfedae9..604e7924 100644 --- a/koyeb/api/test/test_instance_availability.py +++ b/koyeb/api/test/test_instance_availability.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.instance_availability import InstanceAvailability + class TestInstanceAvailability(unittest.TestCase): """InstanceAvailability unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceAvailability: """Test InstanceAvailability - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `InstanceAvailability` """ model = InstanceAvailability() @@ -51,5 +52,6 @@ def testInstanceAvailability(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_instance_event.py b/koyeb/api/test/test_instance_event.py index 90d2546d..aa695eba 100644 --- a/koyeb/api/test/test_instance_event.py +++ b/koyeb/api/test/test_instance_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.instance_event import InstanceEvent + class TestInstanceEvent(unittest.TestCase): """InstanceEvent unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceEvent: """Test InstanceEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `InstanceEvent` """ model = InstanceEvent() @@ -53,5 +54,6 @@ def testInstanceEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_instance_list_item.py b/koyeb/api/test/test_instance_list_item.py index 19c34fd9..000f6421 100644 --- a/koyeb/api/test/test_instance_list_item.py +++ b/koyeb/api/test/test_instance_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.instance_list_item import InstanceListItem + class TestInstanceListItem(unittest.TestCase): """InstanceListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceListItem: """Test InstanceListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `InstanceListItem` """ model = InstanceListItem() @@ -63,5 +64,6 @@ def testInstanceListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_instance_status.py b/koyeb/api/test/test_instance_status.py index 32924969..0531f1a3 100644 --- a/koyeb/api/test/test_instance_status.py +++ b/koyeb/api/test/test_instance_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 @@ -16,6 +16,7 @@ from koyeb.api.models.instance_status import InstanceStatus + class TestInstanceStatus(unittest.TestCase): """InstanceStatus unit test stubs""" @@ -29,5 +30,6 @@ def testInstanceStatus(self): """Test InstanceStatus""" # inst = InstanceStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_instance_usage.py b/koyeb/api/test/test_instance_usage.py index b815bb1f..10da2253 100644 --- a/koyeb/api/test/test_instance_usage.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.instance_usage import InstanceUsage + class TestInstanceUsage(unittest.TestCase): """InstanceUsage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstanceUsage: """Test InstanceUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `InstanceUsage` """ model = InstanceUsage() @@ -47,5 +48,6 @@ def testInstanceUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_instances_api.py b/koyeb/api/test/test_instances_api.py index 87bd71fd..ad4a83a7 100644 --- a/koyeb/api/test/test_instances_api.py +++ b/koyeb/api/test/test_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 @@ -55,5 +55,5 @@ def test_list_instances(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_instances_summary.py b/koyeb/api/test/test_instances_summary.py index f10e7802..783944dd 100644 --- a/koyeb/api/test/test_instances_summary.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.instances_summary import InstancesSummary + class TestInstancesSummary(unittest.TestCase): """InstancesSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InstancesSummary: """Test InstancesSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `InstancesSummary` """ model = InstancesSummary() @@ -50,5 +51,6 @@ def testInstancesSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_intercom_api.py b/koyeb/api/test/test_intercom_api.py index e6d679cd..8d9856d3 100644 --- a/koyeb/api/test/test_intercom_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_get_intercom_profile(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_invite_api.py b/koyeb/api/test/test_invite_api.py index 9dc842ea..4eb83cdf 100644 --- a/koyeb/api/test/test_invite_api.py +++ b/koyeb/api/test/test_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 @@ -27,11 +27,9 @@ def tearDown(self) -> None: pass def test_create_invite(self) -> None: - """Test case for create_invite - - """ + """Test case for create_invite""" pass -if __name__ == '__main__': +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 index 5c9dc090..f1f986f6 100644 --- a/koyeb/api/test/test_invite_user_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.invite_user_request import InviteUserRequest + class TestInviteUserRequest(unittest.TestCase): """InviteUserRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> InviteUserRequest: """Test InviteUserRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `InviteUserRequest` """ model = InviteUserRequest() @@ -49,5 +50,6 @@ def testInviteUserRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_branch.py b/koyeb/api/test/test_kgitproxy_branch.py index 86d3822d..98d99d1e 100644 --- a/koyeb/api/test/test_kgitproxy_branch.py +++ b/koyeb/api/test/test_kgitproxy_branch.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.kgitproxy_branch import KgitproxyBranch + class TestKgitproxyBranch(unittest.TestCase): """KgitproxyBranch unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyBranch: """Test KgitproxyBranch - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KgitproxyBranch` """ model = KgitproxyBranch() @@ -53,5 +54,6 @@ def testKgitproxyBranch(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_git_hub_repository.py b/koyeb/api/test/test_kgitproxy_git_hub_repository.py index 675196ef..39a67b7f 100644 --- a/koyeb/api/test/test_kgitproxy_git_hub_repository.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.kgitproxy_git_hub_repository import KgitproxyGitHubRepository + class TestKgitproxyGitHubRepository(unittest.TestCase): """KgitproxyGitHubRepository unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyGitHubRepository: """Test KgitproxyGitHubRepository - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KgitproxyGitHubRepository` """ model = KgitproxyGitHubRepository() @@ -47,5 +48,6 @@ def testKgitproxyGitHubRepository(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_github_installation_status.py b/koyeb/api/test/test_kgitproxy_github_installation_status.py index 7e28cf25..bd44e828 100644 --- a/koyeb/api/test/test_kgitproxy_github_installation_status.py +++ b/koyeb/api/test/test_kgitproxy_github_installation_status.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.kgitproxy_github_installation_status import KgitproxyGithubInstallationStatus +from koyeb.api.models.kgitproxy_github_installation_status import ( + KgitproxyGithubInstallationStatus, +) + class TestKgitproxyGithubInstallationStatus(unittest.TestCase): """KgitproxyGithubInstallationStatus unit test stubs""" @@ -29,5 +32,6 @@ def testKgitproxyGithubInstallationStatus(self): """Test KgitproxyGithubInstallationStatus""" # inst = KgitproxyGithubInstallationStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_indexing_status.py b/koyeb/api/test/test_kgitproxy_indexing_status.py index f2bc2d36..72f247da 100644 --- a/koyeb/api/test/test_kgitproxy_indexing_status.py +++ b/koyeb/api/test/test_kgitproxy_indexing_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.kgitproxy_indexing_status import KgitproxyIndexingStatus + class TestKgitproxyIndexingStatus(unittest.TestCase): """KgitproxyIndexingStatus unit test stubs""" @@ -29,5 +30,6 @@ def testKgitproxyIndexingStatus(self): """Test KgitproxyIndexingStatus""" # inst = KgitproxyIndexingStatus() -if __name__ == '__main__': + +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 index 9c0a9223..db64d057 100644 --- a/koyeb/api/test/test_kgitproxy_list_branches_reply.py +++ b/koyeb/api/test/test_kgitproxy_list_branches_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.kgitproxy_list_branches_reply import KgitproxyListBranchesReply + class TestKgitproxyListBranchesReply(unittest.TestCase): """KgitproxyListBranchesReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyListBranchesReply: """Test KgitproxyListBranchesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KgitproxyListBranchesReply` """ model = KgitproxyListBranchesReply() @@ -59,5 +60,6 @@ def testKgitproxyListBranchesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_list_repositories_reply.py b/koyeb/api/test/test_kgitproxy_list_repositories_reply.py index 878b4750..e7a3228a 100644 --- a/koyeb/api/test/test_kgitproxy_list_repositories_reply.py +++ b/koyeb/api/test/test_kgitproxy_list_repositories_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.kgitproxy_list_repositories_reply import KgitproxyListRepositoriesReply +from koyeb.api.models.kgitproxy_list_repositories_reply import ( + KgitproxyListRepositoriesReply, +) + class TestKgitproxyListRepositoriesReply(unittest.TestCase): """KgitproxyListRepositoriesReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyListRepositoriesReply: """Test KgitproxyListRepositoriesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KgitproxyListRepositoriesReply` """ model = KgitproxyListRepositoriesReply() @@ -64,5 +67,6 @@ def testKgitproxyListRepositoriesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_repository.py b/koyeb/api/test/test_kgitproxy_repository.py index 152f610e..1e5bd426 100644 --- a/koyeb/api/test/test_kgitproxy_repository.py +++ b/koyeb/api/test/test_kgitproxy_repository.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.kgitproxy_repository import KgitproxyRepository + class TestKgitproxyRepository(unittest.TestCase): """KgitproxyRepository unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KgitproxyRepository: """Test KgitproxyRepository - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KgitproxyRepository` """ model = KgitproxyRepository() @@ -58,5 +59,6 @@ def testKgitproxyRepository(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_kgitproxy_repository_provider.py b/koyeb/api/test/test_kgitproxy_repository_provider.py index 43555eac..301e360a 100644 --- a/koyeb/api/test/test_kgitproxy_repository_provider.py +++ b/koyeb/api/test/test_kgitproxy_repository_provider.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.kgitproxy_repository_provider import KgitproxyRepositoryProvider + class TestKgitproxyRepositoryProvider(unittest.TestCase): """KgitproxyRepositoryProvider unit test stubs""" @@ -29,5 +30,6 @@ def testKgitproxyRepositoryProvider(self): """Test KgitproxyRepositoryProvider""" # inst = KgitproxyRepositoryProvider() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_app.py b/koyeb/api/test/test_ksearch_app.py index 326aab6d..8a098763 100644 --- a/koyeb/api/test/test_ksearch_app.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_app import KsearchApp + class TestKsearchApp(unittest.TestCase): """KsearchApp unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchApp: """Test KsearchApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchApp` """ model = KsearchApp() @@ -49,5 +50,6 @@ def testKsearchApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_global_deployment.py b/koyeb/api/test/test_ksearch_global_deployment.py index 04284ca3..4cb33b4d 100644 --- a/koyeb/api/test/test_ksearch_global_deployment.py +++ b/koyeb/api/test/test_ksearch_global_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_global_deployment import KsearchGlobalDeployment + class TestKsearchGlobalDeployment(unittest.TestCase): """KsearchGlobalDeployment unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchGlobalDeployment: """Test KsearchGlobalDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchGlobalDeployment` """ model = KsearchGlobalDeployment() @@ -50,5 +51,6 @@ def testKsearchGlobalDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_instance.py b/koyeb/api/test/test_ksearch_instance.py index 486d2e38..80aa30a3 100644 --- a/koyeb/api/test/test_ksearch_instance.py +++ b/koyeb/api/test/test_ksearch_instance.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_instance import KsearchInstance + class TestKsearchInstance(unittest.TestCase): """KsearchInstance unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchInstance: """Test KsearchInstance - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchInstance` """ model = KsearchInstance() @@ -51,5 +52,6 @@ def testKsearchInstance(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_organization.py b/koyeb/api/test/test_ksearch_organization.py index 7f2a744f..ecb10e4e 100644 --- a/koyeb/api/test/test_ksearch_organization.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_organization import KsearchOrganization + class TestKsearchOrganization(unittest.TestCase): """KsearchOrganization unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchOrganization: """Test KsearchOrganization - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchOrganization` """ model = KsearchOrganization() @@ -48,5 +49,6 @@ def testKsearchOrganization(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_regional_deployment.py b/koyeb/api/test/test_ksearch_regional_deployment.py index e12bd761..877c0546 100644 --- a/koyeb/api/test/test_ksearch_regional_deployment.py +++ b/koyeb/api/test/test_ksearch_regional_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_regional_deployment import KsearchRegionalDeployment + class TestKsearchRegionalDeployment(unittest.TestCase): """KsearchRegionalDeployment unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchRegionalDeployment: """Test KsearchRegionalDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchRegionalDeployment` """ model = KsearchRegionalDeployment() @@ -51,5 +52,6 @@ def testKsearchRegionalDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_search_reply.py b/koyeb/api/test/test_ksearch_search_reply.py index aa49a3d2..bdc86a72 100644 --- a/koyeb/api/test/test_ksearch_search_reply.py +++ b/koyeb/api/test/test_ksearch_search_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_search_reply import KsearchSearchReply + class TestKsearchSearchReply(unittest.TestCase): """KsearchSearchReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchSearchReply: """Test KsearchSearchReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchSearchReply` """ model = KsearchSearchReply() @@ -94,5 +95,6 @@ def testKsearchSearchReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_service.py b/koyeb/api/test/test_ksearch_service.py index 94cde172..8f67d98c 100644 --- a/koyeb/api/test/test_ksearch_service.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_service import KsearchService + class TestKsearchService(unittest.TestCase): """KsearchService unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchService: """Test KsearchService - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchService` """ model = KsearchService() @@ -50,5 +51,6 @@ def testKsearchService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_ksearch_user.py b/koyeb/api/test/test_ksearch_user.py index 94edbf99..1fada46f 100644 --- a/koyeb/api/test/test_ksearch_user.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.ksearch_user import KsearchUser + class TestKsearchUser(unittest.TestCase): """KsearchUser unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> KsearchUser: """Test KsearchUser - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `KsearchUser` """ model = KsearchUser() @@ -50,5 +51,6 @@ def testKsearchUser(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_app_events_reply.py b/koyeb/api/test/test_list_app_events_reply.py index f6a0a3d1..2d518ef9 100644 --- a/koyeb/api/test/test_list_app_events_reply.py +++ b/koyeb/api/test/test_list_app_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_app_events_reply import ListAppEventsReply + class TestListAppEventsReply(unittest.TestCase): """ListAppEventsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListAppEventsReply: """Test ListAppEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListAppEventsReply` """ model = ListAppEventsReply() @@ -60,5 +61,6 @@ def testListAppEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_apps_reply.py b/koyeb/api/test/test_list_apps_reply.py index 95f9311c..8e0c33cc 100644 --- a/koyeb/api/test/test_list_apps_reply.py +++ b/koyeb/api/test/test_list_apps_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_apps_reply import ListAppsReply + class TestListAppsReply(unittest.TestCase): """ListAppsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListAppsReply: """Test ListAppsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListAppsReply` """ model = ListAppsReply() @@ -83,5 +84,6 @@ def testListAppsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_catalog_instances_reply.py b/koyeb/api/test/test_list_catalog_instances_reply.py index e3ca5e6b..abd61948 100644 --- a/koyeb/api/test/test_list_catalog_instances_reply.py +++ b/koyeb/api/test/test_list_catalog_instances_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_catalog_instances_reply import ListCatalogInstancesReply + class TestListCatalogInstancesReply(unittest.TestCase): """ListCatalogInstancesReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListCatalogInstancesReply: """Test ListCatalogInstancesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListCatalogInstancesReply` """ model = ListCatalogInstancesReply() @@ -83,5 +84,6 @@ def testListCatalogInstancesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_credentials_reply.py b/koyeb/api/test/test_list_credentials_reply.py index 4ccbc213..e23194ee 100644 --- a/koyeb/api/test/test_list_credentials_reply.py +++ b/koyeb/api/test/test_list_credentials_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_credentials_reply import ListCredentialsReply + class TestListCredentialsReply(unittest.TestCase): """ListCredentialsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListCredentialsReply: """Test ListCredentialsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListCredentialsReply` """ model = ListCredentialsReply() @@ -62,5 +63,6 @@ def testListCredentialsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_datacenters_reply.py b/koyeb/api/test/test_list_datacenters_reply.py index 249131b4..24a47c40 100644 --- a/koyeb/api/test/test_list_datacenters_reply.py +++ b/koyeb/api/test/test_list_datacenters_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_datacenters_reply import ListDatacentersReply + class TestListDatacentersReply(unittest.TestCase): """ListDatacentersReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDatacentersReply: """Test ListDatacentersReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListDatacentersReply` """ model = ListDatacentersReply() @@ -59,5 +60,6 @@ def testListDatacentersReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_deployment_events_reply.py b/koyeb/api/test/test_list_deployment_events_reply.py index 19707958..2581d601 100644 --- a/koyeb/api/test/test_list_deployment_events_reply.py +++ b/koyeb/api/test/test_list_deployment_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_deployment_events_reply import ListDeploymentEventsReply + class TestListDeploymentEventsReply(unittest.TestCase): """ListDeploymentEventsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDeploymentEventsReply: """Test ListDeploymentEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListDeploymentEventsReply` """ model = ListDeploymentEventsReply() @@ -60,5 +61,6 @@ def testListDeploymentEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_deployments_reply.py b/koyeb/api/test/test_list_deployments_reply.py index 973464d4..a5afe641 100644 --- a/koyeb/api/test/test_list_deployments_reply.py +++ b/koyeb/api/test/test_list_deployments_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_deployments_reply import ListDeploymentsReply + class TestListDeploymentsReply(unittest.TestCase): """ListDeploymentsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDeploymentsReply: """Test ListDeploymentsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListDeploymentsReply` """ model = ListDeploymentsReply() @@ -222,5 +223,6 @@ def testListDeploymentsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_domains_reply.py b/koyeb/api/test/test_list_domains_reply.py index 5c4e67ef..5d39d389 100644 --- a/koyeb/api/test/test_list_domains_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.list_domains_reply import ListDomainsReply + class TestListDomainsReply(unittest.TestCase): """ListDomainsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListDomainsReply: """Test ListDomainsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListDomainsReply` """ model = ListDomainsReply() @@ -70,5 +71,6 @@ def testListDomainsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_instance_events_reply.py b/koyeb/api/test/test_list_instance_events_reply.py index e6e328aa..f9cd027f 100644 --- a/koyeb/api/test/test_list_instance_events_reply.py +++ b/koyeb/api/test/test_list_instance_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_instance_events_reply import ListInstanceEventsReply + class TestListInstanceEventsReply(unittest.TestCase): """ListInstanceEventsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListInstanceEventsReply: """Test ListInstanceEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListInstanceEventsReply` """ model = ListInstanceEventsReply() @@ -60,5 +61,6 @@ def testListInstanceEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_instances_reply.py b/koyeb/api/test/test_list_instances_reply.py index 54bb3532..38a495ee 100644 --- a/koyeb/api/test/test_list_instances_reply.py +++ b/koyeb/api/test/test_list_instances_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_instances_reply import ListInstancesReply + class TestListInstancesReply(unittest.TestCase): """ListInstancesReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListInstancesReply: """Test ListInstancesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListInstancesReply` """ model = ListInstancesReply() @@ -70,5 +71,6 @@ def testListInstancesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_organization_invitations_reply.py b/koyeb/api/test/test_list_organization_invitations_reply.py index 5109afd4..19379a1a 100644 --- a/koyeb/api/test/test_list_organization_invitations_reply.py +++ b/koyeb/api/test/test_list_organization_invitations_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.list_organization_invitations_reply import ListOrganizationInvitationsReply +from koyeb.api.models.list_organization_invitations_reply import ( + ListOrganizationInvitationsReply, +) + class TestListOrganizationInvitationsReply(unittest.TestCase): """ListOrganizationInvitationsReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListOrganizationInvitationsReply: """Test ListOrganizationInvitationsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListOrganizationInvitationsReply` """ model = ListOrganizationInvitationsReply() @@ -78,5 +81,6 @@ def testListOrganizationInvitationsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_organization_members_reply.py b/koyeb/api/test/test_list_organization_members_reply.py index 142909f6..3b3dc173 100644 --- a/koyeb/api/test/test_list_organization_members_reply.py +++ b/koyeb/api/test/test_list_organization_members_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.list_organization_members_reply import ListOrganizationMembersReply +from koyeb.api.models.list_organization_members_reply import ( + ListOrganizationMembersReply, +) + class TestListOrganizationMembersReply(unittest.TestCase): """ListOrganizationMembersReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListOrganizationMembersReply: """Test ListOrganizationMembersReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListOrganizationMembersReply` """ model = ListOrganizationMembersReply() @@ -69,5 +72,6 @@ def testListOrganizationMembersReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_payment_methods_reply.py b/koyeb/api/test/test_list_payment_methods_reply.py index ebd77147..ea8508db 100644 --- a/koyeb/api/test/test_list_payment_methods_reply.py +++ b/koyeb/api/test/test_list_payment_methods_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_payment_methods_reply import ListPaymentMethodsReply + class TestListPaymentMethodsReply(unittest.TestCase): """ListPaymentMethodsReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -75,5 +76,6 @@ 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 index f2925991..1e85a96e 100644 --- a/koyeb/api/test/test_list_persistent_volume_events_reply.py +++ b/koyeb/api/test/test_list_persistent_volume_events_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.list_persistent_volume_events_reply import ListPersistentVolumeEventsReply +from koyeb.api.models.list_persistent_volume_events_reply import ( + ListPersistentVolumeEventsReply, +) + class TestListPersistentVolumeEventsReply(unittest.TestCase): """ListPersistentVolumeEventsReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListPersistentVolumeEventsReply: """Test ListPersistentVolumeEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListPersistentVolumeEventsReply` """ model = ListPersistentVolumeEventsReply() @@ -60,5 +63,6 @@ def testListPersistentVolumeEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_persistent_volumes_reply.py b/koyeb/api/test/test_list_persistent_volumes_reply.py index ef08b876..6b15ebf5 100644 --- a/koyeb/api/test/test_list_persistent_volumes_reply.py +++ b/koyeb/api/test/test_list_persistent_volumes_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_persistent_volumes_reply import ListPersistentVolumesReply + class TestListPersistentVolumesReply(unittest.TestCase): """ListPersistentVolumesReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListPersistentVolumesReply: """Test ListPersistentVolumesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListPersistentVolumesReply` """ model = ListPersistentVolumesReply() @@ -66,5 +67,6 @@ def testListPersistentVolumesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_regional_deployment_events_reply.py b/koyeb/api/test/test_list_regional_deployment_events_reply.py index cfcffa46..f60090d6 100644 --- a/koyeb/api/test/test_list_regional_deployment_events_reply.py +++ b/koyeb/api/test/test_list_regional_deployment_events_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.list_regional_deployment_events_reply import ListRegionalDeploymentEventsReply +from koyeb.api.models.list_regional_deployment_events_reply import ( + ListRegionalDeploymentEventsReply, +) + class TestListRegionalDeploymentEventsReply(unittest.TestCase): """ListRegionalDeploymentEventsReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListRegionalDeploymentEventsReply: """Test ListRegionalDeploymentEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListRegionalDeploymentEventsReply` """ model = ListRegionalDeploymentEventsReply() @@ -60,5 +63,6 @@ def testListRegionalDeploymentEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_regional_deployments_reply.py b/koyeb/api/test/test_list_regional_deployments_reply.py index a0eb4e92..8102496d 100644 --- a/koyeb/api/test/test_list_regional_deployments_reply.py +++ b/koyeb/api/test/test_list_regional_deployments_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.list_regional_deployments_reply import ListRegionalDeploymentsReply +from koyeb.api.models.list_regional_deployments_reply import ( + ListRegionalDeploymentsReply, +) + class TestListRegionalDeploymentsReply(unittest.TestCase): """ListRegionalDeploymentsReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListRegionalDeploymentsReply: """Test ListRegionalDeploymentsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListRegionalDeploymentsReply` """ model = ListRegionalDeploymentsReply() @@ -162,5 +165,6 @@ def testListRegionalDeploymentsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_regions_reply.py b/koyeb/api/test/test_list_regions_reply.py index 5790e50c..35f5d99c 100644 --- a/koyeb/api/test/test_list_regions_reply.py +++ b/koyeb/api/test/test_list_regions_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_regions_reply import ListRegionsReply + class TestListRegionsReply(unittest.TestCase): """ListRegionsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListRegionsReply: """Test ListRegionsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListRegionsReply` """ model = ListRegionsReply() @@ -66,5 +67,6 @@ def testListRegionsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_secrets_reply.py b/koyeb/api/test/test_list_secrets_reply.py index a7f7e90c..03b6f8dc 100644 --- a/koyeb/api/test/test_list_secrets_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.list_secrets_reply import ListSecretsReply + class TestListSecretsReply(unittest.TestCase): """ListSecretsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListSecretsReply: """Test ListSecretsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListSecretsReply` """ model = ListSecretsReply() @@ -85,5 +86,6 @@ def testListSecretsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_service_events_reply.py b/koyeb/api/test/test_list_service_events_reply.py index 071eb9cf..360bc1a1 100644 --- a/koyeb/api/test/test_list_service_events_reply.py +++ b/koyeb/api/test/test_list_service_events_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_service_events_reply import ListServiceEventsReply + class TestListServiceEventsReply(unittest.TestCase): """ListServiceEventsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListServiceEventsReply: """Test ListServiceEventsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListServiceEventsReply` """ model = ListServiceEventsReply() @@ -60,5 +61,6 @@ def testListServiceEventsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_services_reply.py b/koyeb/api/test/test_list_services_reply.py index 0b3762af..32a38324 100644 --- a/koyeb/api/test/test_list_services_reply.py +++ b/koyeb/api/test/test_list_services_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_services_reply import ListServicesReply + class TestListServicesReply(unittest.TestCase): """ListServicesReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListServicesReply: """Test ListServicesReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListServicesReply` """ model = ListServicesReply() @@ -77,5 +78,6 @@ def testListServicesReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_snapshots_reply.py b/koyeb/api/test/test_list_snapshots_reply.py index 4027df9d..94647814 100644 --- a/koyeb/api/test/test_list_snapshots_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.list_snapshots_reply import ListSnapshotsReply + class TestListSnapshotsReply(unittest.TestCase): """ListSnapshotsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListSnapshotsReply: """Test ListSnapshotsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListSnapshotsReply` """ model = ListSnapshotsReply() @@ -63,5 +64,6 @@ def testListSnapshotsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_usage_reply.py b/koyeb/api/test/test_list_usage_reply.py index 8b2a06bf..c3df02da 100644 --- a/koyeb/api/test/test_list_usage_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.list_usage_reply import ListUsageReply + class TestListUsageReply(unittest.TestCase): """ListUsageReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListUsageReply: """Test ListUsageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListUsageReply` """ model = ListUsageReply() @@ -55,5 +56,6 @@ def testListUsageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_user_organization_invitations_reply.py b/koyeb/api/test/test_list_user_organization_invitations_reply.py index 42bb5f7e..39627bb9 100644 --- a/koyeb/api/test/test_list_user_organization_invitations_reply.py +++ b/koyeb/api/test/test_list_user_organization_invitations_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.list_user_organization_invitations_reply import ListUserOrganizationInvitationsReply +from koyeb.api.models.list_user_organization_invitations_reply import ( + ListUserOrganizationInvitationsReply, +) + class TestListUserOrganizationInvitationsReply(unittest.TestCase): """ListUserOrganizationInvitationsReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ListUserOrganizationInvitationsReply: """Test ListUserOrganizationInvitationsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ListUserOrganizationInvitationsReply` """ model = ListUserOrganizationInvitationsReply() @@ -78,5 +81,6 @@ def testListUserOrganizationInvitationsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_list_user_organizations_reply.py b/koyeb/api/test/test_list_user_organizations_reply.py index 5d2dee51..652ce7ca 100644 --- a/koyeb/api/test/test_list_user_organizations_reply.py +++ b/koyeb/api/test/test_list_user_organizations_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.list_user_organizations_reply import ListUserOrganizationsReply + class TestListUserOrganizationsReply(unittest.TestCase): """ListUserOrganizationsReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -84,5 +85,6 @@ 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 index 9c6f272e..2e282a6f 100644 --- a/koyeb/api/test/test_log_entry.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.log_entry import LogEntry + class TestLogEntry(unittest.TestCase): """LogEntry unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LogEntry: """Test LogEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `LogEntry` """ model = LogEntry() @@ -49,5 +50,6 @@ def testLogEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_login_method_reply.py b/koyeb/api/test/test_login_method_reply.py index 2f51be8a..168f747e 100644 --- a/koyeb/api/test/test_login_method_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.login_method_reply import LoginMethodReply + class TestLoginMethodReply(unittest.TestCase): """LoginMethodReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LoginMethodReply: """Test LoginMethodReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `LoginMethodReply` """ model = LoginMethodReply() @@ -47,5 +48,6 @@ def testLoginMethodReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_login_method_reply_method.py b/koyeb/api/test/test_login_method_reply_method.py index 868498af..ef942ce2 100644 --- a/koyeb/api/test/test_login_method_reply_method.py +++ b/koyeb/api/test/test_login_method_reply_method.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.login_method_reply_method import LoginMethodReplyMethod + class TestLoginMethodReplyMethod(unittest.TestCase): """LoginMethodReplyMethod unit test stubs""" @@ -29,5 +30,6 @@ def testLoginMethodReplyMethod(self): """Test LoginMethodReplyMethod""" # inst = LoginMethodReplyMethod() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_login_reply.py b/koyeb/api/test/test_login_reply.py index 757c3fcc..da013f55 100644 --- a/koyeb/api/test/test_login_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.login_reply import LoginReply + class TestLoginReply(unittest.TestCase): """LoginReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LoginReply: """Test LoginReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `LoginReply` """ model = LoginReply() @@ -47,5 +48,6 @@ def testLoginReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_login_request.py b/koyeb/api/test/test_login_request.py index 21d67803..3a94fa04 100644 --- a/koyeb/api/test/test_login_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.login_request import LoginRequest + class TestLoginRequest(unittest.TestCase): """LoginRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> LoginRequest: """Test LoginRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `LoginRequest` """ model = LoginRequest() @@ -49,5 +50,6 @@ def testLoginRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_logs_api.py b/koyeb/api/test/test_logs_api.py index 025cf454..b808dc9a 100644 --- a/koyeb/api/test/test_logs_api.py +++ b/koyeb/api/test/test_logs_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -41,5 +41,5 @@ def test_tail_logs(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_manage_reply.py b/koyeb/api/test/test_manage_reply.py index 0b82445f..dfc61b5f 100644 --- a/koyeb/api/test/test_manage_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.manage_reply import ManageReply + class TestManageReply(unittest.TestCase): """ManageReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ManageReply: """Test ManageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ManageReply` """ model = ManageReply() @@ -47,5 +48,6 @@ def testManageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_members_summary.py b/koyeb/api/test/test_members_summary.py index 118d14fb..5b464d79 100644 --- a/koyeb/api/test/test_members_summary.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.members_summary import MembersSummary + class TestMembersSummary(unittest.TestCase): """MembersSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> MembersSummary: """Test MembersSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `MembersSummary` """ model = MembersSummary() @@ -50,5 +51,6 @@ def testMembersSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_metric_name.py b/koyeb/api/test/test_metric_name.py index 037308ca..a78545d0 100644 --- a/koyeb/api/test/test_metric_name.py +++ b/koyeb/api/test/test_metric_name.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.metric_name import MetricName + class TestMetricName(unittest.TestCase): """MetricName unit test stubs""" @@ -29,5 +30,6 @@ def testMetricName(self): """Test MetricName""" # inst = MetricName() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_metrics_api.py b/koyeb/api/test/test_metrics_api.py index f5998ff9..1237e064 100644 --- a/koyeb/api/test/test_metrics_api.py +++ b/koyeb/api/test/test_metrics_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -34,5 +34,5 @@ def test_get_metrics(self) -> None: pass -if __name__ == '__main__': +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 index ad40d804..73bdd397 100644 --- a/koyeb/api/test/test_neon_postgres_database.py +++ b/koyeb/api/test/test_neon_postgres_database.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.neon_postgres_database import NeonPostgresDatabase + class TestNeonPostgresDatabase(unittest.TestCase): """NeonPostgresDatabase unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabase: """Test NeonPostgresDatabase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NeonPostgresDatabase` """ model = NeonPostgresDatabase() @@ -59,5 +60,6 @@ def testNeonPostgresDatabase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py b/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py index 1b0267cd..eb1ea7a8 100644 --- a/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py +++ b/koyeb/api/test/test_neon_postgres_database_deployment_metadata.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.neon_postgres_database_deployment_metadata import NeonPostgresDatabaseDeploymentMetadata +from koyeb.api.models.neon_postgres_database_deployment_metadata import ( + NeonPostgresDatabaseDeploymentMetadata, +) + class TestNeonPostgresDatabaseDeploymentMetadata(unittest.TestCase): """NeonPostgresDatabaseDeploymentMetadata unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabaseDeploymentMetadata: """Test NeonPostgresDatabaseDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NeonPostgresDatabaseDeploymentMetadata` """ model = NeonPostgresDatabaseDeploymentMetadata() @@ -49,5 +52,6 @@ def testNeonPostgresDatabaseDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_neon_postgres_database_neon_database.py b/koyeb/api/test/test_neon_postgres_database_neon_database.py index 8f981a61..9c6e92c8 100644 --- a/koyeb/api/test/test_neon_postgres_database_neon_database.py +++ b/koyeb/api/test/test_neon_postgres_database_neon_database.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.neon_postgres_database_neon_database import NeonPostgresDatabaseNeonDatabase +from koyeb.api.models.neon_postgres_database_neon_database import ( + NeonPostgresDatabaseNeonDatabase, +) + class TestNeonPostgresDatabaseNeonDatabase(unittest.TestCase): """NeonPostgresDatabaseNeonDatabase unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabaseNeonDatabase: """Test NeonPostgresDatabaseNeonDatabase - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NeonPostgresDatabaseNeonDatabase` """ model = NeonPostgresDatabaseNeonDatabase() @@ -48,5 +51,6 @@ def testNeonPostgresDatabaseNeonDatabase(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_neon_postgres_database_neon_role.py b/koyeb/api/test/test_neon_postgres_database_neon_role.py index dc4166cd..fd8dcdb9 100644 --- a/koyeb/api/test/test_neon_postgres_database_neon_role.py +++ b/koyeb/api/test/test_neon_postgres_database_neon_role.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.neon_postgres_database_neon_role import NeonPostgresDatabaseNeonRole +from koyeb.api.models.neon_postgres_database_neon_role import ( + NeonPostgresDatabaseNeonRole, +) + class TestNeonPostgresDatabaseNeonRole(unittest.TestCase): """NeonPostgresDatabaseNeonRole unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresDatabaseNeonRole: """Test NeonPostgresDatabaseNeonRole - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NeonPostgresDatabaseNeonRole` """ model = NeonPostgresDatabaseNeonRole() @@ -48,5 +51,6 @@ def testNeonPostgresDatabaseNeonRole(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_neon_postgres_summary.py b/koyeb/api/test/test_neon_postgres_summary.py index ba58fbe0..95f8044e 100644 --- a/koyeb/api/test/test_neon_postgres_summary.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.neon_postgres_summary import NeonPostgresSummary + class TestNeonPostgresSummary(unittest.TestCase): """NeonPostgresSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NeonPostgresSummary: """Test NeonPostgresSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NeonPostgresSummary` """ model = NeonPostgresSummary() @@ -50,5 +51,6 @@ def testNeonPostgresSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_next_invoice_reply.py b/koyeb/api/test/test_next_invoice_reply.py index d83bd1b9..4c3651b8 100644 --- a/koyeb/api/test/test_next_invoice_reply.py +++ b/koyeb/api/test/test_next_invoice_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.next_invoice_reply import NextInvoiceReply + class TestNextInvoiceReply(unittest.TestCase): """NextInvoiceReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReply: """Test NextInvoiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NextInvoiceReply` """ model = NextInvoiceReply() @@ -64,5 +65,6 @@ def testNextInvoiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_next_invoice_reply_discount.py b/koyeb/api/test/test_next_invoice_reply_discount.py index ca0b7261..4cef9600 100644 --- a/koyeb/api/test/test_next_invoice_reply_discount.py +++ b/koyeb/api/test/test_next_invoice_reply_discount.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.next_invoice_reply_discount import NextInvoiceReplyDiscount + class TestNextInvoiceReplyDiscount(unittest.TestCase): """NextInvoiceReplyDiscount unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyDiscount: """Test NextInvoiceReplyDiscount - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NextInvoiceReplyDiscount` """ model = NextInvoiceReplyDiscount() @@ -49,5 +50,6 @@ def testNextInvoiceReplyDiscount(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_next_invoice_reply_discount_type.py b/koyeb/api/test/test_next_invoice_reply_discount_type.py index 03276fca..5f5fb97a 100644 --- a/koyeb/api/test/test_next_invoice_reply_discount_type.py +++ b/koyeb/api/test/test_next_invoice_reply_discount_type.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.next_invoice_reply_discount_type import NextInvoiceReplyDiscountType +from koyeb.api.models.next_invoice_reply_discount_type import ( + NextInvoiceReplyDiscountType, +) + class TestNextInvoiceReplyDiscountType(unittest.TestCase): """NextInvoiceReplyDiscountType unit test stubs""" @@ -29,5 +32,6 @@ def testNextInvoiceReplyDiscountType(self): """Test NextInvoiceReplyDiscountType""" # inst = NextInvoiceReplyDiscountType() -if __name__ == '__main__': + +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 index 4171c4a3..4fef19b5 100644 --- a/koyeb/api/test/test_next_invoice_reply_line.py +++ b/koyeb/api/test/test_next_invoice_reply_line.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.next_invoice_reply_line import NextInvoiceReplyLine + class TestNextInvoiceReplyLine(unittest.TestCase): """NextInvoiceReplyLine unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyLine: """Test NextInvoiceReplyLine - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NextInvoiceReplyLine` """ model = NextInvoiceReplyLine() @@ -54,5 +55,6 @@ def testNextInvoiceReplyLine(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_next_invoice_reply_line_period.py b/koyeb/api/test/test_next_invoice_reply_line_period.py index 296ebea0..0e866b9c 100644 --- a/koyeb/api/test/test_next_invoice_reply_line_period.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.next_invoice_reply_line_period import NextInvoiceReplyLinePeriod + class TestNextInvoiceReplyLinePeriod(unittest.TestCase): """NextInvoiceReplyLinePeriod unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyLinePeriod: """Test NextInvoiceReplyLinePeriod - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NextInvoiceReplyLinePeriod` """ model = NextInvoiceReplyLinePeriod() @@ -48,5 +49,6 @@ def testNextInvoiceReplyLinePeriod(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_next_invoice_reply_line_price.py b/koyeb/api/test/test_next_invoice_reply_line_price.py index ca029bd7..722e9674 100644 --- a/koyeb/api/test/test_next_invoice_reply_line_price.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.next_invoice_reply_line_price import NextInvoiceReplyLinePrice + class TestNextInvoiceReplyLinePrice(unittest.TestCase): """NextInvoiceReplyLinePrice unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NextInvoiceReplyLinePrice: """Test NextInvoiceReplyLinePrice - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NextInvoiceReplyLinePrice` """ model = NextInvoiceReplyLinePrice() @@ -47,5 +48,6 @@ def testNextInvoiceReplyLinePrice(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_notification.py b/koyeb/api/test/test_notification.py index 33cbd477..4b6ef49e 100644 --- a/koyeb/api/test/test_notification.py +++ b/koyeb/api/test/test_notification.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.notification import Notification + class TestNotification(unittest.TestCase): """Notification unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Notification: """Test Notification - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Notification` """ model = Notification() @@ -67,5 +68,6 @@ def testNotification(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_notification_list.py b/koyeb/api/test/test_notification_list.py index e77c9995..05392d1e 100644 --- a/koyeb/api/test/test_notification_list.py +++ b/koyeb/api/test/test_notification_list.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.notification_list import NotificationList + class TestNotificationList(unittest.TestCase): """NotificationList unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> NotificationList: """Test NotificationList - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `NotificationList` """ model = NotificationList() @@ -77,5 +78,6 @@ def testNotificationList(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_o_auth_callback_reply.py b/koyeb/api/test/test_o_auth_callback_reply.py index 7c75f1da..a226a458 100644 --- a/koyeb/api/test/test_o_auth_callback_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.o_auth_callback_reply import OAuthCallbackReply + class TestOAuthCallbackReply(unittest.TestCase): """OAuthCallbackReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OAuthCallbackReply: """Test OAuthCallbackReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `OAuthCallbackReply` """ model = OAuthCallbackReply() @@ -47,5 +48,6 @@ def testOAuthCallbackReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_o_auth_callback_request.py b/koyeb/api/test/test_o_auth_callback_request.py index 34877502..39235674 100644 --- a/koyeb/api/test/test_o_auth_callback_request.py +++ b/koyeb/api/test/test_o_auth_callback_request.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.o_auth_callback_request import OAuthCallbackRequest + class TestOAuthCallbackRequest(unittest.TestCase): """OAuthCallbackRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OAuthCallbackRequest: """Test OAuthCallbackRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `OAuthCallbackRequest` """ model = OAuthCallbackRequest() @@ -50,5 +51,6 @@ def testOAuthCallbackRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_o_auth_provider.py b/koyeb/api/test/test_o_auth_provider.py index d0c8c70f..f381569e 100644 --- a/koyeb/api/test/test_o_auth_provider.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.o_auth_provider import OAuthProvider + class TestOAuthProvider(unittest.TestCase): """OAuthProvider unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OAuthProvider: """Test OAuthProvider - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `OAuthProvider` """ model = OAuthProvider() @@ -49,5 +50,6 @@ def testOAuthProvider(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_object.py b/koyeb/api/test/test_object.py index 24511405..205340cf 100644 --- a/koyeb/api/test/test_object.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.object import Object + class TestObject(unittest.TestCase): """Object unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Object: """Test Object - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Object` """ model = Object() @@ -51,5 +52,6 @@ def testObject(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization.py b/koyeb/api/test/test_organization.py index 5e343f9b..7b25b9c1 100644 --- a/koyeb/api/test/test_organization.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.organization import Organization + class TestOrganization(unittest.TestCase): """Organization unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -78,5 +79,6 @@ 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/api/test/test_organization_api.py b/koyeb/api/test/test_organization_api.py index cb21e975..047f7ba5 100644 --- a/koyeb/api/test/test_organization_api.py +++ b/koyeb/api/test/test_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 @@ -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 index 6946632f..35ac6ca5 100644 --- a/koyeb/api/test/test_organization_confirmations_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_confirm_organization_action(self) -> None: pass -if __name__ == '__main__': +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 index ab5800e1..09cb4996 100644 --- a/koyeb/api/test/test_organization_deactivation_reason.py +++ b/koyeb/api/test/test_organization_deactivation_reason.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.organization_deactivation_reason import OrganizationDeactivationReason +from koyeb.api.models.organization_deactivation_reason import ( + OrganizationDeactivationReason, +) + class TestOrganizationDeactivationReason(unittest.TestCase): """OrganizationDeactivationReason unit test stubs""" @@ -29,5 +32,6 @@ def testOrganizationDeactivationReason(self): """Test OrganizationDeactivationReason""" # inst = OrganizationDeactivationReason() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_detailed_status.py b/koyeb/api/test/test_organization_detailed_status.py index 0ae63f16..de34ff4f 100644 --- a/koyeb/api/test/test_organization_detailed_status.py +++ b/koyeb/api/test/test_organization_detailed_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 @@ -16,6 +16,7 @@ from koyeb.api.models.organization_detailed_status import OrganizationDetailedStatus + class TestOrganizationDetailedStatus(unittest.TestCase): """OrganizationDetailedStatus unit test stubs""" @@ -29,5 +30,6 @@ def testOrganizationDetailedStatus(self): """Test OrganizationDetailedStatus""" # inst = OrganizationDetailedStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_invitation.py b/koyeb/api/test/test_organization_invitation.py index 6787eda7..62d719d1 100644 --- a/koyeb/api/test/test_organization_invitation.py +++ b/koyeb/api/test/test_organization_invitation.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.organization_invitation import OrganizationInvitation + class TestOrganizationInvitation(unittest.TestCase): """OrganizationInvitation unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OrganizationInvitation: """Test OrganizationInvitation - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `OrganizationInvitation` """ model = OrganizationInvitation() @@ -73,5 +74,6 @@ def testOrganizationInvitation(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_invitation_status.py b/koyeb/api/test/test_organization_invitation_status.py index e3baed9f..f726debb 100644 --- a/koyeb/api/test/test_organization_invitation_status.py +++ b/koyeb/api/test/test_organization_invitation_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.organization_invitation_status import OrganizationInvitationStatus + class TestOrganizationInvitationStatus(unittest.TestCase): """OrganizationInvitationStatus unit test stubs""" @@ -29,5 +30,6 @@ def testOrganizationInvitationStatus(self): """Test OrganizationInvitationStatus""" # inst = OrganizationInvitationStatus() -if __name__ == '__main__': + +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 index 6cce4d9a..70799970 100644 --- a/koyeb/api/test/test_organization_invitations_api.py +++ b/koyeb/api/test/test_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 @@ -62,5 +62,5 @@ def test_resend_organization_invitation(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_member.py b/koyeb/api/test/test_organization_member.py index 5e73f59a..54f8d477 100644 --- a/koyeb/api/test/test_organization_member.py +++ b/koyeb/api/test/test_organization_member.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.organization_member import OrganizationMember + class TestOrganizationMember(unittest.TestCase): """OrganizationMember unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OrganizationMember: """Test OrganizationMember - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `OrganizationMember` """ model = OrganizationMember() @@ -64,5 +65,6 @@ def testOrganizationMember(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_member_status.py b/koyeb/api/test/test_organization_member_status.py index e1cde224..277468d1 100644 --- a/koyeb/api/test/test_organization_member_status.py +++ b/koyeb/api/test/test_organization_member_status.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.organization_member_status import OrganizationMemberStatus + class TestOrganizationMemberStatus(unittest.TestCase): """OrganizationMemberStatus unit test stubs""" @@ -29,5 +30,6 @@ def testOrganizationMemberStatus(self): """Test OrganizationMemberStatus""" # inst = OrganizationMemberStatus() -if __name__ == '__main__': + +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 index 4120d374..61af7fbc 100644 --- a/koyeb/api/test/test_organization_members_api.py +++ b/koyeb/api/test/test_organization_members_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -41,5 +41,5 @@ def test_remove_organization_member(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_quotas_api.py b/koyeb/api/test/test_organization_quotas_api.py index 881d6a63..98a21153 100644 --- a/koyeb/api/test/test_organization_quotas_api.py +++ b/koyeb/api/test/test_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 @@ -27,11 +27,9 @@ def tearDown(self) -> None: pass def test_get_quotas(self) -> None: - """Test case for get_quotas - - """ + """Test case for get_quotas""" pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_status.py b/koyeb/api/test/test_organization_status.py index 999e3922..d4408e54 100644 --- a/koyeb/api/test/test_organization_status.py +++ b/koyeb/api/test/test_organization_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 @@ -16,6 +16,7 @@ from koyeb.api.models.organization_status import OrganizationStatus + class TestOrganizationStatus(unittest.TestCase): """OrganizationStatus unit test stubs""" @@ -29,5 +30,6 @@ def testOrganizationStatus(self): """Test OrganizationStatus""" # inst = OrganizationStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_organization_summary.py b/koyeb/api/test/test_organization_summary.py index 18aed848..db4da7f6 100644 --- a/koyeb/api/test/test_organization_summary.py +++ b/koyeb/api/test/test_organization_summary.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.organization_summary import OrganizationSummary + class TestOrganizationSummary(unittest.TestCase): """OrganizationSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> OrganizationSummary: """Test OrganizationSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `OrganizationSummary` """ model = OrganizationSummary() @@ -84,5 +85,6 @@ def testOrganizationSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_payment_method.py b/koyeb/api/test/test_payment_method.py index 0975e378..e43412c9 100644 --- a/koyeb/api/test/test_payment_method.py +++ b/koyeb/api/test/test_payment_method.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.payment_method import PaymentMethod + class TestPaymentMethod(unittest.TestCase): """PaymentMethod unit test stubs""" @@ -27,9 +28,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() @@ -69,5 +70,6 @@ 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 index 9ecf478b..52850fed 100644 --- a/koyeb/api/test/test_payment_method_status.py +++ b/koyeb/api/test/test_payment_method_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 @@ -16,6 +16,7 @@ from koyeb.api.models.payment_method_status import PaymentMethodStatus + class TestPaymentMethodStatus(unittest.TestCase): """PaymentMethodStatus unit test stubs""" @@ -29,5 +30,6 @@ def testPaymentMethodStatus(self): """Test PaymentMethodStatus""" # inst = PaymentMethodStatus() -if __name__ == '__main__': + +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 index 1a4a1187..dadfd491 100644 --- a/koyeb/api/test/test_payment_methods_api.py +++ b/koyeb/api/test/test_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 @@ -62,5 +62,5 @@ def test_list_payment_methods(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_period_usage.py b/koyeb/api/test/test_period_usage.py index 9f94f88c..63959978 100644 --- a/koyeb/api/test/test_period_usage.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.period_usage import PeriodUsage + class TestPeriodUsage(unittest.TestCase): """PeriodUsage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PeriodUsage: """Test PeriodUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PeriodUsage` """ model = PeriodUsage() @@ -72,5 +73,6 @@ def testPeriodUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_persistent_volume.py b/koyeb/api/test/test_persistent_volume.py index 5fad7fe2..dc9326a9 100644 --- a/koyeb/api/test/test_persistent_volume.py +++ b/koyeb/api/test/test_persistent_volume.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.persistent_volume import PersistentVolume + class TestPersistentVolume(unittest.TestCase): """PersistentVolume unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PersistentVolume: """Test PersistentVolume - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PersistentVolume` """ model = PersistentVolume() @@ -60,5 +61,6 @@ def testPersistentVolume(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_persistent_volume_backing_store.py b/koyeb/api/test/test_persistent_volume_backing_store.py index 79baf817..97567caf 100644 --- a/koyeb/api/test/test_persistent_volume_backing_store.py +++ b/koyeb/api/test/test_persistent_volume_backing_store.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.persistent_volume_backing_store import PersistentVolumeBackingStore +from koyeb.api.models.persistent_volume_backing_store import ( + PersistentVolumeBackingStore, +) + class TestPersistentVolumeBackingStore(unittest.TestCase): """PersistentVolumeBackingStore unit test stubs""" @@ -29,5 +32,6 @@ def testPersistentVolumeBackingStore(self): """Test PersistentVolumeBackingStore""" # inst = PersistentVolumeBackingStore() -if __name__ == '__main__': + +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 index d1874444..a2ef5b38 100644 --- a/koyeb/api/test/test_persistent_volume_event.py +++ b/koyeb/api/test/test_persistent_volume_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.persistent_volume_event import PersistentVolumeEvent + class TestPersistentVolumeEvent(unittest.TestCase): """PersistentVolumeEvent unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PersistentVolumeEvent: """Test PersistentVolumeEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PersistentVolumeEvent` """ model = PersistentVolumeEvent() @@ -53,5 +54,6 @@ def testPersistentVolumeEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_persistent_volume_quotas.py b/koyeb/api/test/test_persistent_volume_quotas.py index 504abe8d..c8617c64 100644 --- a/koyeb/api/test/test_persistent_volume_quotas.py +++ b/koyeb/api/test/test_persistent_volume_quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.persistent_volume_quotas import PersistentVolumeQuotas + class TestPersistentVolumeQuotas(unittest.TestCase): """PersistentVolumeQuotas unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PersistentVolumeQuotas: """Test PersistentVolumeQuotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PersistentVolumeQuotas` """ model = PersistentVolumeQuotas() @@ -49,5 +50,6 @@ def testPersistentVolumeQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_persistent_volume_status.py b/koyeb/api/test/test_persistent_volume_status.py index 72479d5a..cfe95464 100644 --- a/koyeb/api/test/test_persistent_volume_status.py +++ b/koyeb/api/test/test_persistent_volume_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 @@ -16,6 +16,7 @@ from koyeb.api.models.persistent_volume_status import PersistentVolumeStatus + class TestPersistentVolumeStatus(unittest.TestCase): """PersistentVolumeStatus unit test stubs""" @@ -29,5 +30,6 @@ def testPersistentVolumeStatus(self): """Test PersistentVolumeStatus""" # inst = PersistentVolumeStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_persistent_volumes_api.py b/koyeb/api/test/test_persistent_volumes_api.py index 0d100236..91e93b5f 100644 --- a/koyeb/api/test/test_persistent_volumes_api.py +++ b/koyeb/api/test/test_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 @@ -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 index b5cd7202..2f7a249e 100644 --- a/koyeb/api/test/test_plan.py +++ b/koyeb/api/test/test_plan.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.plan import Plan + class TestPlan(unittest.TestCase): """Plan unit test stubs""" @@ -29,5 +30,6 @@ def testPlan(self): """Test Plan""" # inst = Plan() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_port.py b/koyeb/api/test/test_port.py index d0236d48..ffd1a2d7 100644 --- a/koyeb/api/test/test_port.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.port import Port + class TestPort(unittest.TestCase): """Port unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Port: """Test Port - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Port` """ model = Port() @@ -48,5 +49,6 @@ def testPort(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_private_registry_configuration.py b/koyeb/api/test/test_private_registry_configuration.py index 25d05bc6..deb8b68f 100644 --- a/koyeb/api/test/test_private_registry_configuration.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.private_registry_configuration import PrivateRegistryConfiguration + class TestPrivateRegistryConfiguration(unittest.TestCase): """PrivateRegistryConfiguration unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PrivateRegistryConfiguration: """Test PrivateRegistryConfiguration - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PrivateRegistryConfiguration` """ model = PrivateRegistryConfiguration() @@ -49,5 +50,6 @@ def testPrivateRegistryConfiguration(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_profile_api.py b/koyeb/api/test/test_profile_api.py index 5be81e08..97d610bc 100644 --- a/koyeb/api/test/test_profile_api.py +++ b/koyeb/api/test/test_profile_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -83,9 +83,7 @@ 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: @@ -159,9 +157,7 @@ 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: @@ -186,5 +182,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 index 7d4e1ddf..bcb61dc5 100644 --- a/koyeb/api/test/test_provisioning_api.py +++ b/koyeb/api/test/test_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 @@ -48,5 +48,5 @@ def test_declare_step_progress(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_proxy_port_protocol.py b/koyeb/api/test/test_proxy_port_protocol.py index 094b1254..d483326c 100644 --- a/koyeb/api/test/test_proxy_port_protocol.py +++ b/koyeb/api/test/test_proxy_port_protocol.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.proxy_port_protocol import ProxyPortProtocol + class TestProxyPortProtocol(unittest.TestCase): """ProxyPortProtocol unit test stubs""" @@ -29,5 +30,6 @@ def testProxyPortProtocol(self): """Test ProxyPortProtocol""" # inst = ProxyPortProtocol() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_public_organization.py b/koyeb/api/test/test_public_organization.py index 2d5f658a..30e10fe6 100644 --- a/koyeb/api/test/test_public_organization.py +++ b/koyeb/api/test/test_public_organization.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.public_organization import PublicOrganization + class TestPublicOrganization(unittest.TestCase): """PublicOrganization unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PublicOrganization: """Test PublicOrganization - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PublicOrganization` """ model = PublicOrganization() @@ -50,5 +51,6 @@ def testPublicOrganization(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_public_user.py b/koyeb/api/test/test_public_user.py index abd08baf..bd09e5e4 100644 --- a/koyeb/api/test/test_public_user.py +++ b/koyeb/api/test/test_public_user.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.public_user import PublicUser + class TestPublicUser(unittest.TestCase): """PublicUser unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> PublicUser: """Test PublicUser - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `PublicUser` """ model = PublicUser() @@ -52,5 +53,6 @@ def testPublicUser(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_query_logs_reply.py b/koyeb/api/test/test_query_logs_reply.py index b637d279..030aca8b 100644 --- a/koyeb/api/test/test_query_logs_reply.py +++ b/koyeb/api/test/test_query_logs_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.query_logs_reply import QueryLogsReply + class TestQueryLogsReply(unittest.TestCase): """QueryLogsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> QueryLogsReply: """Test QueryLogsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `QueryLogsReply` """ model = QueryLogsReply() @@ -56,5 +57,6 @@ def testQueryLogsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_query_logs_reply_pagination.py b/koyeb/api/test/test_query_logs_reply_pagination.py index cea01a9d..2841e61b 100644 --- a/koyeb/api/test/test_query_logs_reply_pagination.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.query_logs_reply_pagination import QueryLogsReplyPagination + class TestQueryLogsReplyPagination(unittest.TestCase): """QueryLogsReplyPagination unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> QueryLogsReplyPagination: """Test QueryLogsReplyPagination - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `QueryLogsReplyPagination` """ model = QueryLogsReplyPagination() @@ -49,5 +50,6 @@ def testQueryLogsReplyPagination(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_quotas.py b/koyeb/api/test/test_quotas.py index bbb12f3d..76a5b4eb 100644 --- a/koyeb/api/test/test_quotas.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.quotas import Quotas + class TestQuotas(unittest.TestCase): """Quotas unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Quotas: """Test Quotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Quotas` """ model = Quotas() @@ -86,5 +87,6 @@ def testQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_quotas_api.py b/koyeb/api/test/test_quotas_api.py index da5e0c58..947e8b1e 100644 --- a/koyeb/api/test/test_quotas_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_review_organization_capacity(self) -> None: pass -if __name__ == '__main__': +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 index d54fe56d..c4718a21 100644 --- a/koyeb/api/test/test_reactivate_organization_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.reactivate_organization_reply import ReactivateOrganizationReply + class TestReactivateOrganizationReply(unittest.TestCase): """ReactivateOrganizationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ReactivateOrganizationReply: """Test ReactivateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ReactivateOrganizationReply` """ model = ReactivateOrganizationReply() @@ -79,5 +80,6 @@ def testReactivateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_redeem_coupon_request.py b/koyeb/api/test/test_redeem_coupon_request.py index 42c42d7d..e5a07214 100644 --- a/koyeb/api/test/test_redeem_coupon_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.redeem_coupon_request import RedeemCouponRequest + class TestRedeemCouponRequest(unittest.TestCase): """RedeemCouponRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RedeemCouponRequest: """Test RedeemCouponRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RedeemCouponRequest` """ model = RedeemCouponRequest() @@ -47,5 +48,6 @@ def testRedeemCouponRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_redeploy_reply.py b/koyeb/api/test/test_redeploy_reply.py index 2a517c6b..bbbfb3d5 100644 --- a/koyeb/api/test/test_redeploy_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.redeploy_reply import RedeployReply + class TestRedeployReply(unittest.TestCase): """RedeployReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RedeployReply: """Test RedeployReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RedeployReply` """ model = RedeployReply() @@ -218,5 +219,6 @@ def testRedeployReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_redeploy_request_info.py b/koyeb/api/test/test_redeploy_request_info.py index 4c2389b2..0f14e8ef 100644 --- a/koyeb/api/test/test_redeploy_request_info.py +++ b/koyeb/api/test/test_redeploy_request_info.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.redeploy_request_info import RedeployRequestInfo + class TestRedeployRequestInfo(unittest.TestCase): """RedeployRequestInfo unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RedeployRequestInfo: """Test RedeployRequestInfo - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RedeployRequestInfo` """ model = RedeployRequestInfo() @@ -50,5 +51,6 @@ def testRedeployRequestInfo(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_region.py b/koyeb/api/test/test_region.py index 2bd2d45e..f2023ca4 100644 --- a/koyeb/api/test/test_region.py +++ b/koyeb/api/test/test_region.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.region import Region + class TestRegion(unittest.TestCase): """Region unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Region: """Test Region - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Region` """ model = Region() @@ -60,5 +61,6 @@ def testRegion(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_region_availability.py b/koyeb/api/test/test_region_availability.py index 0ca2c4bd..bd4eb9db 100644 --- a/koyeb/api/test/test_region_availability.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.region_availability import RegionAvailability + class TestRegionAvailability(unittest.TestCase): """RegionAvailability unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionAvailability: """Test RegionAvailability - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionAvailability` """ model = RegionAvailability() @@ -47,5 +48,6 @@ def testRegionAvailability(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_region_list_item.py b/koyeb/api/test/test_region_list_item.py index 17e11396..ea0b6ac8 100644 --- a/koyeb/api/test/test_region_list_item.py +++ b/koyeb/api/test/test_region_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.region_list_item import RegionListItem + class TestRegionListItem(unittest.TestCase): """RegionListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionListItem: """Test RegionListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionListItem` """ model = RegionListItem() @@ -60,5 +61,6 @@ def testRegionListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_region_usage.py b/koyeb/api/test/test_region_usage.py index 15b1e553..d865be1a 100644 --- a/koyeb/api/test/test_region_usage.py +++ b/koyeb/api/test/test_region_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.region_usage import RegionUsage + class TestRegionUsage(unittest.TestCase): """RegionUsage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionUsage: """Test RegionUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionUsage` """ model = RegionUsage() @@ -50,5 +51,6 @@ def testRegionUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_regional_deployment.py b/koyeb/api/test/test_regional_deployment.py index b90a266c..67a4fe24 100644 --- a/koyeb/api/test/test_regional_deployment.py +++ b/koyeb/api/test/test_regional_deployment.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.regional_deployment import RegionalDeployment + class TestRegionalDeployment(unittest.TestCase): """RegionalDeployment unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeployment: """Test RegionalDeployment - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionalDeployment` """ model = RegionalDeployment() @@ -202,5 +203,6 @@ def testRegionalDeployment(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_regional_deployment_definition.py b/koyeb/api/test/test_regional_deployment_definition.py index 4d794d76..8fac6d61 100644 --- a/koyeb/api/test/test_regional_deployment_definition.py +++ b/koyeb/api/test/test_regional_deployment_definition.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.regional_deployment_definition import RegionalDeploymentDefinition + class TestRegionalDeploymentDefinition(unittest.TestCase): """RegionalDeploymentDefinition unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentDefinition: """Test RegionalDeploymentDefinition - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionalDeploymentDefinition` """ model = RegionalDeploymentDefinition() @@ -173,5 +174,6 @@ def testRegionalDeploymentDefinition(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_regional_deployment_definition_type.py b/koyeb/api/test/test_regional_deployment_definition_type.py index b1259310..01371952 100644 --- a/koyeb/api/test/test_regional_deployment_definition_type.py +++ b/koyeb/api/test/test_regional_deployment_definition_type.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.regional_deployment_definition_type import RegionalDeploymentDefinitionType +from koyeb.api.models.regional_deployment_definition_type import ( + RegionalDeploymentDefinitionType, +) + class TestRegionalDeploymentDefinitionType(unittest.TestCase): """RegionalDeploymentDefinitionType unit test stubs""" @@ -29,5 +32,6 @@ def testRegionalDeploymentDefinitionType(self): """Test RegionalDeploymentDefinitionType""" # inst = RegionalDeploymentDefinitionType() -if __name__ == '__main__': + +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 index 3a6ba82d..48bfa408 100644 --- a/koyeb/api/test/test_regional_deployment_event.py +++ b/koyeb/api/test/test_regional_deployment_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.regional_deployment_event import RegionalDeploymentEvent + class TestRegionalDeploymentEvent(unittest.TestCase): """RegionalDeploymentEvent unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentEvent: """Test RegionalDeploymentEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionalDeploymentEvent` """ model = RegionalDeploymentEvent() @@ -53,5 +54,6 @@ def testRegionalDeploymentEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_regional_deployment_list_item.py b/koyeb/api/test/test_regional_deployment_list_item.py index 393fcc62..e9a378e9 100644 --- a/koyeb/api/test/test_regional_deployment_list_item.py +++ b/koyeb/api/test/test_regional_deployment_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.regional_deployment_list_item import RegionalDeploymentListItem + class TestRegionalDeploymentListItem(unittest.TestCase): """RegionalDeploymentListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentListItem: """Test RegionalDeploymentListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionalDeploymentListItem` """ model = RegionalDeploymentListItem() @@ -155,5 +156,6 @@ def testRegionalDeploymentListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_regional_deployment_role.py b/koyeb/api/test/test_regional_deployment_role.py index e371a629..8f0340b2 100644 --- a/koyeb/api/test/test_regional_deployment_role.py +++ b/koyeb/api/test/test_regional_deployment_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.regional_deployment_role import RegionalDeploymentRole + class TestRegionalDeploymentRole(unittest.TestCase): """RegionalDeploymentRole unit test stubs""" @@ -29,5 +30,6 @@ def testRegionalDeploymentRole(self): """Test RegionalDeploymentRole""" # inst = RegionalDeploymentRole() -if __name__ == '__main__': + +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 index 7c00e754..0e59e179 100644 --- a/koyeb/api/test/test_regional_deployment_status.py +++ b/koyeb/api/test/test_regional_deployment_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 @@ -16,6 +16,7 @@ from koyeb.api.models.regional_deployment_status import RegionalDeploymentStatus + class TestRegionalDeploymentStatus(unittest.TestCase): """RegionalDeploymentStatus unit test stubs""" @@ -29,5 +30,6 @@ def testRegionalDeploymentStatus(self): """Test RegionalDeploymentStatus""" # inst = RegionalDeploymentStatus() -if __name__ == '__main__': + +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 index 96e1f417..6a3db9a9 100644 --- a/koyeb/api/test/test_regional_deployment_volume.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.regional_deployment_volume import RegionalDeploymentVolume + class TestRegionalDeploymentVolume(unittest.TestCase): """RegionalDeploymentVolume unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RegionalDeploymentVolume: """Test RegionalDeploymentVolume - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RegionalDeploymentVolume` """ model = RegionalDeploymentVolume() @@ -49,5 +50,6 @@ def testRegionalDeploymentVolume(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_regional_deployments_api.py b/koyeb/api/test/test_regional_deployments_api.py index c408ddb3..372cf73a 100644 --- a/koyeb/api/test/test_regional_deployments_api.py +++ b/koyeb/api/test/test_regional_deployments_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -48,5 +48,5 @@ def test_list_regional_deployments(self) -> None: pass -if __name__ == '__main__': +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 index 83add0dd..d9b2c71f 100644 --- a/koyeb/api/test/test_remove_organization_member_reply.py +++ b/koyeb/api/test/test_remove_organization_member_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.remove_organization_member_reply import RemoveOrganizationMemberReply +from koyeb.api.models.remove_organization_member_reply import ( + RemoveOrganizationMemberReply, +) + class TestRemoveOrganizationMemberReply(unittest.TestCase): """RemoveOrganizationMemberReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RemoveOrganizationMemberReply: """Test RemoveOrganizationMemberReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RemoveOrganizationMemberReply` """ model = RemoveOrganizationMemberReply() @@ -64,5 +67,6 @@ def testRemoveOrganizationMemberReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_repositories_api.py b/koyeb/api/test/test_repositories_api.py index 376cb9ce..8ebc4b64 100644 --- a/koyeb/api/test/test_repositories_api.py +++ b/koyeb/api/test/test_repositories_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -48,5 +48,5 @@ def test_resync_organization(self) -> None: pass -if __name__ == '__main__': +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 index 981c760d..a89ea4aa 100644 --- a/koyeb/api/test/test_resend_organization_invitation_reply.py +++ b/koyeb/api/test/test_resend_organization_invitation_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.resend_organization_invitation_reply import ResendOrganizationInvitationReply +from koyeb.api.models.resend_organization_invitation_reply import ( + ResendOrganizationInvitationReply, +) + class TestResendOrganizationInvitationReply(unittest.TestCase): """ResendOrganizationInvitationReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ResendOrganizationInvitationReply: """Test ResendOrganizationInvitationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ResendOrganizationInvitationReply` """ model = ResendOrganizationInvitationReply() @@ -73,5 +76,6 @@ def testResendOrganizationInvitationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_reset_password_request.py b/koyeb/api/test/test_reset_password_request.py index 7724bdfd..7c66d297 100644 --- a/koyeb/api/test/test_reset_password_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.reset_password_request import ResetPasswordRequest + class TestResetPasswordRequest(unittest.TestCase): """ResetPasswordRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ResetPasswordRequest: """Test ResetPasswordRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ResetPasswordRequest` """ model = ResetPasswordRequest() @@ -47,5 +48,6 @@ def testResetPasswordRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_reveal_secret_reply.py b/koyeb/api/test/test_reveal_secret_reply.py index 58b39fe4..f7974373 100644 --- a/koyeb/api/test/test_reveal_secret_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.reveal_secret_reply import RevealSecretReply + class TestRevealSecretReply(unittest.TestCase): """RevealSecretReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> RevealSecretReply: """Test RevealSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `RevealSecretReply` """ model = RevealSecretReply() @@ -47,5 +48,6 @@ def testRevealSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_review_organization_capacity_reply.py b/koyeb/api/test/test_review_organization_capacity_reply.py index 0f065569..6f0cf082 100644 --- a/koyeb/api/test/test_review_organization_capacity_reply.py +++ b/koyeb/api/test/test_review_organization_capacity_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.review_organization_capacity_reply import ReviewOrganizationCapacityReply +from koyeb.api.models.review_organization_capacity_reply import ( + ReviewOrganizationCapacityReply, +) + class TestReviewOrganizationCapacityReply(unittest.TestCase): """ReviewOrganizationCapacityReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ReviewOrganizationCapacityReply: """Test ReviewOrganizationCapacityReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ReviewOrganizationCapacityReply` """ model = ReviewOrganizationCapacityReply() @@ -47,5 +50,6 @@ def testReviewOrganizationCapacityReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_review_organization_capacity_request.py b/koyeb/api/test/test_review_organization_capacity_request.py index 768a139b..6507d844 100644 --- a/koyeb/api/test/test_review_organization_capacity_request.py +++ b/koyeb/api/test/test_review_organization_capacity_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.review_organization_capacity_request import ReviewOrganizationCapacityRequest +from koyeb.api.models.review_organization_capacity_request import ( + ReviewOrganizationCapacityRequest, +) + class TestReviewOrganizationCapacityRequest(unittest.TestCase): """ReviewOrganizationCapacityRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ReviewOrganizationCapacityRequest: """Test ReviewOrganizationCapacityRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ReviewOrganizationCapacityRequest` """ model = ReviewOrganizationCapacityRequest() @@ -48,5 +51,6 @@ def testReviewOrganizationCapacityRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_route.py b/koyeb/api/test/test_route.py index 5f0c35ab..62d6c07a 100644 --- a/koyeb/api/test/test_route.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.route import Route + class TestRoute(unittest.TestCase): """Route unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Route: """Test Route - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Route` """ model = Route() @@ -48,5 +49,6 @@ def testRoute(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_sample.py b/koyeb/api/test/test_sample.py index 6f72d0d6..605422c1 100644 --- a/koyeb/api/test/test_sample.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.sample import Sample + class TestSample(unittest.TestCase): """Sample unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Sample: """Test Sample - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Sample` """ model = Sample() @@ -48,5 +49,6 @@ def testSample(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_scale_to_zero_quotas.py b/koyeb/api/test/test_scale_to_zero_quotas.py index f46bc81a..5170285a 100644 --- a/koyeb/api/test/test_scale_to_zero_quotas.py +++ b/koyeb/api/test/test_scale_to_zero_quotas.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.scale_to_zero_quotas import ScaleToZeroQuotas + class TestScaleToZeroQuotas(unittest.TestCase): """ScaleToZeroQuotas unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ScaleToZeroQuotas: """Test ScaleToZeroQuotas - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ScaleToZeroQuotas` """ model = ScaleToZeroQuotas() @@ -52,5 +53,6 @@ def testScaleToZeroQuotas(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_scaling.py b/koyeb/api/test/test_scaling.py index 902459db..12f60887 100644 --- a/koyeb/api/test/test_scaling.py +++ b/koyeb/api/test/test_scaling.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.scaling import Scaling + class TestScaling(unittest.TestCase): """Scaling unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): 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 """ + include_optional is a 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() @@ -66,5 +67,6 @@ def testScaling(self): # inst_req_only = self.make_instance(include_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_search_api.py b/koyeb/api/test/test_search_api.py index 600e5626..bdfdc34b 100644 --- a/koyeb/api/test/test_search_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_search(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_secret.py b/koyeb/api/test/test_secret.py index 450eb3a8..16b36fdb 100644 --- a/koyeb/api/test/test_secret.py +++ b/koyeb/api/test/test_secret.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.secret import Secret + class TestSecret(unittest.TestCase): """Secret unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Secret: """Test Secret - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Secret` """ model = Secret() @@ -79,5 +80,6 @@ def testSecret(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_secret_type.py b/koyeb/api/test/test_secret_type.py index eb347950..a167d032 100644 --- a/koyeb/api/test/test_secret_type.py +++ b/koyeb/api/test/test_secret_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.secret_type import SecretType + class TestSecretType(unittest.TestCase): """SecretType unit test stubs""" @@ -29,5 +30,6 @@ def testSecretType(self): """Test SecretType""" # inst = SecretType() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_secrets_api.py b/koyeb/api/test/test_secrets_api.py index 3c1adca6..cb2f4bdf 100644 --- a/koyeb/api/test/test_secrets_api.py +++ b/koyeb/api/test/test_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 @@ -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 index 3756dce2..10da3d07 100644 --- a/koyeb/api/test/test_secrets_summary.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.secrets_summary import SecretsSummary + class TestSecretsSummary(unittest.TestCase): """SecretsSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SecretsSummary: """Test SecretsSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `SecretsSummary` """ model = SecretsSummary() @@ -50,5 +51,6 @@ def testSecretsSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service.py b/koyeb/api/test/test_service.py index 146af71d..5f1e8cdf 100644 --- a/koyeb/api/test/test_service.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.service import Service + class TestService(unittest.TestCase): """Service unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Service: """Test Service - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Service` """ model = Service() @@ -76,5 +77,6 @@ def testService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service_event.py b/koyeb/api/test/test_service_event.py index 5b51e4f1..a3d133ee 100644 --- a/koyeb/api/test/test_service_event.py +++ b/koyeb/api/test/test_service_event.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.service_event import ServiceEvent + class TestServiceEvent(unittest.TestCase): """ServiceEvent unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceEvent: """Test ServiceEvent - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ServiceEvent` """ model = ServiceEvent() @@ -53,5 +54,6 @@ def testServiceEvent(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service_life_cycle.py b/koyeb/api/test/test_service_life_cycle.py new file mode 100644 index 00000000..fe5e28ca --- /dev/null +++ b/koyeb/api/test/test_service_life_cycle.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_life_cycle import ServiceLifeCycle + + +class TestServiceLifeCycle(unittest.TestCase): + """ServiceLifeCycle unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> ServiceLifeCycle: + """Test ServiceLifeCycle + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `ServiceLifeCycle` + """ + model = ServiceLifeCycle() + if include_optional: + return ServiceLifeCycle( + delete_after_sleep = 56, + delete_after_create = 56 + ) + else: + return ServiceLifeCycle( + ) + """ + + def testServiceLifeCycle(self): + """Test ServiceLifeCycle""" + # inst_req_only = self.make_instance(include_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 index a9f17d97..805b05e7 100644 --- a/koyeb/api/test/test_service_list_item.py +++ b/koyeb/api/test/test_service_list_item.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.service_list_item import ServiceListItem + class TestServiceListItem(unittest.TestCase): """ServiceListItem unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceListItem: """Test ServiceListItem - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ServiceListItem` """ model = ServiceListItem() @@ -70,5 +71,6 @@ def testServiceListItem(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service_state.py b/koyeb/api/test/test_service_state.py index a744cfdc..ba06f595 100644 --- a/koyeb/api/test/test_service_state.py +++ b/koyeb/api/test/test_service_state.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.service_state import ServiceState + class TestServiceState(unittest.TestCase): """ServiceState unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceState: """Test ServiceState - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ServiceState` """ model = ServiceState() @@ -62,5 +63,6 @@ def testServiceState(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service_status.py b/koyeb/api/test/test_service_status.py index 327de0c9..33f37b1e 100644 --- a/koyeb/api/test/test_service_status.py +++ b/koyeb/api/test/test_service_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 @@ -16,6 +16,7 @@ from koyeb.api.models.service_status import ServiceStatus + class TestServiceStatus(unittest.TestCase): """ServiceStatus unit test stubs""" @@ -29,5 +30,6 @@ def testServiceStatus(self): """Test ServiceStatus""" # inst = ServiceStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service_summary.py b/koyeb/api/test/test_service_summary.py index fb85a681..832cac34 100644 --- a/koyeb/api/test/test_service_summary.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.service_summary import ServiceSummary + class TestServiceSummary(unittest.TestCase): """ServiceSummary unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceSummary: """Test ServiceSummary - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ServiceSummary` """ model = ServiceSummary() @@ -50,5 +51,6 @@ def testServiceSummary(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service_type.py b/koyeb/api/test/test_service_type.py index 022e89fa..a7169666 100644 --- a/koyeb/api/test/test_service_type.py +++ b/koyeb/api/test/test_service_type.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.service_type import ServiceType + class TestServiceType(unittest.TestCase): """ServiceType unit test stubs""" @@ -29,5 +30,6 @@ def testServiceType(self): """Test ServiceType""" # inst = ServiceType() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_service_usage.py b/koyeb/api/test/test_service_usage.py index 039e8a4d..4207f798 100644 --- a/koyeb/api/test/test_service_usage.py +++ b/koyeb/api/test/test_service_usage.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.service_usage import ServiceUsage + class TestServiceUsage(unittest.TestCase): """ServiceUsage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> ServiceUsage: """Test ServiceUsage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `ServiceUsage` """ model = ServiceUsage() @@ -55,5 +56,6 @@ def testServiceUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_services_api.py b/koyeb/api/test/test_services_api.py index 5204a80d..35004b31 100644 --- a/koyeb/api/test/test_services_api.py +++ b/koyeb/api/test/test_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 @@ -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 index 4ed09228..7b9aa03b 100644 --- a/koyeb/api/test/test_sessions_api.py +++ b/koyeb/api/test/test_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 @@ -55,5 +55,5 @@ def test_refresh_token(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_snapshot.py b/koyeb/api/test/test_snapshot.py index 11da1753..029f45f1 100644 --- a/koyeb/api/test/test_snapshot.py +++ b/koyeb/api/test/test_snapshot.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.snapshot import Snapshot + class TestSnapshot(unittest.TestCase): """Snapshot unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Snapshot: """Test Snapshot - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Snapshot` """ model = Snapshot() @@ -57,5 +58,6 @@ def testSnapshot(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_snapshot_status.py b/koyeb/api/test/test_snapshot_status.py index 001328c7..6bc47d99 100644 --- a/koyeb/api/test/test_snapshot_status.py +++ b/koyeb/api/test/test_snapshot_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 @@ -16,6 +16,7 @@ from koyeb.api.models.snapshot_status import SnapshotStatus + class TestSnapshotStatus(unittest.TestCase): """SnapshotStatus unit test stubs""" @@ -29,5 +30,6 @@ def testSnapshotStatus(self): """Test SnapshotStatus""" # inst = SnapshotStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_snapshot_type.py b/koyeb/api/test/test_snapshot_type.py index 8974b6c1..5568557f 100644 --- a/koyeb/api/test/test_snapshot_type.py +++ b/koyeb/api/test/test_snapshot_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 @@ -16,6 +16,7 @@ from koyeb.api.models.snapshot_type import SnapshotType + class TestSnapshotType(unittest.TestCase): """SnapshotType unit test stubs""" @@ -29,5 +30,6 @@ def testSnapshotType(self): """Test SnapshotType""" # inst = SnapshotType() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_snapshots_api.py b/koyeb/api/test/test_snapshots_api.py index 8d71b480..f0361c51 100644 --- a/koyeb/api/test/test_snapshots_api.py +++ b/koyeb/api/test/test_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 @@ -62,5 +62,5 @@ def test_update_snapshot(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_sso_api.py b/koyeb/api/test/test_sso_api.py index 13d340e3..72d3db04 100644 --- a/koyeb/api/test/test_sso_api.py +++ b/koyeb/api/test/test_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 @@ -27,17 +27,13 @@ def tearDown(self) -> None: pass def test_canny_auth(self) -> None: - """Test case for canny_auth - - """ + """Test case for canny_auth""" pass def test_discourse_auth(self) -> None: - """Test case for discourse_auth - - """ + """Test case for discourse_auth""" pass -if __name__ == '__main__': +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 index 93daa070..c58cbd62 100644 --- a/koyeb/api/test/test_stream_result_of_exec_command_reply.py +++ b/koyeb/api/test/test_stream_result_of_exec_command_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.stream_result_of_exec_command_reply import StreamResultOfExecCommandReply +from koyeb.api.models.stream_result_of_exec_command_reply import ( + StreamResultOfExecCommandReply, +) + class TestStreamResultOfExecCommandReply(unittest.TestCase): """StreamResultOfExecCommandReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> StreamResultOfExecCommandReply: """Test StreamResultOfExecCommandReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `StreamResultOfExecCommandReply` """ model = StreamResultOfExecCommandReply() @@ -63,5 +66,6 @@ def testStreamResultOfExecCommandReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_stream_result_of_log_entry.py b/koyeb/api/test/test_stream_result_of_log_entry.py index 35025605..ae63582d 100644 --- a/koyeb/api/test/test_stream_result_of_log_entry.py +++ b/koyeb/api/test/test_stream_result_of_log_entry.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.stream_result_of_log_entry import StreamResultOfLogEntry + class TestStreamResultOfLogEntry(unittest.TestCase): """StreamResultOfLogEntry unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> StreamResultOfLogEntry: """Test StreamResultOfLogEntry - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `StreamResultOfLogEntry` """ model = StreamResultOfLogEntry() @@ -58,5 +59,6 @@ def testStreamResultOfLogEntry(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_subscription.py b/koyeb/api/test/test_subscription.py index f125b360..31486c98 100644 --- a/koyeb/api/test/test_subscription.py +++ b/koyeb/api/test/test_subscription.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.subscription import Subscription + class TestSubscription(unittest.TestCase): """Subscription unit test stubs""" @@ -27,9 +28,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() @@ -84,5 +85,6 @@ 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 index e0eb1969..ae83fa60 100644 --- a/koyeb/api/test/test_subscription_payment_failure.py +++ b/koyeb/api/test/test_subscription_payment_failure.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.subscription_payment_failure import SubscriptionPaymentFailure + class TestSubscriptionPaymentFailure(unittest.TestCase): """SubscriptionPaymentFailure unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SubscriptionPaymentFailure: """Test SubscriptionPaymentFailure - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `SubscriptionPaymentFailure` """ model = SubscriptionPaymentFailure() @@ -58,5 +59,6 @@ def testSubscriptionPaymentFailure(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py b/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py index 3d706976..5e939c67 100644 --- a/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py +++ b/koyeb/api/test/test_subscription_payment_failure_stripe_sdk.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.subscription_payment_failure_stripe_sdk import SubscriptionPaymentFailureStripeSDK +from koyeb.api.models.subscription_payment_failure_stripe_sdk import ( + SubscriptionPaymentFailureStripeSDK, +) + class TestSubscriptionPaymentFailureStripeSDK(unittest.TestCase): """SubscriptionPaymentFailureStripeSDK unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> SubscriptionPaymentFailureStripeSDK: """Test SubscriptionPaymentFailureStripeSDK - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `SubscriptionPaymentFailureStripeSDK` """ model = SubscriptionPaymentFailureStripeSDK() @@ -48,5 +51,6 @@ def testSubscriptionPaymentFailureStripeSDK(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_subscription_status.py b/koyeb/api/test/test_subscription_status.py index f95f1aa9..2425957e 100644 --- a/koyeb/api/test/test_subscription_status.py +++ b/koyeb/api/test/test_subscription_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 @@ -16,6 +16,7 @@ from koyeb.api.models.subscription_status import SubscriptionStatus + class TestSubscriptionStatus(unittest.TestCase): """SubscriptionStatus unit test stubs""" @@ -29,5 +30,6 @@ def testSubscriptionStatus(self): """Test SubscriptionStatus""" # inst = SubscriptionStatus() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_subscriptions_api.py b/koyeb/api/test/test_subscriptions_api.py index 0380e719..d0fb4503 100644 --- a/koyeb/api/test/test_subscriptions_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_get_subscription(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_summary_api.py b/koyeb/api/test/test_summary_api.py index f4e541b3..6fc64569 100644 --- a/koyeb/api/test/test_summary_api.py +++ b/koyeb/api/test/test_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 @@ -34,5 +34,5 @@ def test_get_organization_summary(self) -> None: pass -if __name__ == '__main__': +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 index 21aaa13e..5936963a 100644 --- a/koyeb/api/test/test_tcp_health_check.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.tcp_health_check import TCPHealthCheck + class TestTCPHealthCheck(unittest.TestCase): """TCPHealthCheck unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> TCPHealthCheck: """Test TCPHealthCheck - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `TCPHealthCheck` """ model = TCPHealthCheck() @@ -47,5 +48,6 @@ def testTCPHealthCheck(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_token.py b/koyeb/api/test/test_token.py index 20dd381e..9d6e6178 100644 --- a/koyeb/api/test/test_token.py +++ b/koyeb/api/test/test_token.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.token import Token + class TestToken(unittest.TestCase): """Token unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Token: """Test Token - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Token` """ model = Token() @@ -50,5 +51,6 @@ def testToken(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_trigger_deployment_metadata.py b/koyeb/api/test/test_trigger_deployment_metadata.py index 80988f65..cfe0884a 100644 --- a/koyeb/api/test/test_trigger_deployment_metadata.py +++ b/koyeb/api/test/test_trigger_deployment_metadata.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.trigger_deployment_metadata import TriggerDeploymentMetadata + class TestTriggerDeploymentMetadata(unittest.TestCase): """TriggerDeploymentMetadata unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> TriggerDeploymentMetadata: """Test TriggerDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `TriggerDeploymentMetadata` """ model = TriggerDeploymentMetadata() @@ -57,5 +58,6 @@ def testTriggerDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_trigger_deployment_metadata_actor_type.py b/koyeb/api/test/test_trigger_deployment_metadata_actor_type.py index 963424df..f927ab46 100644 --- a/koyeb/api/test/test_trigger_deployment_metadata_actor_type.py +++ b/koyeb/api/test/test_trigger_deployment_metadata_actor_type.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.trigger_deployment_metadata_actor_type import TriggerDeploymentMetadataActorType +from koyeb.api.models.trigger_deployment_metadata_actor_type import ( + TriggerDeploymentMetadataActorType, +) + class TestTriggerDeploymentMetadataActorType(unittest.TestCase): """TriggerDeploymentMetadataActorType unit test stubs""" @@ -29,5 +32,6 @@ def testTriggerDeploymentMetadataActorType(self): """Test TriggerDeploymentMetadataActorType""" # inst = TriggerDeploymentMetadataActorType() -if __name__ == '__main__': + +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 index a1c9d5cd..8684817e 100644 --- a/koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py +++ b/koyeb/api/test/test_trigger_deployment_metadata_trigger_type.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.trigger_deployment_metadata_trigger_type import TriggerDeploymentMetadataTriggerType +from koyeb.api.models.trigger_deployment_metadata_trigger_type import ( + TriggerDeploymentMetadataTriggerType, +) + class TestTriggerDeploymentMetadataTriggerType(unittest.TestCase): """TriggerDeploymentMetadataTriggerType unit test stubs""" @@ -29,5 +32,6 @@ def testTriggerDeploymentMetadataTriggerType(self): """Test TriggerDeploymentMetadataTriggerType""" # inst = TriggerDeploymentMetadataTriggerType() -if __name__ == '__main__': + +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 index 368d57c0..f23b0fa6 100644 --- a/koyeb/api/test/test_trigger_git_deployment_metadata.py +++ b/koyeb/api/test/test_trigger_git_deployment_metadata.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.trigger_git_deployment_metadata import TriggerGitDeploymentMetadata +from koyeb.api.models.trigger_git_deployment_metadata import ( + TriggerGitDeploymentMetadata, +) + class TestTriggerGitDeploymentMetadata(unittest.TestCase): """TriggerGitDeploymentMetadata unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> TriggerGitDeploymentMetadata: """Test TriggerGitDeploymentMetadata - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `TriggerGitDeploymentMetadata` """ model = TriggerGitDeploymentMetadata() @@ -54,5 +57,6 @@ def testTriggerGitDeploymentMetadata(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_trigger_git_deployment_metadata_provider.py b/koyeb/api/test/test_trigger_git_deployment_metadata_provider.py index 094baab1..a6eb10bc 100644 --- a/koyeb/api/test/test_trigger_git_deployment_metadata_provider.py +++ b/koyeb/api/test/test_trigger_git_deployment_metadata_provider.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.trigger_git_deployment_metadata_provider import TriggerGitDeploymentMetadataProvider +from koyeb.api.models.trigger_git_deployment_metadata_provider import ( + TriggerGitDeploymentMetadataProvider, +) + class TestTriggerGitDeploymentMetadataProvider(unittest.TestCase): """TriggerGitDeploymentMetadataProvider unit test stubs""" @@ -29,5 +32,6 @@ def testTriggerGitDeploymentMetadataProvider(self): """Test TriggerGitDeploymentMetadataProvider""" # inst = TriggerGitDeploymentMetadataProvider() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_app.py b/koyeb/api/test/test_update_app.py index d7990606..b59eb42c 100644 --- a/koyeb/api/test/test_update_app.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_app import UpdateApp + class TestUpdateApp(unittest.TestCase): """UpdateApp unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateApp: """Test UpdateApp - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateApp` """ model = UpdateApp() @@ -47,5 +48,6 @@ def testUpdateApp(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_app_reply.py b/koyeb/api/test/test_update_app_reply.py index 19d83c3c..4d39a331 100644 --- a/koyeb/api/test/test_update_app_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_app_reply import UpdateAppReply + class TestUpdateAppReply(unittest.TestCase): """UpdateAppReply unit test stubs""" @@ -27,9 +28,9 @@ 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() @@ -79,5 +80,6 @@ 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 index 5d97f737..77fa53c0 100644 --- a/koyeb/api/test/test_update_budget_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_budget_reply import UpdateBudgetReply + class TestUpdateBudgetReply(unittest.TestCase): """UpdateBudgetReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateBudgetReply: """Test UpdateBudgetReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateBudgetReply` """ model = UpdateBudgetReply() @@ -51,5 +52,6 @@ def testUpdateBudgetReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_budget_request.py b/koyeb/api/test/test_update_budget_request.py index 4181a5a3..ea3c4b3f 100644 --- a/koyeb/api/test/test_update_budget_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_budget_request import UpdateBudgetRequest + class TestUpdateBudgetRequest(unittest.TestCase): """UpdateBudgetRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateBudgetRequest: """Test UpdateBudgetRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateBudgetRequest` """ model = UpdateBudgetRequest() @@ -47,5 +48,6 @@ def testUpdateBudgetRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_credential_reply.py b/koyeb/api/test/test_update_credential_reply.py index 7a7b24bd..95edb85a 100644 --- a/koyeb/api/test/test_update_credential_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_credential_reply import UpdateCredentialReply + class TestUpdateCredentialReply(unittest.TestCase): """UpdateCredentialReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateCredentialReply: """Test UpdateCredentialReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateCredentialReply` """ model = UpdateCredentialReply() @@ -57,5 +58,6 @@ def testUpdateCredentialReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_domain.py b/koyeb/api/test/test_update_domain.py index 7e313158..603cd1ce 100644 --- a/koyeb/api/test/test_update_domain.py +++ b/koyeb/api/test/test_update_domain.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.update_domain import UpdateDomain + class TestUpdateDomain(unittest.TestCase): """UpdateDomain unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateDomain: """Test UpdateDomain - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateDomain` """ model = UpdateDomain() @@ -48,5 +49,6 @@ def testUpdateDomain(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_domain_reply.py b/koyeb/api/test/test_update_domain_reply.py index 07c70183..90ab41f6 100644 --- a/koyeb/api/test/test_update_domain_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_domain_reply import UpdateDomainReply + class TestUpdateDomainReply(unittest.TestCase): """UpdateDomainReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateDomainReply: """Test UpdateDomainReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateDomainReply` """ model = UpdateDomainReply() @@ -65,5 +66,6 @@ def testUpdateDomainReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_organization_name_reply.py b/koyeb/api/test/test_update_organization_name_reply.py new file mode 100644 index 00000000..ac7597dd --- /dev/null +++ b/koyeb/api/test/test_update_organization_name_reply.py @@ -0,0 +1,86 @@ +# coding: utf-8 + +""" +Koyeb Rest API + +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. + +The version of the OpenAPI document: 1.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_name_reply import UpdateOrganizationNameReply + + +class TestUpdateOrganizationNameReply(unittest.TestCase): + """UpdateOrganizationNameReply unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateOrganizationNameReply: + """Test UpdateOrganizationNameReply + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `UpdateOrganizationNameReply` + """ + model = UpdateOrganizationNameReply() + if include_optional: + return UpdateOrganizationNameReply( + organization = koyeb.api.models.represent_an_organization.Represent an Organization( + id = '', + external_id = '', + provisioning = True, + 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 UpdateOrganizationNameReply( + ) + """ + + def testUpdateOrganizationNameReply(self): + """Test UpdateOrganizationNameReply""" + # inst_req_only = self.make_instance(include_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_name_request.py b/koyeb/api/test/test_update_organization_name_request.py new file mode 100644 index 00000000..73a145da --- /dev/null +++ b/koyeb/api/test/test_update_organization_name_request.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_organization_name_request import ( + UpdateOrganizationNameRequest, +) + + +class TestUpdateOrganizationNameRequest(unittest.TestCase): + """UpdateOrganizationNameRequest unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def make_instance(self, include_optional) -> UpdateOrganizationNameRequest: + """Test UpdateOrganizationNameRequest + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" + # uncomment below to create an instance of `UpdateOrganizationNameRequest` + """ + model = UpdateOrganizationNameRequest() + if include_optional: + return UpdateOrganizationNameRequest( + name = '' + ) + else: + return UpdateOrganizationNameRequest( + ) + """ + + def testUpdateOrganizationNameRequest(self): + """Test UpdateOrganizationNameRequest""" + # inst_req_only = self.make_instance(include_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 index 0e61465f..1ef5fc20 100644 --- a/koyeb/api/test/test_update_organization_plan_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_organization_plan_reply import UpdateOrganizationPlanReply + class TestUpdateOrganizationPlanReply(unittest.TestCase): """UpdateOrganizationPlanReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOrganizationPlanReply: """Test UpdateOrganizationPlanReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateOrganizationPlanReply` """ model = UpdateOrganizationPlanReply() @@ -79,5 +80,6 @@ def testUpdateOrganizationPlanReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_organization_plan_request.py b/koyeb/api/test/test_update_organization_plan_request.py index 9ec5cc71..13afee68 100644 --- a/koyeb/api/test/test_update_organization_plan_request.py +++ b/koyeb/api/test/test_update_organization_plan_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.update_organization_plan_request import UpdateOrganizationPlanRequest +from koyeb.api.models.update_organization_plan_request import ( + UpdateOrganizationPlanRequest, +) + class TestUpdateOrganizationPlanRequest(unittest.TestCase): """UpdateOrganizationPlanRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOrganizationPlanRequest: """Test UpdateOrganizationPlanRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateOrganizationPlanRequest` """ model = UpdateOrganizationPlanRequest() @@ -47,5 +50,6 @@ def testUpdateOrganizationPlanRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_organization_reply.py b/koyeb/api/test/test_update_organization_reply.py index 6327140b..d3eb4d75 100644 --- a/koyeb/api/test/test_update_organization_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_organization_reply import UpdateOrganizationReply + class TestUpdateOrganizationReply(unittest.TestCase): """UpdateOrganizationReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateOrganizationReply: """Test UpdateOrganizationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateOrganizationReply` """ model = UpdateOrganizationReply() @@ -79,5 +80,6 @@ def testUpdateOrganizationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_password_request.py b/koyeb/api/test/test_update_password_request.py index 170f593a..d519f8a7 100644 --- a/koyeb/api/test/test_update_password_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_password_request import UpdatePasswordRequest + class TestUpdatePasswordRequest(unittest.TestCase): """UpdatePasswordRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdatePasswordRequest: """Test UpdatePasswordRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdatePasswordRequest` """ model = UpdatePasswordRequest() @@ -48,5 +49,6 @@ def testUpdatePasswordRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_persistent_volume_reply.py b/koyeb/api/test/test_update_persistent_volume_reply.py index 1af1452e..f19cacdc 100644 --- a/koyeb/api/test/test_update_persistent_volume_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_persistent_volume_reply import UpdatePersistentVolumeReply + class TestUpdatePersistentVolumeReply(unittest.TestCase): """UpdatePersistentVolumeReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdatePersistentVolumeReply: """Test UpdatePersistentVolumeReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdatePersistentVolumeReply` """ model = UpdatePersistentVolumeReply() @@ -61,5 +62,6 @@ def testUpdatePersistentVolumeReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_persistent_volume_request.py b/koyeb/api/test/test_update_persistent_volume_request.py index 4844fd1d..b20820ab 100644 --- a/koyeb/api/test/test_update_persistent_volume_request.py +++ b/koyeb/api/test/test_update_persistent_volume_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.update_persistent_volume_request import UpdatePersistentVolumeRequest +from koyeb.api.models.update_persistent_volume_request import ( + UpdatePersistentVolumeRequest, +) + class TestUpdatePersistentVolumeRequest(unittest.TestCase): """UpdatePersistentVolumeRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdatePersistentVolumeRequest: """Test UpdatePersistentVolumeRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdatePersistentVolumeRequest` """ model = UpdatePersistentVolumeRequest() @@ -48,5 +51,6 @@ def testUpdatePersistentVolumeRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_secret_reply.py b/koyeb/api/test/test_update_secret_reply.py index da895bdd..a265bf47 100644 --- a/koyeb/api/test/test_update_secret_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_secret_reply import UpdateSecretReply + class TestUpdateSecretReply(unittest.TestCase): """UpdateSecretReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateSecretReply: """Test UpdateSecretReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateSecretReply` """ model = UpdateSecretReply() @@ -80,5 +81,6 @@ def testUpdateSecretReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_service.py b/koyeb/api/test/test_update_service.py index 4638d130..8a51539e 100644 --- a/koyeb/api/test/test_update_service.py +++ b/koyeb/api/test/test_update_service.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.update_service import UpdateService + class TestUpdateService(unittest.TestCase): """UpdateService unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateService: """Test UpdateService - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateService` """ model = UpdateService() @@ -210,5 +211,6 @@ def testUpdateService(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_service_reply.py b/koyeb/api/test/test_update_service_reply.py index ce185ad4..0f433907 100644 --- a/koyeb/api/test/test_update_service_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_service_reply import UpdateServiceReply + class TestUpdateServiceReply(unittest.TestCase): """UpdateServiceReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateServiceReply: """Test UpdateServiceReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateServiceReply` """ model = UpdateServiceReply() @@ -77,5 +78,6 @@ def testUpdateServiceReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_snapshot_reply.py b/koyeb/api/test/test_update_snapshot_reply.py index 34f5b777..a00f4e51 100644 --- a/koyeb/api/test/test_update_snapshot_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_snapshot_reply import UpdateSnapshotReply + class TestUpdateSnapshotReply(unittest.TestCase): """UpdateSnapshotReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateSnapshotReply: """Test UpdateSnapshotReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateSnapshotReply` """ model = UpdateSnapshotReply() @@ -58,5 +59,6 @@ def testUpdateSnapshotReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_snapshot_request.py b/koyeb/api/test/test_update_snapshot_request.py index bdca75c6..4eab08fd 100644 --- a/koyeb/api/test/test_update_snapshot_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_snapshot_request import UpdateSnapshotRequest + class TestUpdateSnapshotRequest(unittest.TestCase): """UpdateSnapshotRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateSnapshotRequest: """Test UpdateSnapshotRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateSnapshotRequest` """ model = UpdateSnapshotRequest() @@ -47,5 +48,6 @@ def testUpdateSnapshotRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_user_request_user_update_body.py b/koyeb/api/test/test_update_user_request_user_update_body.py index fc4e29ba..9e3faa4c 100644 --- a/koyeb/api/test/test_update_user_request_user_update_body.py +++ b/koyeb/api/test/test_update_user_request_user_update_body.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.update_user_request_user_update_body import UpdateUserRequestUserUpdateBody +from koyeb.api.models.update_user_request_user_update_body import ( + UpdateUserRequestUserUpdateBody, +) + class TestUpdateUserRequestUserUpdateBody(unittest.TestCase): """UpdateUserRequestUserUpdateBody unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateUserRequestUserUpdateBody: """Test UpdateUserRequestUserUpdateBody - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateUserRequestUserUpdateBody` """ model = UpdateUserRequestUserUpdateBody() @@ -52,5 +55,6 @@ def testUpdateUserRequestUserUpdateBody(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_user_settings_reply.py b/koyeb/api/test/test_update_user_settings_reply.py index 22ade129..be832e91 100644 --- a/koyeb/api/test/test_update_user_settings_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_user_settings_reply import UpdateUserSettingsReply + class TestUpdateUserSettingsReply(unittest.TestCase): """UpdateUserSettingsReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateUserSettingsReply: """Test UpdateUserSettingsReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateUserSettingsReply` """ model = UpdateUserSettingsReply() @@ -50,5 +51,6 @@ def testUpdateUserSettingsReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_update_user_settings_request.py b/koyeb/api/test/test_update_user_settings_request.py index 7d52ec50..8f6acf66 100644 --- a/koyeb/api/test/test_update_user_settings_request.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.update_user_settings_request import UpdateUserSettingsRequest + class TestUpdateUserSettingsRequest(unittest.TestCase): """UpdateUserSettingsRequest unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpdateUserSettingsRequest: """Test UpdateUserSettingsRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpdateUserSettingsRequest` """ model = UpdateUserSettingsRequest() @@ -47,5 +48,6 @@ def testUpdateUserSettingsRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_upsert_signup_qualification_reply.py b/koyeb/api/test/test_upsert_signup_qualification_reply.py index 1d991659..93063e72 100644 --- a/koyeb/api/test/test_upsert_signup_qualification_reply.py +++ b/koyeb/api/test/test_upsert_signup_qualification_reply.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.upsert_signup_qualification_reply import UpsertSignupQualificationReply +from koyeb.api.models.upsert_signup_qualification_reply import ( + UpsertSignupQualificationReply, +) + class TestUpsertSignupQualificationReply(unittest.TestCase): """UpsertSignupQualificationReply unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpsertSignupQualificationReply: """Test UpsertSignupQualificationReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpsertSignupQualificationReply` """ model = UpsertSignupQualificationReply() @@ -79,5 +82,6 @@ def testUpsertSignupQualificationReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_upsert_signup_qualification_request.py b/koyeb/api/test/test_upsert_signup_qualification_request.py index b153b06b..1303906f 100644 --- a/koyeb/api/test/test_upsert_signup_qualification_request.py +++ b/koyeb/api/test/test_upsert_signup_qualification_request.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.upsert_signup_qualification_request import UpsertSignupQualificationRequest +from koyeb.api.models.upsert_signup_qualification_request import ( + UpsertSignupQualificationRequest, +) + class TestUpsertSignupQualificationRequest(unittest.TestCase): """UpsertSignupQualificationRequest unit test stubs""" @@ -27,9 +30,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UpsertSignupQualificationRequest: """Test UpsertSignupQualificationRequest - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UpsertSignupQualificationRequest` """ model = UpsertSignupQualificationRequest() @@ -47,5 +50,6 @@ def testUpsertSignupQualificationRequest(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_usage.py b/koyeb/api/test/test_usage.py index d7630a82..c0a11011 100644 --- a/koyeb/api/test/test_usage.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.usage import Usage + class TestUsage(unittest.TestCase): """Usage unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> Usage: """Test Usage - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `Usage` """ model = Usage() @@ -76,5 +77,6 @@ def testUsage(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_usage_details.py b/koyeb/api/test/test_usage_details.py index f61f104d..52ddfe3d 100644 --- a/koyeb/api/test/test_usage_details.py +++ b/koyeb/api/test/test_usage_details.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.usage_details import UsageDetails + class TestUsageDetails(unittest.TestCase): """UsageDetails unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UsageDetails: """Test UsageDetails - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UsageDetails` """ model = UsageDetails() @@ -59,5 +60,6 @@ def testUsageDetails(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_usages_api.py b/koyeb/api/test/test_usages_api.py index b3c0628c..7acb0238 100644 --- a/koyeb/api/test/test_usages_api.py +++ b/koyeb/api/test/test_usages_api.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -41,5 +41,5 @@ def test_get_organization_usage_details(self) -> None: pass -if __name__ == '__main__': +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_user.py b/koyeb/api/test/test_user.py index 54c4425e..cccd05e0 100644 --- a/koyeb/api/test/test_user.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.user import User + class TestUser(unittest.TestCase): """User unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> User: """Test User - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `User` """ model = User() @@ -63,5 +64,6 @@ def testUser(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_user_flags.py b/koyeb/api/test/test_user_flags.py index 351a5d51..313ff59f 100644 --- a/koyeb/api/test/test_user_flags.py +++ b/koyeb/api/test/test_user_flags.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.user_flags import UserFlags + class TestUserFlags(unittest.TestCase): """UserFlags unit test stubs""" @@ -29,5 +30,6 @@ def testUserFlags(self): """Test UserFlags""" # inst = UserFlags() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_user_reply.py b/koyeb/api/test/test_user_reply.py index 6ec6c1d3..23063999 100644 --- a/koyeb/api/test/test_user_reply.py +++ b/koyeb/api/test/test_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 @@ -16,6 +16,7 @@ from koyeb.api.models.user_reply import UserReply + class TestUserReply(unittest.TestCase): """UserReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UserReply: """Test UserReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UserReply` """ model = UserReply() @@ -47,5 +48,6 @@ def testUserReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_user_role_role.py b/koyeb/api/test/test_user_role_role.py index 944b494c..c32311fd 100644 --- a/koyeb/api/test/test_user_role_role.py +++ b/koyeb/api/test/test_user_role_role.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.user_role_role import UserRoleRole + class TestUserRoleRole(unittest.TestCase): """UserRoleRole unit test stubs""" @@ -29,5 +30,6 @@ def testUserRoleRole(self): """Test UserRoleRole""" # inst = UserRoleRole() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_user_settings.py b/koyeb/api/test/test_user_settings.py index 2ddeca1c..79b06025 100644 --- a/koyeb/api/test/test_user_settings.py +++ b/koyeb/api/test/test_user_settings.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.user_settings import UserSettings + class TestUserSettings(unittest.TestCase): """UserSettings unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> UserSettings: """Test UserSettings - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `UserSettings` """ model = UserSettings() @@ -49,5 +50,6 @@ def testUserSettings(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_users_api.py b/koyeb/api/test/test_users_api.py index a8b8540c..9bdfc504 100644 --- a/koyeb/api/test/test_users_api.py +++ b/koyeb/api/test/test_users_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 @@ -41,5 +41,5 @@ def test_delete_user_v2(self) -> None: pass -if __name__ == '__main__': +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 index f96d1df0..b206050a 100644 --- a/koyeb/api/test/test_verify_docker_image_reply.py +++ b/koyeb/api/test/test_verify_docker_image_reply.py @@ -1,14 +1,14 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by OpenAPI Generator (https://openapi-generator.tech) - Do not edit the class manually. +Do not edit the class manually. """ # noqa: E501 @@ -16,6 +16,7 @@ from koyeb.api.models.verify_docker_image_reply import VerifyDockerImageReply + class TestVerifyDockerImageReply(unittest.TestCase): """VerifyDockerImageReply unit test stubs""" @@ -27,9 +28,9 @@ def tearDown(self): def make_instance(self, include_optional) -> VerifyDockerImageReply: """Test VerifyDockerImageReply - include_optional is a boolean, when False only required - params are included, when True both required and - optional params are included """ + include_optional is a boolean, when False only required + params are included, when True both required and + optional params are included""" # uncomment below to create an instance of `VerifyDockerImageReply` """ model = VerifyDockerImageReply() @@ -49,5 +50,6 @@ def testVerifyDockerImageReply(self): # inst_req_only = self.make_instance(include_optional=False) # inst_req_and_optional = self.make_instance(include_optional=True) -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api/test/test_verify_docker_image_reply_err_code.py b/koyeb/api/test/test_verify_docker_image_reply_err_code.py index 8c87e329..76873f49 100644 --- a/koyeb/api/test/test_verify_docker_image_reply_err_code.py +++ b/koyeb/api/test/test_verify_docker_image_reply_err_code.py @@ -1,20 +1,23 @@ # coding: utf-8 """ - Koyeb Rest API +Koyeb Rest API - The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. +The Koyeb API allows you to interact with the Koyeb platform in a simple, programmatic way using conventional HTTP requests. - The version of the OpenAPI document: 1.0.0 - Generated by OpenAPI Generator (https://openapi-generator.tech) +The version of the OpenAPI document: 1.0.0 +Generated by 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.models.verify_docker_image_reply_err_code import VerifyDockerImageReplyErrCode +from koyeb.api.models.verify_docker_image_reply_err_code import ( + VerifyDockerImageReplyErrCode, +) + class TestVerifyDockerImageReplyErrCode(unittest.TestCase): """VerifyDockerImageReplyErrCode unit test stubs""" @@ -29,5 +32,6 @@ def testVerifyDockerImageReplyErrCode(self): """Test VerifyDockerImageReplyErrCode""" # inst = VerifyDockerImageReplyErrCode() -if __name__ == '__main__': + +if __name__ == "__main__": unittest.main() diff --git a/koyeb/api_README.md b/koyeb/api_README.md index 59a04465..cfbacf24 100644 --- a/koyeb/api_README.md +++ b/koyeb/api_README.md @@ -5,7 +5,7 @@ The `koyeb.api` package is automatically generated by the [OpenAPI Generator](ht - API version: 1.0.0 - Package version: 1.2.2 -- Generator version: 7.17.0-SNAPSHOT +- Generator version: 7.18.0-SNAPSHOT - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -228,6 +228,7 @@ Class | Method | HTTP request | Description *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_name**](koyeb/api/docs/OrganizationApi.md#update_organization_name) | **PUT** /v1/organizations/{id}/name | 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 | @@ -242,6 +243,7 @@ Class | Method | HTTP request | Description - [ActivityList](koyeb/api/docs/ActivityList.md) - [App](koyeb/api/docs/App.md) - [AppEvent](koyeb/api/docs/AppEvent.md) + - [AppLifeCycle](koyeb/api/docs/AppLifeCycle.md) - [AppListItem](koyeb/api/docs/AppListItem.md) - [AppStatus](koyeb/api/docs/AppStatus.md) - [AppUsage](koyeb/api/docs/AppUsage.md) @@ -543,6 +545,7 @@ Class | Method | HTTP request | Description - [SecretsSummary](koyeb/api/docs/SecretsSummary.md) - [Service](koyeb/api/docs/Service.md) - [ServiceEvent](koyeb/api/docs/ServiceEvent.md) + - [ServiceLifeCycle](koyeb/api/docs/ServiceLifeCycle.md) - [ServiceListItem](koyeb/api/docs/ServiceListItem.md) - [ServiceState](koyeb/api/docs/ServiceState.md) - [ServiceStatus](koyeb/api/docs/ServiceStatus.md) @@ -572,6 +575,8 @@ Class | Method | HTTP request | Description - [UpdateCredentialReply](koyeb/api/docs/UpdateCredentialReply.md) - [UpdateDomain](koyeb/api/docs/UpdateDomain.md) - [UpdateDomainReply](koyeb/api/docs/UpdateDomainReply.md) + - [UpdateOrganizationNameReply](koyeb/api/docs/UpdateOrganizationNameReply.md) + - [UpdateOrganizationNameRequest](koyeb/api/docs/UpdateOrganizationNameRequest.md) - [UpdateOrganizationPlanReply](koyeb/api/docs/UpdateOrganizationPlanReply.md) - [UpdateOrganizationPlanRequest](koyeb/api/docs/UpdateOrganizationPlanRequest.md) - [UpdateOrganizationReply](koyeb/api/docs/UpdateOrganizationReply.md) diff --git a/koyeb/sandbox/sandbox.py b/koyeb/sandbox/sandbox.py index 34950a38..c7941a1a 100644 --- a/koyeb/sandbox/sandbox.py +++ b/koyeb/sandbox/sandbox.py @@ -15,8 +15,8 @@ from koyeb.api.api.deployments_api import DeploymentsApi from koyeb.api.exceptions import ApiException, NotFoundException -from koyeb.api.models.create_app import CreateApp -from koyeb.api.models.create_service import CreateService +from koyeb.api.models.create_app import CreateApp, AppLifeCycle +from koyeb.api.models.create_service import CreateService, ServiceLifeCycle from .utils import ( DEFAULT_INSTANCE_WAIT_TIMEOUT, @@ -114,6 +114,8 @@ def create( privileged: bool = False, registry_secret: Optional[str] = None, _experimental_enable_light_sleep: bool = False, + delete_after_delay: int = 0, + delete_after_inactivity_delay: int = 0, ) -> Sandbox: """ Create a new sandbox instance. @@ -141,6 +143,10 @@ def create( pulling private images. Create the secret via Koyeb dashboard or CLI first. _experimental_enable_light_sleep: If True, uses idle_timeout for light_sleep and sets deep_sleep=3900. If False, uses idle_timeout for deep_sleep (default: False) + delete_after_create: If >0, automatically delete the sandbox if there was no activity + after this many seconds since creation. + delete_after_sleep: If >0, automatically delete the sandbox if service sleeps due to inactivity + after this many seconds. Returns: Sandbox: A new Sandbox instance @@ -180,6 +186,8 @@ def create( privileged=privileged, registry_secret=registry_secret, _experimental_enable_light_sleep=_experimental_enable_light_sleep, + delete_after_delay=delete_after_delay, + delete_after_inactivity_delay=delete_after_inactivity_delay, ) if wait_ready: @@ -204,16 +212,19 @@ def _create_sync( region: Optional[str] = None, api_token: Optional[str] = None, timeout: int = 300, - idle_timeout: int = 300, + idle_timeout: int = 0, enable_tcp_proxy: bool = False, privileged: bool = False, registry_secret: Optional[str] = None, _experimental_enable_light_sleep: bool = False, + delete_after_delay: int = 0, + delete_after_inactivity_delay: int = 0, ) -> Sandbox: """ Synchronous creation method that returns creation parameters. Subclasses can override to return their own type. """ + apps_api, services_api, _, catalog_instances_api = get_api_client(api_token) # Always create routes (ports are always exposed, default to "http") @@ -228,13 +239,18 @@ def _create_sync( env["SANDBOX_SECRET"] = sandbox_secret app_name = f"sandbox-app-{name}-{int(time.time())}" - app_response = apps_api.create_app(app=CreateApp(name=app_name)) + app_response = apps_api.create_app( + app=CreateApp( + name=app_name, life_cycle=AppLifeCycle(delete_when_empty=True) + ) + ) app_id = app_response.app.id env_vars = build_env_vars(env) docker_source = create_docker_source( image, [], privileged=privileged, image_registry_secret=registry_secret ) + deployment_definition = create_deployment_definition( name=name, docker_source=docker_source, @@ -248,7 +264,15 @@ def _create_sync( _experimental_enable_light_sleep=_experimental_enable_light_sleep, ) - create_service = CreateService(app_id=app_id, definition=deployment_definition) + service_life_cycle = ServiceLifeCycle( + delete_after_create=delete_after_delay, + delete_after_sleep=delete_after_inactivity_delay, + ) + create_service = CreateService( + app_id=app_id, + definition=deployment_definition, + life_cycle=service_life_cycle, + ) service_response = services_api.create_service(service=create_service) service_id = service_response.service.id @@ -864,11 +888,13 @@ async def create( region: Optional[str] = None, api_token: Optional[str] = None, timeout: int = 300, - idle_timeout: int = 300, + idle_timeout: int = 0, enable_tcp_proxy: bool = False, privileged: bool = False, registry_secret: Optional[str] = None, _experimental_enable_light_sleep: bool = False, + delete_after_delay: int = 0, + delete_after_inactivity_delay: int = 0, ) -> AsyncSandbox: """ Create a new sandbox instance with async support. @@ -896,6 +922,10 @@ async def create( pulling private images. Create the secret via Koyeb dashboard or CLI first. _experimental_enable_light_sleep: If True, uses idle_timeout for light_sleep and sets deep_sleep=3900. If False, uses idle_timeout for deep_sleep (default: False) + delete_after_delay: If >0, automatically delete the sandbox if there was no activity + after this many seconds since creation. + delete_after_inactivity_delay: If >0, automatically delete the sandbox if service sleeps due to inactivity + after this many seconds. Returns: AsyncSandbox: A new AsyncSandbox instance @@ -928,6 +958,8 @@ async def create( privileged=privileged, registry_secret=registry_secret, _experimental_enable_light_sleep=_experimental_enable_light_sleep, + delete_after_delay=delete_after_delay, + delete_after_inactivity_delay=delete_after_inactivity_delay, ), ) diff --git a/spec/openapi.json b/spec/openapi.json index 1f0f43c4..4abebe91 100644 --- a/spec/openapi.json +++ b/spec/openapi.json @@ -4287,6 +4287,20 @@ "in": "query", "required": false, "type": "boolean" + }, + { + "name": "life_cycle.delete_after_sleep", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "life_cycle.delete_after_create", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" } ], "tags": [ @@ -4368,6 +4382,20 @@ "in": "query", "required": false, "type": "boolean" + }, + { + "name": "life_cycle.delete_after_sleep", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" + }, + { + "name": "life_cycle.delete_after_create", + "in": "query", + "required": false, + "type": "integer", + "format": "int64" } ], "tags": [ @@ -8906,7 +8934,7 @@ ] }, "post": { - "summary": "ClearIdenfyVerificationResult marks the current result for idenfy as superseded", + "summary": "ClearIdenfyVerificationResult marks the current result for idenfy as\nsuperseded", "operationId": "ClearIdenfyVerificationResult", "responses": { "200": { @@ -9178,7 +9206,7 @@ }, { "name": "metadata", - "description": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state", + "description": "A small (limited to 400 characters) string of arbitrary metadata which will\nbe encoded in the state", "in": "query", "required": false, "type": "string" @@ -9714,7 +9742,7 @@ }, { "name": "search", - "description": "(Optional) Fuzzy case-insensitive search based on organization name or organization id", + "description": "(Optional) Fuzzy case-insensitive search based on organization name or\norganization id", "in": "query", "required": false, "type": "string" @@ -9799,6 +9827,15 @@ } } }, + "parameters": [ + { + "name": "seon-fp", + "description": "Seon Fingerprint", + "in": "header", + "required": false, + "type": "string" + } + ], "tags": [ "Profile" ] @@ -10442,7 +10479,7 @@ "/v1/billing/has_unpaid_invoices": { "get": { "summary": "Experimental: Has unpaid invoices", - "description": "WARNING: Please don't use the following method.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve the right to completely drop it without notice.\nUSE AT YOUR OWN RISK.", + "description": "WARNING: Please don't use the following method.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve\nthe right to completely drop it without notice. USE AT YOUR OWN RISK.", "operationId": "HasUnpaidInvoices", "responses": { "200": { @@ -10560,7 +10597,7 @@ "/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.", + "description": "WARNING: Please don't use the following method.\nKoyeb doesn't guarantee backwards compatible breaking change and reserve\nthe right to completely drop it without notice. USE AT YOUR OWN RISK.", "operationId": "NextInvoice", "responses": { "200": { @@ -11105,7 +11142,7 @@ "/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.", + "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:\nhttps://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration.html.", "operationId": "CreateAccessToken", "responses": { "200": { @@ -11255,7 +11292,87 @@ "properties": { "skip_confirmation": { "type": "boolean", - "description": "if set to true, skip_confirmation will directly start the deactivation process,\nwithout sending a confirmation email beforehand." + "description": "if set to true, skip_confirmation will directly start the deactivation\nprocess, without sending a confirmation email beforehand." + } + } + } + } + ], + "tags": [ + "organization" + ] + } + }, + "/v1/organizations/{id}/name": { + "put": { + "summary": "Update Organization", + "operationId": "UpdateOrganizationName", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/UpdateOrganizationNameReply" + } + }, + "400": { + "description": "Validation error", + "schema": { + "$ref": "#/definitions/ErrorWithFields" + } + }, + "401": { + "description": "Returned when the token is not valid.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "403": { + "description": "Returned when the user does not have permission to access the resource.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "404": { + "description": "Returned when the resource does not exist.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "500": { + "description": "Returned in case of server error.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "503": { + "description": "Service is unavailable.", + "schema": { + "$ref": "#/definitions/Error" + } + }, + "default": { + "description": "An unexpected error response.", + "schema": { + "$ref": "#/definitions/google.rpc.Status" + } + } + }, + "parameters": [ + { + "name": "id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "type": "object", + "properties": { + "name": { + "type": "string" } } } @@ -13469,9 +13586,11 @@ "INVALID", "WEB", "WORKER", + "_", "SANDBOX" ], - "default": "INVALID" + "default": "INVALID", + "title": "- _: We match with DeploymentDefinition.Type, so we skip 3 which is DATABASE" }, "RegionalDeploymentEvent": { "type": "object", @@ -13651,6 +13770,9 @@ "items": { "$ref": "#/definitions/Domain" } + }, + "life_cycle": { + "$ref": "#/definitions/AppLifeCycle" } } }, @@ -13669,6 +13791,14 @@ ], "default": "STARTING" }, + "AppLifeCycle": { + "type": "object", + "properties": { + "delete_when_empty": { + "type": "boolean" + } + } + }, "AutoRelease": { "type": "object", "properties": { @@ -13719,6 +13849,9 @@ "properties": { "name": { "type": "string" + }, + "life_cycle": { + "$ref": "#/definitions/AppLifeCycle" } } }, @@ -13744,6 +13877,9 @@ }, "definition": { "$ref": "#/definitions/DeploymentDefinition" + }, + "life_cycle": { + "$ref": "#/definitions/ServiceLifeCycle" } } }, @@ -14218,6 +14354,9 @@ "state": { "$ref": "#/definitions/ServiceState", "title": "Legacy stuff" + }, + "life_cycle": { + "$ref": "#/definitions/ServiceLifeCycle" } } }, @@ -14247,6 +14386,19 @@ ], "default": "INVALID_TYPE" }, + "ServiceLifeCycle": { + "type": "object", + "properties": { + "delete_after_sleep": { + "type": "integer", + "format": "int64" + }, + "delete_after_create": { + "type": "integer", + "format": "int64" + } + } + }, "ServiceState": { "type": "object", "properties": { @@ -15634,6 +15786,9 @@ "properties": { "name": { "type": "string" + }, + "life_cycle": { + "$ref": "#/definitions/AppLifeCycle" } } }, @@ -15908,6 +16063,9 @@ "save_only": { "type": "boolean", "title": "If set, do not trigger a deployment, only store the new settings" + }, + "life_cycle": { + "$ref": "#/definitions/ServiceLifeCycle" } } }, @@ -18008,6 +18166,9 @@ }, "status": { "$ref": "#/definitions/Organization.Status" + }, + "external_id": { + "type": "string" } } }, @@ -18425,6 +18586,9 @@ "user_id": { "type": "string" }, + "external_id": { + "type": "string" + }, "joined_at": { "type": "string", "format": "date-time" @@ -18737,7 +18901,7 @@ }, "state": { "type": "string", - "title": "The state required by the protocol, it is only valid 10 minutes and encodes information about the type of flow" + "title": "The state required by the protocol, it is only valid 10 minutes and encodes\ninformation about the type of flow" } } }, @@ -18746,7 +18910,7 @@ "properties": { "metadata": { "type": "string", - "title": "A small (limited to 400 characters) string of arbitrary metadata which will be encoded in the state" + "title": "A small (limited to 400 characters) string of arbitrary metadata which will\nbe encoded in the state" } } }, @@ -18958,11 +19122,11 @@ }, "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." + "description": "setup_action is populated in the context of a GitHub app installation\nrequest. For logins and signups, it is not set." }, "installation_id": { "type": "string", - "description": "installation_id is populated in the context of a GitHub app installation request. For logins and\nsignups, it is not set." + "description": "installation_id is populated in the context of a GitHub app installation\nrequest. For logins and signups, it is not set." } } }, @@ -18979,7 +19143,7 @@ }, "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" + "title": "The OAuth state required by the protocol, it is only valid 10 minutes and\nencodes information about the type of flow" } } }, @@ -19156,6 +19320,14 @@ } } }, + "UpdateOrganizationNameReply": { + "type": "object", + "properties": { + "organization": { + "$ref": "#/definitions/Organization" + } + } + }, "UpdateOrganizationPlanReply": { "type": "object", "properties": {