From 268dcfe48fc7c52c43ebcebee65eff0da60fd5cd Mon Sep 17 00:00:00 2001 From: takashi-uchida Date: Wed, 29 May 2024 12:22:12 +0900 Subject: [PATCH 1/6] add x-saasus-referer --- saasus_sdk_python/client/apilog_client.py | 6 +++++- saasus_sdk_python/client/auth_client.py | 6 +++++- saasus_sdk_python/client/awsmarketplace_client.py | 6 +++++- saasus_sdk_python/client/billing_client.py | 6 +++++- saasus_sdk_python/client/client.py | 3 +++ saasus_sdk_python/client/communication_client.py | 6 +++++- saasus_sdk_python/client/integration_client.py | 6 +++++- saasus_sdk_python/client/pricing_client.py | 6 +++++- saasus_sdk_python/middleware/middleware.py | 3 ++- 9 files changed, 40 insertions(+), 8 deletions(-) diff --git a/saasus_sdk_python/client/apilog_client.py b/saasus_sdk_python/client/apilog_client.py index 035e5c1..6f591a3 100644 --- a/saasus_sdk_python/client/apilog_client.py +++ b/saasus_sdk_python/client/apilog_client.py @@ -6,10 +6,12 @@ class SignedApilogApiClient(ApiClient): - def __init__(self, *args, **kwargs): + def __init__(self, referer=None, x_saasus_referer=None, *args, **kwargs): super().__init__(*args, **kwargs) self.client = Client() self.configuration.default_headers = {} + self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") def call_api(self, resource_path, method, @@ -38,6 +40,8 @@ def call_api(self, resource_path, method, header_params = {} header_params.update(signature_headers) + header_params = self.client.set_referer_header(header_params) + # APIクライアントのcall_apiメソッドを呼び出して、署名付きのリクエストを行う return super().call_api( resource_path, method, diff --git a/saasus_sdk_python/client/auth_client.py b/saasus_sdk_python/client/auth_client.py index b871319..773f102 100644 --- a/saasus_sdk_python/client/auth_client.py +++ b/saasus_sdk_python/client/auth_client.py @@ -6,8 +6,10 @@ class SignedAuthApiClient(ApiClient): - def __init__(self, *args, **kwargs): + def __init__(self, referer=None, x_saasus_referer=None, *args, **kwargs): self.client = Client() + self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") super().__init__(*args, **kwargs) @@ -37,6 +39,8 @@ def call_api(self, resource_path, method, header_params = {} header_params.update(signature_headers) + header_params = self.client.set_referer_header(header_params) + # APIクライアントのcall_apiメソッドを呼び出して、署名付きのリクエストを行う return super().call_api( resource_path, method, diff --git a/saasus_sdk_python/client/awsmarketplace_client.py b/saasus_sdk_python/client/awsmarketplace_client.py index 3237c96..c8997f1 100644 --- a/saasus_sdk_python/client/awsmarketplace_client.py +++ b/saasus_sdk_python/client/awsmarketplace_client.py @@ -6,10 +6,12 @@ class SignedAwsmarketplaceApiClient(ApiClient): - def __init__(self, *args, **kwargs): + def __init__(self, referer=None, x_saasus_referer=None, *args, **kwargs): super().__init__(*args, **kwargs) self.client = Client() self.configuration.default_headers = {} + self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") def call_api(self, resource_path, method, @@ -38,6 +40,8 @@ def call_api(self, resource_path, method, header_params = {} header_params.update(signature_headers) + header_params = self.client.set_referer_header(header_params) + # APIクライアントのcall_apiメソッドを呼び出して、署名付きのリクエストを行う return super().call_api( resource_path, method, diff --git a/saasus_sdk_python/client/billing_client.py b/saasus_sdk_python/client/billing_client.py index e88a587..f14959e 100644 --- a/saasus_sdk_python/client/billing_client.py +++ b/saasus_sdk_python/client/billing_client.py @@ -6,10 +6,12 @@ class SignedBillingApiClient(ApiClient): - def __init__(self, *args, **kwargs): + def __init__(self, referer=None, x_saasus_referer=None, *args, **kwargs): super().__init__(*args, **kwargs) self.client = Client() self.configuration.default_headers = {} + self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") def call_api(self, resource_path, method, @@ -38,6 +40,8 @@ def call_api(self, resource_path, method, header_params = {} header_params.update(signature_headers) + header_params = self.client.set_referer_header(header_params) + # APIクライアントのcall_apiメソッドを呼び出して、署名付きのリクエストを行う return super().call_api( resource_path, method, diff --git a/saasus_sdk_python/client/client.py b/saasus_sdk_python/client/client.py index dfd2136..e0c2721 100644 --- a/saasus_sdk_python/client/client.py +++ b/saasus_sdk_python/client/client.py @@ -25,6 +25,7 @@ def __new__(cls): if cls._instance is None: cls._instance = super().__new__(cls) cls._instance.referer = None + cls._instance.x_saasus_referer = None cls._instance.api_key = os.getenv("SAASUS_API_KEY", "") cls._instance.secret_key = os.getenv("SAASUS_SECRET_KEY", "") cls._instance.saas_id = os.getenv("SAASUS_SAAS_ID", "") @@ -52,4 +53,6 @@ def generate_signature(self, method: str, url: str, body: str | None = None, hea def set_referer_header(self, header_params: dict) -> dict: if self.referer: header_params["Referer"] = self.referer + if self.x_saasus_referer: + header_params["X-SaaSus-Referer"] = self.x_saasus_referer return header_params diff --git a/saasus_sdk_python/client/communication_client.py b/saasus_sdk_python/client/communication_client.py index 1c050e6..64de0b3 100644 --- a/saasus_sdk_python/client/communication_client.py +++ b/saasus_sdk_python/client/communication_client.py @@ -6,10 +6,12 @@ class SignedCommunicationApiClient(ApiClient): - def __init__(self, *args, **kwargs): + def __init__(self, referer=None, x_saasus_referer=None, *args, **kwargs): super().__init__(*args, **kwargs) self.client = Client() self.configuration.default_headers = {} + self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") def call_api(self, resource_path, method, @@ -39,6 +41,8 @@ def call_api(self, resource_path, method, header_params = {} header_params.update(signature_headers) + header_params = self.client.set_referer_header(header_params) + # APIクライアントのcall_apiメソッドを呼び出して、署名付きのリクエストを行う return super().call_api( resource_path, method, diff --git a/saasus_sdk_python/client/integration_client.py b/saasus_sdk_python/client/integration_client.py index 2587e74..89a5bdc 100644 --- a/saasus_sdk_python/client/integration_client.py +++ b/saasus_sdk_python/client/integration_client.py @@ -6,10 +6,12 @@ class SignedIntegrationApiClient(ApiClient): - def __init__(self, *args, **kwargs): + def __init__(self, referer=None, x_saasus_referer=None, *args, **kwargs): super().__init__(*args, **kwargs) self.client = Client() self.configuration.default_headers = {} + self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") def call_api(self, resource_path, method, @@ -38,6 +40,8 @@ def call_api(self, resource_path, method, header_params = {} header_params.update(signature_headers) + header_params = self.client.set_referer_header(header_params) + # APIクライアントのcall_apiメソッドを呼び出して、署名付きのリクエストを行う return super().call_api( resource_path, method, diff --git a/saasus_sdk_python/client/pricing_client.py b/saasus_sdk_python/client/pricing_client.py index 8ec333c..7d65d76 100644 --- a/saasus_sdk_python/client/pricing_client.py +++ b/saasus_sdk_python/client/pricing_client.py @@ -5,10 +5,12 @@ class SignedPricingApiClient(ApiClient): - def __init__(self, *args, **kwargs): + def __init__(self, referer=None, x_saasus_referer=None, *args, **kwargs): super().__init__(*args, **kwargs) self.client = Client() self.configuration.default_headers = {} + self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer def call_api(self, resource_path, method, path_params=None, query_params=None, header_params=None, @@ -37,6 +39,8 @@ def call_api(self, resource_path, method, header_params = {} header_params.update(signature_headers) + header_params = self.client.set_referer_header(header_params) + # APIクライアントのcall_apiメソッドを呼び出して、署名付きのリクエストを行う return super().call_api( resource_path, method, diff --git a/saasus_sdk_python/middleware/middleware.py b/saasus_sdk_python/middleware/middleware.py index af3e6f5..0f08f8f 100644 --- a/saasus_sdk_python/middleware/middleware.py +++ b/saasus_sdk_python/middleware/middleware.py @@ -26,11 +26,12 @@ def __init__(self): self.client = Client() self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") - def authenticate(self, id_token: str, referer: str | None) -> tuple[None, AuthenticationError] | tuple[UserInfo, None] | tuple[None, ErrorResponse]: # noqa: E501 + def authenticate(self, id_token: str, referer: str | None, x_saasus_referer: str | None) -> tuple[None, AuthenticationError] | tuple[UserInfo, None] | tuple[None, ErrorResponse]: # noqa: E501 if not id_token: return None, AuthenticationError("Invalid Authorization header") self.client.referer = referer + self.client.x_saasus_referer = x_saasus_referer try: response = self.user_info(id_token) return response, None From f394226e5709c9b97ab2b25933bdbff520fe87a8 Mon Sep 17 00:00:00 2001 From: takashi-uchida Date: Fri, 31 May 2024 09:20:10 +0900 Subject: [PATCH 2/6] x-saasus-referer is option header --- saasus_sdk_python/middleware/middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/saasus_sdk_python/middleware/middleware.py b/saasus_sdk_python/middleware/middleware.py index 0f08f8f..ab64861 100644 --- a/saasus_sdk_python/middleware/middleware.py +++ b/saasus_sdk_python/middleware/middleware.py @@ -26,7 +26,7 @@ def __init__(self): self.client = Client() self.base_url = os.getenv("SAASUS_BASE_URL", "https://api.saasus.io/v1") - def authenticate(self, id_token: str, referer: str | None, x_saasus_referer: str | None) -> tuple[None, AuthenticationError] | tuple[UserInfo, None] | tuple[None, ErrorResponse]: # noqa: E501 + def authenticate(self, id_token: str, referer: str | None = None, x_saasus_referer: str | None = None) -> tuple[None, AuthenticationError] | tuple[UserInfo, None] | tuple[None, ErrorResponse]: # noqa: E501 if not id_token: return None, AuthenticationError("Invalid Authorization header") From c6948e98e0ad96b1178a4beb8ed13a7f21850eac Mon Sep 17 00:00:00 2001 From: takashi-uchida Date: Fri, 12 Jul 2024 19:55:27 +0900 Subject: [PATCH 3/6] support pydantic v2 using bump-pydantic --- generate.sh | 2 + poetry.lock | 558 +++++++++++++----- pyproject.toml | 3 +- .../src/apilog/api/api_log_api.py | 6 +- .../src/apilog/models/api_log.py | 8 +- .../src/apilog/models/api_logs.py | 11 +- saasus_sdk_python/src/apilog/models/error.py | 8 +- .../src/auth/models/account_verification.py | 14 +- saasus_sdk_python/src/auth/models/api_keys.py | 11 +- .../src/auth/models/attribute.py | 8 +- .../src/auth/models/auth_info.py | 8 +- .../auth/models/authorization_temp_code.py | 8 +- .../src/auth/models/basic_info.py | 11 +- .../src/auth/models/billing_address.py | 14 +- .../src/auth/models/billing_info.py | 8 +- .../src/auth/models/client_secret.py | 8 +- .../auth/models/confirm_email_update_param.py | 8 +- .../confirm_external_user_link_param.py | 8 +- ...firm_sign_up_with_aws_marketplace_param.py | 8 +- .../src/auth/models/create_saas_user_param.py | 8 +- .../auth/models/create_secret_code_param.py | 8 +- .../models/create_tenant_invitation_param.py | 11 +- .../auth/models/create_tenant_user_param.py | 8 +- .../models/create_tenant_user_roles_param.py | 11 +- .../src/auth/models/credentials.py | 8 +- .../src/auth/models/customize_page_props.py | 8 +- .../auth/models/customize_page_settings.py | 8 +- .../models/customize_page_settings_props.py | 8 +- .../src/auth/models/customize_pages.py | 8 +- .../src/auth/models/device_configuration.py | 11 +- .../src/auth/models/dns_record.py | 11 +- saasus_sdk_python/src/auth/models/env.py | 8 +- saasus_sdk_python/src/auth/models/envs.py | 11 +- saasus_sdk_python/src/auth/models/error.py | 8 +- .../models/identity_provider_configuration.py | 8 +- .../auth/models/identity_provider_props.py | 8 +- .../src/auth/models/identity_provider_saml.py | 8 +- .../src/auth/models/identity_providers.py | 8 +- .../src/auth/models/invitation.py | 11 +- .../src/auth/models/invitation_validity.py | 8 +- .../src/auth/models/invitations.py | 11 +- ...ited_user_environment_information_inner.py | 11 +- .../auth/models/link_aws_marketplace_param.py | 8 +- .../src/auth/models/message_template.py | 8 +- .../src/auth/models/mfa_configuration.py | 11 +- .../src/auth/models/mfa_preference.py | 11 +- .../src/auth/models/notification_messages.py | 8 +- .../src/auth/models/password_policy.py | 8 +- .../src/auth/models/plan_histories.py | 11 +- .../src/auth/models/plan_history.py | 8 +- .../src/auth/models/plan_reservation.py | 8 +- .../src/auth/models/recaptcha_props.py | 8 +- .../auth/models/request_email_update_param.py | 8 +- .../request_external_user_link_param.py | 8 +- ...resend_sign_up_confirmation_email_param.py | 8 +- saasus_sdk_python/src/auth/models/role.py | 8 +- saasus_sdk_python/src/auth/models/roles.py | 11 +- saasus_sdk_python/src/auth/models/saas_id.py | 8 +- .../src/auth/models/saas_user.py | 8 +- .../src/auth/models/saas_users.py | 11 +- .../src/auth/models/self_regist.py | 8 +- .../src/auth/models/sign_in_settings.py | 8 +- .../src/auth/models/sign_up_param.py | 8 +- .../sign_up_with_aws_marketplace_param.py | 8 +- .../auth/models/software_token_secret_code.py | 8 +- saasus_sdk_python/src/auth/models/tenant.py | 11 +- .../src/auth/models/tenant_attributes.py | 11 +- .../src/auth/models/tenant_detail.py | 11 +- .../models/tenant_identity_provider_props.py | 17 +- .../auth/models/tenant_identity_providers.py | 8 +- .../models/tenant_identity_providers_saml.py | 8 +- .../src/auth/models/tenant_props.py | 8 +- saasus_sdk_python/src/auth/models/tenants.py | 11 +- .../auth/models/update_basic_info_param.py | 8 +- .../update_customize_page_settings_param.py | 8 +- .../models/update_customize_pages_param.py | 8 +- .../src/auth/models/update_env_param.py | 8 +- .../models/update_identity_provider_param.py | 8 +- .../update_notification_messages_param.py | 8 +- .../models/update_saas_user_email_param.py | 8 +- .../models/update_saas_user_password_param.py | 8 +- .../models/update_sign_in_settings_param.py | 8 +- .../models/update_software_token_param.py | 8 +- .../update_tenant_identity_provider_param.py | 8 +- .../auth/models/update_tenant_user_param.py | 8 +- saasus_sdk_python/src/auth/models/user.py | 11 +- .../src/auth/models/user_attributes.py | 11 +- .../src/auth/models/user_available_env.py | 11 +- .../src/auth/models/user_available_tenant.py | 11 +- .../src/auth/models/user_info.py | 11 +- saasus_sdk_python/src/auth/models/users.py | 11 +- .../auth/models/validate_invitation_param.py | 8 +- .../awsmarketplace/api/aws_marketplace_api.py | 8 +- .../models/catalog_entity_visibility.py | 8 +- .../cloud_formation_launch_stack_link.py | 8 +- .../models/create_customer_param.py | 8 +- .../src/awsmarketplace/models/customer.py | 8 +- .../src/awsmarketplace/models/customers.py | 11 +- .../src/awsmarketplace/models/error.py | 8 +- .../models/get_listing_status_result.py | 8 +- .../src/awsmarketplace/models/plan.py | 8 +- .../src/awsmarketplace/models/plans.py | 11 +- .../awsmarketplace/models/save_plan_param.py | 8 +- .../src/awsmarketplace/models/settings.py | 8 +- .../models/update_listing_status_param.py | 8 +- .../models/update_settings_param.py | 8 +- .../models/verify_registration_token_param.py | 8 +- saasus_sdk_python/src/billing/models/error.py | 8 +- .../src/billing/models/stripe_info.py | 8 +- .../models/update_stripe_info_param.py | 8 +- .../src/communication/models/comment.py | 8 +- .../src/communication/models/comments.py | 11 +- .../models/create_feedback_comment_param.py | 8 +- .../models/create_feedback_param.py | 8 +- .../models/create_vote_user_param.py | 8 +- .../src/communication/models/error.py | 8 +- .../src/communication/models/feedback.py | 13 +- .../models/feedback_save_props.py | 8 +- .../src/communication/models/feedbacks.py | 11 +- .../models/update_feedback_comment_param.py | 8 +- .../models/update_feedback_param.py | 8 +- .../models/update_feedback_status_param.py | 8 +- .../src/communication/models/user.py | 8 +- .../src/communication/models/users.py | 11 +- .../src/communication/models/votes.py | 11 +- .../models/create_event_bridge_event_param.py | 11 +- .../src/integration/models/error.py | 8 +- .../models/event_bridge_settings.py | 8 +- .../src/integration/models/event_message.py | 8 +- saasus_sdk_python/src/pricing/models/error.py | 8 +- .../src/pricing/models/metering_unit.py | 8 +- .../src/pricing/models/metering_unit_count.py | 8 +- .../models/metering_unit_date_count.py | 8 +- .../models/metering_unit_date_counts.py | 11 +- .../metering_unit_date_period_counts.py | 11 +- .../models/metering_unit_month_count.py | 8 +- .../models/metering_unit_month_counts.py | 11 +- .../src/pricing/models/metering_unit_props.py | 8 +- .../models/metering_unit_timestamp_count.py | 8 +- .../src/pricing/models/metering_units.py | 11 +- .../src/pricing/models/pricing_fixed_unit.py | 8 +- .../models/pricing_fixed_unit_for_save.py | 8 +- .../src/pricing/models/pricing_menu.py | 11 +- .../src/pricing/models/pricing_menu_props.py | 11 +- .../src/pricing/models/pricing_menus.py | 11 +- .../src/pricing/models/pricing_plan.py | 11 +- .../src/pricing/models/pricing_plan_props.py | 11 +- .../src/pricing/models/pricing_plans.py | 11 +- .../src/pricing/models/pricing_tier.py | 8 +- .../src/pricing/models/pricing_tiered_unit.py | 11 +- .../models/pricing_tiered_unit_for_save.py | 11 +- .../models/pricing_tiered_usage_unit.py | 11 +- .../pricing_tiered_usage_unit_for_save.py | 11 +- .../src/pricing/models/pricing_tiers.py | 11 +- .../src/pricing/models/pricing_unit.py | 17 +- .../pricing/models/pricing_unit_base_props.py | 8 +- .../pricing/models/pricing_unit_for_save.py | 17 +- .../src/pricing/models/pricing_units.py | 11 +- .../src/pricing/models/pricing_usage_unit.py | 8 +- .../models/pricing_usage_unit_for_save.py | 8 +- .../pricing/models/save_pricing_menu_param.py | 11 +- .../pricing/models/save_pricing_plan_param.py | 11 +- .../src/pricing/models/tax_rate.py | 14 +- .../src/pricing/models/tax_rate_props.py | 14 +- .../src/pricing/models/tax_rates.py | 11 +- ...metering_unit_timestamp_count_now_param.py | 8 +- ...ate_metering_unit_timestamp_count_param.py | 8 +- .../models/update_pricing_plans_used_param.py | 11 +- .../pricing/models/update_tax_rate_param.py | 8 +- test/apilog/api/api_log_api.py | 6 +- test/apilog/models/api_log.py | 8 +- test/apilog/models/api_logs.py | 11 +- test/apilog/models/error.py | 8 +- test/auth/models/account_verification.py | 14 +- test/auth/models/api_keys.py | 11 +- test/auth/models/attribute.py | 8 +- test/auth/models/auth_info.py | 8 +- test/auth/models/authorization_temp_code.py | 8 +- test/auth/models/basic_info.py | 11 +- test/auth/models/billing_address.py | 14 +- test/auth/models/billing_info.py | 8 +- test/auth/models/client_secret.py | 8 +- .../auth/models/confirm_email_update_param.py | 8 +- .../confirm_external_user_link_param.py | 8 +- ...firm_sign_up_with_aws_marketplace_param.py | 8 +- test/auth/models/create_saas_user_param.py | 8 +- test/auth/models/create_secret_code_param.py | 8 +- .../models/create_tenant_invitation_param.py | 11 +- test/auth/models/create_tenant_user_param.py | 8 +- .../models/create_tenant_user_roles_param.py | 11 +- test/auth/models/credentials.py | 8 +- test/auth/models/customize_page_props.py | 8 +- test/auth/models/customize_page_settings.py | 8 +- .../models/customize_page_settings_props.py | 8 +- test/auth/models/customize_pages.py | 8 +- test/auth/models/device_configuration.py | 11 +- test/auth/models/dns_record.py | 11 +- test/auth/models/env.py | 8 +- test/auth/models/envs.py | 11 +- test/auth/models/error.py | 8 +- .../models/identity_provider_configuration.py | 8 +- test/auth/models/identity_provider_props.py | 8 +- test/auth/models/identity_provider_saml.py | 8 +- test/auth/models/identity_providers.py | 8 +- test/auth/models/invitation.py | 11 +- test/auth/models/invitation_validity.py | 8 +- test/auth/models/invitations.py | 11 +- ...ited_user_environment_information_inner.py | 11 +- .../auth/models/link_aws_marketplace_param.py | 8 +- test/auth/models/message_template.py | 8 +- test/auth/models/mfa_configuration.py | 11 +- test/auth/models/mfa_preference.py | 11 +- test/auth/models/notification_messages.py | 8 +- test/auth/models/password_policy.py | 8 +- test/auth/models/plan_histories.py | 11 +- test/auth/models/plan_history.py | 8 +- test/auth/models/plan_reservation.py | 8 +- test/auth/models/recaptcha_props.py | 8 +- .../auth/models/request_email_update_param.py | 8 +- .../request_external_user_link_param.py | 8 +- ...resend_sign_up_confirmation_email_param.py | 8 +- test/auth/models/role.py | 8 +- test/auth/models/roles.py | 11 +- test/auth/models/saas_id.py | 8 +- test/auth/models/saas_user.py | 8 +- test/auth/models/saas_users.py | 11 +- test/auth/models/self_regist.py | 8 +- test/auth/models/sign_in_settings.py | 8 +- test/auth/models/sign_up_param.py | 8 +- .../sign_up_with_aws_marketplace_param.py | 8 +- .../auth/models/software_token_secret_code.py | 8 +- test/auth/models/tenant.py | 11 +- test/auth/models/tenant_attributes.py | 11 +- test/auth/models/tenant_detail.py | 11 +- .../models/tenant_identity_provider_props.py | 17 +- test/auth/models/tenant_identity_providers.py | 8 +- .../models/tenant_identity_providers_saml.py | 8 +- test/auth/models/tenant_props.py | 8 +- test/auth/models/tenants.py | 11 +- test/auth/models/update_basic_info_param.py | 8 +- .../update_customize_page_settings_param.py | 8 +- .../models/update_customize_pages_param.py | 8 +- test/auth/models/update_env_param.py | 8 +- .../models/update_identity_provider_param.py | 8 +- .../update_notification_messages_param.py | 8 +- .../models/update_saas_user_email_param.py | 8 +- .../models/update_saas_user_password_param.py | 8 +- .../models/update_sign_in_settings_param.py | 8 +- .../models/update_software_token_param.py | 8 +- .../update_tenant_identity_provider_param.py | 8 +- test/auth/models/update_tenant_user_param.py | 8 +- test/auth/models/user.py | 11 +- test/auth/models/user_attributes.py | 11 +- test/auth/models/user_available_env.py | 11 +- test/auth/models/user_available_tenant.py | 11 +- test/auth/models/user_info.py | 11 +- test/auth/models/users.py | 11 +- test/auth/models/validate_invitation_param.py | 8 +- .../awsmarketplace/api/aws_marketplace_api.py | 8 +- .../models/catalog_entity_visibility.py | 8 +- .../cloud_formation_launch_stack_link.py | 8 +- .../models/create_customer_param.py | 8 +- test/awsmarketplace/models/customer.py | 8 +- test/awsmarketplace/models/customers.py | 11 +- test/awsmarketplace/models/error.py | 8 +- .../models/get_listing_status_result.py | 8 +- test/awsmarketplace/models/plan.py | 8 +- test/awsmarketplace/models/plans.py | 11 +- test/awsmarketplace/models/save_plan_param.py | 8 +- test/awsmarketplace/models/settings.py | 8 +- .../models/update_listing_status_param.py | 8 +- .../models/update_settings_param.py | 8 +- .../models/verify_registration_token_param.py | 8 +- test/billing/models/error.py | 8 +- test/billing/models/stripe_info.py | 8 +- .../models/update_stripe_info_param.py | 8 +- test/communication/models/comment.py | 8 +- test/communication/models/comments.py | 11 +- .../models/create_feedback_comment_param.py | 8 +- .../models/create_feedback_param.py | 8 +- .../models/create_vote_user_param.py | 8 +- test/communication/models/error.py | 8 +- test/communication/models/feedback.py | 13 +- .../models/feedback_save_props.py | 8 +- test/communication/models/feedbacks.py | 11 +- .../models/update_feedback_comment_param.py | 8 +- .../models/update_feedback_param.py | 8 +- .../models/update_feedback_status_param.py | 8 +- test/communication/models/user.py | 8 +- test/communication/models/users.py | 11 +- test/communication/models/votes.py | 11 +- .../models/create_event_bridge_event_param.py | 11 +- test/integration/models/error.py | 8 +- .../models/event_bridge_settings.py | 8 +- test/integration/models/event_message.py | 8 +- test/pricing/models/error.py | 8 +- test/pricing/models/metering_unit.py | 8 +- test/pricing/models/metering_unit_count.py | 8 +- .../models/metering_unit_date_count.py | 8 +- .../models/metering_unit_date_counts.py | 11 +- .../metering_unit_date_period_counts.py | 11 +- .../models/metering_unit_month_count.py | 8 +- .../models/metering_unit_month_counts.py | 11 +- test/pricing/models/metering_unit_props.py | 8 +- .../models/metering_unit_timestamp_count.py | 8 +- test/pricing/models/metering_units.py | 11 +- test/pricing/models/pricing_fixed_unit.py | 8 +- .../models/pricing_fixed_unit_for_save.py | 8 +- test/pricing/models/pricing_menu.py | 11 +- test/pricing/models/pricing_menu_props.py | 11 +- test/pricing/models/pricing_menus.py | 11 +- test/pricing/models/pricing_plan.py | 11 +- test/pricing/models/pricing_plan_props.py | 11 +- test/pricing/models/pricing_plans.py | 11 +- test/pricing/models/pricing_tier.py | 8 +- test/pricing/models/pricing_tiered_unit.py | 11 +- .../models/pricing_tiered_unit_for_save.py | 11 +- .../models/pricing_tiered_usage_unit.py | 11 +- .../pricing_tiered_usage_unit_for_save.py | 11 +- test/pricing/models/pricing_tiers.py | 11 +- test/pricing/models/pricing_unit.py | 17 +- .../pricing/models/pricing_unit_base_props.py | 8 +- test/pricing/models/pricing_unit_for_save.py | 17 +- test/pricing/models/pricing_units.py | 11 +- test/pricing/models/pricing_usage_unit.py | 8 +- .../models/pricing_usage_unit_for_save.py | 8 +- .../pricing/models/save_pricing_menu_param.py | 11 +- .../pricing/models/save_pricing_plan_param.py | 11 +- test/pricing/models/tax_rate.py | 14 +- test/pricing/models/tax_rate_props.py | 14 +- test/pricing/models/tax_rates.py | 11 +- ...metering_unit_timestamp_count_now_param.py | 8 +- ...ate_metering_unit_timestamp_count_param.py | 8 +- .../models/update_pricing_plans_used_param.py | 11 +- test/pricing/models/update_tax_rate_param.py | 8 +- 335 files changed, 1382 insertions(+), 2263 deletions(-) diff --git a/generate.sh b/generate.sh index 1979b9b..d71512c 100755 --- a/generate.sh +++ b/generate.sh @@ -52,6 +52,8 @@ do --package-name saasus_sdk_python.src.${module} done +bump-pydantic saasus_sdk_python/generated + for module in "${MODULES[@]}" do # プログラム diff --git a/poetry.lock b/poetry.lock index 088cb8f..277ad55 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.5.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. [[package]] name = "aenum" @@ -12,26 +12,15 @@ files = [ {file = "aenum-3.1.15.tar.gz", hash = "sha256:8cbd76cd18c4f870ff39b24284d3ea028fbe8731a58df3aa581e434c575b9559"}, ] -[[package]] -name = "annotated-types" -version = "0.6.0" -description = "Reusable constraint types to use with typing.Annotated" -optional = false -python-versions = ">=3.8" -files = [ - {file = "annotated_types-0.6.0-py3-none-any.whl", hash = "sha256:0641064de18ba7a25dee8f96403ebc39113d0cb953a01429249d5c7564666a43"}, - {file = "annotated_types-0.6.0.tar.gz", hash = "sha256:563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d"}, -] - [[package]] name = "anyio" -version = "4.3.0" +version = "4.4.0" description = "High level compatibility layer for multiple asynchronous event loop implementations" optional = false python-versions = ">=3.8" files = [ - {file = "anyio-4.3.0-py3-none-any.whl", hash = "sha256:048e05d0f6caeed70d731f3db756d35dcc1f35747c8c403364a8332c630441b8"}, - {file = "anyio-4.3.0.tar.gz", hash = "sha256:f75253795a87df48568485fd18cdd2a3fa5c4f7c5be8e5e36637733fce06fed6"}, + {file = "anyio-4.4.0-py3-none-any.whl", hash = "sha256:c1b2d8f46a8a812513012e1107cb0e68c17159a7a594208005a57dc776e1bdc7"}, + {file = "anyio-4.4.0.tar.gz", hash = "sha256:5aadc6a1bbb7cdb0bede386cac5e2940f5e2ff3aa20277e991cf028e0585ce94"}, ] [package.dependencies] @@ -45,6 +34,23 @@ doc = ["Sphinx (>=7)", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphin test = ["anyio[trio]", "coverage[toml] (>=7)", "exceptiongroup (>=1.2.0)", "hypothesis (>=4.0)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"] trio = ["trio (>=0.23)"] +[[package]] +name = "bump-pydantic" +version = "0.8.0" +description = "Convert Pydantic from V1 to V2 ♻" +optional = false +python-versions = ">=3.8" +files = [ + {file = "bump_pydantic-0.8.0-py3-none-any.whl", hash = "sha256:6cbb4deb5869a69baa5a477f28f3e2d8fb09b687e114c018bd54470590ae7bf7"}, + {file = "bump_pydantic-0.8.0.tar.gz", hash = "sha256:6092e61930e85619e74eeb04131b4387feda16f02d8bb2e3cf9507fa492c69e9"}, +] + +[package.dependencies] +libcst = ">=0.4.2" +rich = "*" +typer = ">=0.7.0" +typing-extensions = "*" + [[package]] name = "click" version = "8.1.7" @@ -72,13 +78,13 @@ files = [ [[package]] name = "exceptiongroup" -version = "1.2.0" +version = "1.2.1" description = "Backport of PEP 654 (exception groups)" optional = false python-versions = ">=3.7" files = [ - {file = "exceptiongroup-1.2.0-py3-none-any.whl", hash = "sha256:4bfd3996ac73b41e9b9628b04e079f193850720ea5945fc96a08633c66912f14"}, - {file = "exceptiongroup-1.2.0.tar.gz", hash = "sha256:91f5c769735f051a4290d52edd0858999b57e5876e9f85937691bd4c9fa3ed68"}, + {file = "exceptiongroup-1.2.1-py3-none-any.whl", hash = "sha256:5258b9ed329c5bbdd31a309f53cbfb0b155341807f6ff7606a1e801a891b29ad"}, + {file = "exceptiongroup-1.2.1.tar.gz", hash = "sha256:a4785e48b045528f5bfe627b6ad554ff32def154f42372786903b7abcfe1aa16"}, ] [package.extras] @@ -105,19 +111,19 @@ all = ["email-validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)" [[package]] name = "flake8" -version = "6.1.0" +version = "3.9.2" description = "the modular source code checker: pep8 pyflakes and co" optional = false -python-versions = ">=3.8.1" +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,>=2.7" files = [ - {file = "flake8-6.1.0-py2.py3-none-any.whl", hash = "sha256:ffdfce58ea94c6580c77888a86506937f9a1a227dfcd15f245d694ae20a6b6e5"}, - {file = "flake8-6.1.0.tar.gz", hash = "sha256:d5b3857f07c030bdb5bf41c7f53799571d75c4491748a3adcd47de929e34cd23"}, + {file = "flake8-3.9.2-py2.py3-none-any.whl", hash = "sha256:bf8fd333346d844f616e8d47905ef3a3384edae6b4e9beb0c5101e25e3110907"}, + {file = "flake8-3.9.2.tar.gz", hash = "sha256:07528381786f2a6237b061f6e96610a4167b226cb926e2aa2b6b1d78057c576b"}, ] [package.dependencies] -mccabe = ">=0.7.0,<0.8.0" -pycodestyle = ">=2.11.0,<2.12.0" -pyflakes = ">=3.1.0,<3.2.0" +mccabe = ">=0.6.0,<0.7.0" +pycodestyle = ">=2.7.0,<2.8.0" +pyflakes = ">=2.3.0,<2.4.0" [[package]] name = "h11" @@ -132,24 +138,118 @@ files = [ [[package]] name = "idna" -version = "3.6" +version = "3.7" description = "Internationalized Domain Names in Applications (IDNA)" optional = false python-versions = ">=3.5" files = [ - {file = "idna-3.6-py3-none-any.whl", hash = "sha256:c05567e9c24a6b9faaa835c4821bad0590fbb9d5779e7caa6e1cc4978e7eb24f"}, - {file = "idna-3.6.tar.gz", hash = "sha256:9ecdbbd083b06798ae1e86adcbfe8ab1479cf864e4ee30fe4e46a003d12491ca"}, + {file = "idna-3.7-py3-none-any.whl", hash = "sha256:82fee1fc78add43492d3a1898bfa6d8a904cc97d8427f683ed8e798d07761aa0"}, + {file = "idna-3.7.tar.gz", hash = "sha256:028ff3aadf0609c1fd278d8ea3089299412a7a8b9bd005dd08b9f8285bcb5cfc"}, +] + +[[package]] +name = "libcst" +version = "1.1.0" +description = "A concrete syntax tree with AST-like properties for Python 3.5, 3.6, 3.7, 3.8, 3.9, and 3.10 programs." +optional = false +python-versions = ">=3.8" +files = [ + {file = "libcst-1.1.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:63f75656fd733dc20354c46253fde3cf155613e37643c3eaf6f8818e95b7a3d1"}, + {file = "libcst-1.1.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8ae11eb1ea55a16dc0cdc61b41b29ac347da70fec14cc4381248e141ee2fbe6c"}, + {file = "libcst-1.1.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4bc745d0c06420fe2644c28d6ddccea9474fb68a2135904043676deb4fa1e6bc"}, + {file = "libcst-1.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8c1f2da45f1c45634090fd8672c15e0159fdc46853336686959b2d093b6e10fa"}, + {file = "libcst-1.1.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:003e5e83a12eed23542c4ea20fdc8de830887cc03662432bb36f84f8c4841b81"}, + {file = "libcst-1.1.0-cp310-cp310-win_amd64.whl", hash = "sha256:3ebbb9732ae3cc4ae7a0e97890bed0a57c11d6df28790c2b9c869f7da653c7c7"}, + {file = "libcst-1.1.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:d68c34e3038d3d1d6324eb47744cbf13f2c65e1214cf49db6ff2a6603c1cd838"}, + {file = "libcst-1.1.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:9dffa1795c2804d183efb01c0f1efd20a7831db6a21a0311edf90b4100d67436"}, + {file = "libcst-1.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc9b6ac36d7ec9db2f053014ea488086ca2ed9c322be104fbe2c71ca759da4bb"}, + {file = "libcst-1.1.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:78b7a38ec4c1c009ac39027d51558b52851fb9234669ba5ba62283185963a31c"}, + {file = "libcst-1.1.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5297a16e575be8173185e936b7765c89a3ca69d4ae217a4af161814a0f9745a7"}, + {file = "libcst-1.1.0-cp311-cp311-win_amd64.whl", hash = "sha256:7ccaf53925f81118aeaadb068a911fac8abaff608817d7343da280616a5ca9c1"}, + {file = "libcst-1.1.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:75816647736f7e09c6120bdbf408456f99b248d6272277eed9a58cf50fb8bc7d"}, + {file = "libcst-1.1.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c8f26250f87ca849a7303ed7a4fd6b2c7ac4dec16b7d7e68ca6a476d7c9bfcdb"}, + {file = "libcst-1.1.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2d37326bd6f379c64190a28947a586b949de3a76be00176b0732c8ee87d67ebe"}, + {file = "libcst-1.1.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e3d8cf974cfa2487b28f23f56c4bff90d550ef16505e58b0dca0493d5293784b"}, + {file = "libcst-1.1.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:82d1271403509b0a4ee6ff7917c2d33b5a015f44d1e208abb1da06ba93b2a378"}, + {file = "libcst-1.1.0-cp312-cp312-win_amd64.whl", hash = "sha256:bca1841693941fdd18371824bb19a9702d5784cd347cb8231317dbdc7062c5bc"}, + {file = "libcst-1.1.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:f36f592e035ef84f312a12b75989dde6a5f6767fe99146cdae6a9ee9aff40dd0"}, + {file = "libcst-1.1.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:f561c9a84eca18be92f4ad90aa9bd873111efbea995449301719a1a7805dbc5c"}, + {file = "libcst-1.1.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:97fbc73c87e9040e148881041fd5ffa2a6ebf11f64b4ccb5b52e574b95df1a15"}, + {file = "libcst-1.1.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:99fdc1929703fd9e7408aed2e03f58701c5280b05c8911753a8d8619f7dfdda5"}, + {file = "libcst-1.1.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0bf69cbbab5016d938aac4d3ae70ba9ccb3f90363c588b3b97be434e6ba95403"}, + {file = "libcst-1.1.0-cp38-cp38-win_amd64.whl", hash = "sha256:fe41b33aa73635b1651f64633f429f7aa21f86d2db5748659a99d9b7b1ed2a90"}, + {file = "libcst-1.1.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:73c086705ed34dbad16c62c9adca4249a556c1b022993d511da70ea85feaf669"}, + {file = "libcst-1.1.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3a07ecfabbbb8b93209f952a365549e65e658831e9231649f4f4e4263cad24b1"}, + {file = "libcst-1.1.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c653d9121d6572d8b7f8abf20f88b0a41aab77ff5a6a36e5a0ec0f19af0072e8"}, + {file = "libcst-1.1.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5f1cd308a4c2f71d5e4eec6ee693819933a03b78edb2e4cc5e3ad1afd5fb3f07"}, + {file = "libcst-1.1.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8afb6101b8b3c86c5f9cec6b90ab4da16c3c236fe7396f88e8b93542bb341f7c"}, + {file = "libcst-1.1.0-cp39-cp39-win_amd64.whl", hash = "sha256:d22d1abfe49aa60fc61fa867e10875a9b3024ba5a801112f4d7ba42d8d53242e"}, + {file = "libcst-1.1.0.tar.gz", hash = "sha256:0acbacb9a170455701845b7e940e2d7b9519db35a86768d86330a0b0deae1086"}, +] + +[package.dependencies] +pyyaml = ">=5.2" +typing-extensions = ">=3.7.4.2" +typing-inspect = ">=0.4.0" + +[package.extras] +dev = ["Sphinx (>=5.1.1)", "black (==23.9.1)", "build (>=0.10.0)", "coverage (>=4.5.4)", "fixit (==2.0.0.post1)", "flake8 (>=3.7.8,<5)", "hypothesis (>=4.36.0)", "hypothesmith (>=0.0.4)", "jinja2 (==3.1.2)", "jupyter (>=1.0.0)", "maturin (>=0.8.3,<0.16)", "nbsphinx (>=0.4.2)", "prompt-toolkit (>=2.0.9)", "pyre-check (==0.9.18)", "setuptools-rust (>=1.5.2)", "setuptools-scm (>=6.0.1)", "slotscheck (>=0.7.1)", "sphinx-rtd-theme (>=0.4.3)", "ufmt (==2.2.0)", "usort (==1.0.7)"] + +[[package]] +name = "markdown-it-py" +version = "3.0.0" +description = "Python port of markdown-it. Markdown parsing, done right!" +optional = false +python-versions = ">=3.8" +files = [ + {file = "markdown-it-py-3.0.0.tar.gz", hash = "sha256:e3f60a94fa066dc52ec76661e37c851cb232d92f9886b15cb560aaada2df8feb"}, + {file = "markdown_it_py-3.0.0-py3-none-any.whl", hash = "sha256:355216845c60bd96232cd8d8c40e8f9765cc86f46880e43a8fd22dc1a1a8cab1"}, ] +[package.dependencies] +mdurl = ">=0.1,<1.0" + +[package.extras] +benchmarking = ["psutil", "pytest", "pytest-benchmark"] +code-style = ["pre-commit (>=3.0,<4.0)"] +compare = ["commonmark (>=0.9,<1.0)", "markdown (>=3.4,<4.0)", "mistletoe (>=1.0,<2.0)", "mistune (>=2.0,<3.0)", "panflute (>=2.3,<3.0)"] +linkify = ["linkify-it-py (>=1,<3)"] +plugins = ["mdit-py-plugins"] +profiling = ["gprof2dot"] +rtd = ["jupyter_sphinx", "mdit-py-plugins", "myst-parser", "pyyaml", "sphinx", "sphinx-copybutton", "sphinx-design", "sphinx_book_theme"] +testing = ["coverage", "pytest", "pytest-cov", "pytest-regressions"] + [[package]] name = "mccabe" -version = "0.7.0" +version = "0.6.1" description = "McCabe checker, plugin for flake8" optional = false -python-versions = ">=3.6" +python-versions = "*" +files = [ + {file = "mccabe-0.6.1-py2.py3-none-any.whl", hash = "sha256:ab8a6258860da4b6677da4bd2fe5dc2c659cff31b3ee4f7f5d64e79735b80d42"}, + {file = "mccabe-0.6.1.tar.gz", hash = "sha256:dd8d182285a0fe56bace7f45b5e7d1a6ebcbf524e8f3bd87eb0f125271b8831f"}, +] + +[[package]] +name = "mdurl" +version = "0.1.2" +description = "Markdown URL utilities" +optional = false +python-versions = ">=3.7" +files = [ + {file = "mdurl-0.1.2-py3-none-any.whl", hash = "sha256:84008a41e51615a49fc9966191ff91509e3c40b939176e643fd50a5c2196b8f8"}, + {file = "mdurl-0.1.2.tar.gz", hash = "sha256:bb413d29f5eea38f31dd4754dd7377d4465116fb207585f97bf925588687c1ba"}, +] + +[[package]] +name = "mypy-extensions" +version = "1.0.0" +description = "Type system extensions for programs checked with the mypy type checker." +optional = false +python-versions = ">=3.5" files = [ - {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, - {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, + {file = "mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d"}, + {file = "mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782"}, ] [[package]] @@ -168,120 +268,170 @@ urllib3 = ">=1.25.3" [[package]] name = "pycodestyle" -version = "2.11.1" +version = "2.7.0" description = "Python style guide checker" optional = false -python-versions = ">=3.8" +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" files = [ - {file = "pycodestyle-2.11.1-py2.py3-none-any.whl", hash = "sha256:44fe31000b2d866f2e41841b18528a505fbd7fef9017b04eff4e2648a0fadc67"}, - {file = "pycodestyle-2.11.1.tar.gz", hash = "sha256:41ba0e7afc9752dfb53ced5489e89f8186be00e599e712660695b7a75ff2663f"}, + {file = "pycodestyle-2.7.0-py2.py3-none-any.whl", hash = "sha256:514f76d918fcc0b55c6680472f0a37970994e07bbb80725808c17089be302068"}, + {file = "pycodestyle-2.7.0.tar.gz", hash = "sha256:c389c1d06bf7904078ca03399a4816f974a1d590090fecea0c63ec26ebaf1cef"}, ] [[package]] name = "pydantic" -version = "2.6.3" -description = "Data validation using Python type hints" +version = "1.10.17" +description = "Data validation and settings management using python type hints" optional = false -python-versions = ">=3.8" +python-versions = ">=3.7" files = [ - {file = "pydantic-2.6.3-py3-none-any.whl", hash = "sha256:72c6034df47f46ccdf81869fddb81aade68056003900a8724a4f160700016a2a"}, - {file = "pydantic-2.6.3.tar.gz", hash = "sha256:e07805c4c7f5c6826e33a1d4c9d47950d7eaf34868e2690f8594d2e30241f11f"}, + {file = "pydantic-1.10.17-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:0fa51175313cc30097660b10eec8ca55ed08bfa07acbfe02f7a42f6c242e9a4b"}, + {file = "pydantic-1.10.17-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c7e8988bb16988890c985bd2093df9dd731bfb9d5e0860db054c23034fab8f7a"}, + {file = "pydantic-1.10.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:371dcf1831f87c9e217e2b6a0c66842879a14873114ebb9d0861ab22e3b5bb1e"}, + {file = "pydantic-1.10.17-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4866a1579c0c3ca2c40575398a24d805d4db6cb353ee74df75ddeee3c657f9a7"}, + {file = "pydantic-1.10.17-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:543da3c6914795b37785703ffc74ba4d660418620cc273490d42c53949eeeca6"}, + {file = "pydantic-1.10.17-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7623b59876f49e61c2e283551cc3647616d2fbdc0b4d36d3d638aae8547ea681"}, + {file = "pydantic-1.10.17-cp310-cp310-win_amd64.whl", hash = "sha256:409b2b36d7d7d19cd8310b97a4ce6b1755ef8bd45b9a2ec5ec2b124db0a0d8f3"}, + {file = "pydantic-1.10.17-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:fa43f362b46741df8f201bf3e7dff3569fa92069bcc7b4a740dea3602e27ab7a"}, + {file = "pydantic-1.10.17-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2a72d2a5ff86a3075ed81ca031eac86923d44bc5d42e719d585a8eb547bf0c9b"}, + {file = "pydantic-1.10.17-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b4ad32aed3bf5eea5ca5decc3d1bbc3d0ec5d4fbcd72a03cdad849458decbc63"}, + {file = "pydantic-1.10.17-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:aeb4e741782e236ee7dc1fb11ad94dc56aabaf02d21df0e79e0c21fe07c95741"}, + {file = "pydantic-1.10.17-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d2f89a719411cb234105735a520b7c077158a81e0fe1cb05a79c01fc5eb59d3c"}, + {file = "pydantic-1.10.17-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:db3b48d9283d80a314f7a682f7acae8422386de659fffaba454b77a083c3937d"}, + {file = "pydantic-1.10.17-cp311-cp311-win_amd64.whl", hash = "sha256:9c803a5113cfab7bbb912f75faa4fc1e4acff43e452c82560349fff64f852e1b"}, + {file = "pydantic-1.10.17-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:820ae12a390c9cbb26bb44913c87fa2ff431a029a785642c1ff11fed0a095fcb"}, + {file = "pydantic-1.10.17-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c1e51d1af306641b7d1574d6d3307eaa10a4991542ca324f0feb134fee259815"}, + {file = "pydantic-1.10.17-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9e53fb834aae96e7b0dadd6e92c66e7dd9cdf08965340ed04c16813102a47fab"}, + {file = "pydantic-1.10.17-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0e2495309b1266e81d259a570dd199916ff34f7f51f1b549a0d37a6d9b17b4dc"}, + {file = "pydantic-1.10.17-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:098ad8de840c92ea586bf8efd9e2e90c6339d33ab5c1cfbb85be66e4ecf8213f"}, + {file = "pydantic-1.10.17-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:525bbef620dac93c430d5d6bdbc91bdb5521698d434adf4434a7ef6ffd5c4b7f"}, + {file = "pydantic-1.10.17-cp312-cp312-win_amd64.whl", hash = "sha256:6654028d1144df451e1da69a670083c27117d493f16cf83da81e1e50edce72ad"}, + {file = "pydantic-1.10.17-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:c87cedb4680d1614f1d59d13fea353faf3afd41ba5c906a266f3f2e8c245d655"}, + {file = "pydantic-1.10.17-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:11289fa895bcbc8f18704efa1d8020bb9a86314da435348f59745473eb042e6b"}, + {file = "pydantic-1.10.17-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:94833612d6fd18b57c359a127cbfd932d9150c1b72fea7c86ab58c2a77edd7c7"}, + {file = "pydantic-1.10.17-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:d4ecb515fa7cb0e46e163ecd9d52f9147ba57bc3633dca0e586cdb7a232db9e3"}, + {file = "pydantic-1.10.17-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:7017971ffa7fd7808146880aa41b266e06c1e6e12261768a28b8b41ba55c8076"}, + {file = "pydantic-1.10.17-cp37-cp37m-win_amd64.whl", hash = "sha256:e840e6b2026920fc3f250ea8ebfdedf6ea7a25b77bf04c6576178e681942ae0f"}, + {file = "pydantic-1.10.17-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:bfbb18b616abc4df70591b8c1ff1b3eabd234ddcddb86b7cac82657ab9017e33"}, + {file = "pydantic-1.10.17-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:ebb249096d873593e014535ab07145498957091aa6ae92759a32d40cb9998e2e"}, + {file = "pydantic-1.10.17-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d8c209af63ccd7b22fba94b9024e8b7fd07feffee0001efae50dd99316b27768"}, + {file = "pydantic-1.10.17-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d4b40c9e13a0b61583e5599e7950490c700297b4a375b55b2b592774332798b7"}, + {file = "pydantic-1.10.17-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:c31d281c7485223caf6474fc2b7cf21456289dbaa31401844069b77160cab9c7"}, + {file = "pydantic-1.10.17-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ae5184e99a060a5c80010a2d53c99aee76a3b0ad683d493e5f0620b5d86eeb75"}, + {file = "pydantic-1.10.17-cp38-cp38-win_amd64.whl", hash = "sha256:ad1e33dc6b9787a6f0f3fd132859aa75626528b49cc1f9e429cdacb2608ad5f0"}, + {file = "pydantic-1.10.17-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:7e17c0ee7192e54a10943f245dc79e36d9fe282418ea05b886e1c666063a7b54"}, + {file = "pydantic-1.10.17-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:cafb9c938f61d1b182dfc7d44a7021326547b7b9cf695db5b68ec7b590214773"}, + {file = "pydantic-1.10.17-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:95ef534e3c22e5abbdbdd6f66b6ea9dac3ca3e34c5c632894f8625d13d084cbe"}, + {file = "pydantic-1.10.17-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62d96b8799ae3d782df7ec9615cb59fc32c32e1ed6afa1b231b0595f6516e8ab"}, + {file = "pydantic-1.10.17-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ab2f976336808fd5d539fdc26eb51f9aafc1f4b638e212ef6b6f05e753c8011d"}, + {file = "pydantic-1.10.17-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:b8ad363330557beac73159acfbeed220d5f1bfcd6b930302a987a375e02f74fd"}, + {file = "pydantic-1.10.17-cp39-cp39-win_amd64.whl", hash = "sha256:48db882e48575ce4b39659558b2f9f37c25b8d348e37a2b4e32971dd5a7d6227"}, + {file = "pydantic-1.10.17-py3-none-any.whl", hash = "sha256:e41b5b973e5c64f674b3b4720286ded184dcc26a691dd55f34391c62c6934688"}, + {file = "pydantic-1.10.17.tar.gz", hash = "sha256:f434160fb14b353caf634149baaf847206406471ba70e64657c1e8330277a991"}, ] [package.dependencies] -annotated-types = ">=0.4.0" -pydantic-core = "2.16.3" -typing-extensions = ">=4.6.1" +typing-extensions = ">=4.2.0" [package.extras] -email = ["email-validator (>=2.0.0)"] +dotenv = ["python-dotenv (>=0.10.4)"] +email = ["email-validator (>=1.0.3)"] [[package]] name = "pydantic-core" -version = "2.16.3" -description = "" +version = "2.20.1" +description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.8" files = [ - {file = "pydantic_core-2.16.3-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:75b81e678d1c1ede0785c7f46690621e4c6e63ccd9192af1f0bd9d504bbb6bf4"}, - {file = "pydantic_core-2.16.3-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9c865a7ee6f93783bd5d781af5a4c43dadc37053a5b42f7d18dc019f8c9d2bd1"}, - {file = "pydantic_core-2.16.3-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:162e498303d2b1c036b957a1278fa0899d02b2842f1ff901b6395104c5554a45"}, - {file = "pydantic_core-2.16.3-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2f583bd01bbfbff4eaee0868e6fc607efdfcc2b03c1c766b06a707abbc856187"}, - {file = "pydantic_core-2.16.3-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b926dd38db1519ed3043a4de50214e0d600d404099c3392f098a7f9d75029ff8"}, - {file = "pydantic_core-2.16.3-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:716b542728d4c742353448765aa7cdaa519a7b82f9564130e2b3f6766018c9ec"}, - {file = "pydantic_core-2.16.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fc4ad7f7ee1a13d9cb49d8198cd7d7e3aa93e425f371a68235f784e99741561f"}, - {file = "pydantic_core-2.16.3-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:bd87f48924f360e5d1c5f770d6155ce0e7d83f7b4e10c2f9ec001c73cf475c99"}, - {file = "pydantic_core-2.16.3-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:0df446663464884297c793874573549229f9eca73b59360878f382a0fc085979"}, - {file = "pydantic_core-2.16.3-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:4df8a199d9f6afc5ae9a65f8f95ee52cae389a8c6b20163762bde0426275b7db"}, - {file = "pydantic_core-2.16.3-cp310-none-win32.whl", hash = "sha256:456855f57b413f077dff513a5a28ed838dbbb15082ba00f80750377eed23d132"}, - {file = "pydantic_core-2.16.3-cp310-none-win_amd64.whl", hash = "sha256:732da3243e1b8d3eab8c6ae23ae6a58548849d2e4a4e03a1924c8ddf71a387cb"}, - {file = "pydantic_core-2.16.3-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:519ae0312616026bf4cedc0fe459e982734f3ca82ee8c7246c19b650b60a5ee4"}, - {file = "pydantic_core-2.16.3-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:b3992a322a5617ded0a9f23fd06dbc1e4bd7cf39bc4ccf344b10f80af58beacd"}, - {file = "pydantic_core-2.16.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8d62da299c6ecb04df729e4b5c52dc0d53f4f8430b4492b93aa8de1f541c4aac"}, - {file = "pydantic_core-2.16.3-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:2acca2be4bb2f2147ada8cac612f8a98fc09f41c89f87add7256ad27332c2fda"}, - {file = "pydantic_core-2.16.3-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1b662180108c55dfbf1280d865b2d116633d436cfc0bba82323554873967b340"}, - {file = "pydantic_core-2.16.3-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e7c6ed0dc9d8e65f24f5824291550139fe6f37fac03788d4580da0d33bc00c97"}, - {file = "pydantic_core-2.16.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a6b1bb0827f56654b4437955555dc3aeeebeddc47c2d7ed575477f082622c49e"}, - {file = "pydantic_core-2.16.3-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e56f8186d6210ac7ece503193ec84104da7ceb98f68ce18c07282fcc2452e76f"}, - {file = "pydantic_core-2.16.3-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:936e5db01dd49476fa8f4383c259b8b1303d5dd5fb34c97de194560698cc2c5e"}, - {file = "pydantic_core-2.16.3-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:33809aebac276089b78db106ee692bdc9044710e26f24a9a2eaa35a0f9fa70ba"}, - {file = "pydantic_core-2.16.3-cp311-none-win32.whl", hash = "sha256:ded1c35f15c9dea16ead9bffcde9bb5c7c031bff076355dc58dcb1cb436c4721"}, - {file = "pydantic_core-2.16.3-cp311-none-win_amd64.whl", hash = "sha256:d89ca19cdd0dd5f31606a9329e309d4fcbb3df860960acec32630297d61820df"}, - {file = "pydantic_core-2.16.3-cp311-none-win_arm64.whl", hash = "sha256:6162f8d2dc27ba21027f261e4fa26f8bcb3cf9784b7f9499466a311ac284b5b9"}, - {file = "pydantic_core-2.16.3-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:0f56ae86b60ea987ae8bcd6654a887238fd53d1384f9b222ac457070b7ac4cff"}, - {file = "pydantic_core-2.16.3-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:c9bd22a2a639e26171068f8ebb5400ce2c1bc7d17959f60a3b753ae13c632975"}, - {file = "pydantic_core-2.16.3-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4204e773b4b408062960e65468d5346bdfe139247ee5f1ca2a378983e11388a2"}, - {file = "pydantic_core-2.16.3-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:f651dd19363c632f4abe3480a7c87a9773be27cfe1341aef06e8759599454120"}, - {file = "pydantic_core-2.16.3-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aaf09e615a0bf98d406657e0008e4a8701b11481840be7d31755dc9f97c44053"}, - {file = "pydantic_core-2.16.3-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8e47755d8152c1ab5b55928ab422a76e2e7b22b5ed8e90a7d584268dd49e9c6b"}, - {file = "pydantic_core-2.16.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:500960cb3a0543a724a81ba859da816e8cf01b0e6aaeedf2c3775d12ee49cade"}, - {file = "pydantic_core-2.16.3-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:cf6204fe865da605285c34cf1172879d0314ff267b1c35ff59de7154f35fdc2e"}, - {file = "pydantic_core-2.16.3-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:d33dd21f572545649f90c38c227cc8631268ba25c460b5569abebdd0ec5974ca"}, - {file = "pydantic_core-2.16.3-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:49d5d58abd4b83fb8ce763be7794d09b2f50f10aa65c0f0c1696c677edeb7cbf"}, - {file = "pydantic_core-2.16.3-cp312-none-win32.whl", hash = "sha256:f53aace168a2a10582e570b7736cc5bef12cae9cf21775e3eafac597e8551fbe"}, - {file = "pydantic_core-2.16.3-cp312-none-win_amd64.whl", hash = "sha256:0d32576b1de5a30d9a97f300cc6a3f4694c428d956adbc7e6e2f9cad279e45ed"}, - {file = "pydantic_core-2.16.3-cp312-none-win_arm64.whl", hash = "sha256:ec08be75bb268473677edb83ba71e7e74b43c008e4a7b1907c6d57e940bf34b6"}, - {file = "pydantic_core-2.16.3-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:b1f6f5938d63c6139860f044e2538baeee6f0b251a1816e7adb6cbce106a1f01"}, - {file = "pydantic_core-2.16.3-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:2a1ef6a36fdbf71538142ed604ad19b82f67b05749512e47f247a6ddd06afdc7"}, - {file = "pydantic_core-2.16.3-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:704d35ecc7e9c31d48926150afada60401c55efa3b46cd1ded5a01bdffaf1d48"}, - {file = "pydantic_core-2.16.3-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d937653a696465677ed583124b94a4b2d79f5e30b2c46115a68e482c6a591c8a"}, - {file = "pydantic_core-2.16.3-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c9803edf8e29bd825f43481f19c37f50d2b01899448273b3a7758441b512acf8"}, - {file = "pydantic_core-2.16.3-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:72282ad4892a9fb2da25defeac8c2e84352c108705c972db82ab121d15f14e6d"}, - {file = "pydantic_core-2.16.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f752826b5b8361193df55afcdf8ca6a57d0232653494ba473630a83ba50d8c9"}, - {file = "pydantic_core-2.16.3-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4384a8f68ddb31a0b0c3deae88765f5868a1b9148939c3f4121233314ad5532c"}, - {file = "pydantic_core-2.16.3-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:a4b2bf78342c40b3dc830880106f54328928ff03e357935ad26c7128bbd66ce8"}, - {file = "pydantic_core-2.16.3-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:13dcc4802961b5f843a9385fc821a0b0135e8c07fc3d9949fd49627c1a5e6ae5"}, - {file = "pydantic_core-2.16.3-cp38-none-win32.whl", hash = "sha256:e3e70c94a0c3841e6aa831edab1619ad5c511199be94d0c11ba75fe06efe107a"}, - {file = "pydantic_core-2.16.3-cp38-none-win_amd64.whl", hash = "sha256:ecdf6bf5f578615f2e985a5e1f6572e23aa632c4bd1dc67f8f406d445ac115ed"}, - {file = "pydantic_core-2.16.3-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:bda1ee3e08252b8d41fa5537413ffdddd58fa73107171a126d3b9ff001b9b820"}, - {file = "pydantic_core-2.16.3-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:21b888c973e4f26b7a96491c0965a8a312e13be108022ee510248fe379a5fa23"}, - {file = "pydantic_core-2.16.3-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:be0ec334369316fa73448cc8c982c01e5d2a81c95969d58b8f6e272884df0074"}, - {file = "pydantic_core-2.16.3-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b5b6079cc452a7c53dd378c6f881ac528246b3ac9aae0f8eef98498a75657805"}, - {file = "pydantic_core-2.16.3-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7ee8d5f878dccb6d499ba4d30d757111847b6849ae07acdd1205fffa1fc1253c"}, - {file = "pydantic_core-2.16.3-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7233d65d9d651242a68801159763d09e9ec96e8a158dbf118dc090cd77a104c9"}, - {file = "pydantic_core-2.16.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c6119dc90483a5cb50a1306adb8d52c66e447da88ea44f323e0ae1a5fcb14256"}, - {file = "pydantic_core-2.16.3-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:578114bc803a4c1ff9946d977c221e4376620a46cf78da267d946397dc9514a8"}, - {file = "pydantic_core-2.16.3-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:d8f99b147ff3fcf6b3cc60cb0c39ea443884d5559a30b1481e92495f2310ff2b"}, - {file = "pydantic_core-2.16.3-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:4ac6b4ce1e7283d715c4b729d8f9dab9627586dafce81d9eaa009dd7f25dd972"}, - {file = "pydantic_core-2.16.3-cp39-none-win32.whl", hash = "sha256:e7774b570e61cb998490c5235740d475413a1f6de823169b4cf94e2fe9e9f6b2"}, - {file = "pydantic_core-2.16.3-cp39-none-win_amd64.whl", hash = "sha256:9091632a25b8b87b9a605ec0e61f241c456e9248bfdcf7abdf344fdb169c81cf"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:36fa178aacbc277bc6b62a2c3da95226520da4f4e9e206fdf076484363895d2c"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:dcca5d2bf65c6fb591fff92da03f94cd4f315972f97c21975398bd4bd046854a"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2a72fb9963cba4cd5793854fd12f4cfee731e86df140f59ff52a49b3552db241"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b60cc1a081f80a2105a59385b92d82278b15d80ebb3adb200542ae165cd7d183"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:cbcc558401de90a746d02ef330c528f2e668c83350f045833543cd57ecead1ad"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:fee427241c2d9fb7192b658190f9f5fd6dfe41e02f3c1489d2ec1e6a5ab1e04a"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f4cb85f693044e0f71f394ff76c98ddc1bc0953e48c061725e540396d5c8a2e1"}, - {file = "pydantic_core-2.16.3-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:b29eeb887aa931c2fcef5aa515d9d176d25006794610c264ddc114c053bf96fe"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:a425479ee40ff021f8216c9d07a6a3b54b31c8267c6e17aa88b70d7ebd0e5e5b"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:5c5cbc703168d1b7a838668998308018a2718c2130595e8e190220238addc96f"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:99b6add4c0b39a513d323d3b93bc173dac663c27b99860dd5bf491b240d26137"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:75f76ee558751746d6a38f89d60b6228fa174e5172d143886af0f85aa306fd89"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:00ee1c97b5364b84cb0bd82e9bbf645d5e2871fb8c58059d158412fee2d33d8a"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:287073c66748f624be4cef893ef9174e3eb88fe0b8a78dc22e88eca4bc357ca6"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:ed25e1835c00a332cb10c683cd39da96a719ab1dfc08427d476bce41b92531fc"}, - {file = "pydantic_core-2.16.3-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:86b3d0033580bd6bbe07590152007275bd7af95f98eaa5bd36f3da219dcd93da"}, - {file = "pydantic_core-2.16.3.tar.gz", hash = "sha256:1cac689f80a3abab2d3c0048b29eea5751114054f032a941a32de4c852c59cad"}, + {file = "pydantic_core-2.20.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:3acae97ffd19bf091c72df4d726d552c473f3576409b2a7ca36b2f535ffff4a3"}, + {file = "pydantic_core-2.20.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:41f4c96227a67a013e7de5ff8f20fb496ce573893b7f4f2707d065907bffdbd6"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5f239eb799a2081495ea659d8d4a43a8f42cd1fe9ff2e7e436295c38a10c286a"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:53e431da3fc53360db73eedf6f7124d1076e1b4ee4276b36fb25514544ceb4a3"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f1f62b2413c3a0e846c3b838b2ecd6c7a19ec6793b2a522745b0869e37ab5bc1"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5d41e6daee2813ecceea8eda38062d69e280b39df793f5a942fa515b8ed67953"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d482efec8b7dc6bfaedc0f166b2ce349df0011f5d2f1f25537ced4cfc34fd98"}, + {file = "pydantic_core-2.20.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e93e1a4b4b33daed65d781a57a522ff153dcf748dee70b40c7258c5861e1768a"}, + {file = "pydantic_core-2.20.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e7c4ea22b6739b162c9ecaaa41d718dfad48a244909fe7ef4b54c0b530effc5a"}, + {file = "pydantic_core-2.20.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:4f2790949cf385d985a31984907fecb3896999329103df4e4983a4a41e13e840"}, + {file = "pydantic_core-2.20.1-cp310-none-win32.whl", hash = "sha256:5e999ba8dd90e93d57410c5e67ebb67ffcaadcea0ad973240fdfd3a135506250"}, + {file = "pydantic_core-2.20.1-cp310-none-win_amd64.whl", hash = "sha256:512ecfbefef6dac7bc5eaaf46177b2de58cdf7acac8793fe033b24ece0b9566c"}, + {file = "pydantic_core-2.20.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:d2a8fa9d6d6f891f3deec72f5cc668e6f66b188ab14bb1ab52422fe8e644f312"}, + {file = "pydantic_core-2.20.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:175873691124f3d0da55aeea1d90660a6ea7a3cfea137c38afa0a5ffabe37b88"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:37eee5b638f0e0dcd18d21f59b679686bbd18917b87db0193ae36f9c23c355fc"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:25e9185e2d06c16ee438ed39bf62935ec436474a6ac4f9358524220f1b236e43"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:150906b40ff188a3260cbee25380e7494ee85048584998c1e66df0c7a11c17a6"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ad4aeb3e9a97286573c03df758fc7627aecdd02f1da04516a86dc159bf70121"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d3f3ed29cd9f978c604708511a1f9c2fdcb6c38b9aae36a51905b8811ee5cbf1"}, + {file = "pydantic_core-2.20.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:b0dae11d8f5ded51699c74d9548dcc5938e0804cc8298ec0aa0da95c21fff57b"}, + {file = "pydantic_core-2.20.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:faa6b09ee09433b87992fb5a2859efd1c264ddc37280d2dd5db502126d0e7f27"}, + {file = "pydantic_core-2.20.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:9dc1b507c12eb0481d071f3c1808f0529ad41dc415d0ca11f7ebfc666e66a18b"}, + {file = "pydantic_core-2.20.1-cp311-none-win32.whl", hash = "sha256:fa2fddcb7107e0d1808086ca306dcade7df60a13a6c347a7acf1ec139aa6789a"}, + {file = "pydantic_core-2.20.1-cp311-none-win_amd64.whl", hash = "sha256:40a783fb7ee353c50bd3853e626f15677ea527ae556429453685ae32280c19c2"}, + {file = "pydantic_core-2.20.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:595ba5be69b35777474fa07f80fc260ea71255656191adb22a8c53aba4479231"}, + {file = "pydantic_core-2.20.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:a4f55095ad087474999ee28d3398bae183a66be4823f753cd7d67dd0153427c9"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f9aa05d09ecf4c75157197f27cdc9cfaeb7c5f15021c6373932bf3e124af029f"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e97fdf088d4b31ff4ba35db26d9cc472ac7ef4a2ff2badeabf8d727b3377fc52"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:bc633a9fe1eb87e250b5c57d389cf28998e4292336926b0b6cdaee353f89a237"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d573faf8eb7e6b1cbbcb4f5b247c60ca8be39fe2c674495df0eb4318303137fe"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:26dc97754b57d2fd00ac2b24dfa341abffc380b823211994c4efac7f13b9e90e"}, + {file = "pydantic_core-2.20.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:33499e85e739a4b60c9dac710c20a08dc73cb3240c9a0e22325e671b27b70d24"}, + {file = "pydantic_core-2.20.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:bebb4d6715c814597f85297c332297c6ce81e29436125ca59d1159b07f423eb1"}, + {file = "pydantic_core-2.20.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:516d9227919612425c8ef1c9b869bbbee249bc91912c8aaffb66116c0b447ebd"}, + {file = "pydantic_core-2.20.1-cp312-none-win32.whl", hash = "sha256:469f29f9093c9d834432034d33f5fe45699e664f12a13bf38c04967ce233d688"}, + {file = "pydantic_core-2.20.1-cp312-none-win_amd64.whl", hash = "sha256:035ede2e16da7281041f0e626459bcae33ed998cca6a0a007a5ebb73414ac72d"}, + {file = "pydantic_core-2.20.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:0827505a5c87e8aa285dc31e9ec7f4a17c81a813d45f70b1d9164e03a813a686"}, + {file = "pydantic_core-2.20.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:19c0fa39fa154e7e0b7f82f88ef85faa2a4c23cc65aae2f5aea625e3c13c735a"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4aa223cd1e36b642092c326d694d8bf59b71ddddc94cdb752bbbb1c5c91d833b"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:c336a6d235522a62fef872c6295a42ecb0c4e1d0f1a3e500fe949415761b8a19"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7eb6a0587eded33aeefea9f916899d42b1799b7b14b8f8ff2753c0ac1741edac"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:70c8daf4faca8da5a6d655f9af86faf6ec2e1768f4b8b9d0226c02f3d6209703"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e9fa4c9bf273ca41f940bceb86922a7667cd5bf90e95dbb157cbb8441008482c"}, + {file = "pydantic_core-2.20.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:11b71d67b4725e7e2a9f6e9c0ac1239bbc0c48cce3dc59f98635efc57d6dac83"}, + {file = "pydantic_core-2.20.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:270755f15174fb983890c49881e93f8f1b80f0b5e3a3cc1394a255706cabd203"}, + {file = "pydantic_core-2.20.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:c81131869240e3e568916ef4c307f8b99583efaa60a8112ef27a366eefba8ef0"}, + {file = "pydantic_core-2.20.1-cp313-none-win32.whl", hash = "sha256:b91ced227c41aa29c672814f50dbb05ec93536abf8f43cd14ec9521ea09afe4e"}, + {file = "pydantic_core-2.20.1-cp313-none-win_amd64.whl", hash = "sha256:65db0f2eefcaad1a3950f498aabb4875c8890438bc80b19362cf633b87a8ab20"}, + {file = "pydantic_core-2.20.1-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:4745f4ac52cc6686390c40eaa01d48b18997cb130833154801a442323cc78f91"}, + {file = "pydantic_core-2.20.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:a8ad4c766d3f33ba8fd692f9aa297c9058970530a32c728a2c4bfd2616d3358b"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:41e81317dd6a0127cabce83c0c9c3fbecceae981c8391e6f1dec88a77c8a569a"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:04024d270cf63f586ad41fff13fde4311c4fc13ea74676962c876d9577bcc78f"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:eaad4ff2de1c3823fddf82f41121bdf453d922e9a238642b1dedb33c4e4f98ad"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:26ab812fa0c845df815e506be30337e2df27e88399b985d0bb4e3ecfe72df31c"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3c5ebac750d9d5f2706654c638c041635c385596caf68f81342011ddfa1e5598"}, + {file = "pydantic_core-2.20.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2aafc5a503855ea5885559eae883978c9b6d8c8993d67766ee73d82e841300dd"}, + {file = "pydantic_core-2.20.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:4868f6bd7c9d98904b748a2653031fc9c2f85b6237009d475b1008bfaeb0a5aa"}, + {file = "pydantic_core-2.20.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:aa2f457b4af386254372dfa78a2eda2563680d982422641a85f271c859df1987"}, + {file = "pydantic_core-2.20.1-cp38-none-win32.whl", hash = "sha256:225b67a1f6d602de0ce7f6c1c3ae89a4aa25d3de9be857999e9124f15dab486a"}, + {file = "pydantic_core-2.20.1-cp38-none-win_amd64.whl", hash = "sha256:6b507132dcfc0dea440cce23ee2182c0ce7aba7054576efc65634f080dbe9434"}, + {file = "pydantic_core-2.20.1-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:b03f7941783b4c4a26051846dea594628b38f6940a2fdc0df00b221aed39314c"}, + {file = "pydantic_core-2.20.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1eedfeb6089ed3fad42e81a67755846ad4dcc14d73698c120a82e4ccf0f1f9f6"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:635fee4e041ab9c479e31edda27fcf966ea9614fff1317e280d99eb3e5ab6fe2"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:77bf3ac639c1ff567ae3b47f8d4cc3dc20f9966a2a6dd2311dcc055d3d04fb8a"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:7ed1b0132f24beeec5a78b67d9388656d03e6a7c837394f99257e2d55b461611"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c6514f963b023aeee506678a1cf821fe31159b925c4b76fe2afa94cc70b3222b"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:10d4204d8ca33146e761c79f83cc861df20e7ae9f6487ca290a97702daf56006"}, + {file = "pydantic_core-2.20.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:2d036c7187b9422ae5b262badb87a20a49eb6c5238b2004e96d4da1231badef1"}, + {file = "pydantic_core-2.20.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9ebfef07dbe1d93efb94b4700f2d278494e9162565a54f124c404a5656d7ff09"}, + {file = "pydantic_core-2.20.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:6b9d9bb600328a1ce523ab4f454859e9d439150abb0906c5a1983c146580ebab"}, + {file = "pydantic_core-2.20.1-cp39-none-win32.whl", hash = "sha256:784c1214cb6dd1e3b15dd8b91b9a53852aed16671cc3fbe4786f4f1db07089e2"}, + {file = "pydantic_core-2.20.1-cp39-none-win_amd64.whl", hash = "sha256:d2fe69c5434391727efa54b47a1e7986bb0186e72a41b203df8f5b0a19a4f669"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:a45f84b09ac9c3d35dfcf6a27fd0634d30d183205230a0ebe8373a0e8cfa0906"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:d02a72df14dfdbaf228424573a07af10637bd490f0901cee872c4f434a735b94"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d2b27e6af28f07e2f195552b37d7d66b150adbaa39a6d327766ffd695799780f"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:084659fac3c83fd674596612aeff6041a18402f1e1bc19ca39e417d554468482"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:242b8feb3c493ab78be289c034a1f659e8826e2233786e36f2893a950a719bb6"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:38cf1c40a921d05c5edc61a785c0ddb4bed67827069f535d794ce6bcded919fc"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:e0bbdd76ce9aa5d4209d65f2b27fc6e5ef1312ae6c5333c26db3f5ade53a1e99"}, + {file = "pydantic_core-2.20.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:254ec27fdb5b1ee60684f91683be95e5133c994cc54e86a0b0963afa25c8f8a6"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:407653af5617f0757261ae249d3fba09504d7a71ab36ac057c938572d1bc9331"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:c693e916709c2465b02ca0ad7b387c4f8423d1db7b4649c551f27a529181c5ad"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5b5ff4911aea936a47d9376fd3ab17e970cc543d1b68921886e7f64bd28308d1"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:177f55a886d74f1808763976ac4efd29b7ed15c69f4d838bbd74d9d09cf6fa86"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:964faa8a861d2664f0c7ab0c181af0bea66098b1919439815ca8803ef136fc4e"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:4dd484681c15e6b9a977c785a345d3e378d72678fd5f1f3c0509608da24f2ac0"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f6d6cff3538391e8486a431569b77921adfcdef14eb18fbf19b7c0a5294d4e6a"}, + {file = "pydantic_core-2.20.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:a6d511cc297ff0883bc3708b465ff82d7560193169a8b93260f74ecb0a5e08a7"}, + {file = "pydantic_core-2.20.1.tar.gz", hash = "sha256:26ca695eeee5f9f1aeeb211ffc12f10bcb6f71e2989988fda61dabd65db878d4"}, ] [package.dependencies] @@ -289,15 +439,29 @@ typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0" [[package]] name = "pyflakes" -version = "3.1.0" +version = "2.3.1" description = "passive checker of Python programs" optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" +files = [ + {file = "pyflakes-2.3.1-py2.py3-none-any.whl", hash = "sha256:7893783d01b8a89811dd72d7dfd4d84ff098e5eed95cfa8905b22bbffe52efc3"}, + {file = "pyflakes-2.3.1.tar.gz", hash = "sha256:f5bc8ecabc05bb9d291eb5203d6810b49040f6ff446a756326104746cc00c1db"}, +] + +[[package]] +name = "pygments" +version = "2.18.0" +description = "Pygments is a syntax highlighting package written in Python." +optional = false python-versions = ">=3.8" files = [ - {file = "pyflakes-3.1.0-py2.py3-none-any.whl", hash = "sha256:4132f6d49cb4dae6819e5379898f2b8cce3c5f23994194c24b77d5da2e36f774"}, - {file = "pyflakes-3.1.0.tar.gz", hash = "sha256:a0aae034c444db0071aa077972ba4768d40c830d9539fd45bf4cd3f8f6992efc"}, + {file = "pygments-2.18.0-py3-none-any.whl", hash = "sha256:b8e6aca0523f3ab76fee51799c488e38782ac06eafcf95e7ba832985c8e7b13a"}, + {file = "pygments-2.18.0.tar.gz", hash = "sha256:786ff802f32e91311bff3889f6e9a86e81505fe99f2735bb6d60ae0c5004f199"}, ] +[package.extras] +windows-terminal = ["colorama (>=0.4.6)"] + [[package]] name = "python-dateutil" version = "2.9.0.post0" @@ -326,6 +490,96 @@ files = [ [package.extras] cli = ["click (>=5.0)"] +[[package]] +name = "pyyaml" +version = "6.0.1" +description = "YAML parser and emitter for Python" +optional = false +python-versions = ">=3.6" +files = [ + {file = "PyYAML-6.0.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d858aa552c999bc8a8d57426ed01e40bef403cd8ccdd0fc5f6f04a00414cac2a"}, + {file = "PyYAML-6.0.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:fd66fc5d0da6d9815ba2cebeb4205f95818ff4b79c3ebe268e75d961704af52f"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, + {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, + {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, + {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, + {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, + {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, + {file = "PyYAML-6.0.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f003ed9ad21d6a4713f0a9b5a7a0a79e08dd0f221aff4525a2be4c346ee60aab"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, + {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, + {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, + {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, + {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, + {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a08c6f0fe150303c1c6b71ebcd7213c2858041a7e01975da3a99aed1e7a378ef"}, + {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, + {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, + {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, + {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, + {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, + {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:afd7e57eddb1a54f0f1a974bc4391af8bcce0b444685d936840f125cf046d5bd"}, + {file = "PyYAML-6.0.1-cp36-cp36m-win32.whl", hash = "sha256:fca0e3a251908a499833aa292323f32437106001d436eca0e6e7833256674585"}, + {file = "PyYAML-6.0.1-cp36-cp36m-win_amd64.whl", hash = "sha256:f22ac1c3cac4dbc50079e965eba2c1058622631e526bd9afd45fedd49ba781fa"}, + {file = "PyYAML-6.0.1-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:b1275ad35a5d18c62a7220633c913e1b42d44b46ee12554e5fd39c70a243d6a3"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:18aeb1bf9a78867dc38b259769503436b7c72f7a1f1f4c93ff9a17de54319b27"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:596106435fa6ad000c2991a98fa58eeb8656ef2325d7e158344fb33864ed87e3"}, + {file = "PyYAML-6.0.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:baa90d3f661d43131ca170712d903e6295d1f7a0f595074f151c0aed377c9b9c"}, + {file = "PyYAML-6.0.1-cp37-cp37m-win32.whl", hash = "sha256:9046c58c4395dff28dd494285c82ba00b546adfc7ef001486fbf0324bc174fba"}, + {file = "PyYAML-6.0.1-cp37-cp37m-win_amd64.whl", hash = "sha256:4fb147e7a67ef577a588a0e2c17b6db51dda102c71de36f8549b6816a96e1867"}, + {file = "PyYAML-6.0.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1d4c7e777c441b20e32f52bd377e0c409713e8bb1386e1099c2415f26e479595"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, + {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, + {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, + {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, + {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, + {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, + {file = "PyYAML-6.0.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:c8098ddcc2a85b61647b2590f825f3db38891662cfc2fc776415143f599bb859"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, + {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, + {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, + {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, + {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, + {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, +] + +[[package]] +name = "rich" +version = "13.7.1" +description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal" +optional = false +python-versions = ">=3.7.0" +files = [ + {file = "rich-13.7.1-py3-none-any.whl", hash = "sha256:4edbae314f59eb482f54e9e30bf00d33350aaa94f4bfcd4e9e3110e64d0d7222"}, + {file = "rich-13.7.1.tar.gz", hash = "sha256:9be308cb1fe2f1f57d67ce99e95af38a1e2bc71ad9813b0e247cf7ffbcc3a432"}, +] + +[package.dependencies] +markdown-it-py = ">=2.2.0" +pygments = ">=2.13.0,<3.0.0" +typing-extensions = {version = ">=4.0.0,<5.0", markers = "python_version < \"3.9\""} + +[package.extras] +jupyter = ["ipywidgets (>=7.5.1,<9)"] + +[[package]] +name = "shellingham" +version = "1.5.4" +description = "Tool to Detect Surrounding Shell" +optional = false +python-versions = ">=3.7" +files = [ + {file = "shellingham-1.5.4-py2.py3-none-any.whl", hash = "sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686"}, + {file = "shellingham-1.5.4.tar.gz", hash = "sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de"}, +] + [[package]] name = "six" version = "1.16.0" @@ -366,26 +620,58 @@ typing-extensions = {version = ">=3.10.0", markers = "python_version < \"3.10\"" [package.extras] full = ["httpx (>=0.22.0)", "itsdangerous", "jinja2", "python-multipart", "pyyaml"] +[[package]] +name = "typer" +version = "0.12.3" +description = "Typer, build great CLIs. Easy to code. Based on Python type hints." +optional = false +python-versions = ">=3.7" +files = [ + {file = "typer-0.12.3-py3-none-any.whl", hash = "sha256:070d7ca53f785acbccba8e7d28b08dcd88f79f1fbda035ade0aecec71ca5c914"}, + {file = "typer-0.12.3.tar.gz", hash = "sha256:49e73131481d804288ef62598d97a1ceef3058905aa536a1134f90891ba35482"}, +] + +[package.dependencies] +click = ">=8.0.0" +rich = ">=10.11.0" +shellingham = ">=1.3.0" +typing-extensions = ">=3.7.4.3" + [[package]] name = "typing-extensions" -version = "4.10.0" +version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" files = [ - {file = "typing_extensions-4.10.0-py3-none-any.whl", hash = "sha256:69b1a937c3a517342112fb4c6df7e72fc39a38e7891a5730ed4985b5214b5475"}, - {file = "typing_extensions-4.10.0.tar.gz", hash = "sha256:b0abd7c89e8fb96f98db18d86106ff1d90ab692004eb746cf6eda2682f91b3cb"}, + {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, + {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, ] +[[package]] +name = "typing-inspect" +version = "0.9.0" +description = "Runtime inspection utilities for typing module." +optional = false +python-versions = "*" +files = [ + {file = "typing_inspect-0.9.0-py3-none-any.whl", hash = "sha256:9ee6fc59062311ef8547596ab6b955e1b8aa46242d854bfc78f4f6b0eff35f9f"}, + {file = "typing_inspect-0.9.0.tar.gz", hash = "sha256:b23fc42ff6f6ef6954e4852c1fb512cdd18dbea03134f91f856a95ccc9461f78"}, +] + +[package.dependencies] +mypy-extensions = ">=0.3.0" +typing-extensions = ">=3.7.4" + [[package]] name = "urllib3" -version = "2.2.1" +version = "2.2.2" description = "HTTP library with thread-safe connection pooling, file post, and more." optional = false python-versions = ">=3.8" files = [ - {file = "urllib3-2.2.1-py3-none-any.whl", hash = "sha256:450b20ec296a467077128bff42b73080516e71b56ff59a60a02bef2232c4fa9d"}, - {file = "urllib3-2.2.1.tar.gz", hash = "sha256:d0570876c61ab9e520d776c38acbbb5b05a776d3f9ff98a5c8fd5162a444cf19"}, + {file = "urllib3-2.2.2-py3-none-any.whl", hash = "sha256:a448b2f64d686155468037e1ace9f2d2199776e17f0a46610480d311f73e3472"}, + {file = "urllib3-2.2.2.tar.gz", hash = "sha256:dd505485549a7a552833da5e6063639d0d177c04f23bc3864e41e5dc5f612168"}, ] [package.extras] @@ -416,4 +702,4 @@ standard = ["colorama (>=0.4)", "httptools (>=0.5.0)", "python-dotenv (>=0.13)", [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "e7b989e497e0cf7cdc90696855833c9dbaa4713a3d0de0ee8dede4957af96958" +content-hash = "254bb6f5988e7807f56de1075212b7e60b59a3726ab73b63bd60cd0271bd4612" diff --git a/pyproject.toml b/pyproject.toml index f0ea2a8..867d3ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -19,9 +19,10 @@ python-dotenv = "^1.0.0" starlette = "0.27.0" uvicorn = "^0.23.2" fastapi = "^0.101.0" -flake8 = "^6.1.0" +flake8 = "^3.7.0" pydantic = "^1.10.12" pydantic-core = "^2.4.0" +bump-pydantic = "^0.8.0" [build-system] requires = ["poetry-core"] diff --git a/saasus_sdk_python/src/apilog/api/api_log_api.py b/saasus_sdk_python/src/apilog/api/api_log_api.py index 9d00fd1..64a0251 100644 --- a/saasus_sdk_python/src/apilog/api/api_log_api.py +++ b/saasus_sdk_python/src/apilog/api/api_log_api.py @@ -21,7 +21,7 @@ from datetime import date, datetime -from pydantic import Field, StrictStr, conint +from pydantic import Field, StrictStr from typing import Optional @@ -189,7 +189,7 @@ def get_log_with_http_info(self, api_log_id : Annotated[StrictStr, Field(..., de _request_auth=_params.get('_request_auth')) @validate_arguments - def get_logs(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[conint(strict=True, ge=1)], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiLogs: # noqa: E501 + def get_logs(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiLogs: # noqa: E501 """Get API execution log list # noqa: E501 Retrieve the log of all API executions. # noqa: E501 @@ -224,7 +224,7 @@ def get_logs(self, created_date : Annotated[Optional[date], Field(description="T return self.get_logs_with_http_info(created_date, created_at, limit, cursor, **kwargs) # noqa: E501 @validate_arguments - def get_logs_with_http_info(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[conint(strict=True, ge=1)], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def get_logs_with_http_info(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get API execution log list # noqa: E501 Retrieve the log of all API executions. # noqa: E501 diff --git a/saasus_sdk_python/src/apilog/models/api_log.py b/saasus_sdk_python/src/apilog/models/api_log.py index a31cd01..a72cd00 100644 --- a/saasus_sdk_python/src/apilog/models/api_log.py +++ b/saasus_sdk_python/src/apilog/models/api_log.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class ApiLog(BaseModel): """ @@ -40,11 +40,7 @@ class ApiLog(BaseModel): request_body: StrictStr = Field(..., description="The body of the request") response_body: StrictStr = Field(..., description="The body of the response") __properties = ["trace_id", "api_log_id", "created_at", "created_date", "ttl", "request_method", "saas_id", "api_key", "response_status", "request_uri", "remote_address", "referer", "request_body", "response_body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/apilog/models/api_logs.py b/saasus_sdk_python/src/apilog/models/api_logs.py index ff3848c..02565e7 100644 --- a/saasus_sdk_python/src/apilog/models/api_logs.py +++ b/saasus_sdk_python/src/apilog/models/api_logs.py @@ -19,21 +19,18 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.apilog.models.api_log import ApiLog +from typing_extensions import Annotated class ApiLogs(BaseModel): """ ApiLogs """ - api_logs: conlist(ApiLog) = Field(...) + api_logs: Annotated[List[ApiLog], Field()] = Field(...) cursor: Optional[StrictStr] = Field(None, description="Cursor for cursor pagination") __properties = ["api_logs", "cursor"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/apilog/models/error.py b/saasus_sdk_python/src/apilog/models/error.py index 2aef169..aa51270 100644 --- a/saasus_sdk_python/src/apilog/models/error.py +++ b/saasus_sdk_python/src/apilog/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/account_verification.py b/saasus_sdk_python/src/auth/models/account_verification.py index 99fc1f5..6f2b9a0 100644 --- a/saasus_sdk_python/src/auth/models/account_verification.py +++ b/saasus_sdk_python/src/auth/models/account_verification.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class AccountVerification(BaseModel): """ @@ -29,24 +29,22 @@ class AccountVerification(BaseModel): sending_to: StrictStr = Field(..., description="email: e-mail sms: SMS smsOrEmail: email if SMS is not possible ") __properties = ["verification_method", "sending_to"] - @validator('verification_method') + @field_validator('verification_method') + @classmethod def verification_method_validate_enum(cls, value): """Validates the enum""" if value not in ('code', 'link'): raise ValueError("must be one of enum values ('code', 'link')") return value - @validator('sending_to') + @field_validator('sending_to') + @classmethod def sending_to_validate_enum(cls, value): """Validates the enum""" if value not in ('email', 'sms', 'smsOrEmail'): raise ValueError("must be one of enum values ('email', 'sms', 'smsOrEmail')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/api_keys.py b/saasus_sdk_python/src/auth/models/api_keys.py index a063c65..ebfc6c8 100644 --- a/saasus_sdk_python/src/auth/models/api_keys.py +++ b/saasus_sdk_python/src/auth/models/api_keys.py @@ -19,19 +19,16 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiKeys(BaseModel): """ ApiKeys """ - api_keys: conlist(StrictStr) = Field(..., description="API Key") + api_keys: Annotated[List[StrictStr], Field()] = Field(..., description="API Key") __properties = ["api_keys"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/attribute.py b/saasus_sdk_python/src/auth/models/attribute.py index 0514032..47d7cbd 100644 --- a/saasus_sdk_python/src/auth/models/attribute.py +++ b/saasus_sdk_python/src/auth/models/attribute.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.attribute_type import AttributeType class Attribute(BaseModel): @@ -30,11 +30,7 @@ class Attribute(BaseModel): display_name: StrictStr = Field(..., description="Display Name") attribute_type: AttributeType = Field(...) __properties = ["attribute_name", "display_name", "attribute_type"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/auth_info.py b/saasus_sdk_python/src/auth/models/auth_info.py index 31f7320..ec22163 100644 --- a/saasus_sdk_python/src/auth/models/auth_info.py +++ b/saasus_sdk_python/src/auth/models/auth_info.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class AuthInfo(BaseModel): """ @@ -27,11 +27,7 @@ class AuthInfo(BaseModel): """ callback_url: StrictStr = Field(..., description="Redirect After Authentication") __properties = ["callback_url"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/authorization_temp_code.py b/saasus_sdk_python/src/auth/models/authorization_temp_code.py index 518c300..60b3ca8 100644 --- a/saasus_sdk_python/src/auth/models/authorization_temp_code.py +++ b/saasus_sdk_python/src/auth/models/authorization_temp_code.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class AuthorizationTempCode(BaseModel): """ @@ -27,11 +27,7 @@ class AuthorizationTempCode(BaseModel): """ code: StrictStr = Field(...) __properties = ["code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/basic_info.py b/saasus_sdk_python/src/auth/models/basic_info.py index 26034fd..ac9ba52 100644 --- a/saasus_sdk_python/src/auth/models/basic_info.py +++ b/saasus_sdk_python/src/auth/models/basic_info.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.auth.models.dns_record import DnsRecord +from typing_extensions import Annotated class BasicInfo(BaseModel): """ @@ -30,17 +31,13 @@ class BasicInfo(BaseModel): is_dns_validated: StrictBool = Field(..., description="DNS Record Verification Results") certificate_dns_record: DnsRecord = Field(...) cloud_front_dns_record: DnsRecord = Field(...) - dkim_dns_records: conlist(DnsRecord) = Field(..., description="DKIM DNS Records") + dkim_dns_records: Annotated[List[DnsRecord], Field()] = Field(..., description="DKIM DNS Records") default_domain_name: StrictStr = Field(..., description="Default Domain Name") from_email_address: StrictStr = Field(..., description="Sender Email for Authentication Email") reply_email_address: StrictStr = Field(..., description="Reply-from email address of authentication email") is_ses_sandbox_granted: StrictBool = Field(..., description="SES sandbox release and Cognito SES configuration results") __properties = ["domain_name", "is_dns_validated", "certificate_dns_record", "cloud_front_dns_record", "dkim_dns_records", "default_domain_name", "from_email_address", "reply_email_address", "is_ses_sandbox_granted"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/billing_address.py b/saasus_sdk_python/src/auth/models/billing_address.py index c99f549..d842cf1 100644 --- a/saasus_sdk_python/src/auth/models/billing_address.py +++ b/saasus_sdk_python/src/auth/models/billing_address.py @@ -19,7 +19,8 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class BillingAddress(BaseModel): """ @@ -28,22 +29,19 @@ class BillingAddress(BaseModel): street: StrictStr = Field(..., description="Street address, apartment or suite number.") city: StrictStr = Field(..., description="City, district, suburb, town, or village.") state: StrictStr = Field(..., description="State name or abbreviation.") - country: constr(strict=True) = Field(..., description="Country of the address using ISO 3166-1 alpha-2 code.") + country: Annotated[str, StringConstraints(strict=True)] = Field(..., description="Country of the address using ISO 3166-1 alpha-2 code.") additional_address_info: Optional[StrictStr] = Field(None, description="Additional information about the address, such as a building name, floor, or department name.") postal_code: StrictStr = Field(..., description="ZIP or postal code.") __properties = ["street", "city", "state", "country", "additional_address_info", "postal_code"] - @validator('country') + @field_validator('country') + @classmethod def country_validate_regular_expression(cls, value): """Validates the regular expression""" if not re.match(r"^[A-Z]{2}$", value): raise ValueError(r"must validate the regular expression /^[A-Z]{2}$/") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/billing_info.py b/saasus_sdk_python/src/auth/models/billing_info.py index aae781e..bbbfe87 100644 --- a/saasus_sdk_python/src/auth/models/billing_info.py +++ b/saasus_sdk_python/src/auth/models/billing_info.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.billing_address import BillingAddress from saasus_sdk_python.src.auth.models.invoice_language import InvoiceLanguage @@ -31,11 +31,7 @@ class BillingInfo(BaseModel): address: BillingAddress = Field(...) invoice_language: InvoiceLanguage = Field(...) __properties = ["name", "address", "invoice_language"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/client_secret.py b/saasus_sdk_python/src/auth/models/client_secret.py index 45a259f..5fb42ad 100644 --- a/saasus_sdk_python/src/auth/models/client_secret.py +++ b/saasus_sdk_python/src/auth/models/client_secret.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ClientSecret(BaseModel): """ @@ -27,11 +27,7 @@ class ClientSecret(BaseModel): """ client_secret: StrictStr = Field(..., description="Client Secret") __properties = ["client_secret"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/confirm_email_update_param.py b/saasus_sdk_python/src/auth/models/confirm_email_update_param.py index 33e2749..1821ff7 100644 --- a/saasus_sdk_python/src/auth/models/confirm_email_update_param.py +++ b/saasus_sdk_python/src/auth/models/confirm_email_update_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ConfirmEmailUpdateParam(BaseModel): """ @@ -28,11 +28,7 @@ class ConfirmEmailUpdateParam(BaseModel): code: StrictStr = Field(...) access_token: StrictStr = Field(...) __properties = ["code", "access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/confirm_external_user_link_param.py b/saasus_sdk_python/src/auth/models/confirm_external_user_link_param.py index 5b42bd0..9a47fb4 100644 --- a/saasus_sdk_python/src/auth/models/confirm_external_user_link_param.py +++ b/saasus_sdk_python/src/auth/models/confirm_external_user_link_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ConfirmExternalUserLinkParam(BaseModel): """ @@ -28,11 +28,7 @@ class ConfirmExternalUserLinkParam(BaseModel): access_token: StrictStr = Field(...) code: StrictStr = Field(...) __properties = ["access_token", "code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/confirm_sign_up_with_aws_marketplace_param.py b/saasus_sdk_python/src/auth/models/confirm_sign_up_with_aws_marketplace_param.py index 9891cea..bd409eb 100644 --- a/saasus_sdk_python/src/auth/models/confirm_sign_up_with_aws_marketplace_param.py +++ b/saasus_sdk_python/src/auth/models/confirm_sign_up_with_aws_marketplace_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ConfirmSignUpWithAwsMarketplaceParam(BaseModel): """ @@ -29,11 +29,7 @@ class ConfirmSignUpWithAwsMarketplaceParam(BaseModel): access_token: StrictStr = Field(..., description="Access token") registration_token: StrictStr = Field(..., description="Registration Token") __properties = ["tenant_name", "access_token", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/create_saas_user_param.py b/saasus_sdk_python/src/auth/models/create_saas_user_param.py index 66c5735..8335762 100644 --- a/saasus_sdk_python/src/auth/models/create_saas_user_param.py +++ b/saasus_sdk_python/src/auth/models/create_saas_user_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateSaasUserParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateSaasUserParam(BaseModel): email: StrictStr = Field(..., description="E-mail") password: StrictStr = Field(..., description="Password") __properties = ["email", "password"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/create_secret_code_param.py b/saasus_sdk_python/src/auth/models/create_secret_code_param.py index dec32f5..8e873d4 100644 --- a/saasus_sdk_python/src/auth/models/create_secret_code_param.py +++ b/saasus_sdk_python/src/auth/models/create_secret_code_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateSecretCodeParam(BaseModel): """ @@ -27,11 +27,7 @@ class CreateSecretCodeParam(BaseModel): """ access_token: StrictStr = Field(..., description="access token") __properties = ["access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/create_tenant_invitation_param.py b/saasus_sdk_python/src/auth/models/create_tenant_invitation_param.py index 66789f0..6af8ffd 100644 --- a/saasus_sdk_python/src/auth/models/create_tenant_invitation_param.py +++ b/saasus_sdk_python/src/auth/models/create_tenant_invitation_param.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.invited_user_environment_information_inner import InvitedUserEnvironmentInformationInner +from typing_extensions import Annotated class CreateTenantInvitationParam(BaseModel): """ @@ -28,13 +29,9 @@ class CreateTenantInvitationParam(BaseModel): """ email: StrictStr = Field(..., description="Email address of the user to be invited") access_token: StrictStr = Field(..., description="Access token of the user who creates an invitation") - envs: conlist(InvitedUserEnvironmentInformationInner) = Field(...) + envs: Annotated[List[InvitedUserEnvironmentInformationInner], Field()] = Field(...) __properties = ["email", "access_token", "envs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/create_tenant_user_param.py b/saasus_sdk_python/src/auth/models/create_tenant_user_param.py index dbec373..434f53e 100644 --- a/saasus_sdk_python/src/auth/models/create_tenant_user_param.py +++ b/saasus_sdk_python/src/auth/models/create_tenant_user_param.py @@ -19,7 +19,7 @@ from typing import Any, Dict -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateTenantUserParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateTenantUserParam(BaseModel): email: StrictStr = Field(..., description="E-mail") attributes: Dict[str, Any] = Field(..., description="Attribute information (Get information set by defining user attributes in the SaaS development console) ") __properties = ["email", "attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/create_tenant_user_roles_param.py b/saasus_sdk_python/src/auth/models/create_tenant_user_roles_param.py index 4961820..1fc87e7 100644 --- a/saasus_sdk_python/src/auth/models/create_tenant_user_roles_param.py +++ b/saasus_sdk_python/src/auth/models/create_tenant_user_roles_param.py @@ -19,19 +19,16 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class CreateTenantUserRolesParam(BaseModel): """ CreateTenantUserRolesParam """ - role_names: conlist(StrictStr) = Field(..., description="Role Info") + role_names: Annotated[List[StrictStr], Field()] = Field(..., description="Role Info") __properties = ["role_names"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/credentials.py b/saasus_sdk_python/src/auth/models/credentials.py index aa91763..cee5c65 100644 --- a/saasus_sdk_python/src/auth/models/credentials.py +++ b/saasus_sdk_python/src/auth/models/credentials.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Credentials(BaseModel): """ @@ -29,11 +29,7 @@ class Credentials(BaseModel): access_token: StrictStr = Field(..., description="Access token") refresh_token: Optional[StrictStr] = Field(None, description="Refresh token") __properties = ["id_token", "access_token", "refresh_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/customize_page_props.py b/saasus_sdk_python/src/auth/models/customize_page_props.py index ee74119..6c6a6ed 100644 --- a/saasus_sdk_python/src/auth/models/customize_page_props.py +++ b/saasus_sdk_python/src/auth/models/customize_page_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class CustomizePageProps(BaseModel): """ @@ -29,11 +29,7 @@ class CustomizePageProps(BaseModel): is_terms_of_service: StrictBool = Field(..., description="display the terms of use agreement check box") is_privacy_policy: StrictBool = Field(..., description="show the privacy policy checkbox") __properties = ["html_contents", "is_terms_of_service", "is_privacy_policy"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/customize_page_settings.py b/saasus_sdk_python/src/auth/models/customize_page_settings.py index 6349ddd..0a239cc 100644 --- a/saasus_sdk_python/src/auth/models/customize_page_settings.py +++ b/saasus_sdk_python/src/auth/models/customize_page_settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CustomizePageSettings(BaseModel): """ @@ -32,11 +32,7 @@ class CustomizePageSettings(BaseModel): icon: StrictStr = Field(..., description="service icon") favicon: StrictStr = Field(..., description="favicon") __properties = ["title", "terms_of_service_url", "privacy_policy_url", "google_tag_manager_container_id", "icon", "favicon"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/customize_page_settings_props.py b/saasus_sdk_python/src/auth/models/customize_page_settings_props.py index bee82cc..04c232a 100644 --- a/saasus_sdk_python/src/auth/models/customize_page_settings_props.py +++ b/saasus_sdk_python/src/auth/models/customize_page_settings_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CustomizePageSettingsProps(BaseModel): """ @@ -30,11 +30,7 @@ class CustomizePageSettingsProps(BaseModel): privacy_policy_url: StrictStr = Field(..., description="privacy policy URL") google_tag_manager_container_id: StrictStr = Field(..., description="Google Tag Manager container ID") __properties = ["title", "terms_of_service_url", "privacy_policy_url", "google_tag_manager_container_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/customize_pages.py b/saasus_sdk_python/src/auth/models/customize_pages.py index de2ff3c..09511e9 100644 --- a/saasus_sdk_python/src/auth/models/customize_pages.py +++ b/saasus_sdk_python/src/auth/models/customize_pages.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.customize_page_props import CustomizePageProps class CustomizePages(BaseModel): @@ -30,11 +30,7 @@ class CustomizePages(BaseModel): sign_in_page: CustomizePageProps = Field(...) password_reset_page: CustomizePageProps = Field(...) __properties = ["sign_up_page", "sign_in_page", "password_reset_page"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/device_configuration.py b/saasus_sdk_python/src/auth/models/device_configuration.py index 2d46fcd..fe1baa7 100644 --- a/saasus_sdk_python/src/auth/models/device_configuration.py +++ b/saasus_sdk_python/src/auth/models/device_configuration.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class DeviceConfiguration(BaseModel): """ @@ -28,17 +28,14 @@ class DeviceConfiguration(BaseModel): device_remembering: StrictStr = Field(..., description="always: always remember userOptIn: user opt-in no: don't save ") __properties = ["device_remembering"] - @validator('device_remembering') + @field_validator('device_remembering') + @classmethod def device_remembering_validate_enum(cls, value): """Validates the enum""" if value not in ('always', 'userOptIn', 'no'): raise ValueError("must be one of enum values ('always', 'userOptIn', 'no')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/dns_record.py b/saasus_sdk_python/src/auth/models/dns_record.py index 3fd8081..e9f8d5b 100644 --- a/saasus_sdk_python/src/auth/models/dns_record.py +++ b/saasus_sdk_python/src/auth/models/dns_record.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class DnsRecord(BaseModel): """ @@ -30,17 +30,14 @@ class DnsRecord(BaseModel): value: StrictStr = Field(..., description="Value") __properties = ["type", "name", "value"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('CNAME'): raise ValueError("must be one of enum values ('CNAME')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/env.py b/saasus_sdk_python/src/auth/models/env.py index dc7d8cb..12aff86 100644 --- a/saasus_sdk_python/src/auth/models/env.py +++ b/saasus_sdk_python/src/auth/models/env.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class Env(BaseModel): """ @@ -29,11 +29,7 @@ class Env(BaseModel): name: StrictStr = Field(..., description="env name") display_name: Optional[StrictStr] = Field(None, description="env display name") __properties = ["id", "name", "display_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/envs.py b/saasus_sdk_python/src/auth/models/envs.py index 5b2949b..b67594f 100644 --- a/saasus_sdk_python/src/auth/models/envs.py +++ b/saasus_sdk_python/src/auth/models/envs.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.env import Env +from typing_extensions import Annotated class Envs(BaseModel): """ env list """ - envs: conlist(Env) = Field(...) + envs: Annotated[List[Env], Field()] = Field(...) __properties = ["envs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/error.py b/saasus_sdk_python/src/auth/models/error.py index fe8d847..f8d2a5f 100644 --- a/saasus_sdk_python/src/auth/models/error.py +++ b/saasus_sdk_python/src/auth/models/error.py @@ -19,7 +19,7 @@ from typing import Any, Dict, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -29,11 +29,7 @@ class Error(BaseModel): message: StrictStr = Field(..., description="Error message") data: Optional[Dict[str, Any]] = None __properties = ["type", "message", "data"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/identity_provider_configuration.py b/saasus_sdk_python/src/auth/models/identity_provider_configuration.py index 5c248b7..acab1f5 100644 --- a/saasus_sdk_python/src/auth/models/identity_provider_configuration.py +++ b/saasus_sdk_python/src/auth/models/identity_provider_configuration.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class IdentityProviderConfiguration(BaseModel): """ @@ -30,11 +30,7 @@ class IdentityProviderConfiguration(BaseModel): entity_id: StrictStr = Field(..., description="entity ID") reply_url: StrictStr = Field(..., description="reply URL") __properties = ["domain", "redirect_url", "entity_id", "reply_url"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/identity_provider_props.py b/saasus_sdk_python/src/auth/models/identity_provider_props.py index c8efc83..2f05670 100644 --- a/saasus_sdk_python/src/auth/models/identity_provider_props.py +++ b/saasus_sdk_python/src/auth/models/identity_provider_props.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class IdentityProviderProps(BaseModel): """ @@ -30,11 +30,7 @@ class IdentityProviderProps(BaseModel): approval_scope: StrictStr = Field(...) is_button_hidden: Optional[StrictBool] = None __properties = ["application_id", "application_secret", "approval_scope", "is_button_hidden"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/identity_provider_saml.py b/saasus_sdk_python/src/auth/models/identity_provider_saml.py index 2da4b60..bc4972c 100644 --- a/saasus_sdk_python/src/auth/models/identity_provider_saml.py +++ b/saasus_sdk_python/src/auth/models/identity_provider_saml.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class IdentityProviderSaml(BaseModel): """ @@ -28,11 +28,7 @@ class IdentityProviderSaml(BaseModel): metadata_url: StrictStr = Field(...) email_attribute: StrictStr = Field(...) __properties = ["metadata_url", "email_attribute"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/identity_providers.py b/saasus_sdk_python/src/auth/models/identity_providers.py index 610552a..a8377de 100644 --- a/saasus_sdk_python/src/auth/models/identity_providers.py +++ b/saasus_sdk_python/src/auth/models/identity_providers.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.identity_provider_props import IdentityProviderProps class IdentityProviders(BaseModel): @@ -28,11 +28,7 @@ class IdentityProviders(BaseModel): """ google: IdentityProviderProps = Field(...) __properties = ["google"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/invitation.py b/saasus_sdk_python/src/auth/models/invitation.py index 92e5c4d..560e69b 100644 --- a/saasus_sdk_python/src/auth/models/invitation.py +++ b/saasus_sdk_python/src/auth/models/invitation.py @@ -19,9 +19,10 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.invitation_status import InvitationStatus from saasus_sdk_python.src.auth.models.user_available_env import UserAvailableEnv +from typing_extensions import Annotated class Invitation(BaseModel): """ @@ -30,15 +31,11 @@ class Invitation(BaseModel): id: StrictStr = Field(...) email: StrictStr = Field(..., description="Email address of the invited user") invitation_url: StrictStr = Field(..., description="Invitation URL") - envs: conlist(UserAvailableEnv) = Field(...) + envs: Annotated[List[UserAvailableEnv], Field()] = Field(...) expired_at: StrictInt = Field(..., description="Expiration date of the invitation") status: InvitationStatus = Field(...) __properties = ["id", "email", "invitation_url", "envs", "expired_at", "status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/invitation_validity.py b/saasus_sdk_python/src/auth/models/invitation_validity.py index e583fb1..23cf1a1 100644 --- a/saasus_sdk_python/src/auth/models/invitation_validity.py +++ b/saasus_sdk_python/src/auth/models/invitation_validity.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class InvitationValidity(BaseModel): """ @@ -27,11 +27,7 @@ class InvitationValidity(BaseModel): """ is_valid: StrictBool = Field(..., description="Whether the validation is valid or not") __properties = ["is_valid"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/invitations.py b/saasus_sdk_python/src/auth/models/invitations.py index 7b9beb5..1bb1104 100644 --- a/saasus_sdk_python/src/auth/models/invitations.py +++ b/saasus_sdk_python/src/auth/models/invitations.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.invitation import Invitation +from typing_extensions import Annotated class Invitations(BaseModel): """ Invitations """ - invitations: conlist(Invitation) = Field(..., description="Invitation list") + invitations: Annotated[List[Invitation], Field()] = Field(..., description="Invitation list") __properties = ["invitations"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/invited_user_environment_information_inner.py b/saasus_sdk_python/src/auth/models/invited_user_environment_information_inner.py index db56a60..cc75912 100644 --- a/saasus_sdk_python/src/auth/models/invited_user_environment_information_inner.py +++ b/saasus_sdk_python/src/auth/models/invited_user_environment_information_inner.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr +from typing_extensions import Annotated class InvitedUserEnvironmentInformationInner(BaseModel): """ InvitedUserEnvironmentInformationInner """ id: StrictInt = Field(...) - role_names: conlist(StrictStr) = Field(..., description="Role name") + role_names: Annotated[List[StrictStr], Field()] = Field(..., description="Role name") __properties = ["id", "role_names"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/link_aws_marketplace_param.py b/saasus_sdk_python/src/auth/models/link_aws_marketplace_param.py index 3b23656..2a39a10 100644 --- a/saasus_sdk_python/src/auth/models/link_aws_marketplace_param.py +++ b/saasus_sdk_python/src/auth/models/link_aws_marketplace_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class LinkAwsMarketplaceParam(BaseModel): """ @@ -29,11 +29,7 @@ class LinkAwsMarketplaceParam(BaseModel): access_token: StrictStr = Field(..., description="Access token") registration_token: StrictStr = Field(..., description="Registration Token") __properties = ["tenant_id", "access_token", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/message_template.py b/saasus_sdk_python/src/auth/models/message_template.py index 6fefa25..7126dec 100644 --- a/saasus_sdk_python/src/auth/models/message_template.py +++ b/saasus_sdk_python/src/auth/models/message_template.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class MessageTemplate(BaseModel): """ @@ -28,11 +28,7 @@ class MessageTemplate(BaseModel): subject: StrictStr = Field(..., description="Title") message: StrictStr = Field(..., description="Message") __properties = ["subject", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/mfa_configuration.py b/saasus_sdk_python/src/auth/models/mfa_configuration.py index d0f6e97..a483bce 100644 --- a/saasus_sdk_python/src/auth/models/mfa_configuration.py +++ b/saasus_sdk_python/src/auth/models/mfa_configuration.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class MfaConfiguration(BaseModel): """ @@ -28,17 +28,14 @@ class MfaConfiguration(BaseModel): mfa_configuration: StrictStr = Field(..., description="on: apply when all users log in optional: apply to individual users with MFA factor enabled ※ The parameter is currently optional and fixed. ") __properties = ["mfa_configuration"] - @validator('mfa_configuration') + @field_validator('mfa_configuration') + @classmethod def mfa_configuration_validate_enum(cls, value): """Validates the enum""" if value not in ('on', 'optional'): raise ValueError("must be one of enum values ('on', 'optional')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/mfa_preference.py b/saasus_sdk_python/src/auth/models/mfa_preference.py index defc75a..aba7c68 100644 --- a/saasus_sdk_python/src/auth/models/mfa_preference.py +++ b/saasus_sdk_python/src/auth/models/mfa_preference.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class MfaPreference(BaseModel): """ @@ -29,7 +29,8 @@ class MfaPreference(BaseModel): method: Optional[StrictStr] = Field(None, description="MFA method (required if enabled is true)") __properties = ["enabled", "method"] - @validator('method') + @field_validator('method') + @classmethod def method_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -38,11 +39,7 @@ def method_validate_enum(cls, value): if value not in ('softwareToken'): raise ValueError("must be one of enum values ('softwareToken')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/notification_messages.py b/saasus_sdk_python/src/auth/models/notification_messages.py index d91e694..ffd0bd0 100644 --- a/saasus_sdk_python/src/auth/models/notification_messages.py +++ b/saasus_sdk_python/src/auth/models/notification_messages.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.message_template import MessageTemplate class NotificationMessages(BaseModel): @@ -36,11 +36,7 @@ class NotificationMessages(BaseModel): invite_tenant_user: MessageTemplate = Field(...) verify_external_user: MessageTemplate = Field(...) __properties = ["sign_up", "create_user", "resend_code", "forgot_password", "update_user_attribute", "verify_user_attribute", "authentication_mfa", "invite_tenant_user", "verify_external_user"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/password_policy.py b/saasus_sdk_python/src/auth/models/password_policy.py index 28530f8..f9cd42a 100644 --- a/saasus_sdk_python/src/auth/models/password_policy.py +++ b/saasus_sdk_python/src/auth/models/password_policy.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt class PasswordPolicy(BaseModel): """ @@ -32,11 +32,7 @@ class PasswordPolicy(BaseModel): is_require_uppercase: StrictBool = Field(..., description="Contains one or more uppercase letters") temporary_password_validity_days: StrictInt = Field(..., description="Temporary password expiration date") __properties = ["minimum_length", "is_require_lowercase", "is_require_numbers", "is_require_symbols", "is_require_uppercase", "temporary_password_validity_days"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/plan_histories.py b/saasus_sdk_python/src/auth/models/plan_histories.py index edbcfb2..f1f142c 100644 --- a/saasus_sdk_python/src/auth/models/plan_histories.py +++ b/saasus_sdk_python/src/auth/models/plan_histories.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.plan_history import PlanHistory +from typing_extensions import Annotated class PlanHistories(BaseModel): """ PlanHistories """ - plan_histories: conlist(PlanHistory) = Field(..., description="Plan History") + plan_histories: Annotated[List[PlanHistory], Field()] = Field(..., description="Plan History") __properties = ["plan_histories"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/plan_history.py b/saasus_sdk_python/src/auth/models/plan_history.py index afd5f0d..eb76548 100644 --- a/saasus_sdk_python/src/auth/models/plan_history.py +++ b/saasus_sdk_python/src/auth/models/plan_history.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior class PlanHistory(BaseModel): @@ -32,11 +32,7 @@ class PlanHistory(BaseModel): proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") __properties = ["plan_id", "plan_applied_at", "tax_rate_id", "proration_behavior", "delete_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/plan_reservation.py b/saasus_sdk_python/src/auth/models/plan_reservation.py index b65e15f..64118a9 100644 --- a/saasus_sdk_python/src/auth/models/plan_reservation.py +++ b/saasus_sdk_python/src/auth/models/plan_reservation.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior class PlanReservation(BaseModel): @@ -32,11 +32,7 @@ class PlanReservation(BaseModel): proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") __properties = ["next_plan_id", "using_next_plan_from", "next_plan_tax_rate_id", "proration_behavior", "delete_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/recaptcha_props.py b/saasus_sdk_python/src/auth/models/recaptcha_props.py index 667c301..6a881e9 100644 --- a/saasus_sdk_python/src/auth/models/recaptcha_props.py +++ b/saasus_sdk_python/src/auth/models/recaptcha_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class RecaptchaProps(BaseModel): """ @@ -28,11 +28,7 @@ class RecaptchaProps(BaseModel): site_key: StrictStr = Field(..., description="site key") secret_key: StrictStr = Field(..., description="secret key") __properties = ["site_key", "secret_key"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/request_email_update_param.py b/saasus_sdk_python/src/auth/models/request_email_update_param.py index fa33301..6ad6b29 100644 --- a/saasus_sdk_python/src/auth/models/request_email_update_param.py +++ b/saasus_sdk_python/src/auth/models/request_email_update_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class RequestEmailUpdateParam(BaseModel): """ @@ -28,11 +28,7 @@ class RequestEmailUpdateParam(BaseModel): email: StrictStr = Field(..., description="Email Address") access_token: StrictStr = Field(...) __properties = ["email", "access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/request_external_user_link_param.py b/saasus_sdk_python/src/auth/models/request_external_user_link_param.py index f1b5f22..9dadb64 100644 --- a/saasus_sdk_python/src/auth/models/request_external_user_link_param.py +++ b/saasus_sdk_python/src/auth/models/request_external_user_link_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class RequestExternalUserLinkParam(BaseModel): """ @@ -27,11 +27,7 @@ class RequestExternalUserLinkParam(BaseModel): """ access_token: StrictStr = Field(...) __properties = ["access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/resend_sign_up_confirmation_email_param.py b/saasus_sdk_python/src/auth/models/resend_sign_up_confirmation_email_param.py index 2ca1734..d466071 100644 --- a/saasus_sdk_python/src/auth/models/resend_sign_up_confirmation_email_param.py +++ b/saasus_sdk_python/src/auth/models/resend_sign_up_confirmation_email_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ResendSignUpConfirmationEmailParam(BaseModel): """ @@ -27,11 +27,7 @@ class ResendSignUpConfirmationEmailParam(BaseModel): """ email: StrictStr = Field(..., description="Email Address") __properties = ["email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/role.py b/saasus_sdk_python/src/auth/models/role.py index d013f76..4204371 100644 --- a/saasus_sdk_python/src/auth/models/role.py +++ b/saasus_sdk_python/src/auth/models/role.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Role(BaseModel): """ @@ -28,11 +28,7 @@ class Role(BaseModel): role_name: StrictStr = Field(..., description="role name") display_name: StrictStr = Field(..., description="role display name") __properties = ["role_name", "display_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/roles.py b/saasus_sdk_python/src/auth/models/roles.py index 0264ae8..7ff104f 100644 --- a/saasus_sdk_python/src/auth/models/roles.py +++ b/saasus_sdk_python/src/auth/models/roles.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.role import Role +from typing_extensions import Annotated class Roles(BaseModel): """ Roles """ - roles: conlist(Role) = Field(...) + roles: Annotated[List[Role], Field()] = Field(...) __properties = ["roles"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/saas_id.py b/saasus_sdk_python/src/auth/models/saas_id.py index e177a29..284a42a 100644 --- a/saasus_sdk_python/src/auth/models/saas_id.py +++ b/saasus_sdk_python/src/auth/models/saas_id.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class SaasId(BaseModel): """ @@ -29,11 +29,7 @@ class SaasId(BaseModel): env_id: StrictInt = Field(...) saas_id: StrictStr = Field(..., description="SaaS ID") __properties = ["tenant_id", "env_id", "saas_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/saas_user.py b/saasus_sdk_python/src/auth/models/saas_user.py index 83d6672..0915e02 100644 --- a/saasus_sdk_python/src/auth/models/saas_user.py +++ b/saasus_sdk_python/src/auth/models/saas_user.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SaasUser(BaseModel): """ @@ -28,11 +28,7 @@ class SaasUser(BaseModel): id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") __properties = ["id", "email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/saas_users.py b/saasus_sdk_python/src/auth/models/saas_users.py index 8736516..642c247 100644 --- a/saasus_sdk_python/src/auth/models/saas_users.py +++ b/saasus_sdk_python/src/auth/models/saas_users.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.saas_user import SaasUser +from typing_extensions import Annotated class SaasUsers(BaseModel): """ SaasUsers """ - users: conlist(SaasUser) = Field(...) + users: Annotated[List[SaasUser], Field()] = Field(...) __properties = ["users"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/self_regist.py b/saasus_sdk_python/src/auth/models/self_regist.py index 399d93e..3f0efa3 100644 --- a/saasus_sdk_python/src/auth/models/self_regist.py +++ b/saasus_sdk_python/src/auth/models/self_regist.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class SelfRegist(BaseModel): """ @@ -27,11 +27,7 @@ class SelfRegist(BaseModel): """ enable: StrictBool = Field(...) __properties = ["enable"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/sign_in_settings.py b/saasus_sdk_python/src/auth/models/sign_in_settings.py index ac1b651..1467108 100644 --- a/saasus_sdk_python/src/auth/models/sign_in_settings.py +++ b/saasus_sdk_python/src/auth/models/sign_in_settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.account_verification import AccountVerification from saasus_sdk_python.src.auth.models.device_configuration import DeviceConfiguration from saasus_sdk_python.src.auth.models.identity_provider_configuration import IdentityProviderConfiguration @@ -40,11 +40,7 @@ class SignInSettings(BaseModel): self_regist: SelfRegist = Field(...) identity_provider_configuration: IdentityProviderConfiguration = Field(...) __properties = ["password_policy", "device_configuration", "mfa_configuration", "recaptcha_props", "account_verification", "self_regist", "identity_provider_configuration"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/sign_up_param.py b/saasus_sdk_python/src/auth/models/sign_up_param.py index d45b9f8..4ee144f 100644 --- a/saasus_sdk_python/src/auth/models/sign_up_param.py +++ b/saasus_sdk_python/src/auth/models/sign_up_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SignUpParam(BaseModel): """ @@ -27,11 +27,7 @@ class SignUpParam(BaseModel): """ email: StrictStr = Field(..., description="Email Address") __properties = ["email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/sign_up_with_aws_marketplace_param.py b/saasus_sdk_python/src/auth/models/sign_up_with_aws_marketplace_param.py index 9fa47d9..8a3a043 100644 --- a/saasus_sdk_python/src/auth/models/sign_up_with_aws_marketplace_param.py +++ b/saasus_sdk_python/src/auth/models/sign_up_with_aws_marketplace_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SignUpWithAwsMarketplaceParam(BaseModel): """ @@ -28,11 +28,7 @@ class SignUpWithAwsMarketplaceParam(BaseModel): email: StrictStr = Field(..., description="Email Address") registration_token: StrictStr = Field(..., description="Registration Token") __properties = ["email", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/software_token_secret_code.py b/saasus_sdk_python/src/auth/models/software_token_secret_code.py index d26d174..0098225 100644 --- a/saasus_sdk_python/src/auth/models/software_token_secret_code.py +++ b/saasus_sdk_python/src/auth/models/software_token_secret_code.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SoftwareTokenSecretCode(BaseModel): """ @@ -27,11 +27,7 @@ class SoftwareTokenSecretCode(BaseModel): """ secret_code: StrictStr = Field(..., description="secret code") __properties = ["secret_code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/tenant.py b/saasus_sdk_python/src/auth/models/tenant.py index 0931290..8590aae 100644 --- a/saasus_sdk_python/src/auth/models/tenant.py +++ b/saasus_sdk_python/src/auth/models/tenant.py @@ -19,10 +19,11 @@ from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.plan_history import PlanHistory from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior +from typing_extensions import Annotated class Tenant(BaseModel): """ @@ -36,16 +37,12 @@ class Tenant(BaseModel): next_plan_tax_rate_id: Optional[StrictStr] = None proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") - plan_histories: conlist(PlanHistory) = Field(..., description="Plan History") + plan_histories: Annotated[List[PlanHistory], Field()] = Field(..., description="Plan History") id: StrictStr = Field(...) plan_id: Optional[StrictStr] = None billing_info: Optional[BillingInfo] = None __properties = ["name", "attributes", "back_office_staff_email", "next_plan_id", "using_next_plan_from", "next_plan_tax_rate_id", "proration_behavior", "delete_usage", "plan_histories", "id", "plan_id", "billing_info"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/tenant_attributes.py b/saasus_sdk_python/src/auth/models/tenant_attributes.py index 3fea4f1..4c0b843 100644 --- a/saasus_sdk_python/src/auth/models/tenant_attributes.py +++ b/saasus_sdk_python/src/auth/models/tenant_attributes.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.attribute import Attribute +from typing_extensions import Annotated class TenantAttributes(BaseModel): """ TenantAttributes """ - tenant_attributes: conlist(Attribute) = Field(..., description="Tenant Attribute Definition") + tenant_attributes: Annotated[List[Attribute], Field()] = Field(..., description="Tenant Attribute Definition") __properties = ["tenant_attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/tenant_detail.py b/saasus_sdk_python/src/auth/models/tenant_detail.py index 9895e42..91b1a0d 100644 --- a/saasus_sdk_python/src/auth/models/tenant_detail.py +++ b/saasus_sdk_python/src/auth/models/tenant_detail.py @@ -19,10 +19,11 @@ from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.plan_history import PlanHistory from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior +from typing_extensions import Annotated class TenantDetail(BaseModel): """ @@ -39,15 +40,11 @@ class TenantDetail(BaseModel): next_plan_tax_rate_id: Optional[StrictStr] = None proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") - plan_histories: conlist(PlanHistory) = Field(..., description="Plan History") + plan_histories: Annotated[List[PlanHistory], Field()] = Field(..., description="Plan History") current_plan_period_start: Optional[StrictInt] = Field(None, description="current plan period start") current_plan_period_end: Optional[StrictInt] = Field(None, description="current plan period end") __properties = ["id", "plan_id", "billing_info", "name", "attributes", "back_office_staff_email", "next_plan_id", "using_next_plan_from", "next_plan_tax_rate_id", "proration_behavior", "delete_usage", "plan_histories", "current_plan_period_start", "current_plan_period_end"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/tenant_identity_provider_props.py b/saasus_sdk_python/src/auth/models/tenant_identity_provider_props.py index 7c41fac..3915c54 100644 --- a/saasus_sdk_python/src/auth/models/tenant_identity_provider_props.py +++ b/saasus_sdk_python/src/auth/models/tenant_identity_provider_props.py @@ -18,11 +18,11 @@ import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Any, List, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from saasus_sdk_python.src.auth.models.identity_provider_saml import IdentityProviderSaml from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS = ["IdentityProviderSaml"] @@ -35,11 +35,9 @@ class TenantIdentityProviderProps(BaseModel): if TYPE_CHECKING: actual_instance: Union[IdentityProviderSaml] else: - actual_instance: Any - one_of_schemas: List[str] = Field(TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + one_of_schemas: Literal[TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS] = TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs): if args: @@ -51,7 +49,8 @@ def __init__(self, *args, **kwargs): else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_oneof(cls, v): instance = TenantIdentityProviderProps.construct() error_messages = [] diff --git a/saasus_sdk_python/src/auth/models/tenant_identity_providers.py b/saasus_sdk_python/src/auth/models/tenant_identity_providers.py index 225ac93..d074875 100644 --- a/saasus_sdk_python/src/auth/models/tenant_identity_providers.py +++ b/saasus_sdk_python/src/auth/models/tenant_identity_providers.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.tenant_identity_providers_saml import TenantIdentityProvidersSaml class TenantIdentityProviders(BaseModel): @@ -28,11 +28,7 @@ class TenantIdentityProviders(BaseModel): """ saml: Optional[TenantIdentityProvidersSaml] = None __properties = ["saml"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/tenant_identity_providers_saml.py b/saasus_sdk_python/src/auth/models/tenant_identity_providers_saml.py index f57cb96..6fac247 100644 --- a/saasus_sdk_python/src/auth/models/tenant_identity_providers_saml.py +++ b/saasus_sdk_python/src/auth/models/tenant_identity_providers_saml.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class TenantIdentityProvidersSaml(BaseModel): """ @@ -29,11 +29,7 @@ class TenantIdentityProvidersSaml(BaseModel): email_attribute: StrictStr = Field(...) sign_in_url: StrictStr = Field(...) __properties = ["metadata_url", "email_attribute", "sign_in_url"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/tenant_props.py b/saasus_sdk_python/src/auth/models/tenant_props.py index e94511c..540e3ad 100644 --- a/saasus_sdk_python/src/auth/models/tenant_props.py +++ b/saasus_sdk_python/src/auth/models/tenant_props.py @@ -19,7 +19,7 @@ from typing import Any, Dict -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class TenantProps(BaseModel): """ @@ -29,11 +29,7 @@ class TenantProps(BaseModel): attributes: Dict[str, Any] = Field(..., description="attribute info") back_office_staff_email: StrictStr = Field(..., description="administrative staff email address") __properties = ["name", "attributes", "back_office_staff_email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/tenants.py b/saasus_sdk_python/src/auth/models/tenants.py index 7ba4e5e..a434f7d 100644 --- a/saasus_sdk_python/src/auth/models/tenants.py +++ b/saasus_sdk_python/src/auth/models/tenants.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.tenant import Tenant +from typing_extensions import Annotated class Tenants(BaseModel): """ Tenant Info """ - tenants: conlist(Tenant) = Field(...) + tenants: Annotated[List[Tenant], Field()] = Field(...) __properties = ["tenants"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_basic_info_param.py b/saasus_sdk_python/src/auth/models/update_basic_info_param.py index 39c7c22..816cdf0 100644 --- a/saasus_sdk_python/src/auth/models/update_basic_info_param.py +++ b/saasus_sdk_python/src/auth/models/update_basic_info_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateBasicInfoParam(BaseModel): """ @@ -29,11 +29,7 @@ class UpdateBasicInfoParam(BaseModel): from_email_address: StrictStr = Field(..., description="Sender email of authentication email") reply_email_address: Optional[StrictStr] = Field(None, description="Reply-from email address of authentication email") __properties = ["domain_name", "from_email_address", "reply_email_address"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_customize_page_settings_param.py b/saasus_sdk_python/src/auth/models/update_customize_page_settings_param.py index 6af5cc8..0452a92 100644 --- a/saasus_sdk_python/src/auth/models/update_customize_page_settings_param.py +++ b/saasus_sdk_python/src/auth/models/update_customize_page_settings_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateCustomizePageSettingsParam(BaseModel): """ @@ -32,11 +32,7 @@ class UpdateCustomizePageSettingsParam(BaseModel): icon: StrictStr = Field(..., description="service icon") favicon: StrictStr = Field(..., description="favicon") __properties = ["title", "terms_of_service_url", "privacy_policy_url", "google_tag_manager_container_id", "icon", "favicon"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_customize_pages_param.py b/saasus_sdk_python/src/auth/models/update_customize_pages_param.py index 6190391..867c191 100644 --- a/saasus_sdk_python/src/auth/models/update_customize_pages_param.py +++ b/saasus_sdk_python/src/auth/models/update_customize_pages_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.customize_page_props import CustomizePageProps class UpdateCustomizePagesParam(BaseModel): @@ -30,11 +30,7 @@ class UpdateCustomizePagesParam(BaseModel): sign_in_page: Optional[CustomizePageProps] = None password_reset_page: Optional[CustomizePageProps] = None __properties = ["sign_up_page", "sign_in_page", "password_reset_page"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_env_param.py b/saasus_sdk_python/src/auth/models/update_env_param.py index 93d791d..861ddc7 100644 --- a/saasus_sdk_python/src/auth/models/update_env_param.py +++ b/saasus_sdk_python/src/auth/models/update_env_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateEnvParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateEnvParam(BaseModel): name: StrictStr = Field(..., description="env name") display_name: Optional[StrictStr] = Field(None, description="env display name") __properties = ["name", "display_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_identity_provider_param.py b/saasus_sdk_python/src/auth/models/update_identity_provider_param.py index c7d7b3f..cf0857f 100644 --- a/saasus_sdk_python/src/auth/models/update_identity_provider_param.py +++ b/saasus_sdk_python/src/auth/models/update_identity_provider_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.identity_provider_props import IdentityProviderProps from saasus_sdk_python.src.auth.models.provider_name import ProviderName @@ -30,11 +30,7 @@ class UpdateIdentityProviderParam(BaseModel): provider: ProviderName = Field(...) identity_provider_props: Optional[IdentityProviderProps] = None __properties = ["provider", "identity_provider_props"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_notification_messages_param.py b/saasus_sdk_python/src/auth/models/update_notification_messages_param.py index 2f35b53..32d3a4d 100644 --- a/saasus_sdk_python/src/auth/models/update_notification_messages_param.py +++ b/saasus_sdk_python/src/auth/models/update_notification_messages_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.message_template import MessageTemplate class UpdateNotificationMessagesParam(BaseModel): @@ -36,11 +36,7 @@ class UpdateNotificationMessagesParam(BaseModel): invite_tenant_user: Optional[MessageTemplate] = None verify_external_user: Optional[MessageTemplate] = None __properties = ["sign_up", "create_user", "resend_code", "forgot_password", "update_user_attribute", "verify_user_attribute", "authentication_mfa", "invite_tenant_user", "verify_external_user"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_saas_user_email_param.py b/saasus_sdk_python/src/auth/models/update_saas_user_email_param.py index 488b75e..346bf57 100644 --- a/saasus_sdk_python/src/auth/models/update_saas_user_email_param.py +++ b/saasus_sdk_python/src/auth/models/update_saas_user_email_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateSaasUserEmailParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateSaasUserEmailParam(BaseModel): """ email: StrictStr = Field(..., description="E-mail") __properties = ["email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_saas_user_password_param.py b/saasus_sdk_python/src/auth/models/update_saas_user_password_param.py index 5d4aa08..cb17e5a 100644 --- a/saasus_sdk_python/src/auth/models/update_saas_user_password_param.py +++ b/saasus_sdk_python/src/auth/models/update_saas_user_password_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateSaasUserPasswordParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateSaasUserPasswordParam(BaseModel): """ password: StrictStr = Field(..., description="Password") __properties = ["password"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_sign_in_settings_param.py b/saasus_sdk_python/src/auth/models/update_sign_in_settings_param.py index 442e1c9..5b96a41 100644 --- a/saasus_sdk_python/src/auth/models/update_sign_in_settings_param.py +++ b/saasus_sdk_python/src/auth/models/update_sign_in_settings_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.account_verification import AccountVerification from saasus_sdk_python.src.auth.models.device_configuration import DeviceConfiguration from saasus_sdk_python.src.auth.models.mfa_configuration import MfaConfiguration @@ -38,11 +38,7 @@ class UpdateSignInSettingsParam(BaseModel): account_verification: Optional[AccountVerification] = None self_regist: Optional[SelfRegist] = None __properties = ["password_policy", "device_configuration", "mfa_configuration", "recaptcha_props", "account_verification", "self_regist"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_software_token_param.py b/saasus_sdk_python/src/auth/models/update_software_token_param.py index 267ed44..f699113 100644 --- a/saasus_sdk_python/src/auth/models/update_software_token_param.py +++ b/saasus_sdk_python/src/auth/models/update_software_token_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateSoftwareTokenParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateSoftwareTokenParam(BaseModel): access_token: StrictStr = Field(..., description="access token") verification_code: StrictStr = Field(..., description="verification code") __properties = ["access_token", "verification_code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_tenant_identity_provider_param.py b/saasus_sdk_python/src/auth/models/update_tenant_identity_provider_param.py index 52eb4b6..e6d624f 100644 --- a/saasus_sdk_python/src/auth/models/update_tenant_identity_provider_param.py +++ b/saasus_sdk_python/src/auth/models/update_tenant_identity_provider_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.provider_type import ProviderType from saasus_sdk_python.src.auth.models.tenant_identity_provider_props import TenantIdentityProviderProps @@ -30,11 +30,7 @@ class UpdateTenantIdentityProviderParam(BaseModel): provider_type: ProviderType = Field(...) identity_provider_props: Optional[TenantIdentityProviderProps] = None __properties = ["provider_type", "identity_provider_props"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/update_tenant_user_param.py b/saasus_sdk_python/src/auth/models/update_tenant_user_param.py index 1393294..7864b5d 100644 --- a/saasus_sdk_python/src/auth/models/update_tenant_user_param.py +++ b/saasus_sdk_python/src/auth/models/update_tenant_user_param.py @@ -19,7 +19,7 @@ from typing import Any, Dict -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field class UpdateTenantUserParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateTenantUserParam(BaseModel): """ attributes: Dict[str, Any] = Field(..., description="Attribute information (Get information set by defining user attributes in the SaaS development console) ") __properties = ["attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/user.py b/saasus_sdk_python/src/auth/models/user.py index 8bc0bed..28576a8 100644 --- a/saasus_sdk_python/src/auth/models/user.py +++ b/saasus_sdk_python/src/auth/models/user.py @@ -19,8 +19,9 @@ from typing import Any, Dict, List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.user_available_env import UserAvailableEnv +from typing_extensions import Annotated class User(BaseModel): """ @@ -31,13 +32,9 @@ class User(BaseModel): tenant_name: StrictStr = Field(..., description="Tenant Name") email: StrictStr = Field(..., description="E-mail") attributes: Dict[str, Any] = Field(..., description="Attribute information (Get information set by defining user attributes in the SaaS development console) ") - envs: conlist(UserAvailableEnv) = Field(...) + envs: Annotated[List[UserAvailableEnv], Field()] = Field(...) __properties = ["id", "tenant_id", "tenant_name", "email", "attributes", "envs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/user_attributes.py b/saasus_sdk_python/src/auth/models/user_attributes.py index 2e31994..d24c2ec 100644 --- a/saasus_sdk_python/src/auth/models/user_attributes.py +++ b/saasus_sdk_python/src/auth/models/user_attributes.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.attribute import Attribute +from typing_extensions import Annotated class UserAttributes(BaseModel): """ UserAttributes """ - user_attributes: conlist(Attribute) = Field(..., description="User Attribute Definition") + user_attributes: Annotated[List[Attribute], Field()] = Field(..., description="User Attribute Definition") __properties = ["user_attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/user_available_env.py b/saasus_sdk_python/src/auth/models/user_available_env.py index b294f56..04cc076 100644 --- a/saasus_sdk_python/src/auth/models/user_available_env.py +++ b/saasus_sdk_python/src/auth/models/user_available_env.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.role import Role +from typing_extensions import Annotated class UserAvailableEnv(BaseModel): """ @@ -29,13 +30,9 @@ class UserAvailableEnv(BaseModel): id: StrictInt = Field(...) name: StrictStr = Field(..., description="env name") display_name: Optional[StrictStr] = Field(None, description="env display name") - roles: conlist(Role) = Field(..., description="role info") + roles: Annotated[List[Role], Field()] = Field(..., description="role info") __properties = ["id", "name", "display_name", "roles"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/user_available_tenant.py b/saasus_sdk_python/src/auth/models/user_available_tenant.py index 6cbb9ec..8ab5e3d 100644 --- a/saasus_sdk_python/src/auth/models/user_available_tenant.py +++ b/saasus_sdk_python/src/auth/models/user_available_tenant.py @@ -19,8 +19,9 @@ from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.auth.models.user_available_env import UserAvailableEnv +from typing_extensions import Annotated class UserAvailableTenant(BaseModel): """ @@ -29,17 +30,13 @@ class UserAvailableTenant(BaseModel): id: StrictStr = Field(...) name: StrictStr = Field(..., description="Tenant Name") completed_sign_up: StrictBool = Field(...) - envs: conlist(UserAvailableEnv) = Field(..., description="environmental info, role info") + envs: Annotated[List[UserAvailableEnv], Field()] = Field(..., description="environmental info, role info") user_attribute: Dict[str, Any] = Field(..., description="user additional attributes") back_office_staff_email: StrictStr = Field(..., description="back office contact email") plan_id: Optional[StrictStr] = None is_paid: Optional[StrictBool] = Field(None, description="tenant payment status ※ Currently, it is returned only when stripe is linked. ") __properties = ["id", "name", "completed_sign_up", "envs", "user_attribute", "back_office_staff_email", "plan_id", "is_paid"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/user_info.py b/saasus_sdk_python/src/auth/models/user_info.py index a8aeff2..4ffd36a 100644 --- a/saasus_sdk_python/src/auth/models/user_info.py +++ b/saasus_sdk_python/src/auth/models/user_info.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.user_available_tenant import UserAvailableTenant +from typing_extensions import Annotated class UserInfo(BaseModel): """ @@ -28,13 +29,9 @@ class UserInfo(BaseModel): """ id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") - tenants: conlist(UserAvailableTenant) = Field(..., description="Tenant Info") + tenants: Annotated[List[UserAvailableTenant], Field()] = Field(..., description="Tenant Info") __properties = ["id", "email", "tenants"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/users.py b/saasus_sdk_python/src/auth/models/users.py index 1a2089b..f8c5772 100644 --- a/saasus_sdk_python/src/auth/models/users.py +++ b/saasus_sdk_python/src/auth/models/users.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.user import User +from typing_extensions import Annotated class Users(BaseModel): """ Users """ - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) __properties = ["users"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/auth/models/validate_invitation_param.py b/saasus_sdk_python/src/auth/models/validate_invitation_param.py index 07c4a85..7bce826 100644 --- a/saasus_sdk_python/src/auth/models/validate_invitation_param.py +++ b/saasus_sdk_python/src/auth/models/validate_invitation_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ValidateInvitationParam(BaseModel): """ @@ -29,11 +29,7 @@ class ValidateInvitationParam(BaseModel): email: Optional[StrictStr] = Field(None, description="Email address of the invited user") password: Optional[StrictStr] = Field(None, description="Password of the invited user") __properties = ["access_token", "email", "password"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/api/aws_marketplace_api.py b/saasus_sdk_python/src/awsmarketplace/api/aws_marketplace_api.py index 1eb1c57..51e491e 100644 --- a/saasus_sdk_python/src/awsmarketplace/api/aws_marketplace_api.py +++ b/saasus_sdk_python/src/awsmarketplace/api/aws_marketplace_api.py @@ -19,9 +19,9 @@ from pydantic import validate_arguments, ValidationError from typing_extensions import Annotated -from pydantic import Field, StrictStr, conlist +from pydantic import Field, StrictStr -from typing import Optional +from typing import List, Optional from saasus_sdk_python.src.awsmarketplace.models.catalog_entity_visibility import CatalogEntityVisibility from saasus_sdk_python.src.awsmarketplace.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink @@ -609,7 +609,7 @@ def get_customer_with_http_info(self, customer_identifier : Annotated[StrictStr, _request_auth=_params.get('_request_auth')) @validate_arguments - def get_customers(self, tenant_ids : Annotated[Optional[conlist(StrictStr)], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> Customers: # noqa: E501 + def get_customers(self, tenant_ids : Annotated[Optional[Annotated[List[StrictStr], Field()]], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> Customers: # noqa: E501 """Get a list of customer information to be linked to AWS Marketplace # noqa: E501 Get a list of customer information to be linked to AWS Marketplace. # noqa: E501 @@ -638,7 +638,7 @@ def get_customers(self, tenant_ids : Annotated[Optional[conlist(StrictStr)], Fie return self.get_customers_with_http_info(tenant_ids, **kwargs) # noqa: E501 @validate_arguments - def get_customers_with_http_info(self, tenant_ids : Annotated[Optional[conlist(StrictStr)], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def get_customers_with_http_info(self, tenant_ids : Annotated[Optional[Annotated[List[StrictStr], Field()]], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get a list of customer information to be linked to AWS Marketplace # noqa: E501 Get a list of customer information to be linked to AWS Marketplace. # noqa: E501 diff --git a/saasus_sdk_python/src/awsmarketplace/models/catalog_entity_visibility.py b/saasus_sdk_python/src/awsmarketplace/models/catalog_entity_visibility.py index cbfc697..37ca597 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/catalog_entity_visibility.py +++ b/saasus_sdk_python/src/awsmarketplace/models/catalog_entity_visibility.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.visibility_status import VisibilityStatus class CatalogEntityVisibility(BaseModel): @@ -28,11 +28,7 @@ class CatalogEntityVisibility(BaseModel): """ visibility: VisibilityStatus = Field(...) __properties = ["visibility"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/cloud_formation_launch_stack_link.py b/saasus_sdk_python/src/awsmarketplace/models/cloud_formation_launch_stack_link.py index 58184cf..d6634d5 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/cloud_formation_launch_stack_link.py +++ b/saasus_sdk_python/src/awsmarketplace/models/cloud_formation_launch_stack_link.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CloudFormationLaunchStackLink(BaseModel): """ @@ -27,11 +27,7 @@ class CloudFormationLaunchStackLink(BaseModel): """ link: StrictStr = Field(...) __properties = ["link"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/create_customer_param.py b/saasus_sdk_python/src/awsmarketplace/models/create_customer_param.py index 5f4f3dd..d8f5a33 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/create_customer_param.py +++ b/saasus_sdk_python/src/awsmarketplace/models/create_customer_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateCustomerParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateCustomerParam(BaseModel): tenant_id: StrictStr = Field(...) registration_token: StrictStr = Field(...) __properties = ["tenant_id", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/customer.py b/saasus_sdk_python/src/awsmarketplace/models/customer.py index e2d4e8f..7ef50e4 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/customer.py +++ b/saasus_sdk_python/src/awsmarketplace/models/customer.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Customer(BaseModel): """ @@ -29,11 +29,7 @@ class Customer(BaseModel): customer_aws_account_id: StrictStr = Field(...) tenant_id: StrictStr = Field(...) __properties = ["customer_identifier", "customer_aws_account_id", "tenant_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/customers.py b/saasus_sdk_python/src/awsmarketplace/models/customers.py index e80ffda..d75e4d7 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/customers.py +++ b/saasus_sdk_python/src/awsmarketplace/models/customers.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.customer import Customer +from typing_extensions import Annotated class Customers(BaseModel): """ Customers """ - customers: conlist(Customer) = Field(...) + customers: Annotated[List[Customer], Field()] = Field(...) __properties = ["customers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/error.py b/saasus_sdk_python/src/awsmarketplace/models/error.py index c1266ef..d63f0b0 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/error.py +++ b/saasus_sdk_python/src/awsmarketplace/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(...) message: StrictStr = Field(...) __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/get_listing_status_result.py b/saasus_sdk_python/src/awsmarketplace/models/get_listing_status_result.py index d7dfd14..def5633 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/get_listing_status_result.py +++ b/saasus_sdk_python/src/awsmarketplace/models/get_listing_status_result.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.listing_status import ListingStatus class GetListingStatusResult(BaseModel): @@ -28,11 +28,7 @@ class GetListingStatusResult(BaseModel): """ listing_status: ListingStatus = Field(...) __properties = ["listing_status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/plan.py b/saasus_sdk_python/src/awsmarketplace/models/plan.py index c779826..27591f7 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/plan.py +++ b/saasus_sdk_python/src/awsmarketplace/models/plan.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Plan(BaseModel): """ @@ -28,11 +28,7 @@ class Plan(BaseModel): plan_id: StrictStr = Field(...) plan_name: StrictStr = Field(...) __properties = ["plan_id", "plan_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/plans.py b/saasus_sdk_python/src/awsmarketplace/models/plans.py index ab8e286..aecda7f 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/plans.py +++ b/saasus_sdk_python/src/awsmarketplace/models/plans.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.plan import Plan +from typing_extensions import Annotated class Plans(BaseModel): """ Plans """ - plans: conlist(Plan) = Field(...) + plans: Annotated[List[Plan], Field()] = Field(...) __properties = ["plans"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/save_plan_param.py b/saasus_sdk_python/src/awsmarketplace/models/save_plan_param.py index 43153ce..dc8eca5 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/save_plan_param.py +++ b/saasus_sdk_python/src/awsmarketplace/models/save_plan_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SavePlanParam(BaseModel): """ @@ -28,11 +28,7 @@ class SavePlanParam(BaseModel): plan_id: StrictStr = Field(...) plan_name: StrictStr = Field(...) __properties = ["plan_id", "plan_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/settings.py b/saasus_sdk_python/src/awsmarketplace/models/settings.py index bde5f07..52c7a04 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/settings.py +++ b/saasus_sdk_python/src/awsmarketplace/models/settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Settings(BaseModel): """ @@ -35,11 +35,7 @@ class Settings(BaseModel): redirect_sign_up_page_function_url: StrictStr = Field(...) sqs_arn: StrictStr = Field(...) __properties = ["product_code", "role_arn", "role_external_id", "sns_topic_arn", "cas_bucket_name", "cas_sns_topic_arn", "seller_sns_topic_arn", "redirect_sign_up_page_function_url", "sqs_arn"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/update_listing_status_param.py b/saasus_sdk_python/src/awsmarketplace/models/update_listing_status_param.py index 9aa589a..276545a 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/update_listing_status_param.py +++ b/saasus_sdk_python/src/awsmarketplace/models/update_listing_status_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.listing_status import ListingStatus class UpdateListingStatusParam(BaseModel): @@ -28,11 +28,7 @@ class UpdateListingStatusParam(BaseModel): """ listing_status: ListingStatus = Field(...) __properties = ["listing_status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/update_settings_param.py b/saasus_sdk_python/src/awsmarketplace/models/update_settings_param.py index 41fdfd0..85b8efe 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/update_settings_param.py +++ b/saasus_sdk_python/src/awsmarketplace/models/update_settings_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, StrictStr +from pydantic import ConfigDict, BaseModel, StrictStr class UpdateSettingsParam(BaseModel): """ @@ -34,11 +34,7 @@ class UpdateSettingsParam(BaseModel): seller_sns_topic_arn: Optional[StrictStr] = None sqs_arn: Optional[StrictStr] = None __properties = ["product_code", "role_arn", "role_external_id", "sns_topic_arn", "cas_bucket_name", "cas_sns_topic_arn", "seller_sns_topic_arn", "sqs_arn"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/awsmarketplace/models/verify_registration_token_param.py b/saasus_sdk_python/src/awsmarketplace/models/verify_registration_token_param.py index f22d45a..6174374 100644 --- a/saasus_sdk_python/src/awsmarketplace/models/verify_registration_token_param.py +++ b/saasus_sdk_python/src/awsmarketplace/models/verify_registration_token_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class VerifyRegistrationTokenParam(BaseModel): """ @@ -27,11 +27,7 @@ class VerifyRegistrationTokenParam(BaseModel): """ registration_token: StrictStr = Field(...) __properties = ["registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/billing/models/error.py b/saasus_sdk_python/src/billing/models/error.py index fb33be2..62d979d 100644 --- a/saasus_sdk_python/src/billing/models/error.py +++ b/saasus_sdk_python/src/billing/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/billing/models/stripe_info.py b/saasus_sdk_python/src/billing/models/stripe_info.py index 10e9fbd..64aa8f0 100644 --- a/saasus_sdk_python/src/billing/models/stripe_info.py +++ b/saasus_sdk_python/src/billing/models/stripe_info.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class StripeInfo(BaseModel): """ @@ -27,11 +27,7 @@ class StripeInfo(BaseModel): """ is_registered: StrictBool = Field(...) __properties = ["is_registered"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/billing/models/update_stripe_info_param.py b/saasus_sdk_python/src/billing/models/update_stripe_info_param.py index b2a333d..6fe0d93 100644 --- a/saasus_sdk_python/src/billing/models/update_stripe_info_param.py +++ b/saasus_sdk_python/src/billing/models/update_stripe_info_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateStripeInfoParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateStripeInfoParam(BaseModel): """ secret_key: StrictStr = Field(..., description="secret key") __properties = ["secret_key"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/comment.py b/saasus_sdk_python/src/communication/models/comment.py index d5f74eb..f17b73f 100644 --- a/saasus_sdk_python/src/communication/models/comment.py +++ b/saasus_sdk_python/src/communication/models/comment.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class Comment(BaseModel): """ @@ -30,11 +30,7 @@ class Comment(BaseModel): created_at: StrictInt = Field(...) body: StrictStr = Field(...) __properties = ["id", "user_id", "created_at", "body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/comments.py b/saasus_sdk_python/src/communication/models/comments.py index dff5ebe..a9cc435 100644 --- a/saasus_sdk_python/src/communication/models/comments.py +++ b/saasus_sdk_python/src/communication/models/comments.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.communication.models.comment import Comment +from typing_extensions import Annotated class Comments(BaseModel): """ Comments """ - comments: conlist(Comment) = Field(...) + comments: Annotated[List[Comment], Field()] = Field(...) __properties = ["comments"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py b/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py index 0cc55af..f27b1ab 100644 --- a/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py +++ b/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateFeedbackCommentParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateFeedbackCommentParam(BaseModel): user_id: StrictStr = Field(...) body: StrictStr = Field(...) __properties = ["user_id", "body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/create_feedback_param.py b/saasus_sdk_python/src/communication/models/create_feedback_param.py index 6aeb8d1..3d9e572 100644 --- a/saasus_sdk_python/src/communication/models/create_feedback_param.py +++ b/saasus_sdk_python/src/communication/models/create_feedback_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateFeedbackParam(BaseModel): """ @@ -29,11 +29,7 @@ class CreateFeedbackParam(BaseModel): feedback_description: StrictStr = Field(...) user_id: StrictStr = Field(...) __properties = ["feedback_title", "feedback_description", "user_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/create_vote_user_param.py b/saasus_sdk_python/src/communication/models/create_vote_user_param.py index f4859cd..759041c 100644 --- a/saasus_sdk_python/src/communication/models/create_vote_user_param.py +++ b/saasus_sdk_python/src/communication/models/create_vote_user_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateVoteUserParam(BaseModel): """ @@ -27,11 +27,7 @@ class CreateVoteUserParam(BaseModel): """ user_id: StrictStr = Field(...) __properties = ["user_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/error.py b/saasus_sdk_python/src/communication/models/error.py index 93f6902..cd18774 100644 --- a/saasus_sdk_python/src/communication/models/error.py +++ b/saasus_sdk_python/src/communication/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/feedback.py b/saasus_sdk_python/src/communication/models/feedback.py index 61cd89b..822f221 100644 --- a/saasus_sdk_python/src/communication/models/feedback.py +++ b/saasus_sdk_python/src/communication/models/feedback.py @@ -19,9 +19,10 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.communication.models.comment import Comment from saasus_sdk_python.src.communication.models.user import User +from typing_extensions import Annotated class Feedback(BaseModel): """ @@ -29,19 +30,15 @@ class Feedback(BaseModel): """ feedback_title: StrictStr = Field(...) feedback_description: StrictStr = Field(...) - comments: conlist(Comment) = Field(...) + comments: Annotated[List[Comment], Field()] = Field(...) count: StrictInt = Field(...) - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) id: StrictStr = Field(...) user_id: StrictStr = Field(...) created_at: StrictInt = Field(...) status: StrictInt = Field(...) __properties = ["feedback_title", "feedback_description", "comments", "count", "users", "id", "user_id", "created_at", "status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/feedback_save_props.py b/saasus_sdk_python/src/communication/models/feedback_save_props.py index e93632a..c4ebf51 100644 --- a/saasus_sdk_python/src/communication/models/feedback_save_props.py +++ b/saasus_sdk_python/src/communication/models/feedback_save_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class FeedbackSaveProps(BaseModel): """ @@ -28,11 +28,7 @@ class FeedbackSaveProps(BaseModel): feedback_title: StrictStr = Field(...) feedback_description: StrictStr = Field(...) __properties = ["feedback_title", "feedback_description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/feedbacks.py b/saasus_sdk_python/src/communication/models/feedbacks.py index 9c6a84d..272d6d6 100644 --- a/saasus_sdk_python/src/communication/models/feedbacks.py +++ b/saasus_sdk_python/src/communication/models/feedbacks.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.communication.models.feedback import Feedback +from typing_extensions import Annotated class Feedbacks(BaseModel): """ Feedbacks """ - feedbacks: conlist(Feedback) = Field(...) + feedbacks: Annotated[List[Feedback], Field()] = Field(...) __properties = ["feedbacks"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/update_feedback_comment_param.py b/saasus_sdk_python/src/communication/models/update_feedback_comment_param.py index 84046fd..011984f 100644 --- a/saasus_sdk_python/src/communication/models/update_feedback_comment_param.py +++ b/saasus_sdk_python/src/communication/models/update_feedback_comment_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateFeedbackCommentParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateFeedbackCommentParam(BaseModel): """ body: StrictStr = Field(...) __properties = ["body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/update_feedback_param.py b/saasus_sdk_python/src/communication/models/update_feedback_param.py index 7b174e6..fd502ba 100644 --- a/saasus_sdk_python/src/communication/models/update_feedback_param.py +++ b/saasus_sdk_python/src/communication/models/update_feedback_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateFeedbackParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateFeedbackParam(BaseModel): feedback_title: StrictStr = Field(...) feedback_description: StrictStr = Field(...) __properties = ["feedback_title", "feedback_description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/update_feedback_status_param.py b/saasus_sdk_python/src/communication/models/update_feedback_status_param.py index bc8d870..9b0e513 100644 --- a/saasus_sdk_python/src/communication/models/update_feedback_status_param.py +++ b/saasus_sdk_python/src/communication/models/update_feedback_status_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt class UpdateFeedbackStatusParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateFeedbackStatusParam(BaseModel): """ status: StrictInt = Field(...) __properties = ["status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/user.py b/saasus_sdk_python/src/communication/models/user.py index 9193517..630655f 100644 --- a/saasus_sdk_python/src/communication/models/user.py +++ b/saasus_sdk_python/src/communication/models/user.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class User(BaseModel): """ @@ -27,11 +27,7 @@ class User(BaseModel): """ user_id: StrictStr = Field(...) __properties = ["user_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/users.py b/saasus_sdk_python/src/communication/models/users.py index 0bd882c..388a869 100644 --- a/saasus_sdk_python/src/communication/models/users.py +++ b/saasus_sdk_python/src/communication/models/users.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.communication.models.user import User +from typing_extensions import Annotated class Users(BaseModel): """ Users """ - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) __properties = ["users"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/communication/models/votes.py b/saasus_sdk_python/src/communication/models/votes.py index 53ce112..16b60bc 100644 --- a/saasus_sdk_python/src/communication/models/votes.py +++ b/saasus_sdk_python/src/communication/models/votes.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt from saasus_sdk_python.src.communication.models.user import User +from typing_extensions import Annotated class Votes(BaseModel): """ Votes """ - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) count: StrictInt = Field(...) __properties = ["users", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/integration/models/create_event_bridge_event_param.py b/saasus_sdk_python/src/integration/models/create_event_bridge_event_param.py index df158df..9bedf93 100644 --- a/saasus_sdk_python/src/integration/models/create_event_bridge_event_param.py +++ b/saasus_sdk_python/src/integration/models/create_event_bridge_event_param.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.integration.models.event_message import EventMessage +from typing_extensions import Annotated class CreateEventBridgeEventParam(BaseModel): """ CreateEventBridgeEventParam """ - event_messages: conlist(EventMessage) = Field(..., description="event message") + event_messages: Annotated[List[EventMessage], Field()] = Field(..., description="event message") __properties = ["event_messages"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/integration/models/error.py b/saasus_sdk_python/src/integration/models/error.py index 43e2786..eac824c 100644 --- a/saasus_sdk_python/src/integration/models/error.py +++ b/saasus_sdk_python/src/integration/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/integration/models/event_bridge_settings.py b/saasus_sdk_python/src/integration/models/event_bridge_settings.py index de82e03..4de9811 100644 --- a/saasus_sdk_python/src/integration/models/event_bridge_settings.py +++ b/saasus_sdk_python/src/integration/models/event_bridge_settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.integration.models.aws_region import AwsRegion class EventBridgeSettings(BaseModel): @@ -29,11 +29,7 @@ class EventBridgeSettings(BaseModel): aws_account_id: StrictStr = Field(..., description="AWS Account ID") aws_region: AwsRegion = Field(...) __properties = ["aws_account_id", "aws_region"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/integration/models/event_message.py b/saasus_sdk_python/src/integration/models/event_message.py index 4293364..27bf30d 100644 --- a/saasus_sdk_python/src/integration/models/event_message.py +++ b/saasus_sdk_python/src/integration/models/event_message.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class EventMessage(BaseModel): """ @@ -29,11 +29,7 @@ class EventMessage(BaseModel): event_detail_type: StrictStr = Field(..., description="detailed event type") message: StrictStr = Field(..., description="event message") __properties = ["event_type", "event_detail_type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/error.py b/saasus_sdk_python/src/pricing/models/error.py index 934fe2d..a32910e 100644 --- a/saasus_sdk_python/src/pricing/models/error.py +++ b/saasus_sdk_python/src/pricing/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="Error type") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit.py b/saasus_sdk_python/src/pricing/models/metering_unit.py index 826ed48..45907af 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage class MeteringUnit(BaseModel): @@ -33,11 +33,7 @@ class MeteringUnit(BaseModel): id: StrictStr = Field(..., description="Universally Unique Identifier") used: StrictBool = Field(..., description="Metering unit used settings") __properties = ["unit_name", "aggregate_usage", "display_name", "description", "id", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_count.py b/saasus_sdk_python/src/pricing/models/metering_unit_count.py index c22cf13..70836ef 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_count.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt class MeteringUnitCount(BaseModel): """ @@ -28,11 +28,7 @@ class MeteringUnitCount(BaseModel): timestamp: StrictInt = Field(..., description="Timestamp") count: StrictInt = Field(..., description="Count") __properties = ["timestamp", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_date_count.py b/saasus_sdk_python/src/pricing/models/metering_unit_date_count.py index a12d1c3..57da20f 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_date_count.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_date_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class MeteringUnitDateCount(BaseModel): """ @@ -29,11 +29,7 @@ class MeteringUnitDateCount(BaseModel): var_date: StrictStr = Field(..., alias="date", description="Date") count: StrictInt = Field(..., description="Count") __properties = ["metering_unit_name", "date", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_date_counts.py b/saasus_sdk_python/src/pricing/models/metering_unit_date_counts.py index 1c10d77..a536599 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_date_counts.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_date_counts.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.metering_unit_date_count import MeteringUnitDateCount +from typing_extensions import Annotated class MeteringUnitDateCounts(BaseModel): """ MeteringUnitDateCounts """ - counts: conlist(MeteringUnitDateCount) = Field(...) + counts: Annotated[List[MeteringUnitDateCount], Field()] = Field(...) __properties = ["counts"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_date_period_counts.py b/saasus_sdk_python/src/pricing/models/metering_unit_date_period_counts.py index 40d02b2..d6eb4bd 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_date_period_counts.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_date_period_counts.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.pricing.models.metering_unit_count import MeteringUnitCount +from typing_extensions import Annotated class MeteringUnitDatePeriodCounts(BaseModel): """ MeteringUnitDatePeriodCounts """ metering_unit_name: StrictStr = Field(..., description="Metering unit name") - counts: conlist(MeteringUnitCount) = Field(...) + counts: Annotated[List[MeteringUnitCount], Field()] = Field(...) __properties = ["metering_unit_name", "counts"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_month_count.py b/saasus_sdk_python/src/pricing/models/metering_unit_month_count.py index f90c238..070e5f9 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_month_count.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_month_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class MeteringUnitMonthCount(BaseModel): """ @@ -29,11 +29,7 @@ class MeteringUnitMonthCount(BaseModel): month: StrictStr = Field(..., description="Month") count: StrictInt = Field(..., description="Count") __properties = ["metering_unit_name", "month", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_month_counts.py b/saasus_sdk_python/src/pricing/models/metering_unit_month_counts.py index 155d1e7..745213e 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_month_counts.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_month_counts.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.metering_unit_month_count import MeteringUnitMonthCount +from typing_extensions import Annotated class MeteringUnitMonthCounts(BaseModel): """ MeteringUnitMonthCounts """ - counts: conlist(MeteringUnitMonthCount) = Field(...) + counts: Annotated[List[MeteringUnitMonthCount], Field()] = Field(...) __properties = ["counts"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_props.py b/saasus_sdk_python/src/pricing/models/metering_unit_props.py index a977850..a10e950 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_props.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_props.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage class MeteringUnitProps(BaseModel): @@ -31,11 +31,7 @@ class MeteringUnitProps(BaseModel): display_name: StrictStr = Field(..., description="Display name") description: StrictStr = Field(..., description="Description") __properties = ["unit_name", "aggregate_usage", "display_name", "description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_unit_timestamp_count.py b/saasus_sdk_python/src/pricing/models/metering_unit_timestamp_count.py index ac4478c..fdab216 100644 --- a/saasus_sdk_python/src/pricing/models/metering_unit_timestamp_count.py +++ b/saasus_sdk_python/src/pricing/models/metering_unit_timestamp_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class MeteringUnitTimestampCount(BaseModel): """ @@ -29,11 +29,7 @@ class MeteringUnitTimestampCount(BaseModel): timestamp: StrictInt = Field(..., description="Timestamp") count: StrictInt = Field(..., description="Count") __properties = ["metering_unit_name", "timestamp", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/metering_units.py b/saasus_sdk_python/src/pricing/models/metering_units.py index 5a266c3..5e1553f 100644 --- a/saasus_sdk_python/src/pricing/models/metering_units.py +++ b/saasus_sdk_python/src/pricing/models/metering_units.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.metering_unit import MeteringUnit +from typing_extensions import Annotated class MeteringUnits(BaseModel): """ MeteringUnits """ - units: conlist(MeteringUnit) = Field(...) + units: Annotated[List[MeteringUnit], Field()] = Field(...) __properties = ["units"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_fixed_unit.py b/saasus_sdk_python/src/pricing/models/pricing_fixed_unit.py index d82a202..3f2cb9f 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_fixed_unit.py +++ b/saasus_sdk_python/src/pricing/models/pricing_fixed_unit.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -38,11 +38,7 @@ class PricingFixedUnit(BaseModel): id: StrictStr = Field(..., description="Universally Unique Identifier") used: StrictBool = Field(...) __properties = ["unit_amount", "recurring_interval", "name", "display_name", "description", "type", "currency", "id", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_fixed_unit_for_save.py b/saasus_sdk_python/src/pricing/models/pricing_fixed_unit_for_save.py index b589984..643095a 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_fixed_unit_for_save.py +++ b/saasus_sdk_python/src/pricing/models/pricing_fixed_unit_for_save.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -36,11 +36,7 @@ class PricingFixedUnitForSave(BaseModel): unit_amount: StrictInt = Field(..., description="Price") recurring_interval: RecurringInterval = Field(...) __properties = ["name", "display_name", "description", "type", "currency", "unit_amount", "recurring_interval"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_menu.py b/saasus_sdk_python/src/pricing/models/pricing_menu.py index 6d7fafd..f2b0e0b 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_menu.py +++ b/saasus_sdk_python/src/pricing/models/pricing_menu.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_unit import PricingUnit +from typing_extensions import Annotated class PricingMenu(BaseModel): """ @@ -30,14 +31,10 @@ class PricingMenu(BaseModel): display_name: StrictStr = Field(..., description="Menu display name") description: StrictStr = Field(..., description="Menu description") used: StrictBool = Field(..., description="Menu used settings") - units: conlist(PricingUnit) = Field(...) + units: Annotated[List[PricingUnit], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") __properties = ["name", "display_name", "description", "used", "units", "id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_menu_props.py b/saasus_sdk_python/src/pricing/models/pricing_menu_props.py index 6fdd359..b88a553 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_menu_props.py +++ b/saasus_sdk_python/src/pricing/models/pricing_menu_props.py @@ -19,24 +19,21 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_unit import PricingUnit +from typing_extensions import Annotated class PricingMenuProps(BaseModel): """ PricingMenuProps """ - units: conlist(PricingUnit) = Field(...) + units: Annotated[List[PricingUnit], Field()] = Field(...) name: StrictStr = Field(..., description="Menu name") display_name: StrictStr = Field(..., description="Menu display name") description: StrictStr = Field(..., description="Menu description") used: StrictBool = Field(..., description="Menu used settings") __properties = ["units", "name", "display_name", "description", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_menus.py b/saasus_sdk_python/src/pricing/models/pricing_menus.py index 17ecd1e..369f188 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_menus.py +++ b/saasus_sdk_python/src/pricing/models/pricing_menus.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_menu import PricingMenu +from typing_extensions import Annotated class PricingMenus(BaseModel): """ PricingMenus """ - pricing_menus: conlist(PricingMenu) = Field(...) + pricing_menus: Annotated[List[PricingMenu], Field()] = Field(...) __properties = ["pricing_menus"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_plan.py b/saasus_sdk_python/src/pricing/models/pricing_plan.py index c62ef89..b620167 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_plan.py +++ b/saasus_sdk_python/src/pricing/models/pricing_plan.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_menu import PricingMenu +from typing_extensions import Annotated class PricingPlan(BaseModel): """ @@ -30,14 +31,10 @@ class PricingPlan(BaseModel): display_name: StrictStr = Field(..., description="Pricing plan display name") description: StrictStr = Field(..., description="Pricing plan description") used: StrictBool = Field(..., description="Pricing plan used settings") - pricing_menus: conlist(PricingMenu) = Field(...) + pricing_menus: Annotated[List[PricingMenu], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") __properties = ["name", "display_name", "description", "used", "pricing_menus", "id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_plan_props.py b/saasus_sdk_python/src/pricing/models/pricing_plan_props.py index b223ff5..b0ae798 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_plan_props.py +++ b/saasus_sdk_python/src/pricing/models/pricing_plan_props.py @@ -19,24 +19,21 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_menu import PricingMenu +from typing_extensions import Annotated class PricingPlanProps(BaseModel): """ PricingPlanProps """ - pricing_menus: conlist(PricingMenu) = Field(...) + pricing_menus: Annotated[List[PricingMenu], Field()] = Field(...) name: StrictStr = Field(..., description="Pricing plan name") display_name: StrictStr = Field(..., description="Pricing plan display name") description: StrictStr = Field(..., description="Pricing plan description") used: StrictBool = Field(..., description="Pricing plan used settings") __properties = ["pricing_menus", "name", "display_name", "description", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_plans.py b/saasus_sdk_python/src/pricing/models/pricing_plans.py index 9d283fe..80e7cdc 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_plans.py +++ b/saasus_sdk_python/src/pricing/models/pricing_plans.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_plan import PricingPlan +from typing_extensions import Annotated class PricingPlans(BaseModel): """ PricingPlans """ - pricing_plans: conlist(PricingPlan) = Field(...) + pricing_plans: Annotated[List[PricingPlan], Field()] = Field(...) __properties = ["pricing_plans"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_tier.py b/saasus_sdk_python/src/pricing/models/pricing_tier.py index 9529237..45ce38f 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_tier.py +++ b/saasus_sdk_python/src/pricing/models/pricing_tier.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt class PricingTier(BaseModel): """ @@ -30,11 +30,7 @@ class PricingTier(BaseModel): flat_amount: StrictInt = Field(..., description="Fixed amount") inf: StrictBool = Field(..., description="Indefinite") __properties = ["up_to", "unit_amount", "flat_amount", "inf"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_tiered_unit.py b/saasus_sdk_python/src/pricing/models/pricing_tiered_unit.py index 908b437..47e8d5f 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_tiered_unit.py +++ b/saasus_sdk_python/src/pricing/models/pricing_tiered_unit.py @@ -19,12 +19,13 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUnit(BaseModel): """ @@ -38,17 +39,13 @@ class PricingTieredUnit(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") metering_unit_id: StrictStr = Field(..., description="Universally Unique Identifier") recurring_interval: RecurringInterval = Field(...) used: StrictBool = Field(..., description="Indicates if the unit is used") __properties = ["upper_count", "metering_unit_name", "aggregate_usage", "name", "display_name", "description", "type", "currency", "tiers", "id", "metering_unit_id", "recurring_interval", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_tiered_unit_for_save.py b/saasus_sdk_python/src/pricing/models/pricing_tiered_unit_for_save.py index cd570dd..40b4e63 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_tiered_unit_for_save.py +++ b/saasus_sdk_python/src/pricing/models/pricing_tiered_unit_for_save.py @@ -19,11 +19,12 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUnitForSave(BaseModel): """ @@ -34,16 +35,12 @@ class PricingTieredUnitForSave(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) upper_count: StrictInt = Field(..., description="Upper limit") metering_unit_name: StrictStr = Field(..., description="Metering unit name") aggregate_usage: Optional[AggregateUsage] = None __properties = ["name", "display_name", "description", "type", "currency", "tiers", "upper_count", "metering_unit_name", "aggregate_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit.py b/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit.py index d1cabe9..2b354af 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit.py +++ b/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit.py @@ -19,12 +19,13 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUsageUnit(BaseModel): """ @@ -38,17 +39,13 @@ class PricingTieredUsageUnit(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") metering_unit_id: StrictStr = Field(..., description="Universally Unique Identifier") recurring_interval: RecurringInterval = Field(...) used: StrictBool = Field(..., description="Indicates if the unit is used") __properties = ["upper_count", "metering_unit_name", "aggregate_usage", "name", "display_name", "description", "type", "currency", "tiers", "id", "metering_unit_id", "recurring_interval", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit_for_save.py b/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit_for_save.py index b2daaf7..9c4efa6 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit_for_save.py +++ b/saasus_sdk_python/src/pricing/models/pricing_tiered_usage_unit_for_save.py @@ -19,11 +19,12 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUsageUnitForSave(BaseModel): """ @@ -34,16 +35,12 @@ class PricingTieredUsageUnitForSave(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) upper_count: StrictInt = Field(..., description="Upper limit") metering_unit_name: StrictStr = Field(..., description="Metering unit name") aggregate_usage: Optional[AggregateUsage] = None __properties = ["name", "display_name", "description", "type", "currency", "tiers", "upper_count", "metering_unit_name", "aggregate_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_tiers.py b/saasus_sdk_python/src/pricing/models/pricing_tiers.py index c545bed..03f9c67 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_tiers.py +++ b/saasus_sdk_python/src/pricing/models/pricing_tiers.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier +from typing_extensions import Annotated class PricingTiers(BaseModel): """ PricingTiers """ - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) __properties = ["tiers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_unit.py b/saasus_sdk_python/src/pricing/models/pricing_unit.py index 95a8e46..c2dd5e6 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_unit.py +++ b/saasus_sdk_python/src/pricing/models/pricing_unit.py @@ -18,14 +18,14 @@ import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Any, List, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from saasus_sdk_python.src.pricing.models.pricing_fixed_unit import PricingFixedUnit from saasus_sdk_python.src.pricing.models.pricing_tiered_unit import PricingTieredUnit from saasus_sdk_python.src.pricing.models.pricing_tiered_usage_unit import PricingTieredUsageUnit from saasus_sdk_python.src.pricing.models.pricing_usage_unit import PricingUsageUnit from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr PRICINGUNIT_ONE_OF_SCHEMAS = ["PricingFixedUnit", "PricingTieredUnit", "PricingTieredUsageUnit", "PricingUsageUnit"] @@ -44,11 +44,9 @@ class PricingUnit(BaseModel): if TYPE_CHECKING: actual_instance: Union[PricingFixedUnit, PricingTieredUnit, PricingTieredUsageUnit, PricingUsageUnit] else: - actual_instance: Any - one_of_schemas: List[str] = Field(PRICINGUNIT_ONE_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + one_of_schemas: Literal[PRICINGUNIT_ONE_OF_SCHEMAS] = PRICINGUNIT_ONE_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) discriminator_value_class_map = { } @@ -63,7 +61,8 @@ def __init__(self, *args, **kwargs): else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_oneof(cls, v): instance = PricingUnit.construct() error_messages = [] diff --git a/saasus_sdk_python/src/pricing/models/pricing_unit_base_props.py b/saasus_sdk_python/src/pricing/models/pricing_unit_base_props.py index abca0b0..80ceb7f 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_unit_base_props.py +++ b/saasus_sdk_python/src/pricing/models/pricing_unit_base_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -33,11 +33,7 @@ class PricingUnitBaseProps(BaseModel): type: UnitType = Field(...) currency: Currency = Field(...) __properties = ["name", "display_name", "description", "type", "currency"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_unit_for_save.py b/saasus_sdk_python/src/pricing/models/pricing_unit_for_save.py index d63c381..3aee315 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_unit_for_save.py +++ b/saasus_sdk_python/src/pricing/models/pricing_unit_for_save.py @@ -18,14 +18,14 @@ import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Any, List, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from saasus_sdk_python.src.pricing.models.pricing_fixed_unit_for_save import PricingFixedUnitForSave from saasus_sdk_python.src.pricing.models.pricing_tiered_unit_for_save import PricingTieredUnitForSave from saasus_sdk_python.src.pricing.models.pricing_tiered_usage_unit_for_save import PricingTieredUsageUnitForSave from saasus_sdk_python.src.pricing.models.pricing_usage_unit_for_save import PricingUsageUnitForSave from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr PRICINGUNITFORSAVE_ONE_OF_SCHEMAS = ["PricingFixedUnitForSave", "PricingTieredUnitForSave", "PricingTieredUsageUnitForSave", "PricingUsageUnitForSave"] @@ -44,11 +44,9 @@ class PricingUnitForSave(BaseModel): if TYPE_CHECKING: actual_instance: Union[PricingFixedUnitForSave, PricingTieredUnitForSave, PricingTieredUsageUnitForSave, PricingUsageUnitForSave] else: - actual_instance: Any - one_of_schemas: List[str] = Field(PRICINGUNITFORSAVE_ONE_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + one_of_schemas: Literal[PRICINGUNITFORSAVE_ONE_OF_SCHEMAS] = PRICINGUNITFORSAVE_ONE_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) discriminator_value_class_map = { } @@ -63,7 +61,8 @@ def __init__(self, *args, **kwargs): else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_oneof(cls, v): instance = PricingUnitForSave.construct() error_messages = [] diff --git a/saasus_sdk_python/src/pricing/models/pricing_units.py b/saasus_sdk_python/src/pricing/models/pricing_units.py index e992a2c..4b05059 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_units.py +++ b/saasus_sdk_python/src/pricing/models/pricing_units.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_unit import PricingUnit +from typing_extensions import Annotated class PricingUnits(BaseModel): """ PricingUnits """ - units: conlist(PricingUnit) = Field(...) + units: Annotated[List[PricingUnit], Field()] = Field(...) __properties = ["units"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_usage_unit.py b/saasus_sdk_python/src/pricing/models/pricing_usage_unit.py index 08f17e8..d03cc7b 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_usage_unit.py +++ b/saasus_sdk_python/src/pricing/models/pricing_usage_unit.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval @@ -43,11 +43,7 @@ class PricingUsageUnit(BaseModel): recurring_interval: RecurringInterval = Field(...) used: StrictBool = Field(...) __properties = ["upper_count", "unit_amount", "metering_unit_name", "aggregate_usage", "name", "display_name", "description", "type", "currency", "id", "metering_unit_id", "recurring_interval", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/pricing_usage_unit_for_save.py b/saasus_sdk_python/src/pricing/models/pricing_usage_unit_for_save.py index 135e6f6..c704884 100644 --- a/saasus_sdk_python/src/pricing/models/pricing_usage_unit_for_save.py +++ b/saasus_sdk_python/src/pricing/models/pricing_usage_unit_for_save.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -38,11 +38,7 @@ class PricingUsageUnitForSave(BaseModel): metering_unit_name: StrictStr = Field(..., description="Metering unit name") aggregate_usage: Optional[AggregateUsage] = None __properties = ["name", "display_name", "description", "type", "currency", "upper_count", "unit_amount", "metering_unit_name", "aggregate_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/save_pricing_menu_param.py b/saasus_sdk_python/src/pricing/models/save_pricing_menu_param.py index c50fa37..0583d5a 100644 --- a/saasus_sdk_python/src/pricing/models/save_pricing_menu_param.py +++ b/saasus_sdk_python/src/pricing/models/save_pricing_menu_param.py @@ -19,7 +19,8 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class SavePricingMenuParam(BaseModel): """ @@ -28,13 +29,9 @@ class SavePricingMenuParam(BaseModel): name: StrictStr = Field(..., description="Menu name") display_name: StrictStr = Field(..., description="Menu display name") description: StrictStr = Field(..., description="Menu description") - unit_ids: conlist(StrictStr) = Field(..., description="Unit IDs to add") + unit_ids: Annotated[List[StrictStr], Field()] = Field(..., description="Unit IDs to add") __properties = ["name", "display_name", "description", "unit_ids"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/save_pricing_plan_param.py b/saasus_sdk_python/src/pricing/models/save_pricing_plan_param.py index 70e575b..eb65bb8 100644 --- a/saasus_sdk_python/src/pricing/models/save_pricing_plan_param.py +++ b/saasus_sdk_python/src/pricing/models/save_pricing_plan_param.py @@ -19,7 +19,8 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class SavePricingPlanParam(BaseModel): """ @@ -28,13 +29,9 @@ class SavePricingPlanParam(BaseModel): name: StrictStr = Field(..., description="Pricing plan name") display_name: StrictStr = Field(..., description="Pricing plan display name") description: StrictStr = Field(..., description="Pricing plan description") - menu_ids: conlist(StrictStr) = Field(..., description="Menu ID to be added to the pricing plan") + menu_ids: Annotated[List[StrictStr], Field()] = Field(..., description="Menu ID to be added to the pricing plan") __properties = ["name", "display_name", "description", "menu_ids"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/tax_rate.py b/saasus_sdk_python/src/pricing/models/tax_rate.py index ae7988f..b96913b 100644 --- a/saasus_sdk_python/src/pricing/models/tax_rate.py +++ b/saasus_sdk_python/src/pricing/models/tax_rate.py @@ -19,7 +19,8 @@ from typing import Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class TaxRate(BaseModel): """ @@ -29,22 +30,19 @@ class TaxRate(BaseModel): display_name: StrictStr = Field(..., description="Display name") percentage: Union[StrictFloat, StrictInt] = Field(..., description="Percentage") inclusive: StrictBool = Field(..., description="Inclusive or not") - country: constr(strict=True) = Field(..., description="Country code of ISO 3166-1 alpha-2") + country: Annotated[str, StringConstraints(strict=True)] = Field(..., description="Country code of ISO 3166-1 alpha-2") description: StrictStr = Field(..., description="Description") id: StrictStr = Field(..., description="Universally Unique Identifier") __properties = ["name", "display_name", "percentage", "inclusive", "country", "description", "id"] - @validator('country') + @field_validator('country') + @classmethod def country_validate_regular_expression(cls, value): """Validates the regular expression""" if not re.match(r"^[A-Z]{2}$", value): raise ValueError(r"must validate the regular expression /^[A-Z]{2}$/") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/tax_rate_props.py b/saasus_sdk_python/src/pricing/models/tax_rate_props.py index 5961d7b..8d2cbb8 100644 --- a/saasus_sdk_python/src/pricing/models/tax_rate_props.py +++ b/saasus_sdk_python/src/pricing/models/tax_rate_props.py @@ -19,7 +19,8 @@ from typing import Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class TaxRateProps(BaseModel): """ @@ -29,21 +30,18 @@ class TaxRateProps(BaseModel): display_name: StrictStr = Field(..., description="Display name") percentage: Union[StrictFloat, StrictInt] = Field(..., description="Percentage") inclusive: StrictBool = Field(..., description="Inclusive or not") - country: constr(strict=True) = Field(..., description="Country code of ISO 3166-1 alpha-2") + country: Annotated[str, StringConstraints(strict=True)] = Field(..., description="Country code of ISO 3166-1 alpha-2") description: StrictStr = Field(..., description="Description") __properties = ["name", "display_name", "percentage", "inclusive", "country", "description"] - @validator('country') + @field_validator('country') + @classmethod def country_validate_regular_expression(cls, value): """Validates the regular expression""" if not re.match(r"^[A-Z]{2}$", value): raise ValueError(r"must validate the regular expression /^[A-Z]{2}$/") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/tax_rates.py b/saasus_sdk_python/src/pricing/models/tax_rates.py index d1442dd..5759e0d 100644 --- a/saasus_sdk_python/src/pricing/models/tax_rates.py +++ b/saasus_sdk_python/src/pricing/models/tax_rates.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.tax_rate import TaxRate +from typing_extensions import Annotated class TaxRates(BaseModel): """ TaxRates """ - tax_rates: conlist(TaxRate) = Field(...) + tax_rates: Annotated[List[TaxRate], Field()] = Field(...) __properties = ["tax_rates"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_now_param.py b/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_now_param.py index 136a3c9..e589406 100644 --- a/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_now_param.py +++ b/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_now_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt from saasus_sdk_python.src.pricing.models.update_metering_unit_timestamp_count_method import UpdateMeteringUnitTimestampCountMethod class UpdateMeteringUnitTimestampCountNowParam(BaseModel): @@ -29,11 +29,7 @@ class UpdateMeteringUnitTimestampCountNowParam(BaseModel): method: UpdateMeteringUnitTimestampCountMethod = Field(...) count: StrictInt = Field(..., description="Count") __properties = ["method", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_param.py b/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_param.py index 1672bc8..97cc4ea 100644 --- a/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_param.py +++ b/saasus_sdk_python/src/pricing/models/update_metering_unit_timestamp_count_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt from saasus_sdk_python.src.pricing.models.update_metering_unit_timestamp_count_method import UpdateMeteringUnitTimestampCountMethod class UpdateMeteringUnitTimestampCountParam(BaseModel): @@ -29,11 +29,7 @@ class UpdateMeteringUnitTimestampCountParam(BaseModel): method: UpdateMeteringUnitTimestampCountMethod = Field(...) count: StrictInt = Field(..., description="Count") __properties = ["method", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/update_pricing_plans_used_param.py b/saasus_sdk_python/src/pricing/models/update_pricing_plans_used_param.py index b0e5266..3700bb4 100644 --- a/saasus_sdk_python/src/pricing/models/update_pricing_plans_used_param.py +++ b/saasus_sdk_python/src/pricing/models/update_pricing_plans_used_param.py @@ -19,19 +19,16 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class UpdatePricingPlansUsedParam(BaseModel): """ UpdatePricingPlansUsedParam """ - plan_ids: conlist(StrictStr) = Field(...) + plan_ids: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["plan_ids"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/saasus_sdk_python/src/pricing/models/update_tax_rate_param.py b/saasus_sdk_python/src/pricing/models/update_tax_rate_param.py index a1fbc17..8170440 100644 --- a/saasus_sdk_python/src/pricing/models/update_tax_rate_param.py +++ b/saasus_sdk_python/src/pricing/models/update_tax_rate_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateTaxRateParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateTaxRateParam(BaseModel): display_name: StrictStr = Field(..., description="Display name") description: StrictStr = Field(..., description="Description") __properties = ["display_name", "description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/apilog/api/api_log_api.py b/test/apilog/api/api_log_api.py index 9d00fd1..64a0251 100644 --- a/test/apilog/api/api_log_api.py +++ b/test/apilog/api/api_log_api.py @@ -21,7 +21,7 @@ from datetime import date, datetime -from pydantic import Field, StrictStr, conint +from pydantic import Field, StrictStr from typing import Optional @@ -189,7 +189,7 @@ def get_log_with_http_info(self, api_log_id : Annotated[StrictStr, Field(..., de _request_auth=_params.get('_request_auth')) @validate_arguments - def get_logs(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[conint(strict=True, ge=1)], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiLogs: # noqa: E501 + def get_logs(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiLogs: # noqa: E501 """Get API execution log list # noqa: E501 Retrieve the log of all API executions. # noqa: E501 @@ -224,7 +224,7 @@ def get_logs(self, created_date : Annotated[Optional[date], Field(description="T return self.get_logs_with_http_info(created_date, created_at, limit, cursor, **kwargs) # noqa: E501 @validate_arguments - def get_logs_with_http_info(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[conint(strict=True, ge=1)], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def get_logs_with_http_info(self, created_date : Annotated[Optional[date], Field(description="The date, in format of YYYY-MM-DD, to retrieve the log.")] = None, created_at : Annotated[Optional[datetime], Field(description="The datetime, in ISO 8601 format, to retrieve the log.")] = None, limit : Annotated[Optional[Annotated[int, Field(strict=True, ge=1)]], Field(description="Maximum number of logs to retrieve.")] = None, cursor : Annotated[Optional[StrictStr], Field(description="Cursor for cursor pagination.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get API execution log list # noqa: E501 Retrieve the log of all API executions. # noqa: E501 diff --git a/test/apilog/models/api_log.py b/test/apilog/models/api_log.py index a31cd01..a72cd00 100644 --- a/test/apilog/models/api_log.py +++ b/test/apilog/models/api_log.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class ApiLog(BaseModel): """ @@ -40,11 +40,7 @@ class ApiLog(BaseModel): request_body: StrictStr = Field(..., description="The body of the request") response_body: StrictStr = Field(..., description="The body of the response") __properties = ["trace_id", "api_log_id", "created_at", "created_date", "ttl", "request_method", "saas_id", "api_key", "response_status", "request_uri", "remote_address", "referer", "request_body", "response_body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/apilog/models/api_logs.py b/test/apilog/models/api_logs.py index ff3848c..02565e7 100644 --- a/test/apilog/models/api_logs.py +++ b/test/apilog/models/api_logs.py @@ -19,21 +19,18 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.apilog.models.api_log import ApiLog +from typing_extensions import Annotated class ApiLogs(BaseModel): """ ApiLogs """ - api_logs: conlist(ApiLog) = Field(...) + api_logs: Annotated[List[ApiLog], Field()] = Field(...) cursor: Optional[StrictStr] = Field(None, description="Cursor for cursor pagination") __properties = ["api_logs", "cursor"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/apilog/models/error.py b/test/apilog/models/error.py index 2aef169..aa51270 100644 --- a/test/apilog/models/error.py +++ b/test/apilog/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/account_verification.py b/test/auth/models/account_verification.py index 99fc1f5..6f2b9a0 100644 --- a/test/auth/models/account_verification.py +++ b/test/auth/models/account_verification.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class AccountVerification(BaseModel): """ @@ -29,24 +29,22 @@ class AccountVerification(BaseModel): sending_to: StrictStr = Field(..., description="email: e-mail sms: SMS smsOrEmail: email if SMS is not possible ") __properties = ["verification_method", "sending_to"] - @validator('verification_method') + @field_validator('verification_method') + @classmethod def verification_method_validate_enum(cls, value): """Validates the enum""" if value not in ('code', 'link'): raise ValueError("must be one of enum values ('code', 'link')") return value - @validator('sending_to') + @field_validator('sending_to') + @classmethod def sending_to_validate_enum(cls, value): """Validates the enum""" if value not in ('email', 'sms', 'smsOrEmail'): raise ValueError("must be one of enum values ('email', 'sms', 'smsOrEmail')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/api_keys.py b/test/auth/models/api_keys.py index a063c65..ebfc6c8 100644 --- a/test/auth/models/api_keys.py +++ b/test/auth/models/api_keys.py @@ -19,19 +19,16 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiKeys(BaseModel): """ ApiKeys """ - api_keys: conlist(StrictStr) = Field(..., description="API Key") + api_keys: Annotated[List[StrictStr], Field()] = Field(..., description="API Key") __properties = ["api_keys"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/attribute.py b/test/auth/models/attribute.py index 0514032..47d7cbd 100644 --- a/test/auth/models/attribute.py +++ b/test/auth/models/attribute.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.attribute_type import AttributeType class Attribute(BaseModel): @@ -30,11 +30,7 @@ class Attribute(BaseModel): display_name: StrictStr = Field(..., description="Display Name") attribute_type: AttributeType = Field(...) __properties = ["attribute_name", "display_name", "attribute_type"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/auth_info.py b/test/auth/models/auth_info.py index 31f7320..ec22163 100644 --- a/test/auth/models/auth_info.py +++ b/test/auth/models/auth_info.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class AuthInfo(BaseModel): """ @@ -27,11 +27,7 @@ class AuthInfo(BaseModel): """ callback_url: StrictStr = Field(..., description="Redirect After Authentication") __properties = ["callback_url"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/authorization_temp_code.py b/test/auth/models/authorization_temp_code.py index 518c300..60b3ca8 100644 --- a/test/auth/models/authorization_temp_code.py +++ b/test/auth/models/authorization_temp_code.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class AuthorizationTempCode(BaseModel): """ @@ -27,11 +27,7 @@ class AuthorizationTempCode(BaseModel): """ code: StrictStr = Field(...) __properties = ["code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/basic_info.py b/test/auth/models/basic_info.py index 26034fd..ac9ba52 100644 --- a/test/auth/models/basic_info.py +++ b/test/auth/models/basic_info.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.auth.models.dns_record import DnsRecord +from typing_extensions import Annotated class BasicInfo(BaseModel): """ @@ -30,17 +31,13 @@ class BasicInfo(BaseModel): is_dns_validated: StrictBool = Field(..., description="DNS Record Verification Results") certificate_dns_record: DnsRecord = Field(...) cloud_front_dns_record: DnsRecord = Field(...) - dkim_dns_records: conlist(DnsRecord) = Field(..., description="DKIM DNS Records") + dkim_dns_records: Annotated[List[DnsRecord], Field()] = Field(..., description="DKIM DNS Records") default_domain_name: StrictStr = Field(..., description="Default Domain Name") from_email_address: StrictStr = Field(..., description="Sender Email for Authentication Email") reply_email_address: StrictStr = Field(..., description="Reply-from email address of authentication email") is_ses_sandbox_granted: StrictBool = Field(..., description="SES sandbox release and Cognito SES configuration results") __properties = ["domain_name", "is_dns_validated", "certificate_dns_record", "cloud_front_dns_record", "dkim_dns_records", "default_domain_name", "from_email_address", "reply_email_address", "is_ses_sandbox_granted"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/billing_address.py b/test/auth/models/billing_address.py index c99f549..d842cf1 100644 --- a/test/auth/models/billing_address.py +++ b/test/auth/models/billing_address.py @@ -19,7 +19,8 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class BillingAddress(BaseModel): """ @@ -28,22 +29,19 @@ class BillingAddress(BaseModel): street: StrictStr = Field(..., description="Street address, apartment or suite number.") city: StrictStr = Field(..., description="City, district, suburb, town, or village.") state: StrictStr = Field(..., description="State name or abbreviation.") - country: constr(strict=True) = Field(..., description="Country of the address using ISO 3166-1 alpha-2 code.") + country: Annotated[str, StringConstraints(strict=True)] = Field(..., description="Country of the address using ISO 3166-1 alpha-2 code.") additional_address_info: Optional[StrictStr] = Field(None, description="Additional information about the address, such as a building name, floor, or department name.") postal_code: StrictStr = Field(..., description="ZIP or postal code.") __properties = ["street", "city", "state", "country", "additional_address_info", "postal_code"] - @validator('country') + @field_validator('country') + @classmethod def country_validate_regular_expression(cls, value): """Validates the regular expression""" if not re.match(r"^[A-Z]{2}$", value): raise ValueError(r"must validate the regular expression /^[A-Z]{2}$/") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/billing_info.py b/test/auth/models/billing_info.py index aae781e..bbbfe87 100644 --- a/test/auth/models/billing_info.py +++ b/test/auth/models/billing_info.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.billing_address import BillingAddress from saasus_sdk_python.src.auth.models.invoice_language import InvoiceLanguage @@ -31,11 +31,7 @@ class BillingInfo(BaseModel): address: BillingAddress = Field(...) invoice_language: InvoiceLanguage = Field(...) __properties = ["name", "address", "invoice_language"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/client_secret.py b/test/auth/models/client_secret.py index 45a259f..5fb42ad 100644 --- a/test/auth/models/client_secret.py +++ b/test/auth/models/client_secret.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ClientSecret(BaseModel): """ @@ -27,11 +27,7 @@ class ClientSecret(BaseModel): """ client_secret: StrictStr = Field(..., description="Client Secret") __properties = ["client_secret"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/confirm_email_update_param.py b/test/auth/models/confirm_email_update_param.py index 33e2749..1821ff7 100644 --- a/test/auth/models/confirm_email_update_param.py +++ b/test/auth/models/confirm_email_update_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ConfirmEmailUpdateParam(BaseModel): """ @@ -28,11 +28,7 @@ class ConfirmEmailUpdateParam(BaseModel): code: StrictStr = Field(...) access_token: StrictStr = Field(...) __properties = ["code", "access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/confirm_external_user_link_param.py b/test/auth/models/confirm_external_user_link_param.py index 5b42bd0..9a47fb4 100644 --- a/test/auth/models/confirm_external_user_link_param.py +++ b/test/auth/models/confirm_external_user_link_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ConfirmExternalUserLinkParam(BaseModel): """ @@ -28,11 +28,7 @@ class ConfirmExternalUserLinkParam(BaseModel): access_token: StrictStr = Field(...) code: StrictStr = Field(...) __properties = ["access_token", "code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/confirm_sign_up_with_aws_marketplace_param.py b/test/auth/models/confirm_sign_up_with_aws_marketplace_param.py index 9891cea..bd409eb 100644 --- a/test/auth/models/confirm_sign_up_with_aws_marketplace_param.py +++ b/test/auth/models/confirm_sign_up_with_aws_marketplace_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ConfirmSignUpWithAwsMarketplaceParam(BaseModel): """ @@ -29,11 +29,7 @@ class ConfirmSignUpWithAwsMarketplaceParam(BaseModel): access_token: StrictStr = Field(..., description="Access token") registration_token: StrictStr = Field(..., description="Registration Token") __properties = ["tenant_name", "access_token", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/create_saas_user_param.py b/test/auth/models/create_saas_user_param.py index 66c5735..8335762 100644 --- a/test/auth/models/create_saas_user_param.py +++ b/test/auth/models/create_saas_user_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateSaasUserParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateSaasUserParam(BaseModel): email: StrictStr = Field(..., description="E-mail") password: StrictStr = Field(..., description="Password") __properties = ["email", "password"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/create_secret_code_param.py b/test/auth/models/create_secret_code_param.py index dec32f5..8e873d4 100644 --- a/test/auth/models/create_secret_code_param.py +++ b/test/auth/models/create_secret_code_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateSecretCodeParam(BaseModel): """ @@ -27,11 +27,7 @@ class CreateSecretCodeParam(BaseModel): """ access_token: StrictStr = Field(..., description="access token") __properties = ["access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/create_tenant_invitation_param.py b/test/auth/models/create_tenant_invitation_param.py index 66789f0..6af8ffd 100644 --- a/test/auth/models/create_tenant_invitation_param.py +++ b/test/auth/models/create_tenant_invitation_param.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.invited_user_environment_information_inner import InvitedUserEnvironmentInformationInner +from typing_extensions import Annotated class CreateTenantInvitationParam(BaseModel): """ @@ -28,13 +29,9 @@ class CreateTenantInvitationParam(BaseModel): """ email: StrictStr = Field(..., description="Email address of the user to be invited") access_token: StrictStr = Field(..., description="Access token of the user who creates an invitation") - envs: conlist(InvitedUserEnvironmentInformationInner) = Field(...) + envs: Annotated[List[InvitedUserEnvironmentInformationInner], Field()] = Field(...) __properties = ["email", "access_token", "envs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/create_tenant_user_param.py b/test/auth/models/create_tenant_user_param.py index dbec373..434f53e 100644 --- a/test/auth/models/create_tenant_user_param.py +++ b/test/auth/models/create_tenant_user_param.py @@ -19,7 +19,7 @@ from typing import Any, Dict -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateTenantUserParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateTenantUserParam(BaseModel): email: StrictStr = Field(..., description="E-mail") attributes: Dict[str, Any] = Field(..., description="Attribute information (Get information set by defining user attributes in the SaaS development console) ") __properties = ["email", "attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/create_tenant_user_roles_param.py b/test/auth/models/create_tenant_user_roles_param.py index 4961820..1fc87e7 100644 --- a/test/auth/models/create_tenant_user_roles_param.py +++ b/test/auth/models/create_tenant_user_roles_param.py @@ -19,19 +19,16 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class CreateTenantUserRolesParam(BaseModel): """ CreateTenantUserRolesParam """ - role_names: conlist(StrictStr) = Field(..., description="Role Info") + role_names: Annotated[List[StrictStr], Field()] = Field(..., description="Role Info") __properties = ["role_names"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/credentials.py b/test/auth/models/credentials.py index aa91763..cee5c65 100644 --- a/test/auth/models/credentials.py +++ b/test/auth/models/credentials.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Credentials(BaseModel): """ @@ -29,11 +29,7 @@ class Credentials(BaseModel): access_token: StrictStr = Field(..., description="Access token") refresh_token: Optional[StrictStr] = Field(None, description="Refresh token") __properties = ["id_token", "access_token", "refresh_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/customize_page_props.py b/test/auth/models/customize_page_props.py index ee74119..6c6a6ed 100644 --- a/test/auth/models/customize_page_props.py +++ b/test/auth/models/customize_page_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class CustomizePageProps(BaseModel): """ @@ -29,11 +29,7 @@ class CustomizePageProps(BaseModel): is_terms_of_service: StrictBool = Field(..., description="display the terms of use agreement check box") is_privacy_policy: StrictBool = Field(..., description="show the privacy policy checkbox") __properties = ["html_contents", "is_terms_of_service", "is_privacy_policy"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/customize_page_settings.py b/test/auth/models/customize_page_settings.py index 6349ddd..0a239cc 100644 --- a/test/auth/models/customize_page_settings.py +++ b/test/auth/models/customize_page_settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CustomizePageSettings(BaseModel): """ @@ -32,11 +32,7 @@ class CustomizePageSettings(BaseModel): icon: StrictStr = Field(..., description="service icon") favicon: StrictStr = Field(..., description="favicon") __properties = ["title", "terms_of_service_url", "privacy_policy_url", "google_tag_manager_container_id", "icon", "favicon"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/customize_page_settings_props.py b/test/auth/models/customize_page_settings_props.py index bee82cc..04c232a 100644 --- a/test/auth/models/customize_page_settings_props.py +++ b/test/auth/models/customize_page_settings_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CustomizePageSettingsProps(BaseModel): """ @@ -30,11 +30,7 @@ class CustomizePageSettingsProps(BaseModel): privacy_policy_url: StrictStr = Field(..., description="privacy policy URL") google_tag_manager_container_id: StrictStr = Field(..., description="Google Tag Manager container ID") __properties = ["title", "terms_of_service_url", "privacy_policy_url", "google_tag_manager_container_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/customize_pages.py b/test/auth/models/customize_pages.py index de2ff3c..09511e9 100644 --- a/test/auth/models/customize_pages.py +++ b/test/auth/models/customize_pages.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.customize_page_props import CustomizePageProps class CustomizePages(BaseModel): @@ -30,11 +30,7 @@ class CustomizePages(BaseModel): sign_in_page: CustomizePageProps = Field(...) password_reset_page: CustomizePageProps = Field(...) __properties = ["sign_up_page", "sign_in_page", "password_reset_page"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/device_configuration.py b/test/auth/models/device_configuration.py index 2d46fcd..fe1baa7 100644 --- a/test/auth/models/device_configuration.py +++ b/test/auth/models/device_configuration.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class DeviceConfiguration(BaseModel): """ @@ -28,17 +28,14 @@ class DeviceConfiguration(BaseModel): device_remembering: StrictStr = Field(..., description="always: always remember userOptIn: user opt-in no: don't save ") __properties = ["device_remembering"] - @validator('device_remembering') + @field_validator('device_remembering') + @classmethod def device_remembering_validate_enum(cls, value): """Validates the enum""" if value not in ('always', 'userOptIn', 'no'): raise ValueError("must be one of enum values ('always', 'userOptIn', 'no')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/dns_record.py b/test/auth/models/dns_record.py index 3fd8081..e9f8d5b 100644 --- a/test/auth/models/dns_record.py +++ b/test/auth/models/dns_record.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class DnsRecord(BaseModel): """ @@ -30,17 +30,14 @@ class DnsRecord(BaseModel): value: StrictStr = Field(..., description="Value") __properties = ["type", "name", "value"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('CNAME'): raise ValueError("must be one of enum values ('CNAME')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/env.py b/test/auth/models/env.py index dc7d8cb..12aff86 100644 --- a/test/auth/models/env.py +++ b/test/auth/models/env.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class Env(BaseModel): """ @@ -29,11 +29,7 @@ class Env(BaseModel): name: StrictStr = Field(..., description="env name") display_name: Optional[StrictStr] = Field(None, description="env display name") __properties = ["id", "name", "display_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/envs.py b/test/auth/models/envs.py index 5b2949b..b67594f 100644 --- a/test/auth/models/envs.py +++ b/test/auth/models/envs.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.env import Env +from typing_extensions import Annotated class Envs(BaseModel): """ env list """ - envs: conlist(Env) = Field(...) + envs: Annotated[List[Env], Field()] = Field(...) __properties = ["envs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/error.py b/test/auth/models/error.py index fe8d847..f8d2a5f 100644 --- a/test/auth/models/error.py +++ b/test/auth/models/error.py @@ -19,7 +19,7 @@ from typing import Any, Dict, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -29,11 +29,7 @@ class Error(BaseModel): message: StrictStr = Field(..., description="Error message") data: Optional[Dict[str, Any]] = None __properties = ["type", "message", "data"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/identity_provider_configuration.py b/test/auth/models/identity_provider_configuration.py index 5c248b7..acab1f5 100644 --- a/test/auth/models/identity_provider_configuration.py +++ b/test/auth/models/identity_provider_configuration.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class IdentityProviderConfiguration(BaseModel): """ @@ -30,11 +30,7 @@ class IdentityProviderConfiguration(BaseModel): entity_id: StrictStr = Field(..., description="entity ID") reply_url: StrictStr = Field(..., description="reply URL") __properties = ["domain", "redirect_url", "entity_id", "reply_url"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/identity_provider_props.py b/test/auth/models/identity_provider_props.py index c8efc83..2f05670 100644 --- a/test/auth/models/identity_provider_props.py +++ b/test/auth/models/identity_provider_props.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class IdentityProviderProps(BaseModel): """ @@ -30,11 +30,7 @@ class IdentityProviderProps(BaseModel): approval_scope: StrictStr = Field(...) is_button_hidden: Optional[StrictBool] = None __properties = ["application_id", "application_secret", "approval_scope", "is_button_hidden"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/identity_provider_saml.py b/test/auth/models/identity_provider_saml.py index 2da4b60..bc4972c 100644 --- a/test/auth/models/identity_provider_saml.py +++ b/test/auth/models/identity_provider_saml.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class IdentityProviderSaml(BaseModel): """ @@ -28,11 +28,7 @@ class IdentityProviderSaml(BaseModel): metadata_url: StrictStr = Field(...) email_attribute: StrictStr = Field(...) __properties = ["metadata_url", "email_attribute"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/identity_providers.py b/test/auth/models/identity_providers.py index 610552a..a8377de 100644 --- a/test/auth/models/identity_providers.py +++ b/test/auth/models/identity_providers.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.identity_provider_props import IdentityProviderProps class IdentityProviders(BaseModel): @@ -28,11 +28,7 @@ class IdentityProviders(BaseModel): """ google: IdentityProviderProps = Field(...) __properties = ["google"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/invitation.py b/test/auth/models/invitation.py index 92e5c4d..560e69b 100644 --- a/test/auth/models/invitation.py +++ b/test/auth/models/invitation.py @@ -19,9 +19,10 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.invitation_status import InvitationStatus from saasus_sdk_python.src.auth.models.user_available_env import UserAvailableEnv +from typing_extensions import Annotated class Invitation(BaseModel): """ @@ -30,15 +31,11 @@ class Invitation(BaseModel): id: StrictStr = Field(...) email: StrictStr = Field(..., description="Email address of the invited user") invitation_url: StrictStr = Field(..., description="Invitation URL") - envs: conlist(UserAvailableEnv) = Field(...) + envs: Annotated[List[UserAvailableEnv], Field()] = Field(...) expired_at: StrictInt = Field(..., description="Expiration date of the invitation") status: InvitationStatus = Field(...) __properties = ["id", "email", "invitation_url", "envs", "expired_at", "status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/invitation_validity.py b/test/auth/models/invitation_validity.py index e583fb1..23cf1a1 100644 --- a/test/auth/models/invitation_validity.py +++ b/test/auth/models/invitation_validity.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class InvitationValidity(BaseModel): """ @@ -27,11 +27,7 @@ class InvitationValidity(BaseModel): """ is_valid: StrictBool = Field(..., description="Whether the validation is valid or not") __properties = ["is_valid"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/invitations.py b/test/auth/models/invitations.py index 7b9beb5..1bb1104 100644 --- a/test/auth/models/invitations.py +++ b/test/auth/models/invitations.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.invitation import Invitation +from typing_extensions import Annotated class Invitations(BaseModel): """ Invitations """ - invitations: conlist(Invitation) = Field(..., description="Invitation list") + invitations: Annotated[List[Invitation], Field()] = Field(..., description="Invitation list") __properties = ["invitations"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/invited_user_environment_information_inner.py b/test/auth/models/invited_user_environment_information_inner.py index db56a60..cc75912 100644 --- a/test/auth/models/invited_user_environment_information_inner.py +++ b/test/auth/models/invited_user_environment_information_inner.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr +from typing_extensions import Annotated class InvitedUserEnvironmentInformationInner(BaseModel): """ InvitedUserEnvironmentInformationInner """ id: StrictInt = Field(...) - role_names: conlist(StrictStr) = Field(..., description="Role name") + role_names: Annotated[List[StrictStr], Field()] = Field(..., description="Role name") __properties = ["id", "role_names"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/link_aws_marketplace_param.py b/test/auth/models/link_aws_marketplace_param.py index 3b23656..2a39a10 100644 --- a/test/auth/models/link_aws_marketplace_param.py +++ b/test/auth/models/link_aws_marketplace_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class LinkAwsMarketplaceParam(BaseModel): """ @@ -29,11 +29,7 @@ class LinkAwsMarketplaceParam(BaseModel): access_token: StrictStr = Field(..., description="Access token") registration_token: StrictStr = Field(..., description="Registration Token") __properties = ["tenant_id", "access_token", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/message_template.py b/test/auth/models/message_template.py index 6fefa25..7126dec 100644 --- a/test/auth/models/message_template.py +++ b/test/auth/models/message_template.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class MessageTemplate(BaseModel): """ @@ -28,11 +28,7 @@ class MessageTemplate(BaseModel): subject: StrictStr = Field(..., description="Title") message: StrictStr = Field(..., description="Message") __properties = ["subject", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/mfa_configuration.py b/test/auth/models/mfa_configuration.py index d0f6e97..a483bce 100644 --- a/test/auth/models/mfa_configuration.py +++ b/test/auth/models/mfa_configuration.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class MfaConfiguration(BaseModel): """ @@ -28,17 +28,14 @@ class MfaConfiguration(BaseModel): mfa_configuration: StrictStr = Field(..., description="on: apply when all users log in optional: apply to individual users with MFA factor enabled ※ The parameter is currently optional and fixed. ") __properties = ["mfa_configuration"] - @validator('mfa_configuration') + @field_validator('mfa_configuration') + @classmethod def mfa_configuration_validate_enum(cls, value): """Validates the enum""" if value not in ('on', 'optional'): raise ValueError("must be one of enum values ('on', 'optional')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/mfa_preference.py b/test/auth/models/mfa_preference.py index defc75a..aba7c68 100644 --- a/test/auth/models/mfa_preference.py +++ b/test/auth/models/mfa_preference.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class MfaPreference(BaseModel): """ @@ -29,7 +29,8 @@ class MfaPreference(BaseModel): method: Optional[StrictStr] = Field(None, description="MFA method (required if enabled is true)") __properties = ["enabled", "method"] - @validator('method') + @field_validator('method') + @classmethod def method_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -38,11 +39,7 @@ def method_validate_enum(cls, value): if value not in ('softwareToken'): raise ValueError("must be one of enum values ('softwareToken')") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/notification_messages.py b/test/auth/models/notification_messages.py index d91e694..ffd0bd0 100644 --- a/test/auth/models/notification_messages.py +++ b/test/auth/models/notification_messages.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.message_template import MessageTemplate class NotificationMessages(BaseModel): @@ -36,11 +36,7 @@ class NotificationMessages(BaseModel): invite_tenant_user: MessageTemplate = Field(...) verify_external_user: MessageTemplate = Field(...) __properties = ["sign_up", "create_user", "resend_code", "forgot_password", "update_user_attribute", "verify_user_attribute", "authentication_mfa", "invite_tenant_user", "verify_external_user"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/password_policy.py b/test/auth/models/password_policy.py index 28530f8..f9cd42a 100644 --- a/test/auth/models/password_policy.py +++ b/test/auth/models/password_policy.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt class PasswordPolicy(BaseModel): """ @@ -32,11 +32,7 @@ class PasswordPolicy(BaseModel): is_require_uppercase: StrictBool = Field(..., description="Contains one or more uppercase letters") temporary_password_validity_days: StrictInt = Field(..., description="Temporary password expiration date") __properties = ["minimum_length", "is_require_lowercase", "is_require_numbers", "is_require_symbols", "is_require_uppercase", "temporary_password_validity_days"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/plan_histories.py b/test/auth/models/plan_histories.py index edbcfb2..f1f142c 100644 --- a/test/auth/models/plan_histories.py +++ b/test/auth/models/plan_histories.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.plan_history import PlanHistory +from typing_extensions import Annotated class PlanHistories(BaseModel): """ PlanHistories """ - plan_histories: conlist(PlanHistory) = Field(..., description="Plan History") + plan_histories: Annotated[List[PlanHistory], Field()] = Field(..., description="Plan History") __properties = ["plan_histories"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/plan_history.py b/test/auth/models/plan_history.py index afd5f0d..eb76548 100644 --- a/test/auth/models/plan_history.py +++ b/test/auth/models/plan_history.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior class PlanHistory(BaseModel): @@ -32,11 +32,7 @@ class PlanHistory(BaseModel): proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") __properties = ["plan_id", "plan_applied_at", "tax_rate_id", "proration_behavior", "delete_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/plan_reservation.py b/test/auth/models/plan_reservation.py index b65e15f..64118a9 100644 --- a/test/auth/models/plan_reservation.py +++ b/test/auth/models/plan_reservation.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior class PlanReservation(BaseModel): @@ -32,11 +32,7 @@ class PlanReservation(BaseModel): proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") __properties = ["next_plan_id", "using_next_plan_from", "next_plan_tax_rate_id", "proration_behavior", "delete_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/recaptcha_props.py b/test/auth/models/recaptcha_props.py index 667c301..6a881e9 100644 --- a/test/auth/models/recaptcha_props.py +++ b/test/auth/models/recaptcha_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class RecaptchaProps(BaseModel): """ @@ -28,11 +28,7 @@ class RecaptchaProps(BaseModel): site_key: StrictStr = Field(..., description="site key") secret_key: StrictStr = Field(..., description="secret key") __properties = ["site_key", "secret_key"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/request_email_update_param.py b/test/auth/models/request_email_update_param.py index fa33301..6ad6b29 100644 --- a/test/auth/models/request_email_update_param.py +++ b/test/auth/models/request_email_update_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class RequestEmailUpdateParam(BaseModel): """ @@ -28,11 +28,7 @@ class RequestEmailUpdateParam(BaseModel): email: StrictStr = Field(..., description="Email Address") access_token: StrictStr = Field(...) __properties = ["email", "access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/request_external_user_link_param.py b/test/auth/models/request_external_user_link_param.py index f1b5f22..9dadb64 100644 --- a/test/auth/models/request_external_user_link_param.py +++ b/test/auth/models/request_external_user_link_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class RequestExternalUserLinkParam(BaseModel): """ @@ -27,11 +27,7 @@ class RequestExternalUserLinkParam(BaseModel): """ access_token: StrictStr = Field(...) __properties = ["access_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/resend_sign_up_confirmation_email_param.py b/test/auth/models/resend_sign_up_confirmation_email_param.py index 2ca1734..d466071 100644 --- a/test/auth/models/resend_sign_up_confirmation_email_param.py +++ b/test/auth/models/resend_sign_up_confirmation_email_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ResendSignUpConfirmationEmailParam(BaseModel): """ @@ -27,11 +27,7 @@ class ResendSignUpConfirmationEmailParam(BaseModel): """ email: StrictStr = Field(..., description="Email Address") __properties = ["email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/role.py b/test/auth/models/role.py index d013f76..4204371 100644 --- a/test/auth/models/role.py +++ b/test/auth/models/role.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Role(BaseModel): """ @@ -28,11 +28,7 @@ class Role(BaseModel): role_name: StrictStr = Field(..., description="role name") display_name: StrictStr = Field(..., description="role display name") __properties = ["role_name", "display_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/roles.py b/test/auth/models/roles.py index 0264ae8..7ff104f 100644 --- a/test/auth/models/roles.py +++ b/test/auth/models/roles.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.role import Role +from typing_extensions import Annotated class Roles(BaseModel): """ Roles """ - roles: conlist(Role) = Field(...) + roles: Annotated[List[Role], Field()] = Field(...) __properties = ["roles"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/saas_id.py b/test/auth/models/saas_id.py index e177a29..284a42a 100644 --- a/test/auth/models/saas_id.py +++ b/test/auth/models/saas_id.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class SaasId(BaseModel): """ @@ -29,11 +29,7 @@ class SaasId(BaseModel): env_id: StrictInt = Field(...) saas_id: StrictStr = Field(..., description="SaaS ID") __properties = ["tenant_id", "env_id", "saas_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/saas_user.py b/test/auth/models/saas_user.py index 83d6672..0915e02 100644 --- a/test/auth/models/saas_user.py +++ b/test/auth/models/saas_user.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SaasUser(BaseModel): """ @@ -28,11 +28,7 @@ class SaasUser(BaseModel): id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") __properties = ["id", "email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/saas_users.py b/test/auth/models/saas_users.py index 8736516..642c247 100644 --- a/test/auth/models/saas_users.py +++ b/test/auth/models/saas_users.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.saas_user import SaasUser +from typing_extensions import Annotated class SaasUsers(BaseModel): """ SaasUsers """ - users: conlist(SaasUser) = Field(...) + users: Annotated[List[SaasUser], Field()] = Field(...) __properties = ["users"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/self_regist.py b/test/auth/models/self_regist.py index 399d93e..3f0efa3 100644 --- a/test/auth/models/self_regist.py +++ b/test/auth/models/self_regist.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class SelfRegist(BaseModel): """ @@ -27,11 +27,7 @@ class SelfRegist(BaseModel): """ enable: StrictBool = Field(...) __properties = ["enable"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/sign_in_settings.py b/test/auth/models/sign_in_settings.py index ac1b651..1467108 100644 --- a/test/auth/models/sign_in_settings.py +++ b/test/auth/models/sign_in_settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.account_verification import AccountVerification from saasus_sdk_python.src.auth.models.device_configuration import DeviceConfiguration from saasus_sdk_python.src.auth.models.identity_provider_configuration import IdentityProviderConfiguration @@ -40,11 +40,7 @@ class SignInSettings(BaseModel): self_regist: SelfRegist = Field(...) identity_provider_configuration: IdentityProviderConfiguration = Field(...) __properties = ["password_policy", "device_configuration", "mfa_configuration", "recaptcha_props", "account_verification", "self_regist", "identity_provider_configuration"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/sign_up_param.py b/test/auth/models/sign_up_param.py index d45b9f8..4ee144f 100644 --- a/test/auth/models/sign_up_param.py +++ b/test/auth/models/sign_up_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SignUpParam(BaseModel): """ @@ -27,11 +27,7 @@ class SignUpParam(BaseModel): """ email: StrictStr = Field(..., description="Email Address") __properties = ["email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/sign_up_with_aws_marketplace_param.py b/test/auth/models/sign_up_with_aws_marketplace_param.py index 9fa47d9..8a3a043 100644 --- a/test/auth/models/sign_up_with_aws_marketplace_param.py +++ b/test/auth/models/sign_up_with_aws_marketplace_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SignUpWithAwsMarketplaceParam(BaseModel): """ @@ -28,11 +28,7 @@ class SignUpWithAwsMarketplaceParam(BaseModel): email: StrictStr = Field(..., description="Email Address") registration_token: StrictStr = Field(..., description="Registration Token") __properties = ["email", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/software_token_secret_code.py b/test/auth/models/software_token_secret_code.py index d26d174..0098225 100644 --- a/test/auth/models/software_token_secret_code.py +++ b/test/auth/models/software_token_secret_code.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SoftwareTokenSecretCode(BaseModel): """ @@ -27,11 +27,7 @@ class SoftwareTokenSecretCode(BaseModel): """ secret_code: StrictStr = Field(..., description="secret code") __properties = ["secret_code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/tenant.py b/test/auth/models/tenant.py index 0931290..8590aae 100644 --- a/test/auth/models/tenant.py +++ b/test/auth/models/tenant.py @@ -19,10 +19,11 @@ from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.plan_history import PlanHistory from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior +from typing_extensions import Annotated class Tenant(BaseModel): """ @@ -36,16 +37,12 @@ class Tenant(BaseModel): next_plan_tax_rate_id: Optional[StrictStr] = None proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") - plan_histories: conlist(PlanHistory) = Field(..., description="Plan History") + plan_histories: Annotated[List[PlanHistory], Field()] = Field(..., description="Plan History") id: StrictStr = Field(...) plan_id: Optional[StrictStr] = None billing_info: Optional[BillingInfo] = None __properties = ["name", "attributes", "back_office_staff_email", "next_plan_id", "using_next_plan_from", "next_plan_tax_rate_id", "proration_behavior", "delete_usage", "plan_histories", "id", "plan_id", "billing_info"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/tenant_attributes.py b/test/auth/models/tenant_attributes.py index 3fea4f1..4c0b843 100644 --- a/test/auth/models/tenant_attributes.py +++ b/test/auth/models/tenant_attributes.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.attribute import Attribute +from typing_extensions import Annotated class TenantAttributes(BaseModel): """ TenantAttributes """ - tenant_attributes: conlist(Attribute) = Field(..., description="Tenant Attribute Definition") + tenant_attributes: Annotated[List[Attribute], Field()] = Field(..., description="Tenant Attribute Definition") __properties = ["tenant_attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/tenant_detail.py b/test/auth/models/tenant_detail.py index 9895e42..91b1a0d 100644 --- a/test/auth/models/tenant_detail.py +++ b/test/auth/models/tenant_detail.py @@ -19,10 +19,11 @@ from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.plan_history import PlanHistory from saasus_sdk_python.src.auth.models.proration_behavior import ProrationBehavior +from typing_extensions import Annotated class TenantDetail(BaseModel): """ @@ -39,15 +40,11 @@ class TenantDetail(BaseModel): next_plan_tax_rate_id: Optional[StrictStr] = None proration_behavior: Optional[ProrationBehavior] = None delete_usage: Optional[StrictBool] = Field(None, description="If you have a stripe linkage, you can set whether to delete pay-as-you-go items when changing plans. When you change plan, you can remove all pay-as-you-go items included in your current subscription to stop being billed based on pay-as-you-go items. The recorded usage is cleared immediately. Since it cannot be restored, please note that plan change reservations with delete_usage set to true cannot be canceled. ") - plan_histories: conlist(PlanHistory) = Field(..., description="Plan History") + plan_histories: Annotated[List[PlanHistory], Field()] = Field(..., description="Plan History") current_plan_period_start: Optional[StrictInt] = Field(None, description="current plan period start") current_plan_period_end: Optional[StrictInt] = Field(None, description="current plan period end") __properties = ["id", "plan_id", "billing_info", "name", "attributes", "back_office_staff_email", "next_plan_id", "using_next_plan_from", "next_plan_tax_rate_id", "proration_behavior", "delete_usage", "plan_histories", "current_plan_period_start", "current_plan_period_end"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/tenant_identity_provider_props.py b/test/auth/models/tenant_identity_provider_props.py index 7c41fac..3915c54 100644 --- a/test/auth/models/tenant_identity_provider_props.py +++ b/test/auth/models/tenant_identity_provider_props.py @@ -18,11 +18,11 @@ import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Any, List, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from saasus_sdk_python.src.auth.models.identity_provider_saml import IdentityProviderSaml from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS = ["IdentityProviderSaml"] @@ -35,11 +35,9 @@ class TenantIdentityProviderProps(BaseModel): if TYPE_CHECKING: actual_instance: Union[IdentityProviderSaml] else: - actual_instance: Any - one_of_schemas: List[str] = Field(TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + one_of_schemas: Literal[TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS] = TENANTIDENTITYPROVIDERPROPS_ONE_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs): if args: @@ -51,7 +49,8 @@ def __init__(self, *args, **kwargs): else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_oneof(cls, v): instance = TenantIdentityProviderProps.construct() error_messages = [] diff --git a/test/auth/models/tenant_identity_providers.py b/test/auth/models/tenant_identity_providers.py index 225ac93..d074875 100644 --- a/test/auth/models/tenant_identity_providers.py +++ b/test/auth/models/tenant_identity_providers.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.tenant_identity_providers_saml import TenantIdentityProvidersSaml class TenantIdentityProviders(BaseModel): @@ -28,11 +28,7 @@ class TenantIdentityProviders(BaseModel): """ saml: Optional[TenantIdentityProvidersSaml] = None __properties = ["saml"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/tenant_identity_providers_saml.py b/test/auth/models/tenant_identity_providers_saml.py index f57cb96..6fac247 100644 --- a/test/auth/models/tenant_identity_providers_saml.py +++ b/test/auth/models/tenant_identity_providers_saml.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class TenantIdentityProvidersSaml(BaseModel): """ @@ -29,11 +29,7 @@ class TenantIdentityProvidersSaml(BaseModel): email_attribute: StrictStr = Field(...) sign_in_url: StrictStr = Field(...) __properties = ["metadata_url", "email_attribute", "sign_in_url"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/tenant_props.py b/test/auth/models/tenant_props.py index e94511c..540e3ad 100644 --- a/test/auth/models/tenant_props.py +++ b/test/auth/models/tenant_props.py @@ -19,7 +19,7 @@ from typing import Any, Dict -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class TenantProps(BaseModel): """ @@ -29,11 +29,7 @@ class TenantProps(BaseModel): attributes: Dict[str, Any] = Field(..., description="attribute info") back_office_staff_email: StrictStr = Field(..., description="administrative staff email address") __properties = ["name", "attributes", "back_office_staff_email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/tenants.py b/test/auth/models/tenants.py index 7ba4e5e..a434f7d 100644 --- a/test/auth/models/tenants.py +++ b/test/auth/models/tenants.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.tenant import Tenant +from typing_extensions import Annotated class Tenants(BaseModel): """ Tenant Info """ - tenants: conlist(Tenant) = Field(...) + tenants: Annotated[List[Tenant], Field()] = Field(...) __properties = ["tenants"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_basic_info_param.py b/test/auth/models/update_basic_info_param.py index 39c7c22..816cdf0 100644 --- a/test/auth/models/update_basic_info_param.py +++ b/test/auth/models/update_basic_info_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateBasicInfoParam(BaseModel): """ @@ -29,11 +29,7 @@ class UpdateBasicInfoParam(BaseModel): from_email_address: StrictStr = Field(..., description="Sender email of authentication email") reply_email_address: Optional[StrictStr] = Field(None, description="Reply-from email address of authentication email") __properties = ["domain_name", "from_email_address", "reply_email_address"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_customize_page_settings_param.py b/test/auth/models/update_customize_page_settings_param.py index 6af5cc8..0452a92 100644 --- a/test/auth/models/update_customize_page_settings_param.py +++ b/test/auth/models/update_customize_page_settings_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateCustomizePageSettingsParam(BaseModel): """ @@ -32,11 +32,7 @@ class UpdateCustomizePageSettingsParam(BaseModel): icon: StrictStr = Field(..., description="service icon") favicon: StrictStr = Field(..., description="favicon") __properties = ["title", "terms_of_service_url", "privacy_policy_url", "google_tag_manager_container_id", "icon", "favicon"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_customize_pages_param.py b/test/auth/models/update_customize_pages_param.py index 6190391..867c191 100644 --- a/test/auth/models/update_customize_pages_param.py +++ b/test/auth/models/update_customize_pages_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.customize_page_props import CustomizePageProps class UpdateCustomizePagesParam(BaseModel): @@ -30,11 +30,7 @@ class UpdateCustomizePagesParam(BaseModel): sign_in_page: Optional[CustomizePageProps] = None password_reset_page: Optional[CustomizePageProps] = None __properties = ["sign_up_page", "sign_in_page", "password_reset_page"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_env_param.py b/test/auth/models/update_env_param.py index 93d791d..861ddc7 100644 --- a/test/auth/models/update_env_param.py +++ b/test/auth/models/update_env_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateEnvParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateEnvParam(BaseModel): name: StrictStr = Field(..., description="env name") display_name: Optional[StrictStr] = Field(None, description="env display name") __properties = ["name", "display_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_identity_provider_param.py b/test/auth/models/update_identity_provider_param.py index c7d7b3f..cf0857f 100644 --- a/test/auth/models/update_identity_provider_param.py +++ b/test/auth/models/update_identity_provider_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.identity_provider_props import IdentityProviderProps from saasus_sdk_python.src.auth.models.provider_name import ProviderName @@ -30,11 +30,7 @@ class UpdateIdentityProviderParam(BaseModel): provider: ProviderName = Field(...) identity_provider_props: Optional[IdentityProviderProps] = None __properties = ["provider", "identity_provider_props"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_notification_messages_param.py b/test/auth/models/update_notification_messages_param.py index 2f35b53..32d3a4d 100644 --- a/test/auth/models/update_notification_messages_param.py +++ b/test/auth/models/update_notification_messages_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.message_template import MessageTemplate class UpdateNotificationMessagesParam(BaseModel): @@ -36,11 +36,7 @@ class UpdateNotificationMessagesParam(BaseModel): invite_tenant_user: Optional[MessageTemplate] = None verify_external_user: Optional[MessageTemplate] = None __properties = ["sign_up", "create_user", "resend_code", "forgot_password", "update_user_attribute", "verify_user_attribute", "authentication_mfa", "invite_tenant_user", "verify_external_user"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_saas_user_email_param.py b/test/auth/models/update_saas_user_email_param.py index 488b75e..346bf57 100644 --- a/test/auth/models/update_saas_user_email_param.py +++ b/test/auth/models/update_saas_user_email_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateSaasUserEmailParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateSaasUserEmailParam(BaseModel): """ email: StrictStr = Field(..., description="E-mail") __properties = ["email"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_saas_user_password_param.py b/test/auth/models/update_saas_user_password_param.py index 5d4aa08..cb17e5a 100644 --- a/test/auth/models/update_saas_user_password_param.py +++ b/test/auth/models/update_saas_user_password_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateSaasUserPasswordParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateSaasUserPasswordParam(BaseModel): """ password: StrictStr = Field(..., description="Password") __properties = ["password"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_sign_in_settings_param.py b/test/auth/models/update_sign_in_settings_param.py index 442e1c9..5b96a41 100644 --- a/test/auth/models/update_sign_in_settings_param.py +++ b/test/auth/models/update_sign_in_settings_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from saasus_sdk_python.src.auth.models.account_verification import AccountVerification from saasus_sdk_python.src.auth.models.device_configuration import DeviceConfiguration from saasus_sdk_python.src.auth.models.mfa_configuration import MfaConfiguration @@ -38,11 +38,7 @@ class UpdateSignInSettingsParam(BaseModel): account_verification: Optional[AccountVerification] = None self_regist: Optional[SelfRegist] = None __properties = ["password_policy", "device_configuration", "mfa_configuration", "recaptcha_props", "account_verification", "self_regist"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_software_token_param.py b/test/auth/models/update_software_token_param.py index 267ed44..f699113 100644 --- a/test/auth/models/update_software_token_param.py +++ b/test/auth/models/update_software_token_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateSoftwareTokenParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateSoftwareTokenParam(BaseModel): access_token: StrictStr = Field(..., description="access token") verification_code: StrictStr = Field(..., description="verification code") __properties = ["access_token", "verification_code"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_tenant_identity_provider_param.py b/test/auth/models/update_tenant_identity_provider_param.py index 52eb4b6..e6d624f 100644 --- a/test/auth/models/update_tenant_identity_provider_param.py +++ b/test/auth/models/update_tenant_identity_provider_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.provider_type import ProviderType from saasus_sdk_python.src.auth.models.tenant_identity_provider_props import TenantIdentityProviderProps @@ -30,11 +30,7 @@ class UpdateTenantIdentityProviderParam(BaseModel): provider_type: ProviderType = Field(...) identity_provider_props: Optional[TenantIdentityProviderProps] = None __properties = ["provider_type", "identity_provider_props"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/update_tenant_user_param.py b/test/auth/models/update_tenant_user_param.py index 1393294..7864b5d 100644 --- a/test/auth/models/update_tenant_user_param.py +++ b/test/auth/models/update_tenant_user_param.py @@ -19,7 +19,7 @@ from typing import Any, Dict -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field class UpdateTenantUserParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateTenantUserParam(BaseModel): """ attributes: Dict[str, Any] = Field(..., description="Attribute information (Get information set by defining user attributes in the SaaS development console) ") __properties = ["attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/user.py b/test/auth/models/user.py index 8bc0bed..28576a8 100644 --- a/test/auth/models/user.py +++ b/test/auth/models/user.py @@ -19,8 +19,9 @@ from typing import Any, Dict, List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.user_available_env import UserAvailableEnv +from typing_extensions import Annotated class User(BaseModel): """ @@ -31,13 +32,9 @@ class User(BaseModel): tenant_name: StrictStr = Field(..., description="Tenant Name") email: StrictStr = Field(..., description="E-mail") attributes: Dict[str, Any] = Field(..., description="Attribute information (Get information set by defining user attributes in the SaaS development console) ") - envs: conlist(UserAvailableEnv) = Field(...) + envs: Annotated[List[UserAvailableEnv], Field()] = Field(...) __properties = ["id", "tenant_id", "tenant_name", "email", "attributes", "envs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/user_attributes.py b/test/auth/models/user_attributes.py index 2e31994..d24c2ec 100644 --- a/test/auth/models/user_attributes.py +++ b/test/auth/models/user_attributes.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.attribute import Attribute +from typing_extensions import Annotated class UserAttributes(BaseModel): """ UserAttributes """ - user_attributes: conlist(Attribute) = Field(..., description="User Attribute Definition") + user_attributes: Annotated[List[Attribute], Field()] = Field(..., description="User Attribute Definition") __properties = ["user_attributes"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/user_available_env.py b/test/auth/models/user_available_env.py index b294f56..04cc076 100644 --- a/test/auth/models/user_available_env.py +++ b/test/auth/models/user_available_env.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.auth.models.role import Role +from typing_extensions import Annotated class UserAvailableEnv(BaseModel): """ @@ -29,13 +30,9 @@ class UserAvailableEnv(BaseModel): id: StrictInt = Field(...) name: StrictStr = Field(..., description="env name") display_name: Optional[StrictStr] = Field(None, description="env display name") - roles: conlist(Role) = Field(..., description="role info") + roles: Annotated[List[Role], Field()] = Field(..., description="role info") __properties = ["id", "name", "display_name", "roles"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/user_available_tenant.py b/test/auth/models/user_available_tenant.py index 6cbb9ec..8ab5e3d 100644 --- a/test/auth/models/user_available_tenant.py +++ b/test/auth/models/user_available_tenant.py @@ -19,8 +19,9 @@ from typing import Any, Dict, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.auth.models.user_available_env import UserAvailableEnv +from typing_extensions import Annotated class UserAvailableTenant(BaseModel): """ @@ -29,17 +30,13 @@ class UserAvailableTenant(BaseModel): id: StrictStr = Field(...) name: StrictStr = Field(..., description="Tenant Name") completed_sign_up: StrictBool = Field(...) - envs: conlist(UserAvailableEnv) = Field(..., description="environmental info, role info") + envs: Annotated[List[UserAvailableEnv], Field()] = Field(..., description="environmental info, role info") user_attribute: Dict[str, Any] = Field(..., description="user additional attributes") back_office_staff_email: StrictStr = Field(..., description="back office contact email") plan_id: Optional[StrictStr] = None is_paid: Optional[StrictBool] = Field(None, description="tenant payment status ※ Currently, it is returned only when stripe is linked. ") __properties = ["id", "name", "completed_sign_up", "envs", "user_attribute", "back_office_staff_email", "plan_id", "is_paid"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/user_info.py b/test/auth/models/user_info.py index a8aeff2..4ffd36a 100644 --- a/test/auth/models/user_info.py +++ b/test/auth/models/user_info.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.user_available_tenant import UserAvailableTenant +from typing_extensions import Annotated class UserInfo(BaseModel): """ @@ -28,13 +29,9 @@ class UserInfo(BaseModel): """ id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") - tenants: conlist(UserAvailableTenant) = Field(..., description="Tenant Info") + tenants: Annotated[List[UserAvailableTenant], Field()] = Field(..., description="Tenant Info") __properties = ["id", "email", "tenants"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/users.py b/test/auth/models/users.py index 1a2089b..f8c5772 100644 --- a/test/auth/models/users.py +++ b/test/auth/models/users.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.auth.models.user import User +from typing_extensions import Annotated class Users(BaseModel): """ Users """ - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) __properties = ["users"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/auth/models/validate_invitation_param.py b/test/auth/models/validate_invitation_param.py index 07c4a85..7bce826 100644 --- a/test/auth/models/validate_invitation_param.py +++ b/test/auth/models/validate_invitation_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ValidateInvitationParam(BaseModel): """ @@ -29,11 +29,7 @@ class ValidateInvitationParam(BaseModel): email: Optional[StrictStr] = Field(None, description="Email address of the invited user") password: Optional[StrictStr] = Field(None, description="Password of the invited user") __properties = ["access_token", "email", "password"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/api/aws_marketplace_api.py b/test/awsmarketplace/api/aws_marketplace_api.py index 1eb1c57..51e491e 100644 --- a/test/awsmarketplace/api/aws_marketplace_api.py +++ b/test/awsmarketplace/api/aws_marketplace_api.py @@ -19,9 +19,9 @@ from pydantic import validate_arguments, ValidationError from typing_extensions import Annotated -from pydantic import Field, StrictStr, conlist +from pydantic import Field, StrictStr -from typing import Optional +from typing import List, Optional from saasus_sdk_python.src.awsmarketplace.models.catalog_entity_visibility import CatalogEntityVisibility from saasus_sdk_python.src.awsmarketplace.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink @@ -609,7 +609,7 @@ def get_customer_with_http_info(self, customer_identifier : Annotated[StrictStr, _request_auth=_params.get('_request_auth')) @validate_arguments - def get_customers(self, tenant_ids : Annotated[Optional[conlist(StrictStr)], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> Customers: # noqa: E501 + def get_customers(self, tenant_ids : Annotated[Optional[Annotated[List[StrictStr], Field()]], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> Customers: # noqa: E501 """Get a list of customer information to be linked to AWS Marketplace # noqa: E501 Get a list of customer information to be linked to AWS Marketplace. # noqa: E501 @@ -638,7 +638,7 @@ def get_customers(self, tenant_ids : Annotated[Optional[conlist(StrictStr)], Fie return self.get_customers_with_http_info(tenant_ids, **kwargs) # noqa: E501 @validate_arguments - def get_customers_with_http_info(self, tenant_ids : Annotated[Optional[conlist(StrictStr)], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def get_customers_with_http_info(self, tenant_ids : Annotated[Optional[Annotated[List[StrictStr], Field()]], Field(description="指定したテナントIDの顧客を取得する(Get customers with the specified tenant ID)")] = None, **kwargs) -> ApiResponse: # noqa: E501 """Get a list of customer information to be linked to AWS Marketplace # noqa: E501 Get a list of customer information to be linked to AWS Marketplace. # noqa: E501 diff --git a/test/awsmarketplace/models/catalog_entity_visibility.py b/test/awsmarketplace/models/catalog_entity_visibility.py index cbfc697..37ca597 100644 --- a/test/awsmarketplace/models/catalog_entity_visibility.py +++ b/test/awsmarketplace/models/catalog_entity_visibility.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.visibility_status import VisibilityStatus class CatalogEntityVisibility(BaseModel): @@ -28,11 +28,7 @@ class CatalogEntityVisibility(BaseModel): """ visibility: VisibilityStatus = Field(...) __properties = ["visibility"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/cloud_formation_launch_stack_link.py b/test/awsmarketplace/models/cloud_formation_launch_stack_link.py index 58184cf..d6634d5 100644 --- a/test/awsmarketplace/models/cloud_formation_launch_stack_link.py +++ b/test/awsmarketplace/models/cloud_formation_launch_stack_link.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CloudFormationLaunchStackLink(BaseModel): """ @@ -27,11 +27,7 @@ class CloudFormationLaunchStackLink(BaseModel): """ link: StrictStr = Field(...) __properties = ["link"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/create_customer_param.py b/test/awsmarketplace/models/create_customer_param.py index 5f4f3dd..d8f5a33 100644 --- a/test/awsmarketplace/models/create_customer_param.py +++ b/test/awsmarketplace/models/create_customer_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateCustomerParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateCustomerParam(BaseModel): tenant_id: StrictStr = Field(...) registration_token: StrictStr = Field(...) __properties = ["tenant_id", "registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/customer.py b/test/awsmarketplace/models/customer.py index e2d4e8f..7ef50e4 100644 --- a/test/awsmarketplace/models/customer.py +++ b/test/awsmarketplace/models/customer.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Customer(BaseModel): """ @@ -29,11 +29,7 @@ class Customer(BaseModel): customer_aws_account_id: StrictStr = Field(...) tenant_id: StrictStr = Field(...) __properties = ["customer_identifier", "customer_aws_account_id", "tenant_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/customers.py b/test/awsmarketplace/models/customers.py index e80ffda..d75e4d7 100644 --- a/test/awsmarketplace/models/customers.py +++ b/test/awsmarketplace/models/customers.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.customer import Customer +from typing_extensions import Annotated class Customers(BaseModel): """ Customers """ - customers: conlist(Customer) = Field(...) + customers: Annotated[List[Customer], Field()] = Field(...) __properties = ["customers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/error.py b/test/awsmarketplace/models/error.py index c1266ef..d63f0b0 100644 --- a/test/awsmarketplace/models/error.py +++ b/test/awsmarketplace/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(...) message: StrictStr = Field(...) __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/get_listing_status_result.py b/test/awsmarketplace/models/get_listing_status_result.py index d7dfd14..def5633 100644 --- a/test/awsmarketplace/models/get_listing_status_result.py +++ b/test/awsmarketplace/models/get_listing_status_result.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.listing_status import ListingStatus class GetListingStatusResult(BaseModel): @@ -28,11 +28,7 @@ class GetListingStatusResult(BaseModel): """ listing_status: ListingStatus = Field(...) __properties = ["listing_status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/plan.py b/test/awsmarketplace/models/plan.py index c779826..27591f7 100644 --- a/test/awsmarketplace/models/plan.py +++ b/test/awsmarketplace/models/plan.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Plan(BaseModel): """ @@ -28,11 +28,7 @@ class Plan(BaseModel): plan_id: StrictStr = Field(...) plan_name: StrictStr = Field(...) __properties = ["plan_id", "plan_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/plans.py b/test/awsmarketplace/models/plans.py index ab8e286..aecda7f 100644 --- a/test/awsmarketplace/models/plans.py +++ b/test/awsmarketplace/models/plans.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.plan import Plan +from typing_extensions import Annotated class Plans(BaseModel): """ Plans """ - plans: conlist(Plan) = Field(...) + plans: Annotated[List[Plan], Field()] = Field(...) __properties = ["plans"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/save_plan_param.py b/test/awsmarketplace/models/save_plan_param.py index 43153ce..dc8eca5 100644 --- a/test/awsmarketplace/models/save_plan_param.py +++ b/test/awsmarketplace/models/save_plan_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class SavePlanParam(BaseModel): """ @@ -28,11 +28,7 @@ class SavePlanParam(BaseModel): plan_id: StrictStr = Field(...) plan_name: StrictStr = Field(...) __properties = ["plan_id", "plan_name"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/settings.py b/test/awsmarketplace/models/settings.py index bde5f07..52c7a04 100644 --- a/test/awsmarketplace/models/settings.py +++ b/test/awsmarketplace/models/settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Settings(BaseModel): """ @@ -35,11 +35,7 @@ class Settings(BaseModel): redirect_sign_up_page_function_url: StrictStr = Field(...) sqs_arn: StrictStr = Field(...) __properties = ["product_code", "role_arn", "role_external_id", "sns_topic_arn", "cas_bucket_name", "cas_sns_topic_arn", "seller_sns_topic_arn", "redirect_sign_up_page_function_url", "sqs_arn"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/update_listing_status_param.py b/test/awsmarketplace/models/update_listing_status_param.py index 9aa589a..276545a 100644 --- a/test/awsmarketplace/models/update_listing_status_param.py +++ b/test/awsmarketplace/models/update_listing_status_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.awsmarketplace.models.listing_status import ListingStatus class UpdateListingStatusParam(BaseModel): @@ -28,11 +28,7 @@ class UpdateListingStatusParam(BaseModel): """ listing_status: ListingStatus = Field(...) __properties = ["listing_status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/update_settings_param.py b/test/awsmarketplace/models/update_settings_param.py index 41fdfd0..85b8efe 100644 --- a/test/awsmarketplace/models/update_settings_param.py +++ b/test/awsmarketplace/models/update_settings_param.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, StrictStr +from pydantic import ConfigDict, BaseModel, StrictStr class UpdateSettingsParam(BaseModel): """ @@ -34,11 +34,7 @@ class UpdateSettingsParam(BaseModel): seller_sns_topic_arn: Optional[StrictStr] = None sqs_arn: Optional[StrictStr] = None __properties = ["product_code", "role_arn", "role_external_id", "sns_topic_arn", "cas_bucket_name", "cas_sns_topic_arn", "seller_sns_topic_arn", "sqs_arn"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/awsmarketplace/models/verify_registration_token_param.py b/test/awsmarketplace/models/verify_registration_token_param.py index f22d45a..6174374 100644 --- a/test/awsmarketplace/models/verify_registration_token_param.py +++ b/test/awsmarketplace/models/verify_registration_token_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class VerifyRegistrationTokenParam(BaseModel): """ @@ -27,11 +27,7 @@ class VerifyRegistrationTokenParam(BaseModel): """ registration_token: StrictStr = Field(...) __properties = ["registration_token"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/billing/models/error.py b/test/billing/models/error.py index fb33be2..62d979d 100644 --- a/test/billing/models/error.py +++ b/test/billing/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/billing/models/stripe_info.py b/test/billing/models/stripe_info.py index 10e9fbd..64aa8f0 100644 --- a/test/billing/models/stripe_info.py +++ b/test/billing/models/stripe_info.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class StripeInfo(BaseModel): """ @@ -27,11 +27,7 @@ class StripeInfo(BaseModel): """ is_registered: StrictBool = Field(...) __properties = ["is_registered"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/billing/models/update_stripe_info_param.py b/test/billing/models/update_stripe_info_param.py index b2a333d..6fe0d93 100644 --- a/test/billing/models/update_stripe_info_param.py +++ b/test/billing/models/update_stripe_info_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateStripeInfoParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateStripeInfoParam(BaseModel): """ secret_key: StrictStr = Field(..., description="secret key") __properties = ["secret_key"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/comment.py b/test/communication/models/comment.py index d5f74eb..f17b73f 100644 --- a/test/communication/models/comment.py +++ b/test/communication/models/comment.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class Comment(BaseModel): """ @@ -30,11 +30,7 @@ class Comment(BaseModel): created_at: StrictInt = Field(...) body: StrictStr = Field(...) __properties = ["id", "user_id", "created_at", "body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/comments.py b/test/communication/models/comments.py index dff5ebe..a9cc435 100644 --- a/test/communication/models/comments.py +++ b/test/communication/models/comments.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.communication.models.comment import Comment +from typing_extensions import Annotated class Comments(BaseModel): """ Comments """ - comments: conlist(Comment) = Field(...) + comments: Annotated[List[Comment], Field()] = Field(...) __properties = ["comments"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/create_feedback_comment_param.py b/test/communication/models/create_feedback_comment_param.py index 0cc55af..f27b1ab 100644 --- a/test/communication/models/create_feedback_comment_param.py +++ b/test/communication/models/create_feedback_comment_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateFeedbackCommentParam(BaseModel): """ @@ -28,11 +28,7 @@ class CreateFeedbackCommentParam(BaseModel): user_id: StrictStr = Field(...) body: StrictStr = Field(...) __properties = ["user_id", "body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/create_feedback_param.py b/test/communication/models/create_feedback_param.py index 6aeb8d1..3d9e572 100644 --- a/test/communication/models/create_feedback_param.py +++ b/test/communication/models/create_feedback_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateFeedbackParam(BaseModel): """ @@ -29,11 +29,7 @@ class CreateFeedbackParam(BaseModel): feedback_description: StrictStr = Field(...) user_id: StrictStr = Field(...) __properties = ["feedback_title", "feedback_description", "user_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/create_vote_user_param.py b/test/communication/models/create_vote_user_param.py index f4859cd..759041c 100644 --- a/test/communication/models/create_vote_user_param.py +++ b/test/communication/models/create_vote_user_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class CreateVoteUserParam(BaseModel): """ @@ -27,11 +27,7 @@ class CreateVoteUserParam(BaseModel): """ user_id: StrictStr = Field(...) __properties = ["user_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/error.py b/test/communication/models/error.py index 93f6902..cd18774 100644 --- a/test/communication/models/error.py +++ b/test/communication/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/feedback.py b/test/communication/models/feedback.py index 61cd89b..822f221 100644 --- a/test/communication/models/feedback.py +++ b/test/communication/models/feedback.py @@ -19,9 +19,10 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.communication.models.comment import Comment from saasus_sdk_python.src.communication.models.user import User +from typing_extensions import Annotated class Feedback(BaseModel): """ @@ -29,19 +30,15 @@ class Feedback(BaseModel): """ feedback_title: StrictStr = Field(...) feedback_description: StrictStr = Field(...) - comments: conlist(Comment) = Field(...) + comments: Annotated[List[Comment], Field()] = Field(...) count: StrictInt = Field(...) - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) id: StrictStr = Field(...) user_id: StrictStr = Field(...) created_at: StrictInt = Field(...) status: StrictInt = Field(...) __properties = ["feedback_title", "feedback_description", "comments", "count", "users", "id", "user_id", "created_at", "status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/feedback_save_props.py b/test/communication/models/feedback_save_props.py index e93632a..c4ebf51 100644 --- a/test/communication/models/feedback_save_props.py +++ b/test/communication/models/feedback_save_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class FeedbackSaveProps(BaseModel): """ @@ -28,11 +28,7 @@ class FeedbackSaveProps(BaseModel): feedback_title: StrictStr = Field(...) feedback_description: StrictStr = Field(...) __properties = ["feedback_title", "feedback_description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/feedbacks.py b/test/communication/models/feedbacks.py index 9c6a84d..272d6d6 100644 --- a/test/communication/models/feedbacks.py +++ b/test/communication/models/feedbacks.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.communication.models.feedback import Feedback +from typing_extensions import Annotated class Feedbacks(BaseModel): """ Feedbacks """ - feedbacks: conlist(Feedback) = Field(...) + feedbacks: Annotated[List[Feedback], Field()] = Field(...) __properties = ["feedbacks"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/update_feedback_comment_param.py b/test/communication/models/update_feedback_comment_param.py index 84046fd..011984f 100644 --- a/test/communication/models/update_feedback_comment_param.py +++ b/test/communication/models/update_feedback_comment_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateFeedbackCommentParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateFeedbackCommentParam(BaseModel): """ body: StrictStr = Field(...) __properties = ["body"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/update_feedback_param.py b/test/communication/models/update_feedback_param.py index 7b174e6..fd502ba 100644 --- a/test/communication/models/update_feedback_param.py +++ b/test/communication/models/update_feedback_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateFeedbackParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateFeedbackParam(BaseModel): feedback_title: StrictStr = Field(...) feedback_description: StrictStr = Field(...) __properties = ["feedback_title", "feedback_description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/update_feedback_status_param.py b/test/communication/models/update_feedback_status_param.py index bc8d870..9b0e513 100644 --- a/test/communication/models/update_feedback_status_param.py +++ b/test/communication/models/update_feedback_status_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt class UpdateFeedbackStatusParam(BaseModel): """ @@ -27,11 +27,7 @@ class UpdateFeedbackStatusParam(BaseModel): """ status: StrictInt = Field(...) __properties = ["status"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/user.py b/test/communication/models/user.py index 9193517..630655f 100644 --- a/test/communication/models/user.py +++ b/test/communication/models/user.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class User(BaseModel): """ @@ -27,11 +27,7 @@ class User(BaseModel): """ user_id: StrictStr = Field(...) __properties = ["user_id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/users.py b/test/communication/models/users.py index 0bd882c..388a869 100644 --- a/test/communication/models/users.py +++ b/test/communication/models/users.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.communication.models.user import User +from typing_extensions import Annotated class Users(BaseModel): """ Users """ - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) __properties = ["users"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/communication/models/votes.py b/test/communication/models/votes.py index 53ce112..16b60bc 100644 --- a/test/communication/models/votes.py +++ b/test/communication/models/votes.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictInt, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt from saasus_sdk_python.src.communication.models.user import User +from typing_extensions import Annotated class Votes(BaseModel): """ Votes """ - users: conlist(User) = Field(...) + users: Annotated[List[User], Field()] = Field(...) count: StrictInt = Field(...) __properties = ["users", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/integration/models/create_event_bridge_event_param.py b/test/integration/models/create_event_bridge_event_param.py index df158df..9bedf93 100644 --- a/test/integration/models/create_event_bridge_event_param.py +++ b/test/integration/models/create_event_bridge_event_param.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.integration.models.event_message import EventMessage +from typing_extensions import Annotated class CreateEventBridgeEventParam(BaseModel): """ CreateEventBridgeEventParam """ - event_messages: conlist(EventMessage) = Field(..., description="event message") + event_messages: Annotated[List[EventMessage], Field()] = Field(..., description="event message") __properties = ["event_messages"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/integration/models/error.py b/test/integration/models/error.py index 43e2786..eac824c 100644 --- a/test/integration/models/error.py +++ b/test/integration/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="permission_denied") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/integration/models/event_bridge_settings.py b/test/integration/models/event_bridge_settings.py index de82e03..4de9811 100644 --- a/test/integration/models/event_bridge_settings.py +++ b/test/integration/models/event_bridge_settings.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.integration.models.aws_region import AwsRegion class EventBridgeSettings(BaseModel): @@ -29,11 +29,7 @@ class EventBridgeSettings(BaseModel): aws_account_id: StrictStr = Field(..., description="AWS Account ID") aws_region: AwsRegion = Field(...) __properties = ["aws_account_id", "aws_region"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/integration/models/event_message.py b/test/integration/models/event_message.py index 4293364..27bf30d 100644 --- a/test/integration/models/event_message.py +++ b/test/integration/models/event_message.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class EventMessage(BaseModel): """ @@ -29,11 +29,7 @@ class EventMessage(BaseModel): event_detail_type: StrictStr = Field(..., description="detailed event type") message: StrictStr = Field(..., description="event message") __properties = ["event_type", "event_detail_type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/error.py b/test/pricing/models/error.py index 934fe2d..a32910e 100644 --- a/test/pricing/models/error.py +++ b/test/pricing/models/error.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class Error(BaseModel): """ @@ -28,11 +28,7 @@ class Error(BaseModel): type: StrictStr = Field(..., description="Error type") message: StrictStr = Field(..., description="Error message") __properties = ["type", "message"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit.py b/test/pricing/models/metering_unit.py index 826ed48..45907af 100644 --- a/test/pricing/models/metering_unit.py +++ b/test/pricing/models/metering_unit.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage class MeteringUnit(BaseModel): @@ -33,11 +33,7 @@ class MeteringUnit(BaseModel): id: StrictStr = Field(..., description="Universally Unique Identifier") used: StrictBool = Field(..., description="Metering unit used settings") __properties = ["unit_name", "aggregate_usage", "display_name", "description", "id", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_count.py b/test/pricing/models/metering_unit_count.py index c22cf13..70836ef 100644 --- a/test/pricing/models/metering_unit_count.py +++ b/test/pricing/models/metering_unit_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt class MeteringUnitCount(BaseModel): """ @@ -28,11 +28,7 @@ class MeteringUnitCount(BaseModel): timestamp: StrictInt = Field(..., description="Timestamp") count: StrictInt = Field(..., description="Count") __properties = ["timestamp", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_date_count.py b/test/pricing/models/metering_unit_date_count.py index a12d1c3..57da20f 100644 --- a/test/pricing/models/metering_unit_date_count.py +++ b/test/pricing/models/metering_unit_date_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class MeteringUnitDateCount(BaseModel): """ @@ -29,11 +29,7 @@ class MeteringUnitDateCount(BaseModel): var_date: StrictStr = Field(..., alias="date", description="Date") count: StrictInt = Field(..., description="Count") __properties = ["metering_unit_name", "date", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_date_counts.py b/test/pricing/models/metering_unit_date_counts.py index 1c10d77..a536599 100644 --- a/test/pricing/models/metering_unit_date_counts.py +++ b/test/pricing/models/metering_unit_date_counts.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.metering_unit_date_count import MeteringUnitDateCount +from typing_extensions import Annotated class MeteringUnitDateCounts(BaseModel): """ MeteringUnitDateCounts """ - counts: conlist(MeteringUnitDateCount) = Field(...) + counts: Annotated[List[MeteringUnitDateCount], Field()] = Field(...) __properties = ["counts"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_date_period_counts.py b/test/pricing/models/metering_unit_date_period_counts.py index 40d02b2..d6eb4bd 100644 --- a/test/pricing/models/metering_unit_date_period_counts.py +++ b/test/pricing/models/metering_unit_date_period_counts.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.pricing.models.metering_unit_count import MeteringUnitCount +from typing_extensions import Annotated class MeteringUnitDatePeriodCounts(BaseModel): """ MeteringUnitDatePeriodCounts """ metering_unit_name: StrictStr = Field(..., description="Metering unit name") - counts: conlist(MeteringUnitCount) = Field(...) + counts: Annotated[List[MeteringUnitCount], Field()] = Field(...) __properties = ["metering_unit_name", "counts"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_month_count.py b/test/pricing/models/metering_unit_month_count.py index f90c238..070e5f9 100644 --- a/test/pricing/models/metering_unit_month_count.py +++ b/test/pricing/models/metering_unit_month_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class MeteringUnitMonthCount(BaseModel): """ @@ -29,11 +29,7 @@ class MeteringUnitMonthCount(BaseModel): month: StrictStr = Field(..., description="Month") count: StrictInt = Field(..., description="Count") __properties = ["metering_unit_name", "month", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_month_counts.py b/test/pricing/models/metering_unit_month_counts.py index 155d1e7..745213e 100644 --- a/test/pricing/models/metering_unit_month_counts.py +++ b/test/pricing/models/metering_unit_month_counts.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.metering_unit_month_count import MeteringUnitMonthCount +from typing_extensions import Annotated class MeteringUnitMonthCounts(BaseModel): """ MeteringUnitMonthCounts """ - counts: conlist(MeteringUnitMonthCount) = Field(...) + counts: Annotated[List[MeteringUnitMonthCount], Field()] = Field(...) __properties = ["counts"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_props.py b/test/pricing/models/metering_unit_props.py index a977850..a10e950 100644 --- a/test/pricing/models/metering_unit_props.py +++ b/test/pricing/models/metering_unit_props.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage class MeteringUnitProps(BaseModel): @@ -31,11 +31,7 @@ class MeteringUnitProps(BaseModel): display_name: StrictStr = Field(..., description="Display name") description: StrictStr = Field(..., description="Description") __properties = ["unit_name", "aggregate_usage", "display_name", "description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_unit_timestamp_count.py b/test/pricing/models/metering_unit_timestamp_count.py index ac4478c..fdab216 100644 --- a/test/pricing/models/metering_unit_timestamp_count.py +++ b/test/pricing/models/metering_unit_timestamp_count.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr class MeteringUnitTimestampCount(BaseModel): """ @@ -29,11 +29,7 @@ class MeteringUnitTimestampCount(BaseModel): timestamp: StrictInt = Field(..., description="Timestamp") count: StrictInt = Field(..., description="Count") __properties = ["metering_unit_name", "timestamp", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/metering_units.py b/test/pricing/models/metering_units.py index 5a266c3..5e1553f 100644 --- a/test/pricing/models/metering_units.py +++ b/test/pricing/models/metering_units.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.metering_unit import MeteringUnit +from typing_extensions import Annotated class MeteringUnits(BaseModel): """ MeteringUnits """ - units: conlist(MeteringUnit) = Field(...) + units: Annotated[List[MeteringUnit], Field()] = Field(...) __properties = ["units"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_fixed_unit.py b/test/pricing/models/pricing_fixed_unit.py index d82a202..3f2cb9f 100644 --- a/test/pricing/models/pricing_fixed_unit.py +++ b/test/pricing/models/pricing_fixed_unit.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -38,11 +38,7 @@ class PricingFixedUnit(BaseModel): id: StrictStr = Field(..., description="Universally Unique Identifier") used: StrictBool = Field(...) __properties = ["unit_amount", "recurring_interval", "name", "display_name", "description", "type", "currency", "id", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_fixed_unit_for_save.py b/test/pricing/models/pricing_fixed_unit_for_save.py index b589984..643095a 100644 --- a/test/pricing/models/pricing_fixed_unit_for_save.py +++ b/test/pricing/models/pricing_fixed_unit_for_save.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -36,11 +36,7 @@ class PricingFixedUnitForSave(BaseModel): unit_amount: StrictInt = Field(..., description="Price") recurring_interval: RecurringInterval = Field(...) __properties = ["name", "display_name", "description", "type", "currency", "unit_amount", "recurring_interval"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_menu.py b/test/pricing/models/pricing_menu.py index 6d7fafd..f2b0e0b 100644 --- a/test/pricing/models/pricing_menu.py +++ b/test/pricing/models/pricing_menu.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_unit import PricingUnit +from typing_extensions import Annotated class PricingMenu(BaseModel): """ @@ -30,14 +31,10 @@ class PricingMenu(BaseModel): display_name: StrictStr = Field(..., description="Menu display name") description: StrictStr = Field(..., description="Menu description") used: StrictBool = Field(..., description="Menu used settings") - units: conlist(PricingUnit) = Field(...) + units: Annotated[List[PricingUnit], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") __properties = ["name", "display_name", "description", "used", "units", "id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_menu_props.py b/test/pricing/models/pricing_menu_props.py index 6fdd359..b88a553 100644 --- a/test/pricing/models/pricing_menu_props.py +++ b/test/pricing/models/pricing_menu_props.py @@ -19,24 +19,21 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_unit import PricingUnit +from typing_extensions import Annotated class PricingMenuProps(BaseModel): """ PricingMenuProps """ - units: conlist(PricingUnit) = Field(...) + units: Annotated[List[PricingUnit], Field()] = Field(...) name: StrictStr = Field(..., description="Menu name") display_name: StrictStr = Field(..., description="Menu display name") description: StrictStr = Field(..., description="Menu description") used: StrictBool = Field(..., description="Menu used settings") __properties = ["units", "name", "display_name", "description", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_menus.py b/test/pricing/models/pricing_menus.py index 17ecd1e..369f188 100644 --- a/test/pricing/models/pricing_menus.py +++ b/test/pricing/models/pricing_menus.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_menu import PricingMenu +from typing_extensions import Annotated class PricingMenus(BaseModel): """ PricingMenus """ - pricing_menus: conlist(PricingMenu) = Field(...) + pricing_menus: Annotated[List[PricingMenu], Field()] = Field(...) __properties = ["pricing_menus"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_plan.py b/test/pricing/models/pricing_plan.py index c62ef89..b620167 100644 --- a/test/pricing/models/pricing_plan.py +++ b/test/pricing/models/pricing_plan.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_menu import PricingMenu +from typing_extensions import Annotated class PricingPlan(BaseModel): """ @@ -30,14 +31,10 @@ class PricingPlan(BaseModel): display_name: StrictStr = Field(..., description="Pricing plan display name") description: StrictStr = Field(..., description="Pricing plan description") used: StrictBool = Field(..., description="Pricing plan used settings") - pricing_menus: conlist(PricingMenu) = Field(...) + pricing_menus: Annotated[List[PricingMenu], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") __properties = ["name", "display_name", "description", "used", "pricing_menus", "id"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_plan_props.py b/test/pricing/models/pricing_plan_props.py index b223ff5..b0ae798 100644 --- a/test/pricing/models/pricing_plan_props.py +++ b/test/pricing/models/pricing_plan_props.py @@ -19,24 +19,21 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from saasus_sdk_python.src.pricing.models.pricing_menu import PricingMenu +from typing_extensions import Annotated class PricingPlanProps(BaseModel): """ PricingPlanProps """ - pricing_menus: conlist(PricingMenu) = Field(...) + pricing_menus: Annotated[List[PricingMenu], Field()] = Field(...) name: StrictStr = Field(..., description="Pricing plan name") display_name: StrictStr = Field(..., description="Pricing plan display name") description: StrictStr = Field(..., description="Pricing plan description") used: StrictBool = Field(..., description="Pricing plan used settings") __properties = ["pricing_menus", "name", "display_name", "description", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_plans.py b/test/pricing/models/pricing_plans.py index 9d283fe..80e7cdc 100644 --- a/test/pricing/models/pricing_plans.py +++ b/test/pricing/models/pricing_plans.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_plan import PricingPlan +from typing_extensions import Annotated class PricingPlans(BaseModel): """ PricingPlans """ - pricing_plans: conlist(PricingPlan) = Field(...) + pricing_plans: Annotated[List[PricingPlan], Field()] = Field(...) __properties = ["pricing_plans"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_tier.py b/test/pricing/models/pricing_tier.py index 9529237..45ce38f 100644 --- a/test/pricing/models/pricing_tier.py +++ b/test/pricing/models/pricing_tier.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt class PricingTier(BaseModel): """ @@ -30,11 +30,7 @@ class PricingTier(BaseModel): flat_amount: StrictInt = Field(..., description="Fixed amount") inf: StrictBool = Field(..., description="Indefinite") __properties = ["up_to", "unit_amount", "flat_amount", "inf"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_tiered_unit.py b/test/pricing/models/pricing_tiered_unit.py index 908b437..47e8d5f 100644 --- a/test/pricing/models/pricing_tiered_unit.py +++ b/test/pricing/models/pricing_tiered_unit.py @@ -19,12 +19,13 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUnit(BaseModel): """ @@ -38,17 +39,13 @@ class PricingTieredUnit(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") metering_unit_id: StrictStr = Field(..., description="Universally Unique Identifier") recurring_interval: RecurringInterval = Field(...) used: StrictBool = Field(..., description="Indicates if the unit is used") __properties = ["upper_count", "metering_unit_name", "aggregate_usage", "name", "display_name", "description", "type", "currency", "tiers", "id", "metering_unit_id", "recurring_interval", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_tiered_unit_for_save.py b/test/pricing/models/pricing_tiered_unit_for_save.py index cd570dd..40b4e63 100644 --- a/test/pricing/models/pricing_tiered_unit_for_save.py +++ b/test/pricing/models/pricing_tiered_unit_for_save.py @@ -19,11 +19,12 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUnitForSave(BaseModel): """ @@ -34,16 +35,12 @@ class PricingTieredUnitForSave(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) upper_count: StrictInt = Field(..., description="Upper limit") metering_unit_name: StrictStr = Field(..., description="Metering unit name") aggregate_usage: Optional[AggregateUsage] = None __properties = ["name", "display_name", "description", "type", "currency", "tiers", "upper_count", "metering_unit_name", "aggregate_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_tiered_usage_unit.py b/test/pricing/models/pricing_tiered_usage_unit.py index d1cabe9..2b354af 100644 --- a/test/pricing/models/pricing_tiered_usage_unit.py +++ b/test/pricing/models/pricing_tiered_usage_unit.py @@ -19,12 +19,13 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUsageUnit(BaseModel): """ @@ -38,17 +39,13 @@ class PricingTieredUsageUnit(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) id: StrictStr = Field(..., description="Universally Unique Identifier") metering_unit_id: StrictStr = Field(..., description="Universally Unique Identifier") recurring_interval: RecurringInterval = Field(...) used: StrictBool = Field(..., description="Indicates if the unit is used") __properties = ["upper_count", "metering_unit_name", "aggregate_usage", "name", "display_name", "description", "type", "currency", "tiers", "id", "metering_unit_id", "recurring_interval", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_tiered_usage_unit_for_save.py b/test/pricing/models/pricing_tiered_usage_unit_for_save.py index b2daaf7..9c4efa6 100644 --- a/test/pricing/models/pricing_tiered_usage_unit_for_save.py +++ b/test/pricing/models/pricing_tiered_usage_unit_for_save.py @@ -19,11 +19,12 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier from saasus_sdk_python.src.pricing.models.unit_type import UnitType +from typing_extensions import Annotated class PricingTieredUsageUnitForSave(BaseModel): """ @@ -34,16 +35,12 @@ class PricingTieredUsageUnitForSave(BaseModel): description: StrictStr = Field(..., description="Description") type: UnitType = Field(...) currency: Currency = Field(...) - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) upper_count: StrictInt = Field(..., description="Upper limit") metering_unit_name: StrictStr = Field(..., description="Metering unit name") aggregate_usage: Optional[AggregateUsage] = None __properties = ["name", "display_name", "description", "type", "currency", "tiers", "upper_count", "metering_unit_name", "aggregate_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_tiers.py b/test/pricing/models/pricing_tiers.py index c545bed..03f9c67 100644 --- a/test/pricing/models/pricing_tiers.py +++ b/test/pricing/models/pricing_tiers.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_tier import PricingTier +from typing_extensions import Annotated class PricingTiers(BaseModel): """ PricingTiers """ - tiers: conlist(PricingTier) = Field(...) + tiers: Annotated[List[PricingTier], Field()] = Field(...) __properties = ["tiers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_unit.py b/test/pricing/models/pricing_unit.py index 95a8e46..c2dd5e6 100644 --- a/test/pricing/models/pricing_unit.py +++ b/test/pricing/models/pricing_unit.py @@ -18,14 +18,14 @@ import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Any, List, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from saasus_sdk_python.src.pricing.models.pricing_fixed_unit import PricingFixedUnit from saasus_sdk_python.src.pricing.models.pricing_tiered_unit import PricingTieredUnit from saasus_sdk_python.src.pricing.models.pricing_tiered_usage_unit import PricingTieredUsageUnit from saasus_sdk_python.src.pricing.models.pricing_usage_unit import PricingUsageUnit from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr PRICINGUNIT_ONE_OF_SCHEMAS = ["PricingFixedUnit", "PricingTieredUnit", "PricingTieredUsageUnit", "PricingUsageUnit"] @@ -44,11 +44,9 @@ class PricingUnit(BaseModel): if TYPE_CHECKING: actual_instance: Union[PricingFixedUnit, PricingTieredUnit, PricingTieredUsageUnit, PricingUsageUnit] else: - actual_instance: Any - one_of_schemas: List[str] = Field(PRICINGUNIT_ONE_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + one_of_schemas: Literal[PRICINGUNIT_ONE_OF_SCHEMAS] = PRICINGUNIT_ONE_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) discriminator_value_class_map = { } @@ -63,7 +61,8 @@ def __init__(self, *args, **kwargs): else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_oneof(cls, v): instance = PricingUnit.construct() error_messages = [] diff --git a/test/pricing/models/pricing_unit_base_props.py b/test/pricing/models/pricing_unit_base_props.py index abca0b0..80ceb7f 100644 --- a/test/pricing/models/pricing_unit_base_props.py +++ b/test/pricing/models/pricing_unit_base_props.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -33,11 +33,7 @@ class PricingUnitBaseProps(BaseModel): type: UnitType = Field(...) currency: Currency = Field(...) __properties = ["name", "display_name", "description", "type", "currency"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_unit_for_save.py b/test/pricing/models/pricing_unit_for_save.py index d63c381..3aee315 100644 --- a/test/pricing/models/pricing_unit_for_save.py +++ b/test/pricing/models/pricing_unit_for_save.py @@ -18,14 +18,14 @@ import pprint import re # noqa: F401 -from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Any, List, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from saasus_sdk_python.src.pricing.models.pricing_fixed_unit_for_save import PricingFixedUnitForSave from saasus_sdk_python.src.pricing.models.pricing_tiered_unit_for_save import PricingTieredUnitForSave from saasus_sdk_python.src.pricing.models.pricing_tiered_usage_unit_for_save import PricingTieredUsageUnitForSave from saasus_sdk_python.src.pricing.models.pricing_usage_unit_for_save import PricingUsageUnitForSave from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr PRICINGUNITFORSAVE_ONE_OF_SCHEMAS = ["PricingFixedUnitForSave", "PricingTieredUnitForSave", "PricingTieredUsageUnitForSave", "PricingUsageUnitForSave"] @@ -44,11 +44,9 @@ class PricingUnitForSave(BaseModel): if TYPE_CHECKING: actual_instance: Union[PricingFixedUnitForSave, PricingTieredUnitForSave, PricingTieredUsageUnitForSave, PricingUsageUnitForSave] else: - actual_instance: Any - one_of_schemas: List[str] = Field(PRICINGUNITFORSAVE_ONE_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + one_of_schemas: Literal[PRICINGUNITFORSAVE_ONE_OF_SCHEMAS] = PRICINGUNITFORSAVE_ONE_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) discriminator_value_class_map = { } @@ -63,7 +61,8 @@ def __init__(self, *args, **kwargs): else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_oneof(cls, v): instance = PricingUnitForSave.construct() error_messages = [] diff --git a/test/pricing/models/pricing_units.py b/test/pricing/models/pricing_units.py index e992a2c..4b05059 100644 --- a/test/pricing/models/pricing_units.py +++ b/test/pricing/models/pricing_units.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.pricing_unit import PricingUnit +from typing_extensions import Annotated class PricingUnits(BaseModel): """ PricingUnits """ - units: conlist(PricingUnit) = Field(...) + units: Annotated[List[PricingUnit], Field()] = Field(...) __properties = ["units"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_usage_unit.py b/test/pricing/models/pricing_usage_unit.py index 08f17e8..d03cc7b 100644 --- a/test/pricing/models/pricing_usage_unit.py +++ b/test/pricing/models/pricing_usage_unit.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.recurring_interval import RecurringInterval @@ -43,11 +43,7 @@ class PricingUsageUnit(BaseModel): recurring_interval: RecurringInterval = Field(...) used: StrictBool = Field(...) __properties = ["upper_count", "unit_amount", "metering_unit_name", "aggregate_usage", "name", "display_name", "description", "type", "currency", "id", "metering_unit_id", "recurring_interval", "used"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/pricing_usage_unit_for_save.py b/test/pricing/models/pricing_usage_unit_for_save.py index 135e6f6..c704884 100644 --- a/test/pricing/models/pricing_usage_unit_for_save.py +++ b/test/pricing/models/pricing_usage_unit_for_save.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictInt, StrictStr from saasus_sdk_python.src.pricing.models.aggregate_usage import AggregateUsage from saasus_sdk_python.src.pricing.models.currency import Currency from saasus_sdk_python.src.pricing.models.unit_type import UnitType @@ -38,11 +38,7 @@ class PricingUsageUnitForSave(BaseModel): metering_unit_name: StrictStr = Field(..., description="Metering unit name") aggregate_usage: Optional[AggregateUsage] = None __properties = ["name", "display_name", "description", "type", "currency", "upper_count", "unit_amount", "metering_unit_name", "aggregate_usage"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/save_pricing_menu_param.py b/test/pricing/models/save_pricing_menu_param.py index c50fa37..0583d5a 100644 --- a/test/pricing/models/save_pricing_menu_param.py +++ b/test/pricing/models/save_pricing_menu_param.py @@ -19,7 +19,8 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class SavePricingMenuParam(BaseModel): """ @@ -28,13 +29,9 @@ class SavePricingMenuParam(BaseModel): name: StrictStr = Field(..., description="Menu name") display_name: StrictStr = Field(..., description="Menu display name") description: StrictStr = Field(..., description="Menu description") - unit_ids: conlist(StrictStr) = Field(..., description="Unit IDs to add") + unit_ids: Annotated[List[StrictStr], Field()] = Field(..., description="Unit IDs to add") __properties = ["name", "display_name", "description", "unit_ids"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/save_pricing_plan_param.py b/test/pricing/models/save_pricing_plan_param.py index 70e575b..eb65bb8 100644 --- a/test/pricing/models/save_pricing_plan_param.py +++ b/test/pricing/models/save_pricing_plan_param.py @@ -19,7 +19,8 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class SavePricingPlanParam(BaseModel): """ @@ -28,13 +29,9 @@ class SavePricingPlanParam(BaseModel): name: StrictStr = Field(..., description="Pricing plan name") display_name: StrictStr = Field(..., description="Pricing plan display name") description: StrictStr = Field(..., description="Pricing plan description") - menu_ids: conlist(StrictStr) = Field(..., description="Menu ID to be added to the pricing plan") + menu_ids: Annotated[List[StrictStr], Field()] = Field(..., description="Menu ID to be added to the pricing plan") __properties = ["name", "display_name", "description", "menu_ids"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/tax_rate.py b/test/pricing/models/tax_rate.py index ae7988f..b96913b 100644 --- a/test/pricing/models/tax_rate.py +++ b/test/pricing/models/tax_rate.py @@ -19,7 +19,8 @@ from typing import Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class TaxRate(BaseModel): """ @@ -29,22 +30,19 @@ class TaxRate(BaseModel): display_name: StrictStr = Field(..., description="Display name") percentage: Union[StrictFloat, StrictInt] = Field(..., description="Percentage") inclusive: StrictBool = Field(..., description="Inclusive or not") - country: constr(strict=True) = Field(..., description="Country code of ISO 3166-1 alpha-2") + country: Annotated[str, StringConstraints(strict=True)] = Field(..., description="Country code of ISO 3166-1 alpha-2") description: StrictStr = Field(..., description="Description") id: StrictStr = Field(..., description="Universally Unique Identifier") __properties = ["name", "display_name", "percentage", "inclusive", "country", "description", "id"] - @validator('country') + @field_validator('country') + @classmethod def country_validate_regular_expression(cls, value): """Validates the regular expression""" if not re.match(r"^[A-Z]{2}$", value): raise ValueError(r"must validate the regular expression /^[A-Z]{2}$/") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/tax_rate_props.py b/test/pricing/models/tax_rate_props.py index 5961d7b..8d2cbb8 100644 --- a/test/pricing/models/tax_rate_props.py +++ b/test/pricing/models/tax_rate_props.py @@ -19,7 +19,8 @@ from typing import Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class TaxRateProps(BaseModel): """ @@ -29,21 +30,18 @@ class TaxRateProps(BaseModel): display_name: StrictStr = Field(..., description="Display name") percentage: Union[StrictFloat, StrictInt] = Field(..., description="Percentage") inclusive: StrictBool = Field(..., description="Inclusive or not") - country: constr(strict=True) = Field(..., description="Country code of ISO 3166-1 alpha-2") + country: Annotated[str, StringConstraints(strict=True)] = Field(..., description="Country code of ISO 3166-1 alpha-2") description: StrictStr = Field(..., description="Description") __properties = ["name", "display_name", "percentage", "inclusive", "country", "description"] - @validator('country') + @field_validator('country') + @classmethod def country_validate_regular_expression(cls, value): """Validates the regular expression""" if not re.match(r"^[A-Z]{2}$", value): raise ValueError(r"must validate the regular expression /^[A-Z]{2}$/") return value - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/tax_rates.py b/test/pricing/models/tax_rates.py index d1442dd..5759e0d 100644 --- a/test/pricing/models/tax_rates.py +++ b/test/pricing/models/tax_rates.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from saasus_sdk_python.src.pricing.models.tax_rate import TaxRate +from typing_extensions import Annotated class TaxRates(BaseModel): """ TaxRates """ - tax_rates: conlist(TaxRate) = Field(...) + tax_rates: Annotated[List[TaxRate], Field()] = Field(...) __properties = ["tax_rates"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/update_metering_unit_timestamp_count_now_param.py b/test/pricing/models/update_metering_unit_timestamp_count_now_param.py index 136a3c9..e589406 100644 --- a/test/pricing/models/update_metering_unit_timestamp_count_now_param.py +++ b/test/pricing/models/update_metering_unit_timestamp_count_now_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt from saasus_sdk_python.src.pricing.models.update_metering_unit_timestamp_count_method import UpdateMeteringUnitTimestampCountMethod class UpdateMeteringUnitTimestampCountNowParam(BaseModel): @@ -29,11 +29,7 @@ class UpdateMeteringUnitTimestampCountNowParam(BaseModel): method: UpdateMeteringUnitTimestampCountMethod = Field(...) count: StrictInt = Field(..., description="Count") __properties = ["method", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/update_metering_unit_timestamp_count_param.py b/test/pricing/models/update_metering_unit_timestamp_count_param.py index 1672bc8..97cc4ea 100644 --- a/test/pricing/models/update_metering_unit_timestamp_count_param.py +++ b/test/pricing/models/update_metering_unit_timestamp_count_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictInt from saasus_sdk_python.src.pricing.models.update_metering_unit_timestamp_count_method import UpdateMeteringUnitTimestampCountMethod class UpdateMeteringUnitTimestampCountParam(BaseModel): @@ -29,11 +29,7 @@ class UpdateMeteringUnitTimestampCountParam(BaseModel): method: UpdateMeteringUnitTimestampCountMethod = Field(...) count: StrictInt = Field(..., description="Count") __properties = ["method", "count"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/update_pricing_plans_used_param.py b/test/pricing/models/update_pricing_plans_used_param.py index b0e5266..3700bb4 100644 --- a/test/pricing/models/update_pricing_plans_used_param.py +++ b/test/pricing/models/update_pricing_plans_used_param.py @@ -19,19 +19,16 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class UpdatePricingPlansUsedParam(BaseModel): """ UpdatePricingPlansUsedParam """ - plan_ids: conlist(StrictStr) = Field(...) + plan_ids: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["plan_ids"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/test/pricing/models/update_tax_rate_param.py b/test/pricing/models/update_tax_rate_param.py index a1fbc17..8170440 100644 --- a/test/pricing/models/update_tax_rate_param.py +++ b/test/pricing/models/update_tax_rate_param.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class UpdateTaxRateParam(BaseModel): """ @@ -28,11 +28,7 @@ class UpdateTaxRateParam(BaseModel): display_name: StrictStr = Field(..., description="Display name") description: StrictStr = Field(..., description="Description") __properties = ["display_name", "description"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" From 807c9477b4fd06aff90520d1ef479d5269e0fa6c Mon Sep 17 00:00:00 2001 From: takashi-uchida Date: Mon, 9 Sep 2024 10:14:13 +0900 Subject: [PATCH 4/6] Update API Client for v1.10.18 --- docs/apilog/Comment.md | 1 - docs/apilog/CreateFeedbackCommentParam.md | 1 - docs/apilog/SaasUser.md | 1 + docs/apilog/SaasUserApi.md | 79 +++ docs/apilog/SingleTenantApi.md | 234 +++++++++ docs/apilog/SingleTenantSettings.md | 32 ++ docs/apilog/UpdateSaasUserAttributesParam.md | 28 ++ .../apilog/UpdateSingleTenantSettingsParam.md | 32 ++ docs/apilog/UserAttributeApi.md | 81 +++- docs/apilog/UserInfo.md | 1 + docs/auth/Comment.md | 1 - docs/auth/CreateFeedbackCommentParam.md | 1 - docs/auth/SaasUser.md | 1 + docs/auth/SaasUserApi.md | 79 +++ docs/auth/SingleTenantApi.md | 234 +++++++++ docs/auth/SingleTenantSettings.md | 32 ++ docs/auth/UpdateSaasUserAttributesParam.md | 28 ++ docs/auth/UpdateSingleTenantSettingsParam.md | 32 ++ docs/auth/UserAttributeApi.md | 81 +++- docs/auth/UserInfo.md | 1 + docs/awsmarketplace/Comment.md | 1 - .../CreateFeedbackCommentParam.md | 1 - docs/awsmarketplace/SaasUser.md | 1 + docs/awsmarketplace/SaasUserApi.md | 79 +++ docs/awsmarketplace/SingleTenantApi.md | 234 +++++++++ docs/awsmarketplace/SingleTenantSettings.md | 32 ++ .../UpdateSaasUserAttributesParam.md | 28 ++ .../UpdateSingleTenantSettingsParam.md | 32 ++ docs/awsmarketplace/UserAttributeApi.md | 81 +++- docs/awsmarketplace/UserInfo.md | 1 + docs/billing/Comment.md | 1 - docs/billing/CreateFeedbackCommentParam.md | 1 - docs/billing/SaasUser.md | 1 + docs/billing/SaasUserApi.md | 79 +++ docs/billing/SingleTenantApi.md | 234 +++++++++ docs/billing/SingleTenantSettings.md | 32 ++ docs/billing/UpdateSaasUserAttributesParam.md | 28 ++ .../UpdateSingleTenantSettingsParam.md | 32 ++ docs/billing/UserAttributeApi.md | 81 +++- docs/billing/UserInfo.md | 1 + docs/communication/Comment.md | 1 - .../CreateFeedbackCommentParam.md | 1 - docs/communication/SaasUser.md | 1 + docs/communication/SaasUserApi.md | 79 +++ docs/communication/SingleTenantApi.md | 234 +++++++++ docs/communication/SingleTenantSettings.md | 32 ++ .../UpdateSaasUserAttributesParam.md | 28 ++ .../UpdateSingleTenantSettingsParam.md | 32 ++ docs/communication/UserAttributeApi.md | 81 +++- docs/communication/UserInfo.md | 1 + docs/integration/Comment.md | 1 - .../integration/CreateFeedbackCommentParam.md | 1 - docs/integration/SaasUser.md | 1 + docs/integration/SaasUserApi.md | 79 +++ docs/integration/SingleTenantApi.md | 234 +++++++++ docs/integration/SingleTenantSettings.md | 32 ++ .../UpdateSaasUserAttributesParam.md | 28 ++ .../UpdateSingleTenantSettingsParam.md | 32 ++ docs/integration/UserAttributeApi.md | 81 +++- docs/integration/UserInfo.md | 1 + docs/pricing/Comment.md | 1 - docs/pricing/CreateFeedbackCommentParam.md | 1 - docs/pricing/SaasUser.md | 1 + docs/pricing/SaasUserApi.md | 79 +++ docs/pricing/SingleTenantApi.md | 234 +++++++++ docs/pricing/SingleTenantSettings.md | 32 ++ docs/pricing/UpdateSaasUserAttributesParam.md | 28 ++ .../UpdateSingleTenantSettingsParam.md | 32 ++ docs/pricing/UserAttributeApi.md | 81 +++- docs/pricing/UserInfo.md | 1 + saasus_sdk_python/src/auth/__init__.py | 5 + saasus_sdk_python/src/auth/api/__init__.py | 1 + .../src/auth/api/saas_user_api.py | 153 ++++++ .../src/auth/api/single_tenant_api.py | 452 ++++++++++++++++++ .../src/auth/api/user_attribute_api.py | 151 +++++- saasus_sdk_python/src/auth/models/__init__.py | 4 + .../cloud_formation_launch_stack_link.py | 67 +++ .../src/auth/models/saas_user.py | 8 +- .../src/auth/models/single_tenant_settings.py | 75 +++ .../update_saas_user_attributes_param.py | 67 +++ .../update_single_tenant_settings_param.py | 75 +++ .../src/auth/models/user_info.py | 6 +- .../src/communication/models/comment.py | 4 +- .../models/create_feedback_comment_param.py | 4 +- test/auth/__init__.py | 5 + test/auth/api/__init__.py | 1 + test/auth/api/saas_user_api.py | 153 ++++++ test/auth/api/single_tenant_api.py | 452 ++++++++++++++++++ test/auth/api/user_attribute_api.py | 151 +++++- test/auth/models/__init__.py | 4 + .../cloud_formation_launch_stack_link.py | 67 +++ test/auth/models/saas_user.py | 8 +- test/auth/models/single_tenant_settings.py | 75 +++ .../update_saas_user_attributes_param.py | 67 +++ .../update_single_tenant_settings_param.py | 75 +++ test/auth/models/user_info.py | 6 +- test/communication/models/comment.py | 4 +- .../models/create_feedback_comment_param.py | 4 +- 98 files changed, 5527 insertions(+), 47 deletions(-) create mode 100644 docs/apilog/SingleTenantApi.md create mode 100644 docs/apilog/SingleTenantSettings.md create mode 100644 docs/apilog/UpdateSaasUserAttributesParam.md create mode 100644 docs/apilog/UpdateSingleTenantSettingsParam.md create mode 100644 docs/auth/SingleTenantApi.md create mode 100644 docs/auth/SingleTenantSettings.md create mode 100644 docs/auth/UpdateSaasUserAttributesParam.md create mode 100644 docs/auth/UpdateSingleTenantSettingsParam.md create mode 100644 docs/awsmarketplace/SingleTenantApi.md create mode 100644 docs/awsmarketplace/SingleTenantSettings.md create mode 100644 docs/awsmarketplace/UpdateSaasUserAttributesParam.md create mode 100644 docs/awsmarketplace/UpdateSingleTenantSettingsParam.md create mode 100644 docs/billing/SingleTenantApi.md create mode 100644 docs/billing/SingleTenantSettings.md create mode 100644 docs/billing/UpdateSaasUserAttributesParam.md create mode 100644 docs/billing/UpdateSingleTenantSettingsParam.md create mode 100644 docs/communication/SingleTenantApi.md create mode 100644 docs/communication/SingleTenantSettings.md create mode 100644 docs/communication/UpdateSaasUserAttributesParam.md create mode 100644 docs/communication/UpdateSingleTenantSettingsParam.md create mode 100644 docs/integration/SingleTenantApi.md create mode 100644 docs/integration/SingleTenantSettings.md create mode 100644 docs/integration/UpdateSaasUserAttributesParam.md create mode 100644 docs/integration/UpdateSingleTenantSettingsParam.md create mode 100644 docs/pricing/SingleTenantApi.md create mode 100644 docs/pricing/SingleTenantSettings.md create mode 100644 docs/pricing/UpdateSaasUserAttributesParam.md create mode 100644 docs/pricing/UpdateSingleTenantSettingsParam.md create mode 100644 saasus_sdk_python/src/auth/api/single_tenant_api.py create mode 100644 saasus_sdk_python/src/auth/models/cloud_formation_launch_stack_link.py create mode 100644 saasus_sdk_python/src/auth/models/single_tenant_settings.py create mode 100644 saasus_sdk_python/src/auth/models/update_saas_user_attributes_param.py create mode 100644 saasus_sdk_python/src/auth/models/update_single_tenant_settings_param.py create mode 100644 test/auth/api/single_tenant_api.py create mode 100644 test/auth/models/cloud_formation_launch_stack_link.py create mode 100644 test/auth/models/single_tenant_settings.py create mode 100644 test/auth/models/update_saas_user_attributes_param.py create mode 100644 test/auth/models/update_single_tenant_settings_param.py diff --git a/docs/apilog/Comment.md b/docs/apilog/Comment.md index 83ba72e..7f4be85 100644 --- a/docs/apilog/Comment.md +++ b/docs/apilog/Comment.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**user_id** | **str** | | **created_at** | **int** | | **body** | **str** | | diff --git a/docs/apilog/CreateFeedbackCommentParam.md b/docs/apilog/CreateFeedbackCommentParam.md index 61c2cb4..821a51f 100644 --- a/docs/apilog/CreateFeedbackCommentParam.md +++ b/docs/apilog/CreateFeedbackCommentParam.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **str** | | **body** | **str** | | ## Example diff --git a/docs/apilog/SaasUser.md b/docs/apilog/SaasUser.md index c423356..1ea34ce 100644 --- a/docs/apilog/SaasUser.md +++ b/docs/apilog/SaasUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**attributes** | **Dict[str, object]** | Attribute information | [optional] ## Example diff --git a/docs/apilog/SaasUserApi.md b/docs/apilog/SaasUserApi.md index cd20bd0..9045eb0 100644 --- a/docs/apilog/SaasUserApi.md +++ b/docs/apilog/SaasUserApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**sign_up**](SaasUserApi.md#sign_up) | **POST** /sign-up | Sign Up [**sign_up_with_aws_marketplace**](SaasUserApi.md#sign_up_with_aws_marketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace [**unlink_provider**](SaasUserApi.md#unlink_provider) | **DELETE** /users/{user_id}/providers/{provider_name} | Unlink external identity providers +[**update_saas_user_attributes**](SaasUserApi.md#update_saas_user_attributes) | **PATCH** /users/{user_id}/attributes | Update SaaS User Attributes [**update_saas_user_email**](SaasUserApi.md#update_saas_user_email) | **PATCH** /users/{user_id}/email | Change Email [**update_saas_user_password**](SaasUserApi.md#update_saas_user_password) | **PATCH** /users/{user_id}/password | Change Password [**update_software_token**](SaasUserApi.md#update_software_token) | **PUT** /users/{user_id}/mfa/software-token | Register Authentication Application @@ -1270,6 +1271,84 @@ void (empty response body) [[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_saas_user_attributes** +> update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + +Update SaaS User Attributes + +Update the additional attributes of the SaaS user. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SaasUserApi(api_client) + user_id = 'f94bfffc-8be2-11ec-b41a-0242ac120004' # str | User ID + update_saas_user_attributes_param = saasus_sdk_python.src.auth.UpdateSaasUserAttributesParam() # UpdateSaasUserAttributesParam | (optional) + + try: + # Update SaaS User Attributes + api_instance.update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + except Exception as e: + print("Exception when calling SaasUserApi->update_saas_user_attributes: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| User ID | + **update_saas_user_attributes_param** | [**UpdateSaasUserAttributesParam**](UpdateSaasUserAttributesParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_saas_user_email** > update_saas_user_email(user_id, update_saas_user_email_param=update_saas_user_email_param) diff --git a/docs/apilog/SingleTenantApi.md b/docs/apilog/SingleTenantApi.md new file mode 100644 index 0000000..ecb2008 --- /dev/null +++ b/docs/apilog/SingleTenantApi.md @@ -0,0 +1,234 @@ +# saasus_sdk_python.src.auth.SingleTenantApi + +All URIs are relative to *https://api.saasus.io/v1/auth* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cloud_formation_launch_stack_link_for_single_tenant**](SingleTenantApi.md#get_cloud_formation_launch_stack_link_for_single_tenant) | **GET** /single-tenant/cloudformation-launch-stack-link | Get CloudFormation Stack Launch Link For Single Tenant +[**get_single_tenant_settings**](SingleTenantApi.md#get_single_tenant_settings) | **GET** /single-tenant/settings | Retrieve the settings of the single tenant. +[**update_single_tenant_settings**](SingleTenantApi.md#update_single_tenant_settings) | **PATCH** /single-tenant/settings | Update configuration information for single-tenant functionality + + +# **get_cloud_formation_launch_stack_link_for_single_tenant** +> CloudFormationLaunchStackLink get_cloud_formation_launch_stack_link_for_single_tenant() + +Get CloudFormation Stack Launch Link For Single Tenant + +Get the CloudFormation stack activation link for Single Tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Get CloudFormation Stack Launch Link For Single Tenant + api_response = api_instance.get_cloud_formation_launch_stack_link_for_single_tenant() + print("The response of SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudFormationLaunchStackLink**](CloudFormationLaunchStackLink.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> SingleTenantSettings get_single_tenant_settings() + +Retrieve the settings of the single tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Retrieve the settings of the single tenant. + api_response = api_instance.get_single_tenant_settings() + print("The response of SingleTenantApi->get_single_tenant_settings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SingleTenantSettings**](SingleTenantSettings.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + +Update configuration information for single-tenant functionality + +Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + update_single_tenant_settings_param = saasus_sdk_python.src.auth.UpdateSingleTenantSettingsParam() # UpdateSingleTenantSettingsParam | (optional) + + try: + # Update configuration information for single-tenant functionality + api_instance.update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + except Exception as e: + print("Exception when calling SingleTenantApi->update_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_single_tenant_settings_param** | [**UpdateSingleTenantSettingsParam**](UpdateSingleTenantSettingsParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/apilog/SingleTenantSettings.md b/docs/apilog/SingleTenantSettings.md new file mode 100644 index 0000000..e3550c7 --- /dev/null +++ b/docs/apilog/SingleTenantSettings.md @@ -0,0 +1,32 @@ +# SingleTenantSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | +**cloudformation_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**ddl_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | + +## Example + +```python +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleTenantSettings from a JSON string +single_tenant_settings_instance = SingleTenantSettings.from_json(json) +# print the JSON string representation of the object +print SingleTenantSettings.to_json() + +# convert the object into a dict +single_tenant_settings_dict = single_tenant_settings_instance.to_dict() +# create an instance of SingleTenantSettings from a dict +single_tenant_settings_form_dict = single_tenant_settings.from_dict(single_tenant_settings_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/docs/apilog/UpdateSaasUserAttributesParam.md b/docs/apilog/UpdateSaasUserAttributesParam.md new file mode 100644 index 0000000..1df45c5 --- /dev/null +++ b/docs/apilog/UpdateSaasUserAttributesParam.md @@ -0,0 +1,28 @@ +# UpdateSaasUserAttributesParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **Dict[str, object]** | Attribute information | + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSaasUserAttributesParam from a JSON string +update_saas_user_attributes_param_instance = UpdateSaasUserAttributesParam.from_json(json) +# print the JSON string representation of the object +print UpdateSaasUserAttributesParam.to_json() + +# convert the object into a dict +update_saas_user_attributes_param_dict = update_saas_user_attributes_param_instance.to_dict() +# create an instance of UpdateSaasUserAttributesParam from a dict +update_saas_user_attributes_param_form_dict = update_saas_user_attributes_param.from_dict(update_saas_user_attributes_param_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/docs/apilog/UpdateSingleTenantSettingsParam.md b/docs/apilog/UpdateSingleTenantSettingsParam.md new file mode 100644 index 0000000..a33f463 --- /dev/null +++ b/docs/apilog/UpdateSingleTenantSettingsParam.md @@ -0,0 +1,32 @@ +# UpdateSingleTenantSettingsParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | [optional] +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | [optional] +**cloudformation_template** | **str** | CloudFormation template file | [optional] +**ddl_template** | **str** | ddl file to run in SaaS environment | [optional] +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | [optional] + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSingleTenantSettingsParam from a JSON string +update_single_tenant_settings_param_instance = UpdateSingleTenantSettingsParam.from_json(json) +# print the JSON string representation of the object +print UpdateSingleTenantSettingsParam.to_json() + +# convert the object into a dict +update_single_tenant_settings_param_dict = update_single_tenant_settings_param_instance.to_dict() +# create an instance of UpdateSingleTenantSettingsParam from a dict +update_single_tenant_settings_param_form_dict = update_single_tenant_settings_param.from_dict(update_single_tenant_settings_param_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/docs/apilog/UserAttributeApi.md b/docs/apilog/UserAttributeApi.md index c69803f..2f3a4d8 100644 --- a/docs/apilog/UserAttributeApi.md +++ b/docs/apilog/UserAttributeApi.md @@ -4,17 +4,96 @@ All URIs are relative to *https://api.saasus.io/v1/auth* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_saas_user_attribute**](UserAttributeApi.md#create_saas_user_attribute) | **POST** /saas-user-attributes | Create SaaS User Attributes [**create_user_attribute**](UserAttributeApi.md#create_user_attribute) | **POST** /user-attributes | Create User Attributes [**delete_user_attribute**](UserAttributeApi.md#delete_user_attribute) | **DELETE** /user-attributes/{attribute_name} | Delete User Attribute [**get_user_attributes**](UserAttributeApi.md#get_user_attributes) | **GET** /user-attributes | Get User Attributes +# **create_saas_user_attribute** +> Attribute create_saas_user_attribute(body=body) + +Create SaaS User Attributes + +Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.attribute import Attribute +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.UserAttributeApi(api_client) + body = saasus_sdk_python.src.auth.Attribute() # Attribute | (optional) + + try: + # Create SaaS User Attributes + api_response = api_instance.create_saas_user_attribute(body=body) + print("The response of UserAttributeApi->create_saas_user_attribute:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserAttributeApi->create_saas_user_attribute: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **Attribute**| | [optional] + +### Return type + +[**Attribute**](Attribute.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**500** | Internal Server Error | - | + +[[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) + # **create_user_attribute** > Attribute create_user_attribute(body=body) Create User Attributes -Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. +Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. ### Example diff --git a/docs/apilog/UserInfo.md b/docs/apilog/UserInfo.md index d9b6fb4..39c4f3a 100644 --- a/docs/apilog/UserInfo.md +++ b/docs/apilog/UserInfo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**user_attribute** | **Dict[str, object]** | user additional attributes | **tenants** | [**List[UserAvailableTenant]**](UserAvailableTenant.md) | Tenant Info | ## Example diff --git a/docs/auth/Comment.md b/docs/auth/Comment.md index 83ba72e..7f4be85 100644 --- a/docs/auth/Comment.md +++ b/docs/auth/Comment.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**user_id** | **str** | | **created_at** | **int** | | **body** | **str** | | diff --git a/docs/auth/CreateFeedbackCommentParam.md b/docs/auth/CreateFeedbackCommentParam.md index 61c2cb4..821a51f 100644 --- a/docs/auth/CreateFeedbackCommentParam.md +++ b/docs/auth/CreateFeedbackCommentParam.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **str** | | **body** | **str** | | ## Example diff --git a/docs/auth/SaasUser.md b/docs/auth/SaasUser.md index c423356..1ea34ce 100644 --- a/docs/auth/SaasUser.md +++ b/docs/auth/SaasUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**attributes** | **Dict[str, object]** | Attribute information | [optional] ## Example diff --git a/docs/auth/SaasUserApi.md b/docs/auth/SaasUserApi.md index cd20bd0..9045eb0 100644 --- a/docs/auth/SaasUserApi.md +++ b/docs/auth/SaasUserApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**sign_up**](SaasUserApi.md#sign_up) | **POST** /sign-up | Sign Up [**sign_up_with_aws_marketplace**](SaasUserApi.md#sign_up_with_aws_marketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace [**unlink_provider**](SaasUserApi.md#unlink_provider) | **DELETE** /users/{user_id}/providers/{provider_name} | Unlink external identity providers +[**update_saas_user_attributes**](SaasUserApi.md#update_saas_user_attributes) | **PATCH** /users/{user_id}/attributes | Update SaaS User Attributes [**update_saas_user_email**](SaasUserApi.md#update_saas_user_email) | **PATCH** /users/{user_id}/email | Change Email [**update_saas_user_password**](SaasUserApi.md#update_saas_user_password) | **PATCH** /users/{user_id}/password | Change Password [**update_software_token**](SaasUserApi.md#update_software_token) | **PUT** /users/{user_id}/mfa/software-token | Register Authentication Application @@ -1270,6 +1271,84 @@ void (empty response body) [[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_saas_user_attributes** +> update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + +Update SaaS User Attributes + +Update the additional attributes of the SaaS user. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SaasUserApi(api_client) + user_id = 'f94bfffc-8be2-11ec-b41a-0242ac120004' # str | User ID + update_saas_user_attributes_param = saasus_sdk_python.src.auth.UpdateSaasUserAttributesParam() # UpdateSaasUserAttributesParam | (optional) + + try: + # Update SaaS User Attributes + api_instance.update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + except Exception as e: + print("Exception when calling SaasUserApi->update_saas_user_attributes: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| User ID | + **update_saas_user_attributes_param** | [**UpdateSaasUserAttributesParam**](UpdateSaasUserAttributesParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_saas_user_email** > update_saas_user_email(user_id, update_saas_user_email_param=update_saas_user_email_param) diff --git a/docs/auth/SingleTenantApi.md b/docs/auth/SingleTenantApi.md new file mode 100644 index 0000000..ecb2008 --- /dev/null +++ b/docs/auth/SingleTenantApi.md @@ -0,0 +1,234 @@ +# saasus_sdk_python.src.auth.SingleTenantApi + +All URIs are relative to *https://api.saasus.io/v1/auth* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cloud_formation_launch_stack_link_for_single_tenant**](SingleTenantApi.md#get_cloud_formation_launch_stack_link_for_single_tenant) | **GET** /single-tenant/cloudformation-launch-stack-link | Get CloudFormation Stack Launch Link For Single Tenant +[**get_single_tenant_settings**](SingleTenantApi.md#get_single_tenant_settings) | **GET** /single-tenant/settings | Retrieve the settings of the single tenant. +[**update_single_tenant_settings**](SingleTenantApi.md#update_single_tenant_settings) | **PATCH** /single-tenant/settings | Update configuration information for single-tenant functionality + + +# **get_cloud_formation_launch_stack_link_for_single_tenant** +> CloudFormationLaunchStackLink get_cloud_formation_launch_stack_link_for_single_tenant() + +Get CloudFormation Stack Launch Link For Single Tenant + +Get the CloudFormation stack activation link for Single Tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Get CloudFormation Stack Launch Link For Single Tenant + api_response = api_instance.get_cloud_formation_launch_stack_link_for_single_tenant() + print("The response of SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudFormationLaunchStackLink**](CloudFormationLaunchStackLink.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> SingleTenantSettings get_single_tenant_settings() + +Retrieve the settings of the single tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Retrieve the settings of the single tenant. + api_response = api_instance.get_single_tenant_settings() + print("The response of SingleTenantApi->get_single_tenant_settings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SingleTenantSettings**](SingleTenantSettings.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + +Update configuration information for single-tenant functionality + +Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + update_single_tenant_settings_param = saasus_sdk_python.src.auth.UpdateSingleTenantSettingsParam() # UpdateSingleTenantSettingsParam | (optional) + + try: + # Update configuration information for single-tenant functionality + api_instance.update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + except Exception as e: + print("Exception when calling SingleTenantApi->update_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_single_tenant_settings_param** | [**UpdateSingleTenantSettingsParam**](UpdateSingleTenantSettingsParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/auth/SingleTenantSettings.md b/docs/auth/SingleTenantSettings.md new file mode 100644 index 0000000..e3550c7 --- /dev/null +++ b/docs/auth/SingleTenantSettings.md @@ -0,0 +1,32 @@ +# SingleTenantSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | +**cloudformation_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**ddl_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | + +## Example + +```python +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleTenantSettings from a JSON string +single_tenant_settings_instance = SingleTenantSettings.from_json(json) +# print the JSON string representation of the object +print SingleTenantSettings.to_json() + +# convert the object into a dict +single_tenant_settings_dict = single_tenant_settings_instance.to_dict() +# create an instance of SingleTenantSettings from a dict +single_tenant_settings_form_dict = single_tenant_settings.from_dict(single_tenant_settings_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/docs/auth/UpdateSaasUserAttributesParam.md b/docs/auth/UpdateSaasUserAttributesParam.md new file mode 100644 index 0000000..1df45c5 --- /dev/null +++ b/docs/auth/UpdateSaasUserAttributesParam.md @@ -0,0 +1,28 @@ +# UpdateSaasUserAttributesParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **Dict[str, object]** | Attribute information | + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSaasUserAttributesParam from a JSON string +update_saas_user_attributes_param_instance = UpdateSaasUserAttributesParam.from_json(json) +# print the JSON string representation of the object +print UpdateSaasUserAttributesParam.to_json() + +# convert the object into a dict +update_saas_user_attributes_param_dict = update_saas_user_attributes_param_instance.to_dict() +# create an instance of UpdateSaasUserAttributesParam from a dict +update_saas_user_attributes_param_form_dict = update_saas_user_attributes_param.from_dict(update_saas_user_attributes_param_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/docs/auth/UpdateSingleTenantSettingsParam.md b/docs/auth/UpdateSingleTenantSettingsParam.md new file mode 100644 index 0000000..a33f463 --- /dev/null +++ b/docs/auth/UpdateSingleTenantSettingsParam.md @@ -0,0 +1,32 @@ +# UpdateSingleTenantSettingsParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | [optional] +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | [optional] +**cloudformation_template** | **str** | CloudFormation template file | [optional] +**ddl_template** | **str** | ddl file to run in SaaS environment | [optional] +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | [optional] + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSingleTenantSettingsParam from a JSON string +update_single_tenant_settings_param_instance = UpdateSingleTenantSettingsParam.from_json(json) +# print the JSON string representation of the object +print UpdateSingleTenantSettingsParam.to_json() + +# convert the object into a dict +update_single_tenant_settings_param_dict = update_single_tenant_settings_param_instance.to_dict() +# create an instance of UpdateSingleTenantSettingsParam from a dict +update_single_tenant_settings_param_form_dict = update_single_tenant_settings_param.from_dict(update_single_tenant_settings_param_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/docs/auth/UserAttributeApi.md b/docs/auth/UserAttributeApi.md index c69803f..2f3a4d8 100644 --- a/docs/auth/UserAttributeApi.md +++ b/docs/auth/UserAttributeApi.md @@ -4,17 +4,96 @@ All URIs are relative to *https://api.saasus.io/v1/auth* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_saas_user_attribute**](UserAttributeApi.md#create_saas_user_attribute) | **POST** /saas-user-attributes | Create SaaS User Attributes [**create_user_attribute**](UserAttributeApi.md#create_user_attribute) | **POST** /user-attributes | Create User Attributes [**delete_user_attribute**](UserAttributeApi.md#delete_user_attribute) | **DELETE** /user-attributes/{attribute_name} | Delete User Attribute [**get_user_attributes**](UserAttributeApi.md#get_user_attributes) | **GET** /user-attributes | Get User Attributes +# **create_saas_user_attribute** +> Attribute create_saas_user_attribute(body=body) + +Create SaaS User Attributes + +Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.attribute import Attribute +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.UserAttributeApi(api_client) + body = saasus_sdk_python.src.auth.Attribute() # Attribute | (optional) + + try: + # Create SaaS User Attributes + api_response = api_instance.create_saas_user_attribute(body=body) + print("The response of UserAttributeApi->create_saas_user_attribute:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserAttributeApi->create_saas_user_attribute: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **Attribute**| | [optional] + +### Return type + +[**Attribute**](Attribute.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**500** | Internal Server Error | - | + +[[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) + # **create_user_attribute** > Attribute create_user_attribute(body=body) Create User Attributes -Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. +Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. ### Example diff --git a/docs/auth/UserInfo.md b/docs/auth/UserInfo.md index d9b6fb4..39c4f3a 100644 --- a/docs/auth/UserInfo.md +++ b/docs/auth/UserInfo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**user_attribute** | **Dict[str, object]** | user additional attributes | **tenants** | [**List[UserAvailableTenant]**](UserAvailableTenant.md) | Tenant Info | ## Example diff --git a/docs/awsmarketplace/Comment.md b/docs/awsmarketplace/Comment.md index 83ba72e..7f4be85 100644 --- a/docs/awsmarketplace/Comment.md +++ b/docs/awsmarketplace/Comment.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**user_id** | **str** | | **created_at** | **int** | | **body** | **str** | | diff --git a/docs/awsmarketplace/CreateFeedbackCommentParam.md b/docs/awsmarketplace/CreateFeedbackCommentParam.md index 61c2cb4..821a51f 100644 --- a/docs/awsmarketplace/CreateFeedbackCommentParam.md +++ b/docs/awsmarketplace/CreateFeedbackCommentParam.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **str** | | **body** | **str** | | ## Example diff --git a/docs/awsmarketplace/SaasUser.md b/docs/awsmarketplace/SaasUser.md index c423356..1ea34ce 100644 --- a/docs/awsmarketplace/SaasUser.md +++ b/docs/awsmarketplace/SaasUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**attributes** | **Dict[str, object]** | Attribute information | [optional] ## Example diff --git a/docs/awsmarketplace/SaasUserApi.md b/docs/awsmarketplace/SaasUserApi.md index cd20bd0..9045eb0 100644 --- a/docs/awsmarketplace/SaasUserApi.md +++ b/docs/awsmarketplace/SaasUserApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**sign_up**](SaasUserApi.md#sign_up) | **POST** /sign-up | Sign Up [**sign_up_with_aws_marketplace**](SaasUserApi.md#sign_up_with_aws_marketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace [**unlink_provider**](SaasUserApi.md#unlink_provider) | **DELETE** /users/{user_id}/providers/{provider_name} | Unlink external identity providers +[**update_saas_user_attributes**](SaasUserApi.md#update_saas_user_attributes) | **PATCH** /users/{user_id}/attributes | Update SaaS User Attributes [**update_saas_user_email**](SaasUserApi.md#update_saas_user_email) | **PATCH** /users/{user_id}/email | Change Email [**update_saas_user_password**](SaasUserApi.md#update_saas_user_password) | **PATCH** /users/{user_id}/password | Change Password [**update_software_token**](SaasUserApi.md#update_software_token) | **PUT** /users/{user_id}/mfa/software-token | Register Authentication Application @@ -1270,6 +1271,84 @@ void (empty response body) [[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_saas_user_attributes** +> update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + +Update SaaS User Attributes + +Update the additional attributes of the SaaS user. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SaasUserApi(api_client) + user_id = 'f94bfffc-8be2-11ec-b41a-0242ac120004' # str | User ID + update_saas_user_attributes_param = saasus_sdk_python.src.auth.UpdateSaasUserAttributesParam() # UpdateSaasUserAttributesParam | (optional) + + try: + # Update SaaS User Attributes + api_instance.update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + except Exception as e: + print("Exception when calling SaasUserApi->update_saas_user_attributes: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| User ID | + **update_saas_user_attributes_param** | [**UpdateSaasUserAttributesParam**](UpdateSaasUserAttributesParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_saas_user_email** > update_saas_user_email(user_id, update_saas_user_email_param=update_saas_user_email_param) diff --git a/docs/awsmarketplace/SingleTenantApi.md b/docs/awsmarketplace/SingleTenantApi.md new file mode 100644 index 0000000..ecb2008 --- /dev/null +++ b/docs/awsmarketplace/SingleTenantApi.md @@ -0,0 +1,234 @@ +# saasus_sdk_python.src.auth.SingleTenantApi + +All URIs are relative to *https://api.saasus.io/v1/auth* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cloud_formation_launch_stack_link_for_single_tenant**](SingleTenantApi.md#get_cloud_formation_launch_stack_link_for_single_tenant) | **GET** /single-tenant/cloudformation-launch-stack-link | Get CloudFormation Stack Launch Link For Single Tenant +[**get_single_tenant_settings**](SingleTenantApi.md#get_single_tenant_settings) | **GET** /single-tenant/settings | Retrieve the settings of the single tenant. +[**update_single_tenant_settings**](SingleTenantApi.md#update_single_tenant_settings) | **PATCH** /single-tenant/settings | Update configuration information for single-tenant functionality + + +# **get_cloud_formation_launch_stack_link_for_single_tenant** +> CloudFormationLaunchStackLink get_cloud_formation_launch_stack_link_for_single_tenant() + +Get CloudFormation Stack Launch Link For Single Tenant + +Get the CloudFormation stack activation link for Single Tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Get CloudFormation Stack Launch Link For Single Tenant + api_response = api_instance.get_cloud_formation_launch_stack_link_for_single_tenant() + print("The response of SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudFormationLaunchStackLink**](CloudFormationLaunchStackLink.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> SingleTenantSettings get_single_tenant_settings() + +Retrieve the settings of the single tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Retrieve the settings of the single tenant. + api_response = api_instance.get_single_tenant_settings() + print("The response of SingleTenantApi->get_single_tenant_settings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SingleTenantSettings**](SingleTenantSettings.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + +Update configuration information for single-tenant functionality + +Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + update_single_tenant_settings_param = saasus_sdk_python.src.auth.UpdateSingleTenantSettingsParam() # UpdateSingleTenantSettingsParam | (optional) + + try: + # Update configuration information for single-tenant functionality + api_instance.update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + except Exception as e: + print("Exception when calling SingleTenantApi->update_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_single_tenant_settings_param** | [**UpdateSingleTenantSettingsParam**](UpdateSingleTenantSettingsParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/awsmarketplace/SingleTenantSettings.md b/docs/awsmarketplace/SingleTenantSettings.md new file mode 100644 index 0000000..e3550c7 --- /dev/null +++ b/docs/awsmarketplace/SingleTenantSettings.md @@ -0,0 +1,32 @@ +# SingleTenantSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | +**cloudformation_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**ddl_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | + +## Example + +```python +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleTenantSettings from a JSON string +single_tenant_settings_instance = SingleTenantSettings.from_json(json) +# print the JSON string representation of the object +print SingleTenantSettings.to_json() + +# convert the object into a dict +single_tenant_settings_dict = single_tenant_settings_instance.to_dict() +# create an instance of SingleTenantSettings from a dict +single_tenant_settings_form_dict = single_tenant_settings.from_dict(single_tenant_settings_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/docs/awsmarketplace/UpdateSaasUserAttributesParam.md b/docs/awsmarketplace/UpdateSaasUserAttributesParam.md new file mode 100644 index 0000000..1df45c5 --- /dev/null +++ b/docs/awsmarketplace/UpdateSaasUserAttributesParam.md @@ -0,0 +1,28 @@ +# UpdateSaasUserAttributesParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **Dict[str, object]** | Attribute information | + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSaasUserAttributesParam from a JSON string +update_saas_user_attributes_param_instance = UpdateSaasUserAttributesParam.from_json(json) +# print the JSON string representation of the object +print UpdateSaasUserAttributesParam.to_json() + +# convert the object into a dict +update_saas_user_attributes_param_dict = update_saas_user_attributes_param_instance.to_dict() +# create an instance of UpdateSaasUserAttributesParam from a dict +update_saas_user_attributes_param_form_dict = update_saas_user_attributes_param.from_dict(update_saas_user_attributes_param_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/docs/awsmarketplace/UpdateSingleTenantSettingsParam.md b/docs/awsmarketplace/UpdateSingleTenantSettingsParam.md new file mode 100644 index 0000000..a33f463 --- /dev/null +++ b/docs/awsmarketplace/UpdateSingleTenantSettingsParam.md @@ -0,0 +1,32 @@ +# UpdateSingleTenantSettingsParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | [optional] +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | [optional] +**cloudformation_template** | **str** | CloudFormation template file | [optional] +**ddl_template** | **str** | ddl file to run in SaaS environment | [optional] +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | [optional] + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSingleTenantSettingsParam from a JSON string +update_single_tenant_settings_param_instance = UpdateSingleTenantSettingsParam.from_json(json) +# print the JSON string representation of the object +print UpdateSingleTenantSettingsParam.to_json() + +# convert the object into a dict +update_single_tenant_settings_param_dict = update_single_tenant_settings_param_instance.to_dict() +# create an instance of UpdateSingleTenantSettingsParam from a dict +update_single_tenant_settings_param_form_dict = update_single_tenant_settings_param.from_dict(update_single_tenant_settings_param_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/docs/awsmarketplace/UserAttributeApi.md b/docs/awsmarketplace/UserAttributeApi.md index c69803f..2f3a4d8 100644 --- a/docs/awsmarketplace/UserAttributeApi.md +++ b/docs/awsmarketplace/UserAttributeApi.md @@ -4,17 +4,96 @@ All URIs are relative to *https://api.saasus.io/v1/auth* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_saas_user_attribute**](UserAttributeApi.md#create_saas_user_attribute) | **POST** /saas-user-attributes | Create SaaS User Attributes [**create_user_attribute**](UserAttributeApi.md#create_user_attribute) | **POST** /user-attributes | Create User Attributes [**delete_user_attribute**](UserAttributeApi.md#delete_user_attribute) | **DELETE** /user-attributes/{attribute_name} | Delete User Attribute [**get_user_attributes**](UserAttributeApi.md#get_user_attributes) | **GET** /user-attributes | Get User Attributes +# **create_saas_user_attribute** +> Attribute create_saas_user_attribute(body=body) + +Create SaaS User Attributes + +Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.attribute import Attribute +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.UserAttributeApi(api_client) + body = saasus_sdk_python.src.auth.Attribute() # Attribute | (optional) + + try: + # Create SaaS User Attributes + api_response = api_instance.create_saas_user_attribute(body=body) + print("The response of UserAttributeApi->create_saas_user_attribute:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserAttributeApi->create_saas_user_attribute: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **Attribute**| | [optional] + +### Return type + +[**Attribute**](Attribute.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**500** | Internal Server Error | - | + +[[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) + # **create_user_attribute** > Attribute create_user_attribute(body=body) Create User Attributes -Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. +Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. ### Example diff --git a/docs/awsmarketplace/UserInfo.md b/docs/awsmarketplace/UserInfo.md index d9b6fb4..39c4f3a 100644 --- a/docs/awsmarketplace/UserInfo.md +++ b/docs/awsmarketplace/UserInfo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**user_attribute** | **Dict[str, object]** | user additional attributes | **tenants** | [**List[UserAvailableTenant]**](UserAvailableTenant.md) | Tenant Info | ## Example diff --git a/docs/billing/Comment.md b/docs/billing/Comment.md index 83ba72e..7f4be85 100644 --- a/docs/billing/Comment.md +++ b/docs/billing/Comment.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**user_id** | **str** | | **created_at** | **int** | | **body** | **str** | | diff --git a/docs/billing/CreateFeedbackCommentParam.md b/docs/billing/CreateFeedbackCommentParam.md index 61c2cb4..821a51f 100644 --- a/docs/billing/CreateFeedbackCommentParam.md +++ b/docs/billing/CreateFeedbackCommentParam.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **str** | | **body** | **str** | | ## Example diff --git a/docs/billing/SaasUser.md b/docs/billing/SaasUser.md index c423356..1ea34ce 100644 --- a/docs/billing/SaasUser.md +++ b/docs/billing/SaasUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**attributes** | **Dict[str, object]** | Attribute information | [optional] ## Example diff --git a/docs/billing/SaasUserApi.md b/docs/billing/SaasUserApi.md index cd20bd0..9045eb0 100644 --- a/docs/billing/SaasUserApi.md +++ b/docs/billing/SaasUserApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**sign_up**](SaasUserApi.md#sign_up) | **POST** /sign-up | Sign Up [**sign_up_with_aws_marketplace**](SaasUserApi.md#sign_up_with_aws_marketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace [**unlink_provider**](SaasUserApi.md#unlink_provider) | **DELETE** /users/{user_id}/providers/{provider_name} | Unlink external identity providers +[**update_saas_user_attributes**](SaasUserApi.md#update_saas_user_attributes) | **PATCH** /users/{user_id}/attributes | Update SaaS User Attributes [**update_saas_user_email**](SaasUserApi.md#update_saas_user_email) | **PATCH** /users/{user_id}/email | Change Email [**update_saas_user_password**](SaasUserApi.md#update_saas_user_password) | **PATCH** /users/{user_id}/password | Change Password [**update_software_token**](SaasUserApi.md#update_software_token) | **PUT** /users/{user_id}/mfa/software-token | Register Authentication Application @@ -1270,6 +1271,84 @@ void (empty response body) [[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_saas_user_attributes** +> update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + +Update SaaS User Attributes + +Update the additional attributes of the SaaS user. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SaasUserApi(api_client) + user_id = 'f94bfffc-8be2-11ec-b41a-0242ac120004' # str | User ID + update_saas_user_attributes_param = saasus_sdk_python.src.auth.UpdateSaasUserAttributesParam() # UpdateSaasUserAttributesParam | (optional) + + try: + # Update SaaS User Attributes + api_instance.update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + except Exception as e: + print("Exception when calling SaasUserApi->update_saas_user_attributes: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| User ID | + **update_saas_user_attributes_param** | [**UpdateSaasUserAttributesParam**](UpdateSaasUserAttributesParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_saas_user_email** > update_saas_user_email(user_id, update_saas_user_email_param=update_saas_user_email_param) diff --git a/docs/billing/SingleTenantApi.md b/docs/billing/SingleTenantApi.md new file mode 100644 index 0000000..ecb2008 --- /dev/null +++ b/docs/billing/SingleTenantApi.md @@ -0,0 +1,234 @@ +# saasus_sdk_python.src.auth.SingleTenantApi + +All URIs are relative to *https://api.saasus.io/v1/auth* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cloud_formation_launch_stack_link_for_single_tenant**](SingleTenantApi.md#get_cloud_formation_launch_stack_link_for_single_tenant) | **GET** /single-tenant/cloudformation-launch-stack-link | Get CloudFormation Stack Launch Link For Single Tenant +[**get_single_tenant_settings**](SingleTenantApi.md#get_single_tenant_settings) | **GET** /single-tenant/settings | Retrieve the settings of the single tenant. +[**update_single_tenant_settings**](SingleTenantApi.md#update_single_tenant_settings) | **PATCH** /single-tenant/settings | Update configuration information for single-tenant functionality + + +# **get_cloud_formation_launch_stack_link_for_single_tenant** +> CloudFormationLaunchStackLink get_cloud_formation_launch_stack_link_for_single_tenant() + +Get CloudFormation Stack Launch Link For Single Tenant + +Get the CloudFormation stack activation link for Single Tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Get CloudFormation Stack Launch Link For Single Tenant + api_response = api_instance.get_cloud_formation_launch_stack_link_for_single_tenant() + print("The response of SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudFormationLaunchStackLink**](CloudFormationLaunchStackLink.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> SingleTenantSettings get_single_tenant_settings() + +Retrieve the settings of the single tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Retrieve the settings of the single tenant. + api_response = api_instance.get_single_tenant_settings() + print("The response of SingleTenantApi->get_single_tenant_settings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SingleTenantSettings**](SingleTenantSettings.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + +Update configuration information for single-tenant functionality + +Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + update_single_tenant_settings_param = saasus_sdk_python.src.auth.UpdateSingleTenantSettingsParam() # UpdateSingleTenantSettingsParam | (optional) + + try: + # Update configuration information for single-tenant functionality + api_instance.update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + except Exception as e: + print("Exception when calling SingleTenantApi->update_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_single_tenant_settings_param** | [**UpdateSingleTenantSettingsParam**](UpdateSingleTenantSettingsParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/billing/SingleTenantSettings.md b/docs/billing/SingleTenantSettings.md new file mode 100644 index 0000000..e3550c7 --- /dev/null +++ b/docs/billing/SingleTenantSettings.md @@ -0,0 +1,32 @@ +# SingleTenantSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | +**cloudformation_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**ddl_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | + +## Example + +```python +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleTenantSettings from a JSON string +single_tenant_settings_instance = SingleTenantSettings.from_json(json) +# print the JSON string representation of the object +print SingleTenantSettings.to_json() + +# convert the object into a dict +single_tenant_settings_dict = single_tenant_settings_instance.to_dict() +# create an instance of SingleTenantSettings from a dict +single_tenant_settings_form_dict = single_tenant_settings.from_dict(single_tenant_settings_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/docs/billing/UpdateSaasUserAttributesParam.md b/docs/billing/UpdateSaasUserAttributesParam.md new file mode 100644 index 0000000..1df45c5 --- /dev/null +++ b/docs/billing/UpdateSaasUserAttributesParam.md @@ -0,0 +1,28 @@ +# UpdateSaasUserAttributesParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **Dict[str, object]** | Attribute information | + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSaasUserAttributesParam from a JSON string +update_saas_user_attributes_param_instance = UpdateSaasUserAttributesParam.from_json(json) +# print the JSON string representation of the object +print UpdateSaasUserAttributesParam.to_json() + +# convert the object into a dict +update_saas_user_attributes_param_dict = update_saas_user_attributes_param_instance.to_dict() +# create an instance of UpdateSaasUserAttributesParam from a dict +update_saas_user_attributes_param_form_dict = update_saas_user_attributes_param.from_dict(update_saas_user_attributes_param_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/docs/billing/UpdateSingleTenantSettingsParam.md b/docs/billing/UpdateSingleTenantSettingsParam.md new file mode 100644 index 0000000..a33f463 --- /dev/null +++ b/docs/billing/UpdateSingleTenantSettingsParam.md @@ -0,0 +1,32 @@ +# UpdateSingleTenantSettingsParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | [optional] +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | [optional] +**cloudformation_template** | **str** | CloudFormation template file | [optional] +**ddl_template** | **str** | ddl file to run in SaaS environment | [optional] +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | [optional] + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSingleTenantSettingsParam from a JSON string +update_single_tenant_settings_param_instance = UpdateSingleTenantSettingsParam.from_json(json) +# print the JSON string representation of the object +print UpdateSingleTenantSettingsParam.to_json() + +# convert the object into a dict +update_single_tenant_settings_param_dict = update_single_tenant_settings_param_instance.to_dict() +# create an instance of UpdateSingleTenantSettingsParam from a dict +update_single_tenant_settings_param_form_dict = update_single_tenant_settings_param.from_dict(update_single_tenant_settings_param_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/docs/billing/UserAttributeApi.md b/docs/billing/UserAttributeApi.md index c69803f..2f3a4d8 100644 --- a/docs/billing/UserAttributeApi.md +++ b/docs/billing/UserAttributeApi.md @@ -4,17 +4,96 @@ All URIs are relative to *https://api.saasus.io/v1/auth* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_saas_user_attribute**](UserAttributeApi.md#create_saas_user_attribute) | **POST** /saas-user-attributes | Create SaaS User Attributes [**create_user_attribute**](UserAttributeApi.md#create_user_attribute) | **POST** /user-attributes | Create User Attributes [**delete_user_attribute**](UserAttributeApi.md#delete_user_attribute) | **DELETE** /user-attributes/{attribute_name} | Delete User Attribute [**get_user_attributes**](UserAttributeApi.md#get_user_attributes) | **GET** /user-attributes | Get User Attributes +# **create_saas_user_attribute** +> Attribute create_saas_user_attribute(body=body) + +Create SaaS User Attributes + +Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.attribute import Attribute +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.UserAttributeApi(api_client) + body = saasus_sdk_python.src.auth.Attribute() # Attribute | (optional) + + try: + # Create SaaS User Attributes + api_response = api_instance.create_saas_user_attribute(body=body) + print("The response of UserAttributeApi->create_saas_user_attribute:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserAttributeApi->create_saas_user_attribute: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **Attribute**| | [optional] + +### Return type + +[**Attribute**](Attribute.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**500** | Internal Server Error | - | + +[[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) + # **create_user_attribute** > Attribute create_user_attribute(body=body) Create User Attributes -Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. +Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. ### Example diff --git a/docs/billing/UserInfo.md b/docs/billing/UserInfo.md index d9b6fb4..39c4f3a 100644 --- a/docs/billing/UserInfo.md +++ b/docs/billing/UserInfo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**user_attribute** | **Dict[str, object]** | user additional attributes | **tenants** | [**List[UserAvailableTenant]**](UserAvailableTenant.md) | Tenant Info | ## Example diff --git a/docs/communication/Comment.md b/docs/communication/Comment.md index 83ba72e..7f4be85 100644 --- a/docs/communication/Comment.md +++ b/docs/communication/Comment.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**user_id** | **str** | | **created_at** | **int** | | **body** | **str** | | diff --git a/docs/communication/CreateFeedbackCommentParam.md b/docs/communication/CreateFeedbackCommentParam.md index 61c2cb4..821a51f 100644 --- a/docs/communication/CreateFeedbackCommentParam.md +++ b/docs/communication/CreateFeedbackCommentParam.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **str** | | **body** | **str** | | ## Example diff --git a/docs/communication/SaasUser.md b/docs/communication/SaasUser.md index c423356..1ea34ce 100644 --- a/docs/communication/SaasUser.md +++ b/docs/communication/SaasUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**attributes** | **Dict[str, object]** | Attribute information | [optional] ## Example diff --git a/docs/communication/SaasUserApi.md b/docs/communication/SaasUserApi.md index cd20bd0..9045eb0 100644 --- a/docs/communication/SaasUserApi.md +++ b/docs/communication/SaasUserApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**sign_up**](SaasUserApi.md#sign_up) | **POST** /sign-up | Sign Up [**sign_up_with_aws_marketplace**](SaasUserApi.md#sign_up_with_aws_marketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace [**unlink_provider**](SaasUserApi.md#unlink_provider) | **DELETE** /users/{user_id}/providers/{provider_name} | Unlink external identity providers +[**update_saas_user_attributes**](SaasUserApi.md#update_saas_user_attributes) | **PATCH** /users/{user_id}/attributes | Update SaaS User Attributes [**update_saas_user_email**](SaasUserApi.md#update_saas_user_email) | **PATCH** /users/{user_id}/email | Change Email [**update_saas_user_password**](SaasUserApi.md#update_saas_user_password) | **PATCH** /users/{user_id}/password | Change Password [**update_software_token**](SaasUserApi.md#update_software_token) | **PUT** /users/{user_id}/mfa/software-token | Register Authentication Application @@ -1270,6 +1271,84 @@ void (empty response body) [[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_saas_user_attributes** +> update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + +Update SaaS User Attributes + +Update the additional attributes of the SaaS user. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SaasUserApi(api_client) + user_id = 'f94bfffc-8be2-11ec-b41a-0242ac120004' # str | User ID + update_saas_user_attributes_param = saasus_sdk_python.src.auth.UpdateSaasUserAttributesParam() # UpdateSaasUserAttributesParam | (optional) + + try: + # Update SaaS User Attributes + api_instance.update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + except Exception as e: + print("Exception when calling SaasUserApi->update_saas_user_attributes: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| User ID | + **update_saas_user_attributes_param** | [**UpdateSaasUserAttributesParam**](UpdateSaasUserAttributesParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_saas_user_email** > update_saas_user_email(user_id, update_saas_user_email_param=update_saas_user_email_param) diff --git a/docs/communication/SingleTenantApi.md b/docs/communication/SingleTenantApi.md new file mode 100644 index 0000000..ecb2008 --- /dev/null +++ b/docs/communication/SingleTenantApi.md @@ -0,0 +1,234 @@ +# saasus_sdk_python.src.auth.SingleTenantApi + +All URIs are relative to *https://api.saasus.io/v1/auth* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cloud_formation_launch_stack_link_for_single_tenant**](SingleTenantApi.md#get_cloud_formation_launch_stack_link_for_single_tenant) | **GET** /single-tenant/cloudformation-launch-stack-link | Get CloudFormation Stack Launch Link For Single Tenant +[**get_single_tenant_settings**](SingleTenantApi.md#get_single_tenant_settings) | **GET** /single-tenant/settings | Retrieve the settings of the single tenant. +[**update_single_tenant_settings**](SingleTenantApi.md#update_single_tenant_settings) | **PATCH** /single-tenant/settings | Update configuration information for single-tenant functionality + + +# **get_cloud_formation_launch_stack_link_for_single_tenant** +> CloudFormationLaunchStackLink get_cloud_formation_launch_stack_link_for_single_tenant() + +Get CloudFormation Stack Launch Link For Single Tenant + +Get the CloudFormation stack activation link for Single Tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Get CloudFormation Stack Launch Link For Single Tenant + api_response = api_instance.get_cloud_formation_launch_stack_link_for_single_tenant() + print("The response of SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudFormationLaunchStackLink**](CloudFormationLaunchStackLink.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> SingleTenantSettings get_single_tenant_settings() + +Retrieve the settings of the single tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Retrieve the settings of the single tenant. + api_response = api_instance.get_single_tenant_settings() + print("The response of SingleTenantApi->get_single_tenant_settings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SingleTenantSettings**](SingleTenantSettings.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + +Update configuration information for single-tenant functionality + +Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + update_single_tenant_settings_param = saasus_sdk_python.src.auth.UpdateSingleTenantSettingsParam() # UpdateSingleTenantSettingsParam | (optional) + + try: + # Update configuration information for single-tenant functionality + api_instance.update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + except Exception as e: + print("Exception when calling SingleTenantApi->update_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_single_tenant_settings_param** | [**UpdateSingleTenantSettingsParam**](UpdateSingleTenantSettingsParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/communication/SingleTenantSettings.md b/docs/communication/SingleTenantSettings.md new file mode 100644 index 0000000..e3550c7 --- /dev/null +++ b/docs/communication/SingleTenantSettings.md @@ -0,0 +1,32 @@ +# SingleTenantSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | +**cloudformation_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**ddl_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | + +## Example + +```python +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleTenantSettings from a JSON string +single_tenant_settings_instance = SingleTenantSettings.from_json(json) +# print the JSON string representation of the object +print SingleTenantSettings.to_json() + +# convert the object into a dict +single_tenant_settings_dict = single_tenant_settings_instance.to_dict() +# create an instance of SingleTenantSettings from a dict +single_tenant_settings_form_dict = single_tenant_settings.from_dict(single_tenant_settings_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/docs/communication/UpdateSaasUserAttributesParam.md b/docs/communication/UpdateSaasUserAttributesParam.md new file mode 100644 index 0000000..1df45c5 --- /dev/null +++ b/docs/communication/UpdateSaasUserAttributesParam.md @@ -0,0 +1,28 @@ +# UpdateSaasUserAttributesParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **Dict[str, object]** | Attribute information | + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSaasUserAttributesParam from a JSON string +update_saas_user_attributes_param_instance = UpdateSaasUserAttributesParam.from_json(json) +# print the JSON string representation of the object +print UpdateSaasUserAttributesParam.to_json() + +# convert the object into a dict +update_saas_user_attributes_param_dict = update_saas_user_attributes_param_instance.to_dict() +# create an instance of UpdateSaasUserAttributesParam from a dict +update_saas_user_attributes_param_form_dict = update_saas_user_attributes_param.from_dict(update_saas_user_attributes_param_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/docs/communication/UpdateSingleTenantSettingsParam.md b/docs/communication/UpdateSingleTenantSettingsParam.md new file mode 100644 index 0000000..a33f463 --- /dev/null +++ b/docs/communication/UpdateSingleTenantSettingsParam.md @@ -0,0 +1,32 @@ +# UpdateSingleTenantSettingsParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | [optional] +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | [optional] +**cloudformation_template** | **str** | CloudFormation template file | [optional] +**ddl_template** | **str** | ddl file to run in SaaS environment | [optional] +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | [optional] + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSingleTenantSettingsParam from a JSON string +update_single_tenant_settings_param_instance = UpdateSingleTenantSettingsParam.from_json(json) +# print the JSON string representation of the object +print UpdateSingleTenantSettingsParam.to_json() + +# convert the object into a dict +update_single_tenant_settings_param_dict = update_single_tenant_settings_param_instance.to_dict() +# create an instance of UpdateSingleTenantSettingsParam from a dict +update_single_tenant_settings_param_form_dict = update_single_tenant_settings_param.from_dict(update_single_tenant_settings_param_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/docs/communication/UserAttributeApi.md b/docs/communication/UserAttributeApi.md index c69803f..2f3a4d8 100644 --- a/docs/communication/UserAttributeApi.md +++ b/docs/communication/UserAttributeApi.md @@ -4,17 +4,96 @@ All URIs are relative to *https://api.saasus.io/v1/auth* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_saas_user_attribute**](UserAttributeApi.md#create_saas_user_attribute) | **POST** /saas-user-attributes | Create SaaS User Attributes [**create_user_attribute**](UserAttributeApi.md#create_user_attribute) | **POST** /user-attributes | Create User Attributes [**delete_user_attribute**](UserAttributeApi.md#delete_user_attribute) | **DELETE** /user-attributes/{attribute_name} | Delete User Attribute [**get_user_attributes**](UserAttributeApi.md#get_user_attributes) | **GET** /user-attributes | Get User Attributes +# **create_saas_user_attribute** +> Attribute create_saas_user_attribute(body=body) + +Create SaaS User Attributes + +Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.attribute import Attribute +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.UserAttributeApi(api_client) + body = saasus_sdk_python.src.auth.Attribute() # Attribute | (optional) + + try: + # Create SaaS User Attributes + api_response = api_instance.create_saas_user_attribute(body=body) + print("The response of UserAttributeApi->create_saas_user_attribute:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserAttributeApi->create_saas_user_attribute: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **Attribute**| | [optional] + +### Return type + +[**Attribute**](Attribute.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**500** | Internal Server Error | - | + +[[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) + # **create_user_attribute** > Attribute create_user_attribute(body=body) Create User Attributes -Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. +Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. ### Example diff --git a/docs/communication/UserInfo.md b/docs/communication/UserInfo.md index d9b6fb4..39c4f3a 100644 --- a/docs/communication/UserInfo.md +++ b/docs/communication/UserInfo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**user_attribute** | **Dict[str, object]** | user additional attributes | **tenants** | [**List[UserAvailableTenant]**](UserAvailableTenant.md) | Tenant Info | ## Example diff --git a/docs/integration/Comment.md b/docs/integration/Comment.md index 83ba72e..7f4be85 100644 --- a/docs/integration/Comment.md +++ b/docs/integration/Comment.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**user_id** | **str** | | **created_at** | **int** | | **body** | **str** | | diff --git a/docs/integration/CreateFeedbackCommentParam.md b/docs/integration/CreateFeedbackCommentParam.md index 61c2cb4..821a51f 100644 --- a/docs/integration/CreateFeedbackCommentParam.md +++ b/docs/integration/CreateFeedbackCommentParam.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **str** | | **body** | **str** | | ## Example diff --git a/docs/integration/SaasUser.md b/docs/integration/SaasUser.md index c423356..1ea34ce 100644 --- a/docs/integration/SaasUser.md +++ b/docs/integration/SaasUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**attributes** | **Dict[str, object]** | Attribute information | [optional] ## Example diff --git a/docs/integration/SaasUserApi.md b/docs/integration/SaasUserApi.md index cd20bd0..9045eb0 100644 --- a/docs/integration/SaasUserApi.md +++ b/docs/integration/SaasUserApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**sign_up**](SaasUserApi.md#sign_up) | **POST** /sign-up | Sign Up [**sign_up_with_aws_marketplace**](SaasUserApi.md#sign_up_with_aws_marketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace [**unlink_provider**](SaasUserApi.md#unlink_provider) | **DELETE** /users/{user_id}/providers/{provider_name} | Unlink external identity providers +[**update_saas_user_attributes**](SaasUserApi.md#update_saas_user_attributes) | **PATCH** /users/{user_id}/attributes | Update SaaS User Attributes [**update_saas_user_email**](SaasUserApi.md#update_saas_user_email) | **PATCH** /users/{user_id}/email | Change Email [**update_saas_user_password**](SaasUserApi.md#update_saas_user_password) | **PATCH** /users/{user_id}/password | Change Password [**update_software_token**](SaasUserApi.md#update_software_token) | **PUT** /users/{user_id}/mfa/software-token | Register Authentication Application @@ -1270,6 +1271,84 @@ void (empty response body) [[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_saas_user_attributes** +> update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + +Update SaaS User Attributes + +Update the additional attributes of the SaaS user. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SaasUserApi(api_client) + user_id = 'f94bfffc-8be2-11ec-b41a-0242ac120004' # str | User ID + update_saas_user_attributes_param = saasus_sdk_python.src.auth.UpdateSaasUserAttributesParam() # UpdateSaasUserAttributesParam | (optional) + + try: + # Update SaaS User Attributes + api_instance.update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + except Exception as e: + print("Exception when calling SaasUserApi->update_saas_user_attributes: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| User ID | + **update_saas_user_attributes_param** | [**UpdateSaasUserAttributesParam**](UpdateSaasUserAttributesParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_saas_user_email** > update_saas_user_email(user_id, update_saas_user_email_param=update_saas_user_email_param) diff --git a/docs/integration/SingleTenantApi.md b/docs/integration/SingleTenantApi.md new file mode 100644 index 0000000..ecb2008 --- /dev/null +++ b/docs/integration/SingleTenantApi.md @@ -0,0 +1,234 @@ +# saasus_sdk_python.src.auth.SingleTenantApi + +All URIs are relative to *https://api.saasus.io/v1/auth* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cloud_formation_launch_stack_link_for_single_tenant**](SingleTenantApi.md#get_cloud_formation_launch_stack_link_for_single_tenant) | **GET** /single-tenant/cloudformation-launch-stack-link | Get CloudFormation Stack Launch Link For Single Tenant +[**get_single_tenant_settings**](SingleTenantApi.md#get_single_tenant_settings) | **GET** /single-tenant/settings | Retrieve the settings of the single tenant. +[**update_single_tenant_settings**](SingleTenantApi.md#update_single_tenant_settings) | **PATCH** /single-tenant/settings | Update configuration information for single-tenant functionality + + +# **get_cloud_formation_launch_stack_link_for_single_tenant** +> CloudFormationLaunchStackLink get_cloud_formation_launch_stack_link_for_single_tenant() + +Get CloudFormation Stack Launch Link For Single Tenant + +Get the CloudFormation stack activation link for Single Tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Get CloudFormation Stack Launch Link For Single Tenant + api_response = api_instance.get_cloud_formation_launch_stack_link_for_single_tenant() + print("The response of SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudFormationLaunchStackLink**](CloudFormationLaunchStackLink.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> SingleTenantSettings get_single_tenant_settings() + +Retrieve the settings of the single tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Retrieve the settings of the single tenant. + api_response = api_instance.get_single_tenant_settings() + print("The response of SingleTenantApi->get_single_tenant_settings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SingleTenantSettings**](SingleTenantSettings.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + +Update configuration information for single-tenant functionality + +Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + update_single_tenant_settings_param = saasus_sdk_python.src.auth.UpdateSingleTenantSettingsParam() # UpdateSingleTenantSettingsParam | (optional) + + try: + # Update configuration information for single-tenant functionality + api_instance.update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + except Exception as e: + print("Exception when calling SingleTenantApi->update_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_single_tenant_settings_param** | [**UpdateSingleTenantSettingsParam**](UpdateSingleTenantSettingsParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/integration/SingleTenantSettings.md b/docs/integration/SingleTenantSettings.md new file mode 100644 index 0000000..e3550c7 --- /dev/null +++ b/docs/integration/SingleTenantSettings.md @@ -0,0 +1,32 @@ +# SingleTenantSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | +**cloudformation_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**ddl_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | + +## Example + +```python +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleTenantSettings from a JSON string +single_tenant_settings_instance = SingleTenantSettings.from_json(json) +# print the JSON string representation of the object +print SingleTenantSettings.to_json() + +# convert the object into a dict +single_tenant_settings_dict = single_tenant_settings_instance.to_dict() +# create an instance of SingleTenantSettings from a dict +single_tenant_settings_form_dict = single_tenant_settings.from_dict(single_tenant_settings_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/docs/integration/UpdateSaasUserAttributesParam.md b/docs/integration/UpdateSaasUserAttributesParam.md new file mode 100644 index 0000000..1df45c5 --- /dev/null +++ b/docs/integration/UpdateSaasUserAttributesParam.md @@ -0,0 +1,28 @@ +# UpdateSaasUserAttributesParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **Dict[str, object]** | Attribute information | + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSaasUserAttributesParam from a JSON string +update_saas_user_attributes_param_instance = UpdateSaasUserAttributesParam.from_json(json) +# print the JSON string representation of the object +print UpdateSaasUserAttributesParam.to_json() + +# convert the object into a dict +update_saas_user_attributes_param_dict = update_saas_user_attributes_param_instance.to_dict() +# create an instance of UpdateSaasUserAttributesParam from a dict +update_saas_user_attributes_param_form_dict = update_saas_user_attributes_param.from_dict(update_saas_user_attributes_param_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/docs/integration/UpdateSingleTenantSettingsParam.md b/docs/integration/UpdateSingleTenantSettingsParam.md new file mode 100644 index 0000000..a33f463 --- /dev/null +++ b/docs/integration/UpdateSingleTenantSettingsParam.md @@ -0,0 +1,32 @@ +# UpdateSingleTenantSettingsParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | [optional] +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | [optional] +**cloudformation_template** | **str** | CloudFormation template file | [optional] +**ddl_template** | **str** | ddl file to run in SaaS environment | [optional] +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | [optional] + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSingleTenantSettingsParam from a JSON string +update_single_tenant_settings_param_instance = UpdateSingleTenantSettingsParam.from_json(json) +# print the JSON string representation of the object +print UpdateSingleTenantSettingsParam.to_json() + +# convert the object into a dict +update_single_tenant_settings_param_dict = update_single_tenant_settings_param_instance.to_dict() +# create an instance of UpdateSingleTenantSettingsParam from a dict +update_single_tenant_settings_param_form_dict = update_single_tenant_settings_param.from_dict(update_single_tenant_settings_param_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/docs/integration/UserAttributeApi.md b/docs/integration/UserAttributeApi.md index c69803f..2f3a4d8 100644 --- a/docs/integration/UserAttributeApi.md +++ b/docs/integration/UserAttributeApi.md @@ -4,17 +4,96 @@ All URIs are relative to *https://api.saasus.io/v1/auth* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_saas_user_attribute**](UserAttributeApi.md#create_saas_user_attribute) | **POST** /saas-user-attributes | Create SaaS User Attributes [**create_user_attribute**](UserAttributeApi.md#create_user_attribute) | **POST** /user-attributes | Create User Attributes [**delete_user_attribute**](UserAttributeApi.md#delete_user_attribute) | **DELETE** /user-attributes/{attribute_name} | Delete User Attribute [**get_user_attributes**](UserAttributeApi.md#get_user_attributes) | **GET** /user-attributes | Get User Attributes +# **create_saas_user_attribute** +> Attribute create_saas_user_attribute(body=body) + +Create SaaS User Attributes + +Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.attribute import Attribute +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.UserAttributeApi(api_client) + body = saasus_sdk_python.src.auth.Attribute() # Attribute | (optional) + + try: + # Create SaaS User Attributes + api_response = api_instance.create_saas_user_attribute(body=body) + print("The response of UserAttributeApi->create_saas_user_attribute:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserAttributeApi->create_saas_user_attribute: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **Attribute**| | [optional] + +### Return type + +[**Attribute**](Attribute.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**500** | Internal Server Error | - | + +[[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) + # **create_user_attribute** > Attribute create_user_attribute(body=body) Create User Attributes -Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. +Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. ### Example diff --git a/docs/integration/UserInfo.md b/docs/integration/UserInfo.md index d9b6fb4..39c4f3a 100644 --- a/docs/integration/UserInfo.md +++ b/docs/integration/UserInfo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**user_attribute** | **Dict[str, object]** | user additional attributes | **tenants** | [**List[UserAvailableTenant]**](UserAvailableTenant.md) | Tenant Info | ## Example diff --git a/docs/pricing/Comment.md b/docs/pricing/Comment.md index 83ba72e..7f4be85 100644 --- a/docs/pricing/Comment.md +++ b/docs/pricing/Comment.md @@ -5,7 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | -**user_id** | **str** | | **created_at** | **int** | | **body** | **str** | | diff --git a/docs/pricing/CreateFeedbackCommentParam.md b/docs/pricing/CreateFeedbackCommentParam.md index 61c2cb4..821a51f 100644 --- a/docs/pricing/CreateFeedbackCommentParam.md +++ b/docs/pricing/CreateFeedbackCommentParam.md @@ -4,7 +4,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**user_id** | **str** | | **body** | **str** | | ## Example diff --git a/docs/pricing/SaasUser.md b/docs/pricing/SaasUser.md index c423356..1ea34ce 100644 --- a/docs/pricing/SaasUser.md +++ b/docs/pricing/SaasUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**attributes** | **Dict[str, object]** | Attribute information | [optional] ## Example diff --git a/docs/pricing/SaasUserApi.md b/docs/pricing/SaasUserApi.md index cd20bd0..9045eb0 100644 --- a/docs/pricing/SaasUserApi.md +++ b/docs/pricing/SaasUserApi.md @@ -20,6 +20,7 @@ Method | HTTP request | Description [**sign_up**](SaasUserApi.md#sign_up) | **POST** /sign-up | Sign Up [**sign_up_with_aws_marketplace**](SaasUserApi.md#sign_up_with_aws_marketplace) | **POST** /aws-marketplace/sign-up | Sign Up with AWS Marketplace [**unlink_provider**](SaasUserApi.md#unlink_provider) | **DELETE** /users/{user_id}/providers/{provider_name} | Unlink external identity providers +[**update_saas_user_attributes**](SaasUserApi.md#update_saas_user_attributes) | **PATCH** /users/{user_id}/attributes | Update SaaS User Attributes [**update_saas_user_email**](SaasUserApi.md#update_saas_user_email) | **PATCH** /users/{user_id}/email | Change Email [**update_saas_user_password**](SaasUserApi.md#update_saas_user_password) | **PATCH** /users/{user_id}/password | Change Password [**update_software_token**](SaasUserApi.md#update_software_token) | **PUT** /users/{user_id}/mfa/software-token | Register Authentication Application @@ -1270,6 +1271,84 @@ void (empty response body) [[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_saas_user_attributes** +> update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + +Update SaaS User Attributes + +Update the additional attributes of the SaaS user. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SaasUserApi(api_client) + user_id = 'f94bfffc-8be2-11ec-b41a-0242ac120004' # str | User ID + update_saas_user_attributes_param = saasus_sdk_python.src.auth.UpdateSaasUserAttributesParam() # UpdateSaasUserAttributesParam | (optional) + + try: + # Update SaaS User Attributes + api_instance.update_saas_user_attributes(user_id, update_saas_user_attributes_param=update_saas_user_attributes_param) + except Exception as e: + print("Exception when calling SaasUserApi->update_saas_user_attributes: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **user_id** | **str**| User ID | + **update_saas_user_attributes_param** | [**UpdateSaasUserAttributesParam**](UpdateSaasUserAttributesParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_saas_user_email** > update_saas_user_email(user_id, update_saas_user_email_param=update_saas_user_email_param) diff --git a/docs/pricing/SingleTenantApi.md b/docs/pricing/SingleTenantApi.md new file mode 100644 index 0000000..ecb2008 --- /dev/null +++ b/docs/pricing/SingleTenantApi.md @@ -0,0 +1,234 @@ +# saasus_sdk_python.src.auth.SingleTenantApi + +All URIs are relative to *https://api.saasus.io/v1/auth* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**get_cloud_formation_launch_stack_link_for_single_tenant**](SingleTenantApi.md#get_cloud_formation_launch_stack_link_for_single_tenant) | **GET** /single-tenant/cloudformation-launch-stack-link | Get CloudFormation Stack Launch Link For Single Tenant +[**get_single_tenant_settings**](SingleTenantApi.md#get_single_tenant_settings) | **GET** /single-tenant/settings | Retrieve the settings of the single tenant. +[**update_single_tenant_settings**](SingleTenantApi.md#update_single_tenant_settings) | **PATCH** /single-tenant/settings | Update configuration information for single-tenant functionality + + +# **get_cloud_formation_launch_stack_link_for_single_tenant** +> CloudFormationLaunchStackLink get_cloud_formation_launch_stack_link_for_single_tenant() + +Get CloudFormation Stack Launch Link For Single Tenant + +Get the CloudFormation stack activation link for Single Tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Get CloudFormation Stack Launch Link For Single Tenant + api_response = api_instance.get_cloud_formation_launch_stack_link_for_single_tenant() + print("The response of SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_cloud_formation_launch_stack_link_for_single_tenant: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**CloudFormationLaunchStackLink**](CloudFormationLaunchStackLink.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> SingleTenantSettings get_single_tenant_settings() + +Retrieve the settings of the single tenant. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + + try: + # Retrieve the settings of the single tenant. + api_response = api_instance.get_single_tenant_settings() + print("The response of SingleTenantApi->get_single_tenant_settings:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling SingleTenantApi->get_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**SingleTenantSettings**](SingleTenantSettings.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**500** | Internal Server Error | - | + +[[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_single_tenant_settings** +> update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + +Update configuration information for single-tenant functionality + +Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.SingleTenantApi(api_client) + update_single_tenant_settings_param = saasus_sdk_python.src.auth.UpdateSingleTenantSettingsParam() # UpdateSingleTenantSettingsParam | (optional) + + try: + # Update configuration information for single-tenant functionality + api_instance.update_single_tenant_settings(update_single_tenant_settings_param=update_single_tenant_settings_param) + except Exception as e: + print("Exception when calling SingleTenantApi->update_single_tenant_settings: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **update_single_tenant_settings_param** | [**UpdateSingleTenantSettingsParam**](UpdateSingleTenantSettingsParam.md)| | [optional] + +### Return type + +void (empty response body) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | OK | - | +**400** | Bad Request | - | +**500** | Internal Server Error | - | + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + diff --git a/docs/pricing/SingleTenantSettings.md b/docs/pricing/SingleTenantSettings.md new file mode 100644 index 0000000..e3550c7 --- /dev/null +++ b/docs/pricing/SingleTenantSettings.md @@ -0,0 +1,32 @@ +# SingleTenantSettings + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | +**cloudformation_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**ddl_template_url** | **str** | S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored | +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | + +## Example + +```python +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings + +# TODO update the JSON string below +json = "{}" +# create an instance of SingleTenantSettings from a JSON string +single_tenant_settings_instance = SingleTenantSettings.from_json(json) +# print the JSON string representation of the object +print SingleTenantSettings.to_json() + +# convert the object into a dict +single_tenant_settings_dict = single_tenant_settings_instance.to_dict() +# create an instance of SingleTenantSettings from a dict +single_tenant_settings_form_dict = single_tenant_settings.from_dict(single_tenant_settings_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/docs/pricing/UpdateSaasUserAttributesParam.md b/docs/pricing/UpdateSaasUserAttributesParam.md new file mode 100644 index 0000000..1df45c5 --- /dev/null +++ b/docs/pricing/UpdateSaasUserAttributesParam.md @@ -0,0 +1,28 @@ +# UpdateSaasUserAttributesParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**attributes** | **Dict[str, object]** | Attribute information | + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSaasUserAttributesParam from a JSON string +update_saas_user_attributes_param_instance = UpdateSaasUserAttributesParam.from_json(json) +# print the JSON string representation of the object +print UpdateSaasUserAttributesParam.to_json() + +# convert the object into a dict +update_saas_user_attributes_param_dict = update_saas_user_attributes_param_instance.to_dict() +# create an instance of UpdateSaasUserAttributesParam from a dict +update_saas_user_attributes_param_form_dict = update_saas_user_attributes_param.from_dict(update_saas_user_attributes_param_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/docs/pricing/UpdateSingleTenantSettingsParam.md b/docs/pricing/UpdateSingleTenantSettingsParam.md new file mode 100644 index 0000000..a33f463 --- /dev/null +++ b/docs/pricing/UpdateSingleTenantSettingsParam.md @@ -0,0 +1,32 @@ +# UpdateSingleTenantSettingsParam + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | enable Single Tenant settings or not | [optional] +**role_arn** | **str** | ARN of the role for SaaS Platform to AssumeRole | [optional] +**cloudformation_template** | **str** | CloudFormation template file | [optional] +**ddl_template** | **str** | ddl file to run in SaaS environment | [optional] +**role_external_id** | **str** | External id used by SaaSus when AssumeRole to operate SaaS | [optional] + +## Example + +```python +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateSingleTenantSettingsParam from a JSON string +update_single_tenant_settings_param_instance = UpdateSingleTenantSettingsParam.from_json(json) +# print the JSON string representation of the object +print UpdateSingleTenantSettingsParam.to_json() + +# convert the object into a dict +update_single_tenant_settings_param_dict = update_single_tenant_settings_param_instance.to_dict() +# create an instance of UpdateSingleTenantSettingsParam from a dict +update_single_tenant_settings_param_form_dict = update_single_tenant_settings_param.from_dict(update_single_tenant_settings_param_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/docs/pricing/UserAttributeApi.md b/docs/pricing/UserAttributeApi.md index c69803f..2f3a4d8 100644 --- a/docs/pricing/UserAttributeApi.md +++ b/docs/pricing/UserAttributeApi.md @@ -4,17 +4,96 @@ All URIs are relative to *https://api.saasus.io/v1/auth* Method | HTTP request | Description ------------- | ------------- | ------------- +[**create_saas_user_attribute**](UserAttributeApi.md#create_saas_user_attribute) | **POST** /saas-user-attributes | Create SaaS User Attributes [**create_user_attribute**](UserAttributeApi.md#create_user_attribute) | **POST** /user-attributes | Create User Attributes [**delete_user_attribute**](UserAttributeApi.md#delete_user_attribute) | **DELETE** /user-attributes/{attribute_name} | Delete User Attribute [**get_user_attributes**](UserAttributeApi.md#get_user_attributes) | **GET** /user-attributes | Get User Attributes +# **create_saas_user_attribute** +> Attribute create_saas_user_attribute(body=body) + +Create SaaS User Attributes + +Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. + +### Example + +* Bearer Authentication (Bearer): +```python +import time +import os +import saasus_sdk_python.src.auth +from saasus_sdk_python.src.auth.models.attribute import Attribute +from saasus_sdk_python.src.auth.rest import ApiException +from pprint import pprint + +# Defining the host is optional and defaults to https://api.saasus.io/v1/auth +# See configuration.py for a list of all supported configuration parameters. +configuration = saasus_sdk_python.src.auth.Configuration( + host = "https://api.saasus.io/v1/auth" +) + +# 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 Bearer authorization: Bearer +configuration = saasus_sdk_python.src.auth.Configuration( + access_token = os.environ["BEARER_TOKEN"] +) + +# Enter a context with an instance of the API client +with saasus_sdk_python.src.auth.ApiClient(configuration) as api_client: + # Create an instance of the API class + api_instance = saasus_sdk_python.src.auth.UserAttributeApi(api_client) + body = saasus_sdk_python.src.auth.Attribute() # Attribute | (optional) + + try: + # Create SaaS User Attributes + api_response = api_instance.create_saas_user_attribute(body=body) + print("The response of UserAttributeApi->create_saas_user_attribute:\n") + pprint(api_response) + except Exception as e: + print("Exception when calling UserAttributeApi->create_saas_user_attribute: %s\n" % e) +``` + + + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | **Attribute**| | [optional] + +### Return type + +[**Attribute**](Attribute.md) + +### Authorization + +[Bearer](../README.md#Bearer) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Created | - | +**500** | Internal Server Error | - | + +[[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) + # **create_user_attribute** > Attribute create_user_attribute(body=body) Create User Attributes -Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. +Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. ### Example diff --git a/docs/pricing/UserInfo.md b/docs/pricing/UserInfo.md index d9b6fb4..39c4f3a 100644 --- a/docs/pricing/UserInfo.md +++ b/docs/pricing/UserInfo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **str** | | **email** | **str** | E-mail | +**user_attribute** | **Dict[str, object]** | user additional attributes | **tenants** | [**List[UserAvailableTenant]**](UserAvailableTenant.md) | Tenant Info | ## Example diff --git a/saasus_sdk_python/src/auth/__init__.py b/saasus_sdk_python/src/auth/__init__.py index 0b18295..26de64b 100644 --- a/saasus_sdk_python/src/auth/__init__.py +++ b/saasus_sdk_python/src/auth/__init__.py @@ -25,6 +25,7 @@ from saasus_sdk_python.src.auth.api.invitation_api import InvitationApi from saasus_sdk_python.src.auth.api.role_api import RoleApi from saasus_sdk_python.src.auth.api.saas_user_api import SaasUserApi +from saasus_sdk_python.src.auth.api.single_tenant_api import SingleTenantApi from saasus_sdk_python.src.auth.api.tenant_api import TenantApi from saasus_sdk_python.src.auth.api.tenant_attribute_api import TenantAttributeApi from saasus_sdk_python.src.auth.api.tenant_user_api import TenantUserApi @@ -53,6 +54,7 @@ from saasus_sdk_python.src.auth.models.billing_address import BillingAddress from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.client_secret import ClientSecret +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink from saasus_sdk_python.src.auth.models.confirm_email_update_param import ConfirmEmailUpdateParam from saasus_sdk_python.src.auth.models.confirm_external_user_link_param import ConfirmExternalUserLinkParam from saasus_sdk_python.src.auth.models.confirm_sign_up_with_aws_marketplace_param import ConfirmSignUpWithAwsMarketplaceParam @@ -106,6 +108,7 @@ from saasus_sdk_python.src.auth.models.sign_in_settings import SignInSettings from saasus_sdk_python.src.auth.models.sign_up_param import SignUpParam from saasus_sdk_python.src.auth.models.sign_up_with_aws_marketplace_param import SignUpWithAwsMarketplaceParam +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings from saasus_sdk_python.src.auth.models.software_token_secret_code import SoftwareTokenSecretCode from saasus_sdk_python.src.auth.models.tenant import Tenant from saasus_sdk_python.src.auth.models.tenant_attributes import TenantAttributes @@ -121,9 +124,11 @@ from saasus_sdk_python.src.auth.models.update_env_param import UpdateEnvParam from saasus_sdk_python.src.auth.models.update_identity_provider_param import UpdateIdentityProviderParam from saasus_sdk_python.src.auth.models.update_notification_messages_param import UpdateNotificationMessagesParam +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam from saasus_sdk_python.src.auth.models.update_saas_user_email_param import UpdateSaasUserEmailParam from saasus_sdk_python.src.auth.models.update_saas_user_password_param import UpdateSaasUserPasswordParam from saasus_sdk_python.src.auth.models.update_sign_in_settings_param import UpdateSignInSettingsParam +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam from saasus_sdk_python.src.auth.models.update_software_token_param import UpdateSoftwareTokenParam from saasus_sdk_python.src.auth.models.update_tenant_identity_provider_param import UpdateTenantIdentityProviderParam from saasus_sdk_python.src.auth.models.update_tenant_user_param import UpdateTenantUserParam diff --git a/saasus_sdk_python/src/auth/api/__init__.py b/saasus_sdk_python/src/auth/api/__init__.py index d453162..d1e3ef5 100644 --- a/saasus_sdk_python/src/auth/api/__init__.py +++ b/saasus_sdk_python/src/auth/api/__init__.py @@ -9,6 +9,7 @@ from saasus_sdk_python.src.auth.api.invitation_api import InvitationApi from saasus_sdk_python.src.auth.api.role_api import RoleApi from saasus_sdk_python.src.auth.api.saas_user_api import SaasUserApi +from saasus_sdk_python.src.auth.api.single_tenant_api import SingleTenantApi from saasus_sdk_python.src.auth.api.tenant_api import TenantApi from saasus_sdk_python.src.auth.api.tenant_attribute_api import TenantAttributeApi from saasus_sdk_python.src.auth.api.tenant_user_api import TenantUserApi diff --git a/saasus_sdk_python/src/auth/api/saas_user_api.py b/saasus_sdk_python/src/auth/api/saas_user_api.py index d54a934..40d1516 100644 --- a/saasus_sdk_python/src/auth/api/saas_user_api.py +++ b/saasus_sdk_python/src/auth/api/saas_user_api.py @@ -39,6 +39,7 @@ from saasus_sdk_python.src.auth.models.sign_up_with_aws_marketplace_param import SignUpWithAwsMarketplaceParam from saasus_sdk_python.src.auth.models.software_token_secret_code import SoftwareTokenSecretCode from saasus_sdk_python.src.auth.models.tenant import Tenant +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam from saasus_sdk_python.src.auth.models.update_saas_user_email_param import UpdateSaasUserEmailParam from saasus_sdk_python.src.auth.models.update_saas_user_password_param import UpdateSaasUserPasswordParam from saasus_sdk_python.src.auth.models.update_software_token_param import UpdateSoftwareTokenParam @@ -2382,6 +2383,158 @@ def unlink_provider_with_http_info(self, provider_name : StrictStr, user_id : An collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) + @validate_arguments + def update_saas_user_attributes(self, user_id : Annotated[StrictStr, Field(..., description="User ID")], update_saas_user_attributes_param : Optional[UpdateSaasUserAttributesParam] = None, **kwargs) -> None: # noqa: E501 + """Update SaaS User Attributes # noqa: E501 + + Update the additional attributes of the SaaS user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_saas_user_attributes(user_id, update_saas_user_attributes_param, async_req=True) + >>> result = thread.get() + + :param user_id: User ID (required) + :type user_id: str + :param update_saas_user_attributes_param: + :type update_saas_user_attributes_param: UpdateSaasUserAttributesParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the update_saas_user_attributes_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.update_saas_user_attributes_with_http_info(user_id, update_saas_user_attributes_param, **kwargs) # noqa: E501 + + @validate_arguments + def update_saas_user_attributes_with_http_info(self, user_id : Annotated[StrictStr, Field(..., description="User ID")], update_saas_user_attributes_param : Optional[UpdateSaasUserAttributesParam] = None, **kwargs) -> ApiResponse: # noqa: E501 + """Update SaaS User Attributes # noqa: E501 + + Update the additional attributes of the SaaS user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_saas_user_attributes_with_http_info(user_id, update_saas_user_attributes_param, async_req=True) + >>> result = thread.get() + + :param user_id: User ID (required) + :type user_id: str + :param update_saas_user_attributes_param: + :type update_saas_user_attributes_param: UpdateSaasUserAttributesParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + _params = locals() + + _all_params = [ + 'user_id', + 'update_saas_user_attributes_param' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_saas_user_attributes" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + if _params['user_id']: + _path_params['user_id'] = _params['user_id'] + + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['update_saas_user_attributes_param'] is not None: + _body_params = _params['update_saas_user_attributes_param'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = {} + + return self.api_client.call_api( + '/users/{user_id}/attributes', 'PATCH', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + @validate_arguments def update_saas_user_email(self, user_id : Annotated[StrictStr, Field(..., description="User ID")], update_saas_user_email_param : Optional[UpdateSaasUserEmailParam] = None, **kwargs) -> None: # noqa: E501 """Change Email # noqa: E501 diff --git a/saasus_sdk_python/src/auth/api/single_tenant_api.py b/saasus_sdk_python/src/auth/api/single_tenant_api.py new file mode 100644 index 0000000..14613b6 --- /dev/null +++ b/saasus_sdk_python/src/auth/api/single_tenant_api.py @@ -0,0 +1,452 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import re # noqa: F401 +import io +import warnings + +from pydantic import validate_arguments, ValidationError +from typing_extensions import Annotated + +from typing import Optional + +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +from saasus_sdk_python.src.auth.api_client import ApiClient +from saasus_sdk_python.src.auth.api_response import ApiResponse +from saasus_sdk_python.src.auth.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SingleTenantApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_arguments + def get_cloud_formation_launch_stack_link_for_single_tenant(self, **kwargs) -> CloudFormationLaunchStackLink: # noqa: E501 + """Get CloudFormation Stack Launch Link For Single Tenant # noqa: E501 + + Get the CloudFormation stack activation link for Single Tenant. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_cloud_formation_launch_stack_link_for_single_tenant(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: CloudFormationLaunchStackLink + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info(**kwargs) # noqa: E501 + + @validate_arguments + def get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 + """Get CloudFormation Stack Launch Link For Single Tenant # noqa: E501 + + Get the CloudFormation stack activation link for Single Tenant. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(CloudFormationLaunchStackLink, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cloud_formation_launch_stack_link_for_single_tenant" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = { + '200': "CloudFormationLaunchStackLink", + '500': "Error", + } + + return self.api_client.call_api( + '/single-tenant/cloudformation-launch-stack-link', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @validate_arguments + def get_single_tenant_settings(self, **kwargs) -> SingleTenantSettings: # noqa: E501 + """Retrieve the settings of the single tenant. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_single_tenant_settings(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SingleTenantSettings + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the get_single_tenant_settings_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.get_single_tenant_settings_with_http_info(**kwargs) # noqa: E501 + + @validate_arguments + def get_single_tenant_settings_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 + """Retrieve the settings of the single tenant. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_single_tenant_settings_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SingleTenantSettings, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_single_tenant_settings" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = { + '200': "SingleTenantSettings", + '500': "Error", + } + + return self.api_client.call_api( + '/single-tenant/settings', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @validate_arguments + def update_single_tenant_settings(self, update_single_tenant_settings_param : Optional[UpdateSingleTenantSettingsParam] = None, **kwargs) -> None: # noqa: E501 + """Update configuration information for single-tenant functionality # noqa: E501 + + Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_single_tenant_settings(update_single_tenant_settings_param, async_req=True) + >>> result = thread.get() + + :param update_single_tenant_settings_param: + :type update_single_tenant_settings_param: UpdateSingleTenantSettingsParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the update_single_tenant_settings_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.update_single_tenant_settings_with_http_info(update_single_tenant_settings_param, **kwargs) # noqa: E501 + + @validate_arguments + def update_single_tenant_settings_with_http_info(self, update_single_tenant_settings_param : Optional[UpdateSingleTenantSettingsParam] = None, **kwargs) -> ApiResponse: # noqa: E501 + """Update configuration information for single-tenant functionality # noqa: E501 + + Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_single_tenant_settings_with_http_info(update_single_tenant_settings_param, async_req=True) + >>> result = thread.get() + + :param update_single_tenant_settings_param: + :type update_single_tenant_settings_param: UpdateSingleTenantSettingsParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + _params = locals() + + _all_params = [ + 'update_single_tenant_settings_param' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_single_tenant_settings" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['update_single_tenant_settings_param'] is not None: + _body_params = _params['update_single_tenant_settings_param'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = {} + + return self.api_client.call_api( + '/single-tenant/settings', 'PATCH', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) diff --git a/saasus_sdk_python/src/auth/api/user_attribute_api.py b/saasus_sdk_python/src/auth/api/user_attribute_api.py index 9b2ace5..47aa8cc 100644 --- a/saasus_sdk_python/src/auth/api/user_attribute_api.py +++ b/saasus_sdk_python/src/auth/api/user_attribute_api.py @@ -46,11 +46,158 @@ def __init__(self, api_client=None): api_client = ApiClient.get_default() self.api_client = api_client + @validate_arguments + def create_saas_user_attribute(self, body : Optional[Attribute] = None, **kwargs) -> Attribute: # noqa: E501 + """Create SaaS User Attributes # noqa: E501 + + Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_saas_user_attribute(body, async_req=True) + >>> result = thread.get() + + :param body: + :type body: Attribute + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: Attribute + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the create_saas_user_attribute_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.create_saas_user_attribute_with_http_info(body, **kwargs) # noqa: E501 + + @validate_arguments + def create_saas_user_attribute_with_http_info(self, body : Optional[Attribute] = None, **kwargs) -> ApiResponse: # noqa: E501 + """Create SaaS User Attributes # noqa: E501 + + Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_saas_user_attribute_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param body: + :type body: Attribute + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(Attribute, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'body' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_saas_user_attribute" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['body'] is not None: + _body_params = _params['body'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = { + '201': "Attribute", + '500': "Error", + } + + return self.api_client.call_api( + '/saas-user-attributes', 'POST', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + @validate_arguments def create_user_attribute(self, body : Optional[Attribute] = None, **kwargs) -> Attribute: # noqa: E501 """Create User Attributes # noqa: E501 - Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 + Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -79,7 +226,7 @@ def create_user_attribute(self, body : Optional[Attribute] = None, **kwargs) -> def create_user_attribute_with_http_info(self, body : Optional[Attribute] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create User Attributes # noqa: E501 - Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 + Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/saasus_sdk_python/src/auth/models/__init__.py b/saasus_sdk_python/src/auth/models/__init__.py index 431ae23..dda4fe8 100644 --- a/saasus_sdk_python/src/auth/models/__init__.py +++ b/saasus_sdk_python/src/auth/models/__init__.py @@ -24,6 +24,7 @@ from saasus_sdk_python.src.auth.models.billing_address import BillingAddress from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.client_secret import ClientSecret +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink from saasus_sdk_python.src.auth.models.confirm_email_update_param import ConfirmEmailUpdateParam from saasus_sdk_python.src.auth.models.confirm_external_user_link_param import ConfirmExternalUserLinkParam from saasus_sdk_python.src.auth.models.confirm_sign_up_with_aws_marketplace_param import ConfirmSignUpWithAwsMarketplaceParam @@ -77,6 +78,7 @@ from saasus_sdk_python.src.auth.models.sign_in_settings import SignInSettings from saasus_sdk_python.src.auth.models.sign_up_param import SignUpParam from saasus_sdk_python.src.auth.models.sign_up_with_aws_marketplace_param import SignUpWithAwsMarketplaceParam +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings from saasus_sdk_python.src.auth.models.software_token_secret_code import SoftwareTokenSecretCode from saasus_sdk_python.src.auth.models.tenant import Tenant from saasus_sdk_python.src.auth.models.tenant_attributes import TenantAttributes @@ -92,9 +94,11 @@ from saasus_sdk_python.src.auth.models.update_env_param import UpdateEnvParam from saasus_sdk_python.src.auth.models.update_identity_provider_param import UpdateIdentityProviderParam from saasus_sdk_python.src.auth.models.update_notification_messages_param import UpdateNotificationMessagesParam +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam from saasus_sdk_python.src.auth.models.update_saas_user_email_param import UpdateSaasUserEmailParam from saasus_sdk_python.src.auth.models.update_saas_user_password_param import UpdateSaasUserPasswordParam from saasus_sdk_python.src.auth.models.update_sign_in_settings_param import UpdateSignInSettingsParam +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam from saasus_sdk_python.src.auth.models.update_software_token_param import UpdateSoftwareTokenParam from saasus_sdk_python.src.auth.models.update_tenant_identity_provider_param import UpdateTenantIdentityProviderParam from saasus_sdk_python.src.auth.models.update_tenant_user_param import UpdateTenantUserParam diff --git a/saasus_sdk_python/src/auth/models/cloud_formation_launch_stack_link.py b/saasus_sdk_python/src/auth/models/cloud_formation_launch_stack_link.py new file mode 100644 index 0000000..131d308 --- /dev/null +++ b/saasus_sdk_python/src/auth/models/cloud_formation_launch_stack_link.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://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 ConfigDict, BaseModel, Field, StrictStr + +class CloudFormationLaunchStackLink(BaseModel): + """ + CloudFormationLaunchStackLink + """ + link: StrictStr = Field(...) + __properties = ["link"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> CloudFormationLaunchStackLink: + """Create an instance of CloudFormationLaunchStackLink from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> CloudFormationLaunchStackLink: + """Create an instance of CloudFormationLaunchStackLink from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CloudFormationLaunchStackLink.parse_obj(obj) + + _obj = CloudFormationLaunchStackLink.parse_obj({ + "link": obj.get("link") + }) + return _obj + + diff --git a/saasus_sdk_python/src/auth/models/saas_user.py b/saasus_sdk_python/src/auth/models/saas_user.py index 0915e02..ab9f596 100644 --- a/saasus_sdk_python/src/auth/models/saas_user.py +++ b/saasus_sdk_python/src/auth/models/saas_user.py @@ -18,7 +18,7 @@ import json - +from typing import Any, Dict, Optional from pydantic import ConfigDict, BaseModel, Field, StrictStr class SaasUser(BaseModel): @@ -27,7 +27,8 @@ class SaasUser(BaseModel): """ id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") - __properties = ["id", "email"] + attributes: Optional[Dict[str, Any]] = Field(None, description="Attribute information ") + __properties = ["id", "email", "attributes"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -62,7 +63,8 @@ def from_dict(cls, obj: dict) -> SaasUser: _obj = SaasUser.parse_obj({ "id": obj.get("id"), - "email": obj.get("email") + "email": obj.get("email"), + "attributes": obj.get("attributes") }) return _obj diff --git a/saasus_sdk_python/src/auth/models/single_tenant_settings.py b/saasus_sdk_python/src/auth/models/single_tenant_settings.py new file mode 100644 index 0000000..55cc6cb --- /dev/null +++ b/saasus_sdk_python/src/auth/models/single_tenant_settings.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://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 ConfigDict, BaseModel, Field, StrictBool, StrictStr + +class SingleTenantSettings(BaseModel): + """ + SingleTenantSettings + """ + enabled: StrictBool = Field(..., description="enable Single Tenant settings or not") + role_arn: StrictStr = Field(..., description="ARN of the role for SaaS Platform to AssumeRole") + cloudformation_template_url: StrictStr = Field(..., description="S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored") + ddl_template_url: StrictStr = Field(..., description="S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored") + role_external_id: StrictStr = Field(..., description="External id used by SaaSus when AssumeRole to operate SaaS") + __properties = ["enabled", "role_arn", "cloudformation_template_url", "ddl_template_url", "role_external_id"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> SingleTenantSettings: + """Create an instance of SingleTenantSettings from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> SingleTenantSettings: + """Create an instance of SingleTenantSettings from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return SingleTenantSettings.parse_obj(obj) + + _obj = SingleTenantSettings.parse_obj({ + "enabled": obj.get("enabled"), + "role_arn": obj.get("role_arn"), + "cloudformation_template_url": obj.get("cloudformation_template_url"), + "ddl_template_url": obj.get("ddl_template_url"), + "role_external_id": obj.get("role_external_id") + }) + return _obj + + diff --git a/saasus_sdk_python/src/auth/models/update_saas_user_attributes_param.py b/saasus_sdk_python/src/auth/models/update_saas_user_attributes_param.py new file mode 100644 index 0000000..ddc9690 --- /dev/null +++ b/saasus_sdk_python/src/auth/models/update_saas_user_attributes_param.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, Dict +from pydantic import ConfigDict, BaseModel, Field + +class UpdateSaasUserAttributesParam(BaseModel): + """ + UpdateSaasUserAttributesParam + """ + attributes: Dict[str, Any] = Field(..., description="Attribute information ") + __properties = ["attributes"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> UpdateSaasUserAttributesParam: + """Create an instance of UpdateSaasUserAttributesParam from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> UpdateSaasUserAttributesParam: + """Create an instance of UpdateSaasUserAttributesParam from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return UpdateSaasUserAttributesParam.parse_obj(obj) + + _obj = UpdateSaasUserAttributesParam.parse_obj({ + "attributes": obj.get("attributes") + }) + return _obj + + diff --git a/saasus_sdk_python/src/auth/models/update_single_tenant_settings_param.py b/saasus_sdk_python/src/auth/models/update_single_tenant_settings_param.py new file mode 100644 index 0000000..c43850b --- /dev/null +++ b/saasus_sdk_python/src/auth/models/update_single_tenant_settings_param.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Optional +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr + +class UpdateSingleTenantSettingsParam(BaseModel): + """ + UpdateSingleTenantSettingsParam + """ + enabled: Optional[StrictBool] = Field(None, description="enable Single Tenant settings or not") + role_arn: Optional[StrictStr] = Field(None, description="ARN of the role for SaaS Platform to AssumeRole") + cloudformation_template: Optional[StrictStr] = Field(None, description="CloudFormation template file") + ddl_template: Optional[StrictStr] = Field(None, description="ddl file to run in SaaS environment") + role_external_id: Optional[StrictStr] = Field(None, description="External id used by SaaSus when AssumeRole to operate SaaS") + __properties = ["enabled", "role_arn", "cloudformation_template", "ddl_template", "role_external_id"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> UpdateSingleTenantSettingsParam: + """Create an instance of UpdateSingleTenantSettingsParam from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> UpdateSingleTenantSettingsParam: + """Create an instance of UpdateSingleTenantSettingsParam from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return UpdateSingleTenantSettingsParam.parse_obj(obj) + + _obj = UpdateSingleTenantSettingsParam.parse_obj({ + "enabled": obj.get("enabled"), + "role_arn": obj.get("role_arn"), + "cloudformation_template": obj.get("cloudformation_template"), + "ddl_template": obj.get("ddl_template"), + "role_external_id": obj.get("role_external_id") + }) + return _obj + + diff --git a/saasus_sdk_python/src/auth/models/user_info.py b/saasus_sdk_python/src/auth/models/user_info.py index 4ffd36a..4b8bf36 100644 --- a/saasus_sdk_python/src/auth/models/user_info.py +++ b/saasus_sdk_python/src/auth/models/user_info.py @@ -18,7 +18,7 @@ import json -from typing import List +from typing import Any, Dict, List from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.user_available_tenant import UserAvailableTenant from typing_extensions import Annotated @@ -29,8 +29,9 @@ class UserInfo(BaseModel): """ id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") + user_attribute: Dict[str, Any] = Field(..., description="user additional attributes") tenants: Annotated[List[UserAvailableTenant], Field()] = Field(..., description="Tenant Info") - __properties = ["id", "email", "tenants"] + __properties = ["id", "email", "user_attribute", "tenants"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -73,6 +74,7 @@ def from_dict(cls, obj: dict) -> UserInfo: _obj = UserInfo.parse_obj({ "id": obj.get("id"), "email": obj.get("email"), + "user_attribute": obj.get("user_attribute"), "tenants": [UserAvailableTenant.from_dict(_item) for _item in obj.get("tenants")] if obj.get("tenants") is not None else None }) return _obj diff --git a/saasus_sdk_python/src/communication/models/comment.py b/saasus_sdk_python/src/communication/models/comment.py index f17b73f..a2f73f8 100644 --- a/saasus_sdk_python/src/communication/models/comment.py +++ b/saasus_sdk_python/src/communication/models/comment.py @@ -26,10 +26,9 @@ class Comment(BaseModel): Comment """ id: StrictStr = Field(...) - user_id: StrictStr = Field(...) created_at: StrictInt = Field(...) body: StrictStr = Field(...) - __properties = ["id", "user_id", "created_at", "body"] + __properties = ["id", "created_at", "body"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -64,7 +63,6 @@ def from_dict(cls, obj: dict) -> Comment: _obj = Comment.parse_obj({ "id": obj.get("id"), - "user_id": obj.get("user_id"), "created_at": obj.get("created_at"), "body": obj.get("body") }) diff --git a/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py b/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py index f27b1ab..cc3e102 100644 --- a/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py +++ b/saasus_sdk_python/src/communication/models/create_feedback_comment_param.py @@ -25,9 +25,8 @@ class CreateFeedbackCommentParam(BaseModel): """ CreateFeedbackCommentParam """ - user_id: StrictStr = Field(...) body: StrictStr = Field(...) - __properties = ["user_id", "body"] + __properties = ["body"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -61,7 +60,6 @@ def from_dict(cls, obj: dict) -> CreateFeedbackCommentParam: return CreateFeedbackCommentParam.parse_obj(obj) _obj = CreateFeedbackCommentParam.parse_obj({ - "user_id": obj.get("user_id"), "body": obj.get("body") }) return _obj diff --git a/test/auth/__init__.py b/test/auth/__init__.py index 0b18295..26de64b 100644 --- a/test/auth/__init__.py +++ b/test/auth/__init__.py @@ -25,6 +25,7 @@ from saasus_sdk_python.src.auth.api.invitation_api import InvitationApi from saasus_sdk_python.src.auth.api.role_api import RoleApi from saasus_sdk_python.src.auth.api.saas_user_api import SaasUserApi +from saasus_sdk_python.src.auth.api.single_tenant_api import SingleTenantApi from saasus_sdk_python.src.auth.api.tenant_api import TenantApi from saasus_sdk_python.src.auth.api.tenant_attribute_api import TenantAttributeApi from saasus_sdk_python.src.auth.api.tenant_user_api import TenantUserApi @@ -53,6 +54,7 @@ from saasus_sdk_python.src.auth.models.billing_address import BillingAddress from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.client_secret import ClientSecret +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink from saasus_sdk_python.src.auth.models.confirm_email_update_param import ConfirmEmailUpdateParam from saasus_sdk_python.src.auth.models.confirm_external_user_link_param import ConfirmExternalUserLinkParam from saasus_sdk_python.src.auth.models.confirm_sign_up_with_aws_marketplace_param import ConfirmSignUpWithAwsMarketplaceParam @@ -106,6 +108,7 @@ from saasus_sdk_python.src.auth.models.sign_in_settings import SignInSettings from saasus_sdk_python.src.auth.models.sign_up_param import SignUpParam from saasus_sdk_python.src.auth.models.sign_up_with_aws_marketplace_param import SignUpWithAwsMarketplaceParam +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings from saasus_sdk_python.src.auth.models.software_token_secret_code import SoftwareTokenSecretCode from saasus_sdk_python.src.auth.models.tenant import Tenant from saasus_sdk_python.src.auth.models.tenant_attributes import TenantAttributes @@ -121,9 +124,11 @@ from saasus_sdk_python.src.auth.models.update_env_param import UpdateEnvParam from saasus_sdk_python.src.auth.models.update_identity_provider_param import UpdateIdentityProviderParam from saasus_sdk_python.src.auth.models.update_notification_messages_param import UpdateNotificationMessagesParam +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam from saasus_sdk_python.src.auth.models.update_saas_user_email_param import UpdateSaasUserEmailParam from saasus_sdk_python.src.auth.models.update_saas_user_password_param import UpdateSaasUserPasswordParam from saasus_sdk_python.src.auth.models.update_sign_in_settings_param import UpdateSignInSettingsParam +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam from saasus_sdk_python.src.auth.models.update_software_token_param import UpdateSoftwareTokenParam from saasus_sdk_python.src.auth.models.update_tenant_identity_provider_param import UpdateTenantIdentityProviderParam from saasus_sdk_python.src.auth.models.update_tenant_user_param import UpdateTenantUserParam diff --git a/test/auth/api/__init__.py b/test/auth/api/__init__.py index d453162..d1e3ef5 100644 --- a/test/auth/api/__init__.py +++ b/test/auth/api/__init__.py @@ -9,6 +9,7 @@ from saasus_sdk_python.src.auth.api.invitation_api import InvitationApi from saasus_sdk_python.src.auth.api.role_api import RoleApi from saasus_sdk_python.src.auth.api.saas_user_api import SaasUserApi +from saasus_sdk_python.src.auth.api.single_tenant_api import SingleTenantApi from saasus_sdk_python.src.auth.api.tenant_api import TenantApi from saasus_sdk_python.src.auth.api.tenant_attribute_api import TenantAttributeApi from saasus_sdk_python.src.auth.api.tenant_user_api import TenantUserApi diff --git a/test/auth/api/saas_user_api.py b/test/auth/api/saas_user_api.py index d54a934..40d1516 100644 --- a/test/auth/api/saas_user_api.py +++ b/test/auth/api/saas_user_api.py @@ -39,6 +39,7 @@ from saasus_sdk_python.src.auth.models.sign_up_with_aws_marketplace_param import SignUpWithAwsMarketplaceParam from saasus_sdk_python.src.auth.models.software_token_secret_code import SoftwareTokenSecretCode from saasus_sdk_python.src.auth.models.tenant import Tenant +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam from saasus_sdk_python.src.auth.models.update_saas_user_email_param import UpdateSaasUserEmailParam from saasus_sdk_python.src.auth.models.update_saas_user_password_param import UpdateSaasUserPasswordParam from saasus_sdk_python.src.auth.models.update_software_token_param import UpdateSoftwareTokenParam @@ -2382,6 +2383,158 @@ def unlink_provider_with_http_info(self, provider_name : StrictStr, user_id : An collection_formats=_collection_formats, _request_auth=_params.get('_request_auth')) + @validate_arguments + def update_saas_user_attributes(self, user_id : Annotated[StrictStr, Field(..., description="User ID")], update_saas_user_attributes_param : Optional[UpdateSaasUserAttributesParam] = None, **kwargs) -> None: # noqa: E501 + """Update SaaS User Attributes # noqa: E501 + + Update the additional attributes of the SaaS user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_saas_user_attributes(user_id, update_saas_user_attributes_param, async_req=True) + >>> result = thread.get() + + :param user_id: User ID (required) + :type user_id: str + :param update_saas_user_attributes_param: + :type update_saas_user_attributes_param: UpdateSaasUserAttributesParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the update_saas_user_attributes_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.update_saas_user_attributes_with_http_info(user_id, update_saas_user_attributes_param, **kwargs) # noqa: E501 + + @validate_arguments + def update_saas_user_attributes_with_http_info(self, user_id : Annotated[StrictStr, Field(..., description="User ID")], update_saas_user_attributes_param : Optional[UpdateSaasUserAttributesParam] = None, **kwargs) -> ApiResponse: # noqa: E501 + """Update SaaS User Attributes # noqa: E501 + + Update the additional attributes of the SaaS user. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_saas_user_attributes_with_http_info(user_id, update_saas_user_attributes_param, async_req=True) + >>> result = thread.get() + + :param user_id: User ID (required) + :type user_id: str + :param update_saas_user_attributes_param: + :type update_saas_user_attributes_param: UpdateSaasUserAttributesParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + _params = locals() + + _all_params = [ + 'user_id', + 'update_saas_user_attributes_param' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_saas_user_attributes" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + if _params['user_id']: + _path_params['user_id'] = _params['user_id'] + + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['update_saas_user_attributes_param'] is not None: + _body_params = _params['update_saas_user_attributes_param'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = {} + + return self.api_client.call_api( + '/users/{user_id}/attributes', 'PATCH', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + @validate_arguments def update_saas_user_email(self, user_id : Annotated[StrictStr, Field(..., description="User ID")], update_saas_user_email_param : Optional[UpdateSaasUserEmailParam] = None, **kwargs) -> None: # noqa: E501 """Change Email # noqa: E501 diff --git a/test/auth/api/single_tenant_api.py b/test/auth/api/single_tenant_api.py new file mode 100644 index 0000000..14613b6 --- /dev/null +++ b/test/auth/api/single_tenant_api.py @@ -0,0 +1,452 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +import re # noqa: F401 +import io +import warnings + +from pydantic import validate_arguments, ValidationError +from typing_extensions import Annotated + +from typing import Optional + +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam + +from saasus_sdk_python.src.auth.api_client import ApiClient +from saasus_sdk_python.src.auth.api_response import ApiResponse +from saasus_sdk_python.src.auth.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) + + +class SingleTenantApi(object): + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None): + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @validate_arguments + def get_cloud_formation_launch_stack_link_for_single_tenant(self, **kwargs) -> CloudFormationLaunchStackLink: # noqa: E501 + """Get CloudFormation Stack Launch Link For Single Tenant # noqa: E501 + + Get the CloudFormation stack activation link for Single Tenant. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_cloud_formation_launch_stack_link_for_single_tenant(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: CloudFormationLaunchStackLink + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info(**kwargs) # noqa: E501 + + @validate_arguments + def get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 + """Get CloudFormation Stack Launch Link For Single Tenant # noqa: E501 + + Get the CloudFormation stack activation link for Single Tenant. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_cloud_formation_launch_stack_link_for_single_tenant_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(CloudFormationLaunchStackLink, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_cloud_formation_launch_stack_link_for_single_tenant" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = { + '200': "CloudFormationLaunchStackLink", + '500': "Error", + } + + return self.api_client.call_api( + '/single-tenant/cloudformation-launch-stack-link', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @validate_arguments + def get_single_tenant_settings(self, **kwargs) -> SingleTenantSettings: # noqa: E501 + """Retrieve the settings of the single tenant. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_single_tenant_settings(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: SingleTenantSettings + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the get_single_tenant_settings_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.get_single_tenant_settings_with_http_info(**kwargs) # noqa: E501 + + @validate_arguments + def get_single_tenant_settings_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 + """Retrieve the settings of the single tenant. # noqa: E501 + + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_single_tenant_settings_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(SingleTenantSettings, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_single_tenant_settings" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = { + '200': "SingleTenantSettings", + '500': "Error", + } + + return self.api_client.call_api( + '/single-tenant/settings', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @validate_arguments + def update_single_tenant_settings(self, update_single_tenant_settings_param : Optional[UpdateSingleTenantSettingsParam] = None, **kwargs) -> None: # noqa: E501 + """Update configuration information for single-tenant functionality # noqa: E501 + + Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_single_tenant_settings(update_single_tenant_settings_param, async_req=True) + >>> result = thread.get() + + :param update_single_tenant_settings_param: + :type update_single_tenant_settings_param: UpdateSingleTenantSettingsParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the update_single_tenant_settings_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.update_single_tenant_settings_with_http_info(update_single_tenant_settings_param, **kwargs) # noqa: E501 + + @validate_arguments + def update_single_tenant_settings_with_http_info(self, update_single_tenant_settings_param : Optional[UpdateSingleTenantSettingsParam] = None, **kwargs) -> ApiResponse: # noqa: E501 + """Update configuration information for single-tenant functionality # noqa: E501 + + Updates configuration information for single-tenant functionality Returns error if single tenant feature cannot be enabled. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_single_tenant_settings_with_http_info(update_single_tenant_settings_param, async_req=True) + >>> result = thread.get() + + :param update_single_tenant_settings_param: + :type update_single_tenant_settings_param: UpdateSingleTenantSettingsParam + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + _params = locals() + + _all_params = [ + 'update_single_tenant_settings_param' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_single_tenant_settings" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['update_single_tenant_settings_param'] is not None: + _body_params = _params['update_single_tenant_settings_param'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = {} + + return self.api_client.call_api( + '/single-tenant/settings', 'PATCH', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) diff --git a/test/auth/api/user_attribute_api.py b/test/auth/api/user_attribute_api.py index 9b2ace5..47aa8cc 100644 --- a/test/auth/api/user_attribute_api.py +++ b/test/auth/api/user_attribute_api.py @@ -46,11 +46,158 @@ def __init__(self, api_client=None): api_client = ApiClient.get_default() self.api_client = api_client + @validate_arguments + def create_saas_user_attribute(self, body : Optional[Attribute] = None, **kwargs) -> Attribute: # noqa: E501 + """Create SaaS User Attributes # noqa: E501 + + Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_saas_user_attribute(body, async_req=True) + >>> result = thread.get() + + :param body: + :type body: Attribute + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: Attribute + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + raise ValueError("Error! Please call the create_saas_user_attribute_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") + return self.create_saas_user_attribute_with_http_info(body, **kwargs) # noqa: E501 + + @validate_arguments + def create_saas_user_attribute_with_http_info(self, body : Optional[Attribute] = None, **kwargs) -> ApiResponse: # noqa: E501 + """Create SaaS User Attributes # noqa: E501 + + Create additional SaaS user attributes to be kept on the SaaSus Platform. You can give common values to all tenants. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_saas_user_attribute_with_http_info(body, async_req=True) + >>> result = thread.get() + + :param body: + :type body: Attribute + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: timeout setting for this request. If one + number provided, it will be total request + timeout. It can also be a pair (tuple) of + (connection, read) timeouts. + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(Attribute, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'body' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_saas_user_attribute" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['body'] is not None: + _body_params = _params['body'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['Bearer'] # noqa: E501 + + _response_types_map = { + '201': "Attribute", + '500': "Error", + } + + return self.api_client.call_api( + '/saas-user-attributes', 'POST', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + @validate_arguments def create_user_attribute(self, body : Optional[Attribute] = None, **kwargs) -> Attribute: # noqa: E501 """Create User Attributes # noqa: E501 - Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 + Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True @@ -79,7 +226,7 @@ def create_user_attribute(self, body : Optional[Attribute] = None, **kwargs) -> def create_user_attribute_with_http_info(self, body : Optional[Attribute] = None, **kwargs) -> ApiResponse: # noqa: E501 """Create User Attributes # noqa: E501 - Create additional user attributes to be kept on the SaaSus Platform. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 + Create additional user attributes to be kept on the SaaSus Platform. You can give different values to each tenant. For example, you can define items associated with a user, such as user name, birthday, etc. If you don't want personal information on the SaaS Platform side, personal information can be kept on the SaaS side without user attribute definition. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/test/auth/models/__init__.py b/test/auth/models/__init__.py index 431ae23..dda4fe8 100644 --- a/test/auth/models/__init__.py +++ b/test/auth/models/__init__.py @@ -24,6 +24,7 @@ from saasus_sdk_python.src.auth.models.billing_address import BillingAddress from saasus_sdk_python.src.auth.models.billing_info import BillingInfo from saasus_sdk_python.src.auth.models.client_secret import ClientSecret +from saasus_sdk_python.src.auth.models.cloud_formation_launch_stack_link import CloudFormationLaunchStackLink from saasus_sdk_python.src.auth.models.confirm_email_update_param import ConfirmEmailUpdateParam from saasus_sdk_python.src.auth.models.confirm_external_user_link_param import ConfirmExternalUserLinkParam from saasus_sdk_python.src.auth.models.confirm_sign_up_with_aws_marketplace_param import ConfirmSignUpWithAwsMarketplaceParam @@ -77,6 +78,7 @@ from saasus_sdk_python.src.auth.models.sign_in_settings import SignInSettings from saasus_sdk_python.src.auth.models.sign_up_param import SignUpParam from saasus_sdk_python.src.auth.models.sign_up_with_aws_marketplace_param import SignUpWithAwsMarketplaceParam +from saasus_sdk_python.src.auth.models.single_tenant_settings import SingleTenantSettings from saasus_sdk_python.src.auth.models.software_token_secret_code import SoftwareTokenSecretCode from saasus_sdk_python.src.auth.models.tenant import Tenant from saasus_sdk_python.src.auth.models.tenant_attributes import TenantAttributes @@ -92,9 +94,11 @@ from saasus_sdk_python.src.auth.models.update_env_param import UpdateEnvParam from saasus_sdk_python.src.auth.models.update_identity_provider_param import UpdateIdentityProviderParam from saasus_sdk_python.src.auth.models.update_notification_messages_param import UpdateNotificationMessagesParam +from saasus_sdk_python.src.auth.models.update_saas_user_attributes_param import UpdateSaasUserAttributesParam from saasus_sdk_python.src.auth.models.update_saas_user_email_param import UpdateSaasUserEmailParam from saasus_sdk_python.src.auth.models.update_saas_user_password_param import UpdateSaasUserPasswordParam from saasus_sdk_python.src.auth.models.update_sign_in_settings_param import UpdateSignInSettingsParam +from saasus_sdk_python.src.auth.models.update_single_tenant_settings_param import UpdateSingleTenantSettingsParam from saasus_sdk_python.src.auth.models.update_software_token_param import UpdateSoftwareTokenParam from saasus_sdk_python.src.auth.models.update_tenant_identity_provider_param import UpdateTenantIdentityProviderParam from saasus_sdk_python.src.auth.models.update_tenant_user_param import UpdateTenantUserParam diff --git a/test/auth/models/cloud_formation_launch_stack_link.py b/test/auth/models/cloud_formation_launch_stack_link.py new file mode 100644 index 0000000..131d308 --- /dev/null +++ b/test/auth/models/cloud_formation_launch_stack_link.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://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 ConfigDict, BaseModel, Field, StrictStr + +class CloudFormationLaunchStackLink(BaseModel): + """ + CloudFormationLaunchStackLink + """ + link: StrictStr = Field(...) + __properties = ["link"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> CloudFormationLaunchStackLink: + """Create an instance of CloudFormationLaunchStackLink from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> CloudFormationLaunchStackLink: + """Create an instance of CloudFormationLaunchStackLink from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CloudFormationLaunchStackLink.parse_obj(obj) + + _obj = CloudFormationLaunchStackLink.parse_obj({ + "link": obj.get("link") + }) + return _obj + + diff --git a/test/auth/models/saas_user.py b/test/auth/models/saas_user.py index 0915e02..ab9f596 100644 --- a/test/auth/models/saas_user.py +++ b/test/auth/models/saas_user.py @@ -18,7 +18,7 @@ import json - +from typing import Any, Dict, Optional from pydantic import ConfigDict, BaseModel, Field, StrictStr class SaasUser(BaseModel): @@ -27,7 +27,8 @@ class SaasUser(BaseModel): """ id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") - __properties = ["id", "email"] + attributes: Optional[Dict[str, Any]] = Field(None, description="Attribute information ") + __properties = ["id", "email", "attributes"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -62,7 +63,8 @@ def from_dict(cls, obj: dict) -> SaasUser: _obj = SaasUser.parse_obj({ "id": obj.get("id"), - "email": obj.get("email") + "email": obj.get("email"), + "attributes": obj.get("attributes") }) return _obj diff --git a/test/auth/models/single_tenant_settings.py b/test/auth/models/single_tenant_settings.py new file mode 100644 index 0000000..55cc6cb --- /dev/null +++ b/test/auth/models/single_tenant_settings.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://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 ConfigDict, BaseModel, Field, StrictBool, StrictStr + +class SingleTenantSettings(BaseModel): + """ + SingleTenantSettings + """ + enabled: StrictBool = Field(..., description="enable Single Tenant settings or not") + role_arn: StrictStr = Field(..., description="ARN of the role for SaaS Platform to AssumeRole") + cloudformation_template_url: StrictStr = Field(..., description="S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored") + ddl_template_url: StrictStr = Field(..., description="S3 URL where the CloudFormationTemplate to be executed in the SaaS environment is stored") + role_external_id: StrictStr = Field(..., description="External id used by SaaSus when AssumeRole to operate SaaS") + __properties = ["enabled", "role_arn", "cloudformation_template_url", "ddl_template_url", "role_external_id"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> SingleTenantSettings: + """Create an instance of SingleTenantSettings from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> SingleTenantSettings: + """Create an instance of SingleTenantSettings from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return SingleTenantSettings.parse_obj(obj) + + _obj = SingleTenantSettings.parse_obj({ + "enabled": obj.get("enabled"), + "role_arn": obj.get("role_arn"), + "cloudformation_template_url": obj.get("cloudformation_template_url"), + "ddl_template_url": obj.get("ddl_template_url"), + "role_external_id": obj.get("role_external_id") + }) + return _obj + + diff --git a/test/auth/models/update_saas_user_attributes_param.py b/test/auth/models/update_saas_user_attributes_param.py new file mode 100644 index 0000000..ddc9690 --- /dev/null +++ b/test/auth/models/update_saas_user_attributes_param.py @@ -0,0 +1,67 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, Dict +from pydantic import ConfigDict, BaseModel, Field + +class UpdateSaasUserAttributesParam(BaseModel): + """ + UpdateSaasUserAttributesParam + """ + attributes: Dict[str, Any] = Field(..., description="Attribute information ") + __properties = ["attributes"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> UpdateSaasUserAttributesParam: + """Create an instance of UpdateSaasUserAttributesParam from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> UpdateSaasUserAttributesParam: + """Create an instance of UpdateSaasUserAttributesParam from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return UpdateSaasUserAttributesParam.parse_obj(obj) + + _obj = UpdateSaasUserAttributesParam.parse_obj({ + "attributes": obj.get("attributes") + }) + return _obj + + diff --git a/test/auth/models/update_single_tenant_settings_param.py b/test/auth/models/update_single_tenant_settings_param.py new file mode 100644 index 0000000..c43850b --- /dev/null +++ b/test/auth/models/update_single_tenant_settings_param.py @@ -0,0 +1,75 @@ +# coding: utf-8 + +""" + SaaSus Auth API Schema + + Schema + + The version of the OpenAPI document: 1.0.0 + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" # noqa: E501 + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Optional +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr + +class UpdateSingleTenantSettingsParam(BaseModel): + """ + UpdateSingleTenantSettingsParam + """ + enabled: Optional[StrictBool] = Field(None, description="enable Single Tenant settings or not") + role_arn: Optional[StrictStr] = Field(None, description="ARN of the role for SaaS Platform to AssumeRole") + cloudformation_template: Optional[StrictStr] = Field(None, description="CloudFormation template file") + ddl_template: Optional[StrictStr] = Field(None, description="ddl file to run in SaaS environment") + role_external_id: Optional[StrictStr] = Field(None, description="External id used by SaaSus when AssumeRole to operate SaaS") + __properties = ["enabled", "role_arn", "cloudformation_template", "ddl_template", "role_external_id"] + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> UpdateSingleTenantSettingsParam: + """Create an instance of UpdateSingleTenantSettingsParam from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> UpdateSingleTenantSettingsParam: + """Create an instance of UpdateSingleTenantSettingsParam from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return UpdateSingleTenantSettingsParam.parse_obj(obj) + + _obj = UpdateSingleTenantSettingsParam.parse_obj({ + "enabled": obj.get("enabled"), + "role_arn": obj.get("role_arn"), + "cloudformation_template": obj.get("cloudformation_template"), + "ddl_template": obj.get("ddl_template"), + "role_external_id": obj.get("role_external_id") + }) + return _obj + + diff --git a/test/auth/models/user_info.py b/test/auth/models/user_info.py index 4ffd36a..4b8bf36 100644 --- a/test/auth/models/user_info.py +++ b/test/auth/models/user_info.py @@ -18,7 +18,7 @@ import json -from typing import List +from typing import Any, Dict, List from pydantic import ConfigDict, BaseModel, Field, StrictStr from saasus_sdk_python.src.auth.models.user_available_tenant import UserAvailableTenant from typing_extensions import Annotated @@ -29,8 +29,9 @@ class UserInfo(BaseModel): """ id: StrictStr = Field(...) email: StrictStr = Field(..., description="E-mail") + user_attribute: Dict[str, Any] = Field(..., description="user additional attributes") tenants: Annotated[List[UserAvailableTenant], Field()] = Field(..., description="Tenant Info") - __properties = ["id", "email", "tenants"] + __properties = ["id", "email", "user_attribute", "tenants"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -73,6 +74,7 @@ def from_dict(cls, obj: dict) -> UserInfo: _obj = UserInfo.parse_obj({ "id": obj.get("id"), "email": obj.get("email"), + "user_attribute": obj.get("user_attribute"), "tenants": [UserAvailableTenant.from_dict(_item) for _item in obj.get("tenants")] if obj.get("tenants") is not None else None }) return _obj diff --git a/test/communication/models/comment.py b/test/communication/models/comment.py index f17b73f..a2f73f8 100644 --- a/test/communication/models/comment.py +++ b/test/communication/models/comment.py @@ -26,10 +26,9 @@ class Comment(BaseModel): Comment """ id: StrictStr = Field(...) - user_id: StrictStr = Field(...) created_at: StrictInt = Field(...) body: StrictStr = Field(...) - __properties = ["id", "user_id", "created_at", "body"] + __properties = ["id", "created_at", "body"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -64,7 +63,6 @@ def from_dict(cls, obj: dict) -> Comment: _obj = Comment.parse_obj({ "id": obj.get("id"), - "user_id": obj.get("user_id"), "created_at": obj.get("created_at"), "body": obj.get("body") }) diff --git a/test/communication/models/create_feedback_comment_param.py b/test/communication/models/create_feedback_comment_param.py index f27b1ab..cc3e102 100644 --- a/test/communication/models/create_feedback_comment_param.py +++ b/test/communication/models/create_feedback_comment_param.py @@ -25,9 +25,8 @@ class CreateFeedbackCommentParam(BaseModel): """ CreateFeedbackCommentParam """ - user_id: StrictStr = Field(...) body: StrictStr = Field(...) - __properties = ["user_id", "body"] + __properties = ["body"] model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: @@ -61,7 +60,6 @@ def from_dict(cls, obj: dict) -> CreateFeedbackCommentParam: return CreateFeedbackCommentParam.parse_obj(obj) _obj = CreateFeedbackCommentParam.parse_obj({ - "user_id": obj.get("user_id"), "body": obj.get("body") }) return _obj From 422c2fcfe5b3d987ad4b45a0bfe70fa0f010a6e7 Mon Sep 17 00:00:00 2001 From: takashi-uchida Date: Mon, 9 Sep 2024 10:14:34 +0900 Subject: [PATCH 5/6] fix generate.sh --- generate.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/generate.sh b/generate.sh index d71512c..702208c 100755 --- a/generate.sh +++ b/generate.sh @@ -52,7 +52,8 @@ do --package-name saasus_sdk_python.src.${module} done -bump-pydantic saasus_sdk_python/generated +poetry install +poetry run bump-pydantic saasus_sdk_python/generated for module in "${MODULES[@]}" do From 9e58a0417bd6277d88a4c26ceffe3de517effe3a Mon Sep 17 00:00:00 2001 From: ryudai Date: Mon, 21 Oct 2024 21:32:55 +0900 Subject: [PATCH 6/6] add license --- LICENSE.txt | 202 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 202 insertions(+) create mode 100644 LICENSE.txt diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE.txt @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License.