diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 868ad12..626786f 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] + python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - uses: actions/checkout@v3 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8b9e39e..e2b3aed 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -14,9 +14,6 @@ stages: - pip install -r test-requirements.txt - pytest --cov=infisicalapi_client -pytest-3.7: - extends: .pytest - image: python:3.7-alpine pytest-3.8: extends: .pytest image: python:3.8-alpine diff --git a/.travis.yml b/.travis.yml index e8dad67..0bfb5b8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,7 +1,6 @@ # ref: https://docs.travis-ci.com/user/languages/python language: python python: - - "3.7" - "3.8" - "3.9" - "3.10" diff --git a/README.md b/README.md index 8321a68..c3811d2 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ The Infisical SDK provides a convenient way to interact with the Infisical API. ## Requirements -Python 3.7+ +Python 3.8+ ## Installation diff --git a/infisicalapi_client/api/default_api.py b/infisicalapi_client/api/default_api.py index e327500..ac08814 100644 --- a/infisicalapi_client/api/default_api.py +++ b/infisicalapi_client/api/default_api.py @@ -16,12 +16,12 @@ import io import warnings -from pydantic import validate_arguments, ValidationError +from pydantic import StringConstraints, validate_arguments, ValidationError from typing_extensions import Annotated from datetime import datetime -from pydantic import Field, StrictFloat, StrictInt, StrictStr, confloat, conint, constr +from pydantic import Field, StrictFloat, StrictInt, StrictStr from typing import Any, Dict, List, Optional, Union @@ -2048,7 +2048,7 @@ def api_v1_additional_privilege_identity_delete_with_http_info(self, api_v1_addi _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_additional_privilege_identity_get(self, identity_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the identity to list.")], project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project of the identity in.")], **kwargs) -> ApiV1AdditionalPrivilegeIdentityGet200Response: # noqa: E501 + def api_v1_additional_privilege_identity_get(self, identity_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the identity to list.")], project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project of the identity in.")], **kwargs) -> ApiV1AdditionalPrivilegeIdentityGet200Response: # noqa: E501 """api_v1_additional_privilege_identity_get # noqa: E501 List of a specific privilege of an identity in a project. # noqa: E501 @@ -2080,7 +2080,7 @@ def api_v1_additional_privilege_identity_get(self, identity_id : Annotated[const return self.api_v1_additional_privilege_identity_get_with_http_info(identity_id, project_slug, **kwargs) # noqa: E501 @validate_arguments - def api_v1_additional_privilege_identity_get_with_http_info(self, identity_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the identity to list.")], project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project of the identity in.")], **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_additional_privilege_identity_get_with_http_info(self, identity_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the identity to list.")], project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project of the identity in.")], **kwargs) -> ApiResponse: # noqa: E501 """api_v1_additional_privilege_identity_get # noqa: E501 List of a specific privilege of an identity in a project. # noqa: E501 @@ -2490,7 +2490,7 @@ def api_v1_additional_privilege_identity_permanent_post_with_http_info(self, api _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_additional_privilege_identity_privilege_slug_get(self, identity_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the identity to list.")], project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project of the identity in.")], privilege_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the privilege.")], **kwargs) -> ApiV1AdditionalPrivilegeIdentityPermanentPost200Response: # noqa: E501 + def api_v1_additional_privilege_identity_privilege_slug_get(self, identity_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the identity to list.")], project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project of the identity in.")], privilege_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the privilege.")], **kwargs) -> ApiV1AdditionalPrivilegeIdentityPermanentPost200Response: # noqa: E501 """api_v1_additional_privilege_identity_privilege_slug_get # noqa: E501 Retrieve details of a specific privilege by privilege slug. # noqa: E501 @@ -2524,7 +2524,7 @@ def api_v1_additional_privilege_identity_privilege_slug_get(self, identity_id : return self.api_v1_additional_privilege_identity_privilege_slug_get_with_http_info(identity_id, project_slug, privilege_slug, **kwargs) # noqa: E501 @validate_arguments - def api_v1_additional_privilege_identity_privilege_slug_get_with_http_info(self, identity_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the identity to list.")], project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project of the identity in.")], privilege_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the privilege.")], **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_additional_privilege_identity_privilege_slug_get_with_http_info(self, identity_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the identity to list.")], project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project of the identity in.")], privilege_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the privilege.")], **kwargs) -> ApiResponse: # noqa: E501 """api_v1_additional_privilege_identity_privilege_slug_get # noqa: E501 Retrieve details of a specific privilege by privilege slug. # noqa: E501 @@ -3352,7 +3352,7 @@ def api_v1_additional_privilege_users_privilege_id_get_with_http_info(self, priv _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_additional_privilege_users_privilege_id_patch(self, privilege_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The id of privilege object")], api_v1_additional_privilege_users_privilege_id_patch_request : Optional[ApiV1AdditionalPrivilegeUsersPrivilegeIdPatchRequest] = None, **kwargs) -> ApiV1AdditionalPrivilegeUsersPermanentPost200Response: # noqa: E501 + def api_v1_additional_privilege_users_privilege_id_patch(self, privilege_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The id of privilege object")], api_v1_additional_privilege_users_privilege_id_patch_request : Optional[ApiV1AdditionalPrivilegeUsersPrivilegeIdPatchRequest] = None, **kwargs) -> ApiV1AdditionalPrivilegeUsersPermanentPost200Response: # noqa: E501 """api_v1_additional_privilege_users_privilege_id_patch # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -3383,7 +3383,7 @@ def api_v1_additional_privilege_users_privilege_id_patch(self, privilege_id : An return self.api_v1_additional_privilege_users_privilege_id_patch_with_http_info(privilege_id, api_v1_additional_privilege_users_privilege_id_patch_request, **kwargs) # noqa: E501 @validate_arguments - def api_v1_additional_privilege_users_privilege_id_patch_with_http_info(self, privilege_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The id of privilege object")], api_v1_additional_privilege_users_privilege_id_patch_request : Optional[ApiV1AdditionalPrivilegeUsersPrivilegeIdPatchRequest] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_additional_privilege_users_privilege_id_patch_with_http_info(self, privilege_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The id of privilege object")], api_v1_additional_privilege_users_privilege_id_patch_request : Optional[ApiV1AdditionalPrivilegeUsersPrivilegeIdPatchRequest] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_additional_privilege_users_privilege_id_patch # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -4070,7 +4070,7 @@ def api_v1_admin_signup_post_with_http_info(self, api_v1_admin_signup_post_reque _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_admin_user_management_users_get(self, search_term : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[confloat(le=100, strict=True), conint(le=100.0, strict=True)]] = None, **kwargs) -> ApiV1AdminUserManagementUsersGet200Response: # noqa: E501 + def api_v1_admin_user_management_users_get(self, search_term : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[Annotated[float, Field(le=100, strict=True)], Annotated[int, Field(le=100.0, strict=True)]]] = None, **kwargs) -> ApiV1AdminUserManagementUsersGet200Response: # noqa: E501 """api_v1_admin_user_management_users_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -4103,7 +4103,7 @@ def api_v1_admin_user_management_users_get(self, search_term : Optional[StrictSt return self.api_v1_admin_user_management_users_get_with_http_info(search_term, offset, limit, **kwargs) # noqa: E501 @validate_arguments - def api_v1_admin_user_management_users_get_with_http_info(self, search_term : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[confloat(le=100, strict=True), conint(le=100.0, strict=True)]] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_admin_user_management_users_get_with_http_info(self, search_term : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[Annotated[float, Field(le=100, strict=True)], Annotated[int, Field(le=100.0, strict=True)]]] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_admin_user_management_users_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -9611,7 +9611,7 @@ def api_v1_auth_token_auth_identities_identity_id_post_with_http_info(self, iden _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_auth_token_auth_identities_identity_id_tokens_get(self, identity_id : Annotated[StrictStr, Field(..., description="The ID of the identity to list token metadata for.")], offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th token.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of tokens to return")] = None, **kwargs) -> ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200Response: # noqa: E501 + def api_v1_auth_token_auth_identities_identity_id_tokens_get(self, identity_id : Annotated[StrictStr, Field(..., description="The ID of the identity to list token metadata for.")], offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th token.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of tokens to return")] = None, **kwargs) -> ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200Response: # noqa: E501 """api_v1_auth_token_auth_identities_identity_id_tokens_get # noqa: E501 Get tokens for identity with Token Auth # noqa: E501 @@ -9645,7 +9645,7 @@ def api_v1_auth_token_auth_identities_identity_id_tokens_get(self, identity_id : return self.api_v1_auth_token_auth_identities_identity_id_tokens_get_with_http_info(identity_id, offset, limit, **kwargs) # noqa: E501 @validate_arguments - def api_v1_auth_token_auth_identities_identity_id_tokens_get_with_http_info(self, identity_id : Annotated[StrictStr, Field(..., description="The ID of the identity to list token metadata for.")], offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th token.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of tokens to return")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_auth_token_auth_identities_identity_id_tokens_get_with_http_info(self, identity_id : Annotated[StrictStr, Field(..., description="The ID of the identity to list token metadata for.")], offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th token.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of tokens to return")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_auth_token_auth_identities_identity_id_tokens_get # noqa: E501 Get tokens for identity with Token Auth # noqa: E501 @@ -12260,7 +12260,7 @@ def api_v1_bot_project_id_get_with_http_info(self, project_id : StrictStr, **kwa _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_dynamic_secrets_get(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsGet200Response: # noqa: E501 + def api_v1_dynamic_secrets_get(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsGet200Response: # noqa: E501 """api_v1_dynamic_secrets_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -12293,7 +12293,7 @@ def api_v1_dynamic_secrets_get(self, project_slug : Annotated[constr(strict=True return self.api_v1_dynamic_secrets_get_with_http_info(project_slug, environment_slug, path, **kwargs) # noqa: E501 @validate_arguments - def api_v1_dynamic_secrets_get_with_http_info(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_dynamic_secrets_get_with_http_info(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_dynamic_secrets_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -12414,7 +12414,7 @@ def api_v1_dynamic_secrets_get_with_http_info(self, project_slug : Annotated[con _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_dynamic_secrets_leases_lease_id_delete(self, lease_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_delete_request : ApiV1DynamicSecretsLeasesLeaseIdDeleteRequest, **kwargs) -> ApiV1DynamicSecretsLeasesLeaseIdDelete200Response: # noqa: E501 + def api_v1_dynamic_secrets_leases_lease_id_delete(self, lease_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_delete_request : ApiV1DynamicSecretsLeasesLeaseIdDeleteRequest, **kwargs) -> ApiV1DynamicSecretsLeasesLeaseIdDelete200Response: # noqa: E501 """api_v1_dynamic_secrets_leases_lease_id_delete # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -12445,7 +12445,7 @@ def api_v1_dynamic_secrets_leases_lease_id_delete(self, lease_id : Annotated[con return self.api_v1_dynamic_secrets_leases_lease_id_delete_with_http_info(lease_id, api_v1_dynamic_secrets_leases_lease_id_delete_request, **kwargs) # noqa: E501 @validate_arguments - def api_v1_dynamic_secrets_leases_lease_id_delete_with_http_info(self, lease_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_delete_request : ApiV1DynamicSecretsLeasesLeaseIdDeleteRequest, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_dynamic_secrets_leases_lease_id_delete_with_http_info(self, lease_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_delete_request : ApiV1DynamicSecretsLeasesLeaseIdDeleteRequest, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_dynamic_secrets_leases_lease_id_delete # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -12567,7 +12567,7 @@ def api_v1_dynamic_secrets_leases_lease_id_delete_with_http_info(self, lease_id _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_dynamic_secrets_leases_lease_id_get(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], lease_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the dynamic secret lease.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsLeasesLeaseIdGet200Response: # noqa: E501 + def api_v1_dynamic_secrets_leases_lease_id_get(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], lease_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the dynamic secret lease.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsLeasesLeaseIdGet200Response: # noqa: E501 """api_v1_dynamic_secrets_leases_lease_id_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -12602,7 +12602,7 @@ def api_v1_dynamic_secrets_leases_lease_id_get(self, project_slug : Annotated[co return self.api_v1_dynamic_secrets_leases_lease_id_get_with_http_info(project_slug, environment_slug, lease_id, path, **kwargs) # noqa: E501 @validate_arguments - def api_v1_dynamic_secrets_leases_lease_id_get_with_http_info(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], lease_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the dynamic secret lease.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_dynamic_secrets_leases_lease_id_get_with_http_info(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], lease_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the dynamic secret lease.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_dynamic_secrets_leases_lease_id_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -12729,7 +12729,7 @@ def api_v1_dynamic_secrets_leases_lease_id_get_with_http_info(self, project_slug _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_dynamic_secrets_leases_lease_id_renew_post(self, lease_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_renew_post_request : ApiV1DynamicSecretsLeasesLeaseIdRenewPostRequest, **kwargs) -> ApiV1DynamicSecretsLeasesLeaseIdDelete200Response: # noqa: E501 + def api_v1_dynamic_secrets_leases_lease_id_renew_post(self, lease_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_renew_post_request : ApiV1DynamicSecretsLeasesLeaseIdRenewPostRequest, **kwargs) -> ApiV1DynamicSecretsLeasesLeaseIdDelete200Response: # noqa: E501 """api_v1_dynamic_secrets_leases_lease_id_renew_post # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -12760,7 +12760,7 @@ def api_v1_dynamic_secrets_leases_lease_id_renew_post(self, lease_id : Annotated return self.api_v1_dynamic_secrets_leases_lease_id_renew_post_with_http_info(lease_id, api_v1_dynamic_secrets_leases_lease_id_renew_post_request, **kwargs) # noqa: E501 @validate_arguments - def api_v1_dynamic_secrets_leases_lease_id_renew_post_with_http_info(self, lease_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_renew_post_request : ApiV1DynamicSecretsLeasesLeaseIdRenewPostRequest, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_dynamic_secrets_leases_lease_id_renew_post_with_http_info(self, lease_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the dynamic secret lease.")], api_v1_dynamic_secrets_leases_lease_id_renew_post_request : ApiV1DynamicSecretsLeasesLeaseIdRenewPostRequest, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_dynamic_secrets_leases_lease_id_renew_post # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -13180,7 +13180,7 @@ def api_v1_dynamic_secrets_name_delete_with_http_info(self, name : Annotated[Str _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_dynamic_secrets_name_get(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], name : Annotated[constr(strict=True, min_length=1), Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsNameGet200Response: # noqa: E501 + def api_v1_dynamic_secrets_name_get(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], name : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsNameGet200Response: # noqa: E501 """api_v1_dynamic_secrets_name_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -13215,7 +13215,7 @@ def api_v1_dynamic_secrets_name_get(self, project_slug : Annotated[constr(strict return self.api_v1_dynamic_secrets_name_get_with_http_info(project_slug, environment_slug, name, path, **kwargs) # noqa: E501 @validate_arguments - def api_v1_dynamic_secrets_name_get_with_http_info(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], name : Annotated[constr(strict=True, min_length=1), Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_dynamic_secrets_name_get_with_http_info(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], name : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_dynamic_secrets_name_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -13342,7 +13342,7 @@ def api_v1_dynamic_secrets_name_get_with_http_info(self, project_slug : Annotate _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_dynamic_secrets_name_leases_get(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], name : Annotated[constr(strict=True, min_length=1), Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsNameLeasesGet200Response: # noqa: E501 + def api_v1_dynamic_secrets_name_leases_get(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], name : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiV1DynamicSecretsNameLeasesGet200Response: # noqa: E501 """api_v1_dynamic_secrets_name_leases_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -13377,7 +13377,7 @@ def api_v1_dynamic_secrets_name_leases_get(self, project_slug : Annotated[constr return self.api_v1_dynamic_secrets_name_leases_get_with_http_info(project_slug, environment_slug, name, path, **kwargs) # noqa: E501 @validate_arguments - def api_v1_dynamic_secrets_name_leases_get_with_http_info(self, project_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[constr(strict=True, min_length=1), Field(..., description="The slug of the environment to list folders from.")], name : Annotated[constr(strict=True, min_length=1), Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_dynamic_secrets_name_leases_get_with_http_info(self, project_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the project to create dynamic secret in.")], environment_slug : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The slug of the environment to list folders from.")], name : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The name of the dynamic secret.")], path : Annotated[Optional[StrictStr], Field(description="The path to list folders from.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_dynamic_secrets_name_leases_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -13932,7 +13932,7 @@ def api_v1_external_kms_get_with_http_info(self, **kwargs) -> ApiResponse: # no _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_external_kms_id_delete(self, id : constr(strict=True, min_length=1), **kwargs) -> ApiV1ExternalKmsPost200Response: # noqa: E501 + def api_v1_external_kms_id_delete(self, id : Annotated[str, StringConstraints(strict=True, min_length=1)], **kwargs) -> ApiV1ExternalKmsPost200Response: # noqa: E501 """api_v1_external_kms_id_delete # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -13961,7 +13961,7 @@ def api_v1_external_kms_id_delete(self, id : constr(strict=True, min_length=1), return self.api_v1_external_kms_id_delete_with_http_info(id, **kwargs) # noqa: E501 @validate_arguments - def api_v1_external_kms_id_delete_with_http_info(self, id : constr(strict=True, min_length=1), **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_external_kms_id_delete_with_http_info(self, id : Annotated[str, StringConstraints(strict=True, min_length=1)], **kwargs) -> ApiResponse: # noqa: E501 """api_v1_external_kms_id_delete # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -14070,7 +14070,7 @@ def api_v1_external_kms_id_delete_with_http_info(self, id : constr(strict=True, _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_external_kms_id_get(self, id : constr(strict=True, min_length=1), **kwargs) -> ApiV1ExternalKmsIdGet200Response: # noqa: E501 + def api_v1_external_kms_id_get(self, id : Annotated[str, StringConstraints(strict=True, min_length=1)], **kwargs) -> ApiV1ExternalKmsIdGet200Response: # noqa: E501 """api_v1_external_kms_id_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -14099,7 +14099,7 @@ def api_v1_external_kms_id_get(self, id : constr(strict=True, min_length=1), **k return self.api_v1_external_kms_id_get_with_http_info(id, **kwargs) # noqa: E501 @validate_arguments - def api_v1_external_kms_id_get_with_http_info(self, id : constr(strict=True, min_length=1), **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_external_kms_id_get_with_http_info(self, id : Annotated[str, StringConstraints(strict=True, min_length=1)], **kwargs) -> ApiResponse: # noqa: E501 """api_v1_external_kms_id_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -14208,7 +14208,7 @@ def api_v1_external_kms_id_get_with_http_info(self, id : constr(strict=True, min _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_external_kms_id_patch(self, id : constr(strict=True, min_length=1), api_v1_external_kms_id_patch_request : ApiV1ExternalKmsIdPatchRequest, **kwargs) -> ApiV1ExternalKmsPost200Response: # noqa: E501 + def api_v1_external_kms_id_patch(self, id : Annotated[str, StringConstraints(strict=True, min_length=1)], api_v1_external_kms_id_patch_request : ApiV1ExternalKmsIdPatchRequest, **kwargs) -> ApiV1ExternalKmsPost200Response: # noqa: E501 """api_v1_external_kms_id_patch # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -14239,7 +14239,7 @@ def api_v1_external_kms_id_patch(self, id : constr(strict=True, min_length=1), a return self.api_v1_external_kms_id_patch_with_http_info(id, api_v1_external_kms_id_patch_request, **kwargs) # noqa: E501 @validate_arguments - def api_v1_external_kms_id_patch_with_http_info(self, id : constr(strict=True, min_length=1), api_v1_external_kms_id_patch_request : ApiV1ExternalKmsIdPatchRequest, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_external_kms_id_patch_with_http_info(self, id : Annotated[str, StringConstraints(strict=True, min_length=1)], api_v1_external_kms_id_patch_request : ApiV1ExternalKmsIdPatchRequest, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_external_kms_id_patch # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -14506,7 +14506,7 @@ def api_v1_external_kms_post_with_http_info(self, api_v1_external_kms_post_reque _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_external_kms_slug_slug_get(self, slug : constr(strict=True, min_length=1), **kwargs) -> ApiV1ExternalKmsIdGet200Response: # noqa: E501 + def api_v1_external_kms_slug_slug_get(self, slug : Annotated[str, StringConstraints(strict=True, min_length=1)], **kwargs) -> ApiV1ExternalKmsIdGet200Response: # noqa: E501 """api_v1_external_kms_slug_slug_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -14535,7 +14535,7 @@ def api_v1_external_kms_slug_slug_get(self, slug : constr(strict=True, min_lengt return self.api_v1_external_kms_slug_slug_get_with_http_info(slug, **kwargs) # noqa: E501 @validate_arguments - def api_v1_external_kms_slug_slug_get_with_http_info(self, slug : constr(strict=True, min_length=1), **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_external_kms_slug_slug_get_with_http_info(self, slug : Annotated[str, StringConstraints(strict=True, min_length=1)], **kwargs) -> ApiResponse: # noqa: E501 """api_v1_external_kms_slug_slug_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -15988,7 +15988,7 @@ def api_v1_groups_slug_delete_with_http_info(self, slug : Annotated[StrictStr, F _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_groups_slug_users_get(self, slug : Annotated[StrictStr, Field(..., description="The slug of the group to list users for")], offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th user.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of users to return.")] = None, username : Annotated[Optional[StrictStr], Field(description="The username to search for.")] = None, **kwargs) -> ApiV1GroupsSlugUsersGet200Response: # noqa: E501 + def api_v1_groups_slug_users_get(self, slug : Annotated[StrictStr, Field(..., description="The slug of the group to list users for")], offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th user.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of users to return.")] = None, username : Annotated[Optional[StrictStr], Field(description="The username to search for.")] = None, **kwargs) -> ApiV1GroupsSlugUsersGet200Response: # noqa: E501 """api_v1_groups_slug_users_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -16023,7 +16023,7 @@ def api_v1_groups_slug_users_get(self, slug : Annotated[StrictStr, Field(..., de return self.api_v1_groups_slug_users_get_with_http_info(slug, offset, limit, username, **kwargs) # noqa: E501 @validate_arguments - def api_v1_groups_slug_users_get_with_http_info(self, slug : Annotated[StrictStr, Field(..., description="The slug of the group to list users for")], offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th user.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of users to return.")] = None, username : Annotated[Optional[StrictStr], Field(description="The username to search for.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_groups_slug_users_get_with_http_info(self, slug : Annotated[StrictStr, Field(..., description="The slug of the group to list users for")], offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th user.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of users to return.")] = None, username : Annotated[Optional[StrictStr], Field(description="The username to search for.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_groups_slug_users_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -22928,7 +22928,7 @@ def api_v1_ldap_login_post_with_http_info(self, api_v1_ldap_login_post_request : _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_organization_admin_projects_get(self, search : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[confloat(le=100, strict=True), conint(le=100.0, strict=True)]] = None, **kwargs) -> ApiV1OrganizationAdminProjectsGet200Response: # noqa: E501 + def api_v1_organization_admin_projects_get(self, search : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[Annotated[float, Field(le=100, strict=True)], Annotated[int, Field(le=100.0, strict=True)]]] = None, **kwargs) -> ApiV1OrganizationAdminProjectsGet200Response: # noqa: E501 """api_v1_organization_admin_projects_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -22961,7 +22961,7 @@ def api_v1_organization_admin_projects_get(self, search : Optional[StrictStr] = return self.api_v1_organization_admin_projects_get_with_http_info(search, offset, limit, **kwargs) # noqa: E501 @validate_arguments - def api_v1_organization_admin_projects_get_with_http_info(self, search : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[confloat(le=100, strict=True), conint(le=100.0, strict=True)]] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_organization_admin_projects_get_with_http_info(self, search : Optional[StrictStr] = None, offset : Optional[Union[StrictFloat, StrictInt]] = None, limit : Optional[Union[Annotated[float, Field(le=100, strict=True)], Annotated[int, Field(le=100.0, strict=True)]]] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_organization_admin_projects_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -37478,7 +37478,7 @@ def api_v1_secret_secret_id_secret_versions_get_with_http_info(self, offset : Un _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_secret_sharing_get(self, offset : Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]] = None, limit : Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]] = None, **kwargs) -> ApiV1SecretSharingGet200Response: # noqa: E501 + def api_v1_secret_sharing_get(self, offset : Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]] = None, limit : Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]] = None, **kwargs) -> ApiV1SecretSharingGet200Response: # noqa: E501 """api_v1_secret_sharing_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -37509,7 +37509,7 @@ def api_v1_secret_sharing_get(self, offset : Optional[Union[confloat(le=100, ge= return self.api_v1_secret_sharing_get_with_http_info(offset, limit, **kwargs) # noqa: E501 @validate_arguments - def api_v1_secret_sharing_get_with_http_info(self, offset : Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]] = None, limit : Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_secret_sharing_get_with_http_info(self, offset : Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]] = None, limit : Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_secret_sharing_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -37769,7 +37769,7 @@ def api_v1_secret_sharing_post_with_http_info(self, api_v1_secret_sharing_post_r _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_secret_sharing_public_id_get(self, hashed_hex : constr(strict=True, min_length=1), id : StrictStr, **kwargs) -> ApiV1SecretSharingPublicIdGet200Response: # noqa: E501 + def api_v1_secret_sharing_public_id_get(self, hashed_hex : Annotated[str, StringConstraints(strict=True, min_length=1)], id : StrictStr, **kwargs) -> ApiV1SecretSharingPublicIdGet200Response: # noqa: E501 """api_v1_secret_sharing_public_id_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -37800,7 +37800,7 @@ def api_v1_secret_sharing_public_id_get(self, hashed_hex : constr(strict=True, m return self.api_v1_secret_sharing_public_id_get_with_http_info(hashed_hex, id, **kwargs) # noqa: E501 @validate_arguments - def api_v1_secret_sharing_public_id_get_with_http_info(self, hashed_hex : constr(strict=True, min_length=1), id : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_secret_sharing_public_id_get_with_http_info(self, hashed_hex : Annotated[str, StringConstraints(strict=True, min_length=1)], id : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_secret_sharing_public_id_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -47454,7 +47454,7 @@ def api_v1_workspace_workspace_id_leave_delete_with_http_info(self, workspace_id _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v1_workspace_workspace_id_memberships_details_post(self, workspace_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the project to get memberships from.")], api_v1_workspace_workspace_id_memberships_details_post_request : ApiV1WorkspaceWorkspaceIdMembershipsDetailsPostRequest, **kwargs) -> ApiV1WorkspaceWorkspaceIdMembershipsDetailsPost200Response: # noqa: E501 + def api_v1_workspace_workspace_id_memberships_details_post(self, workspace_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the project to get memberships from.")], api_v1_workspace_workspace_id_memberships_details_post_request : ApiV1WorkspaceWorkspaceIdMembershipsDetailsPostRequest, **kwargs) -> ApiV1WorkspaceWorkspaceIdMembershipsDetailsPost200Response: # noqa: E501 """api_v1_workspace_workspace_id_memberships_details_post # noqa: E501 Return project user memberships # noqa: E501 @@ -47486,7 +47486,7 @@ def api_v1_workspace_workspace_id_memberships_details_post(self, workspace_id : return self.api_v1_workspace_workspace_id_memberships_details_post_with_http_info(workspace_id, api_v1_workspace_workspace_id_memberships_details_post_request, **kwargs) # noqa: E501 @validate_arguments - def api_v1_workspace_workspace_id_memberships_details_post_with_http_info(self, workspace_id : Annotated[constr(strict=True, min_length=1), Field(..., description="The ID of the project to get memberships from.")], api_v1_workspace_workspace_id_memberships_details_post_request : ApiV1WorkspaceWorkspaceIdMembershipsDetailsPostRequest, **kwargs) -> ApiResponse: # noqa: E501 + def api_v1_workspace_workspace_id_memberships_details_post_with_http_info(self, workspace_id : Annotated[Annotated[str, StringConstraints(strict=True, min_length=1)], Field(..., description="The ID of the project to get memberships from.")], api_v1_workspace_workspace_id_memberships_details_post_request : ApiV1WorkspaceWorkspaceIdMembershipsDetailsPostRequest, **kwargs) -> ApiResponse: # noqa: E501 """api_v1_workspace_workspace_id_memberships_details_post # noqa: E501 Return project user memberships # noqa: E501 @@ -56081,7 +56081,7 @@ def api_v2_workspace_project_slug_groups_group_slug_post_with_http_info(self, pr _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v2_workspace_slug_cas_get(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to list CAs for.")], status : Annotated[Optional[StrictStr], Field(description="The status of the CA to filter by.")] = None, friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the CA to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the CA to filter by.")] = None, offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th CA.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of CAs to return.")] = None, **kwargs) -> ApiV2WorkspaceSlugCasGet200Response: # noqa: E501 + def api_v2_workspace_slug_cas_get(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to list CAs for.")], status : Annotated[Optional[StrictStr], Field(description="The status of the CA to filter by.")] = None, friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the CA to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the CA to filter by.")] = None, offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th CA.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of CAs to return.")] = None, **kwargs) -> ApiV2WorkspaceSlugCasGet200Response: # noqa: E501 """api_v2_workspace_slug_cas_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -56120,7 +56120,7 @@ def api_v2_workspace_slug_cas_get(self, slug : Annotated[constr(strict=True, max return self.api_v2_workspace_slug_cas_get_with_http_info(slug, status, friendly_name, common_name, offset, limit, **kwargs) # noqa: E501 @validate_arguments - def api_v2_workspace_slug_cas_get_with_http_info(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to list CAs for.")], status : Annotated[Optional[StrictStr], Field(description="The status of the CA to filter by.")] = None, friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the CA to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the CA to filter by.")] = None, offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th CA.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of CAs to return.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v2_workspace_slug_cas_get_with_http_info(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to list CAs for.")], status : Annotated[Optional[StrictStr], Field(description="The status of the CA to filter by.")] = None, friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the CA to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the CA to filter by.")] = None, offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th CA.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of CAs to return.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v2_workspace_slug_cas_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -56259,7 +56259,7 @@ def api_v2_workspace_slug_cas_get_with_http_info(self, slug : Annotated[constr(s _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v2_workspace_slug_certificates_get(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to list certificates for.")], friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the certificate to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the certificate to filter by.")] = None, offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th certificate.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of certificates to return.")] = None, **kwargs) -> ApiV2WorkspaceSlugCertificatesGet200Response: # noqa: E501 + def api_v2_workspace_slug_certificates_get(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to list certificates for.")], friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the certificate to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the certificate to filter by.")] = None, offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th certificate.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of certificates to return.")] = None, **kwargs) -> ApiV2WorkspaceSlugCertificatesGet200Response: # noqa: E501 """api_v2_workspace_slug_certificates_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -56296,7 +56296,7 @@ def api_v2_workspace_slug_certificates_get(self, slug : Annotated[constr(strict= return self.api_v2_workspace_slug_certificates_get_with_http_info(slug, friendly_name, common_name, offset, limit, **kwargs) # noqa: E501 @validate_arguments - def api_v2_workspace_slug_certificates_get_with_http_info(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to list certificates for.")], friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the certificate to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the certificate to filter by.")] = None, offset : Annotated[Optional[Union[confloat(le=100, ge=0, strict=True), conint(le=100.0, ge=0.0, strict=True)]], Field(description="The offset to start from. If you enter 10, it will start from the 10th certificate.")] = None, limit : Annotated[Optional[Union[confloat(le=100, ge=1, strict=True), conint(le=100.0, ge=1.0, strict=True)]], Field(description="The number of certificates to return.")] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v2_workspace_slug_certificates_get_with_http_info(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to list certificates for.")], friendly_name : Annotated[Optional[StrictStr], Field(description="The friendly name of the certificate to filter by.")] = None, common_name : Annotated[Optional[StrictStr], Field(description="The common name of the certificate to filter by.")] = None, offset : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=0, strict=True)], Annotated[int, Field(le=100.0, ge=0.0, strict=True)]]], Field(description="The offset to start from. If you enter 10, it will start from the 10th certificate.")] = None, limit : Annotated[Optional[Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100.0, ge=1.0, strict=True)]]], Field(description="The number of certificates to return.")] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v2_workspace_slug_certificates_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -56429,7 +56429,7 @@ def api_v2_workspace_slug_certificates_get_with_http_info(self, slug : Annotated _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v2_workspace_slug_delete(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to delete.")], **kwargs) -> ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner: # noqa: E501 + def api_v2_workspace_slug_delete(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to delete.")], **kwargs) -> ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner: # noqa: E501 """api_v2_workspace_slug_delete # noqa: E501 Delete project # noqa: E501 @@ -56459,7 +56459,7 @@ def api_v2_workspace_slug_delete(self, slug : Annotated[constr(strict=True, max_ return self.api_v2_workspace_slug_delete_with_http_info(slug, **kwargs) # noqa: E501 @validate_arguments - def api_v2_workspace_slug_delete_with_http_info(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to delete.")], **kwargs) -> ApiResponse: # noqa: E501 + def api_v2_workspace_slug_delete_with_http_info(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to delete.")], **kwargs) -> ApiResponse: # noqa: E501 """api_v2_workspace_slug_delete # noqa: E501 Delete project # noqa: E501 @@ -56569,7 +56569,7 @@ def api_v2_workspace_slug_delete_with_http_info(self, slug : Annotated[constr(st _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v2_workspace_slug_get(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to get.")], **kwargs) -> ApiV1WorkspaceGet200ResponseWorkspacesInner: # noqa: E501 + def api_v2_workspace_slug_get(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to get.")], **kwargs) -> ApiV1WorkspaceGet200ResponseWorkspacesInner: # noqa: E501 """api_v2_workspace_slug_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -56598,7 +56598,7 @@ def api_v2_workspace_slug_get(self, slug : Annotated[constr(strict=True, max_len return self.api_v2_workspace_slug_get_with_http_info(slug, **kwargs) # noqa: E501 @validate_arguments - def api_v2_workspace_slug_get_with_http_info(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to get.")], **kwargs) -> ApiResponse: # noqa: E501 + def api_v2_workspace_slug_get_with_http_info(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to get.")], **kwargs) -> ApiResponse: # noqa: E501 """api_v2_workspace_slug_get # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -56707,7 +56707,7 @@ def api_v2_workspace_slug_get_with_http_info(self, slug : Annotated[constr(stric _request_auth=_params.get('_request_auth')) @validate_arguments - def api_v2_workspace_slug_patch(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to update.")], api_v2_workspace_slug_patch_request : Optional[ApiV2WorkspaceSlugPatchRequest] = None, **kwargs) -> ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner: # noqa: E501 + def api_v2_workspace_slug_patch(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to update.")], api_v2_workspace_slug_patch_request : Optional[ApiV2WorkspaceSlugPatchRequest] = None, **kwargs) -> ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner: # noqa: E501 """api_v2_workspace_slug_patch # noqa: E501 This method makes a synchronous HTTP request by default. To make an @@ -56738,7 +56738,7 @@ def api_v2_workspace_slug_patch(self, slug : Annotated[constr(strict=True, max_l return self.api_v2_workspace_slug_patch_with_http_info(slug, api_v2_workspace_slug_patch_request, **kwargs) # noqa: E501 @validate_arguments - def api_v2_workspace_slug_patch_with_http_info(self, slug : Annotated[constr(strict=True, max_length=36, min_length=5), Field(..., description="The slug of the project to update.")], api_v2_workspace_slug_patch_request : Optional[ApiV2WorkspaceSlugPatchRequest] = None, **kwargs) -> ApiResponse: # noqa: E501 + def api_v2_workspace_slug_patch_with_http_info(self, slug : Annotated[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)], Field(..., description="The slug of the project to update.")], api_v2_workspace_slug_patch_request : Optional[ApiV2WorkspaceSlugPatchRequest] = None, **kwargs) -> ApiResponse: # noqa: E501 """api_v2_workspace_slug_patch # noqa: E501 This method makes a synchronous HTTP request by default. To make an diff --git a/infisicalapi_client/models/api_status_get200_response.py b/infisicalapi_client/models/api_status_get200_response.py index 733d489..06cc14b 100644 --- a/infisicalapi_client/models/api_status_get200_response.py +++ b/infisicalapi_client/models/api_status_get200_response.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiStatusGet200Response(BaseModel): """ @@ -34,17 +34,14 @@ class ApiStatusGet200Response(BaseModel): saml_default_org_slug: Optional[StrictStr] = Field(default=None, alias="samlDefaultOrgSlug") __properties = ["date", "message", "emailConfigured", "inviteOnlySignup", "redisConfigured", "secretScanningConfigured", "samlDefaultOrgSlug"] - @validator('message') + @field_validator('message') + @classmethod def message_validate_enum(cls, value): """Validates the enum""" if value not in ('Ok'): raise ValueError("must be one of enum values ('Ok')") 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/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response.py b/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response.py index b4caed9..556378f 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response.py +++ b/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_access_approvals_policies_get200_response_approvals_inner import ApiV1AccessApprovalsPoliciesGet200ResponseApprovalsInner +from typing_extensions import Annotated class ApiV1AccessApprovalsPoliciesGet200Response(BaseModel): """ ApiV1AccessApprovalsPoliciesGet200Response """ - approvals: conlist(ApiV1AccessApprovalsPoliciesGet200ResponseApprovalsInner) = Field(...) + approvals: Annotated[List[ApiV1AccessApprovalsPoliciesGet200ResponseApprovalsInner], Field()] = Field(...) __properties = ["approvals"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response_approvals_inner.py b/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response_approvals_inner.py index 41bc6db..d1e0687 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response_approvals_inner.py +++ b/infisicalapi_client/models/api_v1_access_approvals_policies_get200_response_approvals_inner.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment +from typing_extensions import Annotated class ApiV1AccessApprovalsPoliciesGet200ResponseApprovalsInner(BaseModel): """ @@ -36,13 +37,9 @@ class ApiV1AccessApprovalsPoliciesGet200ResponseApprovalsInner(BaseModel): enforcement_level: Optional[StrictStr] = Field(default='hard', alias="enforcementLevel") environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) project_id: StrictStr = Field(default=..., alias="projectId") - approvers: conlist(StrictStr) = Field(...) + approvers: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["id", "name", "secretPath", "approvals", "envId", "createdAt", "updatedAt", "enforcementLevel", "environment", "projectId", "approvers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_policies_policy_id_patch_request.py b/infisicalapi_client/models/api_v1_access_approvals_policies_policy_id_patch_request.py index 2c2d8d1..1698975 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_policies_policy_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_access_approvals_policies_policy_id_patch_request.py @@ -19,7 +19,8 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1AccessApprovalsPoliciesPolicyIdPatchRequest(BaseModel): """ @@ -27,12 +28,13 @@ class ApiV1AccessApprovalsPoliciesPolicyIdPatchRequest(BaseModel): """ name: Optional[StrictStr] = None secret_path: Optional[StrictStr] = Field(default=None, alias="secretPath") - approvers: conlist(StrictStr, min_items=1) = Field(...) - approvals: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = 1 + approvers: Annotated[List[StrictStr], Field(min_length=1)] = Field(...) + approvals: Optional[Union[Annotated[float, Field(ge=1, strict=True)], Annotated[int, Field(ge=1, strict=True)]]] = 1 enforcement_level: Optional[StrictStr] = Field(default='hard', alias="enforcementLevel") __properties = ["name", "secretPath", "approvers", "approvals", "enforcementLevel"] - @validator('enforcement_level') + @field_validator('enforcement_level') + @classmethod def enforcement_level_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,11 +43,7 @@ def enforcement_level_validate_enum(cls, value): if value not in ('hard', 'soft'): raise ValueError("must be one of enum values ('hard', 'soft')") 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/infisicalapi_client/models/api_v1_access_approvals_policies_post_request.py b/infisicalapi_client/models/api_v1_access_approvals_policies_post_request.py index 19d8e6d..9900ff2 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_policies_post_request.py +++ b/infisicalapi_client/models/api_v1_access_approvals_policies_post_request.py @@ -19,7 +19,8 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1AccessApprovalsPoliciesPostRequest(BaseModel): """ @@ -29,12 +30,13 @@ class ApiV1AccessApprovalsPoliciesPostRequest(BaseModel): name: Optional[StrictStr] = None secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath") environment: StrictStr = Field(...) - approvers: conlist(StrictStr, min_items=1) = Field(...) - approvals: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = 1 + approvers: Annotated[List[StrictStr], Field(min_length=1)] = Field(...) + approvals: Optional[Union[Annotated[float, Field(ge=1, strict=True)], Annotated[int, Field(ge=1, strict=True)]]] = 1 enforcement_level: Optional[StrictStr] = Field(default='hard', alias="enforcementLevel") __properties = ["projectSlug", "name", "secretPath", "environment", "approvers", "approvals", "enforcementLevel"] - @validator('enforcement_level') + @field_validator('enforcement_level') + @classmethod def enforcement_level_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -43,11 +45,7 @@ def enforcement_level_validate_enum(cls, value): if value not in ('hard', 'soft'): raise ValueError("must be one of enum values ('hard', 'soft')") 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/infisicalapi_client/models/api_v1_access_approvals_requests_count_get200_response.py b/infisicalapi_client/models/api_v1_access_approvals_requests_count_get200_response.py index e329af0..0e43958 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_count_get200_response.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_count_get200_response.py @@ -19,7 +19,7 @@ from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt class ApiV1AccessApprovalsRequestsCountGet200Response(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1AccessApprovalsRequestsCountGet200Response(BaseModel): pending_count: Union[StrictFloat, StrictInt] = Field(default=..., alias="pendingCount") finalized_count: Union[StrictFloat, StrictInt] = Field(default=..., alias="finalizedCount") __properties = ["pendingCount", "finalizedCount"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response.py b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response.py index 6990ec7..32c559a 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_access_approvals_requests_get200_response_requests_inner import ApiV1AccessApprovalsRequestsGet200ResponseRequestsInner +from typing_extensions import Annotated class ApiV1AccessApprovalsRequestsGet200Response(BaseModel): """ ApiV1AccessApprovalsRequestsGet200Response """ - requests: conlist(ApiV1AccessApprovalsRequestsGet200ResponseRequestsInner) = Field(...) + requests: Annotated[List[ApiV1AccessApprovalsRequestsGet200ResponseRequestsInner], Field()] = Field(...) __properties = ["requests"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner.py b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner.py index 1d9f817..7f9094c 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner.py @@ -19,10 +19,11 @@ from datetime import datetime from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_access_approvals_requests_get200_response_requests_inner_policy import ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPolicy from infisicalapi_client.models.api_v1_access_approvals_requests_get200_response_requests_inner_privilege import ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPrivilege from infisicalapi_client.models.api_v1_access_approvals_requests_get200_response_requests_inner_reviewers_inner import ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerReviewersInner +from typing_extensions import Annotated class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInner(BaseModel): """ @@ -41,13 +42,9 @@ class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInner(BaseModel): is_approved: StrictBool = Field(default=..., alias="isApproved") privilege: Optional[ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPrivilege] = Field(...) policy: ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPolicy = Field(...) - reviewers: conlist(ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerReviewersInner) = Field(...) + reviewers: Annotated[List[ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerReviewersInner], Field()] = Field(...) __properties = ["id", "policyId", "privilegeId", "requestedBy", "isTemporary", "temporaryRange", "permissions", "createdAt", "updatedAt", "environmentName", "isApproved", "privilege", "policy", "reviewers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_policy.py b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_policy.py index 2395fd9..54f5486 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_policy.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_policy.py @@ -19,7 +19,8 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPolicy(BaseModel): """ @@ -28,16 +29,12 @@ class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPolicy(BaseModel): id: StrictStr = Field(...) name: StrictStr = Field(...) approvals: Union[StrictFloat, StrictInt] = Field(...) - approvers: conlist(StrictStr) = Field(...) + approvers: Annotated[List[StrictStr], Field()] = Field(...) secret_path: Optional[StrictStr] = Field(default=None, alias="secretPath") env_id: StrictStr = Field(default=..., alias="envId") enforcement_level: StrictStr = Field(default=..., alias="enforcementLevel") __properties = ["id", "name", "approvals", "approvers", "secretPath", "envId", "enforcementLevel"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_privilege.py b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_privilege.py index 94fbb5d..689e4c1 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_privilege.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_privilege.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPrivilege(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerPrivilege(BaseModel temporary_access_end_time: Optional[datetime] = Field(default=None, alias="temporaryAccessEndTime") permissions: Optional[Any] = None __properties = ["membershipId", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime", "temporaryAccessEndTime", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_reviewers_inner.py b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_reviewers_inner.py index 2322cc0..4fbf680 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_reviewers_inner.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_get200_response_requests_inner_reviewers_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerReviewersInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1AccessApprovalsRequestsGet200ResponseRequestsInnerReviewersInner(Base member: StrictStr = Field(...) status: StrictStr = Field(...) __properties = ["member", "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/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response.py b/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response.py index 2f0e281..7209b8e 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_access_approvals_requests_post200_response_approval import ApiV1AccessApprovalsRequestsPost200ResponseApproval class ApiV1AccessApprovalsRequestsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AccessApprovalsRequestsPost200Response(BaseModel): """ approval: ApiV1AccessApprovalsRequestsPost200ResponseApproval = Field(...) __properties = ["approval"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response_approval.py b/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response_approval.py index 988189e..d6375a8 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response_approval.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_post200_response_approval.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1AccessApprovalsRequestsPost200ResponseApproval(BaseModel): """ @@ -35,11 +35,7 @@ class ApiV1AccessApprovalsRequestsPost200ResponseApproval(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "policyId", "privilegeId", "requestedBy", "isTemporary", "temporaryRange", "permissions", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_post_request.py b/infisicalapi_client/models/api_v1_access_approvals_requests_post_request.py index 63a4d38..2ffbca3 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_post_request.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_post_request.py @@ -19,21 +19,18 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1AccessApprovalsRequestsPostRequest(BaseModel): """ ApiV1AccessApprovalsRequestsPostRequest """ - permissions: conlist(StrictStr) = Field(...) + permissions: Annotated[List[StrictStr], Field()] = Field(...) is_temporary: StrictBool = Field(default=..., alias="isTemporary") temporary_range: Optional[StrictStr] = Field(default=None, alias="temporaryRange") __properties = ["permissions", "isTemporary", "temporaryRange"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response.py b/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response.py index 41aa4db..ba26233 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_access_approvals_requests_request_id_review_post200_response_review import ApiV1AccessApprovalsRequestsRequestIdReviewPost200ResponseReview class ApiV1AccessApprovalsRequestsRequestIdReviewPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AccessApprovalsRequestsRequestIdReviewPost200Response(BaseModel): """ review: ApiV1AccessApprovalsRequestsRequestIdReviewPost200ResponseReview = Field(...) __properties = ["review"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response_review.py b/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response_review.py index f8f5dab..dcecbcf 100644 --- a/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response_review.py +++ b/infisicalapi_client/models/api_v1_access_approvals_requests_request_id_review_post200_response_review.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AccessApprovalsRequestsRequestIdReviewPost200ResponseReview(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1AccessApprovalsRequestsRequestIdReviewPost200ResponseReview(BaseModel created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "member", "status", "requestId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_delete_request.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_delete_request.py index 316220e..aff2389 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_delete_request.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_delete_request.py @@ -19,21 +19,18 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityDeleteRequest(BaseModel): """ ApiV1AdditionalPrivilegeIdentityDeleteRequest """ - privilege_slug: constr(strict=True, min_length=1) = Field(default=..., alias="privilegeSlug", description="The slug of the privilege to delete.") - identity_id: constr(strict=True, min_length=1) = Field(default=..., alias="identityId", description="The ID of the identity to delete.") - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") + privilege_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="privilegeSlug", description="The slug of the privilege to delete.") + identity_id: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="identityId", description="The ID of the identity to delete.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") __properties = ["privilegeSlug", "identityId", "projectSlug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_get200_response.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_get200_response.py index 6c5be50..d8458c1 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_get200_response.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_additional_privilege_identity_permanent_post200_response_privilege import ApiV1AdditionalPrivilegeIdentityPermanentPost200ResponsePrivilege +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityGet200Response(BaseModel): """ ApiV1AdditionalPrivilegeIdentityGet200Response """ - privileges: conlist(ApiV1AdditionalPrivilegeIdentityPermanentPost200ResponsePrivilege) = Field(...) + privileges: Annotated[List[ApiV1AdditionalPrivilegeIdentityPermanentPost200ResponsePrivilege], Field()] = Field(...) __properties = ["privileges"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request.py index dd53a10..3be4d38 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request.py @@ -19,23 +19,20 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_additional_privilege_identity_patch_request_privilege_details import ApiV1AdditionalPrivilegeIdentityPatchRequestPrivilegeDetails +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityPatchRequest(BaseModel): """ ApiV1AdditionalPrivilegeIdentityPatchRequest """ - privilege_slug: constr(strict=True, min_length=1) = Field(default=..., alias="privilegeSlug", description="The slug of the privilege to update.") - identity_id: constr(strict=True, min_length=1) = Field(default=..., alias="identityId", description="The ID of the identity to update.") - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") + privilege_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="privilegeSlug", description="The slug of the privilege to update.") + identity_id: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="identityId", description="The ID of the identity to update.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") privilege_details: ApiV1AdditionalPrivilegeIdentityPatchRequestPrivilegeDetails = Field(default=..., alias="privilegeDetails") __properties = ["privilegeSlug", "identityId", "projectSlug", "privilegeDetails"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request_privilege_details.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request_privilege_details.py index 3040ce5..568a7ae 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request_privilege_details.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_patch_request_privilege_details.py @@ -19,16 +19,17 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_additional_privilege_identity_permanent_post_request_privilege_permission import ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermission from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityPatchRequestPrivilegeDetails(BaseModel): """ ApiV1AdditionalPrivilegeIdentityPatchRequestPrivilegeDetails """ - slug: Optional[constr(strict=True, max_length=60, min_length=1)] = Field(default=None, description="The new slug of the privilege to update.") - permissions: Optional[conlist(ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner)] = Field(default=None, description="@deprecated - use privilegePermission The permission object for the privilege. - Read secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]} ``` - Read and Write secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]} ``` - Read secrets scoped to an environment and secret path ``` - { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] } ``` ") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=60, min_length=1)]] = Field(default=None, description="The new slug of the privilege to update.") + permissions: Optional[Annotated[List[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner], Field()]] = Field(default=None, description="@deprecated - use privilegePermission The permission object for the privilege. - Read secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]} ``` - Read and Write secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]} ``` - Read secrets scoped to an environment and secret path ``` - { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] } ``` ") privilege_permission: Optional[ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermission] = Field(default=None, alias="privilegePermission") is_temporary: Optional[StrictBool] = Field(default=None, alias="isTemporary", description="Whether the privilege is temporary.") temporary_mode: Optional[StrictStr] = Field(default=None, alias="temporaryMode", description="Type of temporary access given. Types: relative") @@ -36,7 +37,8 @@ class ApiV1AdditionalPrivilegeIdentityPatchRequestPrivilegeDetails(BaseModel): temporary_access_start_time: Optional[datetime] = Field(default=None, alias="temporaryAccessStartTime", description="ISO time for which temporary access should begin.") __properties = ["slug", "permissions", "privilegePermission", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime"] - @validator('temporary_mode') + @field_validator('temporary_mode') + @classmethod def temporary_mode_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -45,11 +47,7 @@ def temporary_mode_validate_enum(cls, value): if value not in ('relative'): raise ValueError("must be one of enum values ('relative')") 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/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response.py index 348a75c..415ef31 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_additional_privilege_identity_permanent_post200_response_privilege import ApiV1AdditionalPrivilegeIdentityPermanentPost200ResponsePrivilege class ApiV1AdditionalPrivilegeIdentityPermanentPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AdditionalPrivilegeIdentityPermanentPost200Response(BaseModel): """ privilege: ApiV1AdditionalPrivilegeIdentityPermanentPost200ResponsePrivilege = Field(...) __properties = ["privilege"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response_privilege.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response_privilege.py index df6b660..e09c0da 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response_privilege.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post200_response_privilege.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner import ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInner +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityPermanentPost200ResponsePrivilege(BaseModel): """ @@ -34,15 +35,11 @@ class ApiV1AdditionalPrivilegeIdentityPermanentPost200ResponsePrivilege(BaseMode temporary_range: Optional[StrictStr] = Field(default=None, alias="temporaryRange") temporary_access_start_time: Optional[datetime] = Field(default=None, alias="temporaryAccessStartTime") temporary_access_end_time: Optional[datetime] = Field(default=None, alias="temporaryAccessEndTime") - permissions: conlist(ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInner) = Field(...) + permissions: Annotated[List[ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInner], Field()] = Field(...) created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "slug", "projectMembershipId", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime", "temporaryAccessEndTime", "permissions", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request.py index cb03d71..a768fe3 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request.py @@ -19,25 +19,22 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_additional_privilege_identity_permanent_post_request_privilege_permission import ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermission from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityPermanentPostRequest(BaseModel): """ ApiV1AdditionalPrivilegeIdentityPermanentPostRequest """ - identity_id: constr(strict=True, min_length=1) = Field(default=..., alias="identityId", description="The ID of the identity to create.") - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") - slug: Optional[constr(strict=True, max_length=60, min_length=1)] = Field(default=None, description="The slug of the privilege to create.") - permissions: Optional[conlist(ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner)] = Field(default=None, description="@deprecated - use privilegePermission The permission object for the privilege. - Read secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]} ``` - Read and Write secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]} ``` - Read secrets scoped to an environment and secret path ``` - { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] } ``` ") + identity_id: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="identityId", description="The ID of the identity to create.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=60, min_length=1)]] = Field(default=None, description="The slug of the privilege to create.") + permissions: Optional[Annotated[List[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner], Field()]] = Field(default=None, description="@deprecated - use privilegePermission The permission object for the privilege. - Read secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]} ``` - Read and Write secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]} ``` - Read secrets scoped to an environment and secret path ``` - { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] } ``` ") privilege_permission: Optional[ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermission] = Field(default=None, alias="privilegePermission") __properties = ["identityId", "projectSlug", "slug", "permissions", "privilegePermission"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission.py index 4534904..0707125 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission.py @@ -19,19 +19,21 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_additional_privilege_identity_permanent_post_request_privilege_permission_conditions import ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermissionConditions +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermission(BaseModel): """ The permission object for the privilege. # noqa: E501 """ - actions: conlist(StrictStr, min_items=1) = Field(default=..., description="Describe what action an entity can take. Possible actions: create, edit, delete, and read") + actions: Annotated[List[StrictStr], Field(min_length=1)] = Field(default=..., description="Describe what action an entity can take. Possible actions: create, edit, delete, and read") subject: StrictStr = Field(default=..., description="The entity this permission pertains to. Possible options: secrets, environments") conditions: ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermissionConditions = Field(...) __properties = ["actions", "subject", "conditions"] - @validator('actions') + @field_validator('actions') + @classmethod def actions_validate_enum(cls, value): """Validates the enum""" for i in value: @@ -39,17 +41,14 @@ def actions_validate_enum(cls, value): raise ValueError("each list item must be one of ('read', 'create', 'edit', 'delete')") return value - @validator('subject') + @field_validator('subject') + @classmethod def subject_validate_enum(cls, value): """Validates the enum""" if value not in ('secrets'): raise ValueError("must be one of enum values ('secrets')") 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/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission_conditions.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission_conditions.py index 9083e94..3e4643b 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission_conditions.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_permanent_post_request_privilege_permission_conditions.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions_secret_path import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditionsSecretPath class ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermissionConditions(BaseModel): @@ -29,11 +29,7 @@ class ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermissionCon environment: StrictStr = Field(default=..., description="The environment slug this permission should allow.") secret_path: Optional[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditionsSecretPath] = Field(default=None, alias="secretPath") __properties = ["environment", "secretPath"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_identity_temporary_post_request.py b/infisicalapi_client/models/api_v1_additional_privilege_identity_temporary_post_request.py index a219250..489f28e 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_identity_temporary_post_request.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_identity_temporary_post_request.py @@ -19,35 +19,33 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_additional_privilege_identity_permanent_post_request_privilege_permission import ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermission from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeIdentityTemporaryPostRequest(BaseModel): """ ApiV1AdditionalPrivilegeIdentityTemporaryPostRequest """ - identity_id: constr(strict=True, min_length=1) = Field(default=..., alias="identityId", description="The ID of the identity to create.") - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") - slug: Optional[constr(strict=True, max_length=60, min_length=1)] = Field(default=None, description="The slug of the privilege to create.") - permissions: Optional[conlist(ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner)] = Field(default=None, description="@deprecated - use privilegePermission The permission object for the privilege. - Read secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]} ``` - Read and Write secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]} ``` - Read secrets scoped to an environment and secret path ``` - { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] } ``` ") + identity_id: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="identityId", description="The ID of the identity to create.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project of the identity in.") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=60, min_length=1)]] = Field(default=None, description="The slug of the privilege to create.") + permissions: Optional[Annotated[List[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner], Field()]] = Field(default=None, description="@deprecated - use privilegePermission The permission object for the privilege. - Read secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"]} ``` - Read and Write secrets ``` { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\"], {\"action\": \"write\", \"subject\": \"secrets\"]} ``` - Read secrets scoped to an environment and secret path ``` - { \"permissions\": [{\"action\": \"read\", \"subject\": \"secrets\", \"conditions\": { \"environment\": \"dev\", \"secretPath\": { \"$glob\": \"/\" } }}] } ``` ") privilege_permission: Optional[ApiV1AdditionalPrivilegeIdentityPermanentPostRequestPrivilegePermission] = Field(default=None, alias="privilegePermission") temporary_mode: StrictStr = Field(default=..., alias="temporaryMode", description="Type of temporary access given. Types: relative") temporary_range: StrictStr = Field(default=..., alias="temporaryRange", description="TTL for the temporay time. Eg: 1m, 1h, 1d") temporary_access_start_time: datetime = Field(default=..., alias="temporaryAccessStartTime", description="ISO time for which temporary access should begin.") __properties = ["identityId", "projectSlug", "slug", "permissions", "privilegePermission", "temporaryMode", "temporaryRange", "temporaryAccessStartTime"] - @validator('temporary_mode') + @field_validator('temporary_mode') + @classmethod def temporary_mode_validate_enum(cls, value): """Validates the enum""" if value not in ('relative'): raise ValueError("must be one of enum values ('relative')") 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/infisicalapi_client/models/api_v1_additional_privilege_users_get200_response.py b/infisicalapi_client/models/api_v1_additional_privilege_users_get200_response.py index 146ad95..0cad6ea 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_users_get200_response.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_users_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_additional_privilege_users_permanent_post200_response_privilege import ApiV1AdditionalPrivilegeUsersPermanentPost200ResponsePrivilege +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeUsersGet200Response(BaseModel): """ ApiV1AdditionalPrivilegeUsersGet200Response """ - privileges: conlist(ApiV1AdditionalPrivilegeUsersPermanentPost200ResponsePrivilege) = Field(...) + privileges: Annotated[List[ApiV1AdditionalPrivilegeUsersPermanentPost200ResponsePrivilege], Field()] = Field(...) __properties = ["privileges"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response.py b/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response.py index de52a61..a885af8 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_additional_privilege_users_permanent_post200_response_privilege import ApiV1AdditionalPrivilegeUsersPermanentPost200ResponsePrivilege class ApiV1AdditionalPrivilegeUsersPermanentPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AdditionalPrivilegeUsersPermanentPost200Response(BaseModel): """ privilege: ApiV1AdditionalPrivilegeUsersPermanentPost200ResponsePrivilege = Field(...) __properties = ["privilege"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response_privilege.py b/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response_privilege.py index c2c9d13..2f570e7 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response_privilege.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post200_response_privilege.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1AdditionalPrivilegeUsersPermanentPost200ResponsePrivilege(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1AdditionalPrivilegeUsersPermanentPost200ResponsePrivilege(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "slug", "projectMembershipId", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime", "temporaryAccessEndTime", "permissions", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post_request.py b/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post_request.py index 186336c..fc43907 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post_request.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_users_permanent_post_request.py @@ -19,21 +19,18 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeUsersPermanentPostRequest(BaseModel): """ ApiV1AdditionalPrivilegeUsersPermanentPostRequest """ - project_membership_id: constr(strict=True, min_length=1) = Field(default=..., alias="projectMembershipId", description="Project membership id of user") - slug: Optional[constr(strict=True, max_length=60, min_length=1)] = Field(default=None, description="The slug of the privilege to create.") - permissions: conlist(StrictStr) = Field(default=..., description="The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape") + project_membership_id: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectMembershipId", description="Project membership id of user") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=60, min_length=1)]] = Field(default=None, description="The slug of the privilege to create.") + permissions: Annotated[List[StrictStr], Field()] = Field(default=..., description="The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape") __properties = ["projectMembershipId", "slug", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_additional_privilege_users_privilege_id_patch_request.py b/infisicalapi_client/models/api_v1_additional_privilege_users_privilege_id_patch_request.py index 717c6e6..0e5d0cc 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_users_privilege_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_users_privilege_id_patch_request.py @@ -19,21 +19,23 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeUsersPrivilegeIdPatchRequest(BaseModel): """ ApiV1AdditionalPrivilegeUsersPrivilegeIdPatchRequest """ - slug: Optional[constr(strict=True, max_length=60)] = Field(default=None, description="The slug of the privilege to create.") - permissions: Optional[conlist(StrictStr)] = Field(default=None, description="The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=60)]] = Field(default=None, description="The slug of the privilege to create.") + permissions: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, description="The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape") is_temporary: Optional[StrictBool] = Field(default=None, alias="isTemporary", description="Whether the privilege is temporary.") temporary_mode: Optional[StrictStr] = Field(default=None, alias="temporaryMode", description="Type of temporary access given. Types: relative") temporary_range: Optional[StrictStr] = Field(default=None, alias="temporaryRange", description="TTL for the temporay time. Eg: 1m, 1h, 1d") temporary_access_start_time: Optional[datetime] = Field(default=None, alias="temporaryAccessStartTime", description="ISO time for which temporary access should begin.") __properties = ["slug", "permissions", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime"] - @validator('temporary_mode') + @field_validator('temporary_mode') + @classmethod def temporary_mode_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -42,11 +44,7 @@ def temporary_mode_validate_enum(cls, value): if value not in ('relative'): raise ValueError("must be one of enum values ('relative')") 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/infisicalapi_client/models/api_v1_additional_privilege_users_temporary_post_request.py b/infisicalapi_client/models/api_v1_additional_privilege_users_temporary_post_request.py index f36a726..172690d 100644 --- a/infisicalapi_client/models/api_v1_additional_privilege_users_temporary_post_request.py +++ b/infisicalapi_client/models/api_v1_additional_privilege_users_temporary_post_request.py @@ -19,31 +19,29 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1AdditionalPrivilegeUsersTemporaryPostRequest(BaseModel): """ ApiV1AdditionalPrivilegeUsersTemporaryPostRequest """ - project_membership_id: constr(strict=True, min_length=1) = Field(default=..., alias="projectMembershipId", description="Project membership id of user") - slug: Optional[constr(strict=True, max_length=60, min_length=1)] = Field(default=None, description="The slug of the privilege to create.") - permissions: conlist(StrictStr) = Field(default=..., description="The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape") + project_membership_id: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectMembershipId", description="Project membership id of user") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=60, min_length=1)]] = Field(default=None, description="The slug of the privilege to create.") + permissions: Annotated[List[StrictStr], Field()] = Field(default=..., description="The permission object for the privilege. Refer https://casl.js.org/v6/en/guide/define-rules#the-shape-of-raw-rule to understand the shape") temporary_mode: StrictStr = Field(default=..., alias="temporaryMode", description="Type of temporary access given. Types: relative") temporary_range: StrictStr = Field(default=..., alias="temporaryRange", description="TTL for the temporay time. Eg: 1m, 1h, 1d") temporary_access_start_time: datetime = Field(default=..., alias="temporaryAccessStartTime", description="ISO time for which temporary access should begin.") __properties = ["projectMembershipId", "slug", "permissions", "temporaryMode", "temporaryRange", "temporaryAccessStartTime"] - @validator('temporary_mode') + @field_validator('temporary_mode') + @classmethod def temporary_mode_validate_enum(cls, value): """Validates the enum""" if value not in ('relative'): raise ValueError("must be one of enum values ('relative')") 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/infisicalapi_client/models/api_v1_admin_config_get200_response.py b/infisicalapi_client/models/api_v1_admin_config_get200_response.py index 8d8c126..00a1081 100644 --- a/infisicalapi_client/models/api_v1_admin_config_get200_response.py +++ b/infisicalapi_client/models/api_v1_admin_config_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_admin_config_get200_response_config import ApiV1AdminConfigGet200ResponseConfig class ApiV1AdminConfigGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AdminConfigGet200Response(BaseModel): """ config: ApiV1AdminConfigGet200ResponseConfig = Field(...) __properties = ["config"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_admin_config_get200_response_config.py b/infisicalapi_client/models/api_v1_admin_config_get200_response_config.py index 1075ec0..5b86ac9 100644 --- a/infisicalapi_client/models/api_v1_admin_config_get200_response_config.py +++ b/infisicalapi_client/models/api_v1_admin_config_get200_response_config.py @@ -19,7 +19,8 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1AdminConfigGet200ResponseConfig(BaseModel): """ @@ -34,16 +35,12 @@ class ApiV1AdminConfigGet200ResponseConfig(BaseModel): trust_ldap_emails: Optional[StrictBool] = Field(default=False, alias="trustLdapEmails") trust_oidc_emails: Optional[StrictBool] = Field(default=False, alias="trustOidcEmails") default_auth_org_id: Optional[StrictStr] = Field(default=None, alias="defaultAuthOrgId") - enabled_login_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="enabledLoginMethods") + enabled_login_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="enabledLoginMethods") is_migration_mode_on: StrictBool = Field(default=..., alias="isMigrationModeOn") default_auth_org_slug: Optional[StrictStr] = Field(default=..., alias="defaultAuthOrgSlug") is_secret_scanning_disabled: StrictBool = Field(default=..., alias="isSecretScanningDisabled") __properties = ["id", "initialized", "allowSignUp", "allowedSignUpDomain", "instanceId", "trustSamlEmails", "trustLdapEmails", "trustOidcEmails", "defaultAuthOrgId", "enabledLoginMethods", "isMigrationModeOn", "defaultAuthOrgSlug", "isSecretScanningDisabled"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_admin_config_patch200_response.py b/infisicalapi_client/models/api_v1_admin_config_patch200_response.py index e38234c..9b92a7f 100644 --- a/infisicalapi_client/models/api_v1_admin_config_patch200_response.py +++ b/infisicalapi_client/models/api_v1_admin_config_patch200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_admin_config_patch200_response_config import ApiV1AdminConfigPatch200ResponseConfig class ApiV1AdminConfigPatch200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AdminConfigPatch200Response(BaseModel): """ config: ApiV1AdminConfigPatch200ResponseConfig = Field(...) __properties = ["config"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_admin_config_patch200_response_config.py b/infisicalapi_client/models/api_v1_admin_config_patch200_response_config.py index 2d11634..100251c 100644 --- a/infisicalapi_client/models/api_v1_admin_config_patch200_response_config.py +++ b/infisicalapi_client/models/api_v1_admin_config_patch200_response_config.py @@ -19,7 +19,8 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1AdminConfigPatch200ResponseConfig(BaseModel): """ @@ -36,14 +37,10 @@ class ApiV1AdminConfigPatch200ResponseConfig(BaseModel): trust_ldap_emails: Optional[StrictBool] = Field(default=False, alias="trustLdapEmails") trust_oidc_emails: Optional[StrictBool] = Field(default=False, alias="trustOidcEmails") default_auth_org_id: Optional[StrictStr] = Field(default=None, alias="defaultAuthOrgId") - enabled_login_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="enabledLoginMethods") + enabled_login_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="enabledLoginMethods") default_auth_org_slug: Optional[StrictStr] = Field(default=..., alias="defaultAuthOrgSlug") __properties = ["id", "initialized", "allowSignUp", "createdAt", "updatedAt", "allowedSignUpDomain", "instanceId", "trustSamlEmails", "trustLdapEmails", "trustOidcEmails", "defaultAuthOrgId", "enabledLoginMethods", "defaultAuthOrgSlug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_admin_config_patch_request.py b/infisicalapi_client/models/api_v1_admin_config_patch_request.py index 1628da3..448f081 100644 --- a/infisicalapi_client/models/api_v1_admin_config_patch_request.py +++ b/infisicalapi_client/models/api_v1_admin_config_patch_request.py @@ -19,7 +19,8 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1AdminConfigPatchRequest(BaseModel): """ @@ -31,10 +32,11 @@ class ApiV1AdminConfigPatchRequest(BaseModel): trust_ldap_emails: Optional[StrictBool] = Field(default=None, alias="trustLdapEmails") trust_oidc_emails: Optional[StrictBool] = Field(default=None, alias="trustOidcEmails") default_auth_org_id: Optional[StrictStr] = Field(default=None, alias="defaultAuthOrgId") - enabled_login_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="enabledLoginMethods") + enabled_login_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="enabledLoginMethods") __properties = ["allowSignUp", "allowedSignUpDomain", "trustSamlEmails", "trustLdapEmails", "trustOidcEmails", "defaultAuthOrgId", "enabledLoginMethods"] - @validator('enabled_login_methods') + @field_validator('enabled_login_methods') + @classmethod def enabled_login_methods_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -44,11 +46,7 @@ def enabled_login_methods_validate_enum(cls, value): if i not in ('email', 'google', 'github', 'gitlab', 'saml', 'ldap', 'oidc'): raise ValueError("each list item must be one of ('email', 'google', 'github', 'gitlab', 'saml', 'ldap', 'oidc')") 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/infisicalapi_client/models/api_v1_admin_signup_post200_response.py b/infisicalapi_client/models/api_v1_admin_signup_post200_response.py index fe5f48d..db437ab 100644 --- a/infisicalapi_client/models/api_v1_admin_signup_post200_response.py +++ b/infisicalapi_client/models/api_v1_admin_signup_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_organization_get200_response_organizations_inner import ApiV1OrganizationGet200ResponseOrganizationsInner from infisicalapi_client.models.api_v1_password_email_password_reset_verify_post200_response_user import ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser @@ -33,11 +33,7 @@ class ApiV1AdminSignupPost200Response(BaseModel): token: StrictStr = Field(...) new: StrictStr = Field(...) __properties = ["message", "user", "organization", "token", "new"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_admin_signup_post_request.py b/infisicalapi_client/models/api_v1_admin_signup_post_request.py index d0f5343..352a386 100644 --- a/infisicalapi_client/models/api_v1_admin_signup_post_request.py +++ b/infisicalapi_client/models/api_v1_admin_signup_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AdminSignupPostRequest(BaseModel): """ @@ -39,11 +39,7 @@ class ApiV1AdminSignupPostRequest(BaseModel): salt: StrictStr = Field(...) verifier: StrictStr = Field(...) __properties = ["email", "password", "firstName", "lastName", "protectedKey", "protectedKeyIV", "protectedKeyTag", "publicKey", "encryptedPrivateKey", "encryptedPrivateKeyIV", "encryptedPrivateKeyTag", "salt", "verifier"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response.py b/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response.py index 29ab697..3df4c55 100644 --- a/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response.py +++ b/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_admin_user_management_users_get200_response_users_inner import ApiV1AdminUserManagementUsersGet200ResponseUsersInner +from typing_extensions import Annotated class ApiV1AdminUserManagementUsersGet200Response(BaseModel): """ ApiV1AdminUserManagementUsersGet200Response """ - users: conlist(ApiV1AdminUserManagementUsersGet200ResponseUsersInner) = Field(...) + users: Annotated[List[ApiV1AdminUserManagementUsersGet200ResponseUsersInner], 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/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response_users_inner.py b/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response_users_inner.py index 81fd98f..963a4ba 100644 --- a/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response_users_inner.py +++ b/infisicalapi_client/models/api_v1_admin_user_management_users_get200_response_users_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AdminUserManagementUsersGet200ResponseUsersInner(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1AdminUserManagementUsersGet200ResponseUsersInner(BaseModel): email: Optional[StrictStr] = None id: StrictStr = Field(...) __properties = ["username", "firstName", "lastName", "email", "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/infisicalapi_client/models/api_v1_admin_user_management_users_user_id_delete200_response.py b/infisicalapi_client/models/api_v1_admin_user_management_users_user_id_delete200_response.py index 98d61ba..faa5df4 100644 --- a/infisicalapi_client/models/api_v1_admin_user_management_users_user_id_delete200_response.py +++ b/infisicalapi_client/models/api_v1_admin_user_management_users_user_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_admin_user_management_users_get200_response_users_inner import ApiV1AdminUserManagementUsersGet200ResponseUsersInner class ApiV1AdminUserManagementUsersUserIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AdminUserManagementUsersUserIdDelete200Response(BaseModel): """ users: ApiV1AdminUserManagementUsersGet200ResponseUsersInner = 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/infisicalapi_client/models/api_v1_audit_log_streams_get200_response.py b/infisicalapi_client/models/api_v1_audit_log_streams_get200_response.py index 21df09e..c28778a 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_get200_response.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_audit_log_streams_get200_response_audit_log_streams_inner import ApiV1AuditLogStreamsGet200ResponseAuditLogStreamsInner +from typing_extensions import Annotated class ApiV1AuditLogStreamsGet200Response(BaseModel): """ ApiV1AuditLogStreamsGet200Response """ - audit_log_streams: conlist(ApiV1AuditLogStreamsGet200ResponseAuditLogStreamsInner) = Field(default=..., alias="auditLogStreams") + audit_log_streams: Annotated[List[ApiV1AuditLogStreamsGet200ResponseAuditLogStreamsInner], Field()] = Field(default=..., alias="auditLogStreams") __properties = ["auditLogStreams"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_audit_log_streams_get200_response_audit_log_streams_inner.py b/infisicalapi_client/models/api_v1_audit_log_streams_get200_response_audit_log_streams_inner.py index 164a25b..7af4c8e 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_get200_response_audit_log_streams_inner.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_get200_response_audit_log_streams_inner.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuditLogStreamsGet200ResponseAuditLogStreamsInner(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1AuditLogStreamsGet200ResponseAuditLogStreamsInner(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "url", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response.py b/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response.py index c5a755b..53d8cf8 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_audit_log_streams_id_get200_response_audit_log_stream import ApiV1AuditLogStreamsIdGet200ResponseAuditLogStream class ApiV1AuditLogStreamsIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuditLogStreamsIdGet200Response(BaseModel): """ audit_log_stream: ApiV1AuditLogStreamsIdGet200ResponseAuditLogStream = Field(default=..., alias="auditLogStream") __properties = ["auditLogStream"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream.py b/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream.py index cebe19c..39adb5b 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_audit_log_streams_id_get200_response_audit_log_stream_headers_inner import ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner +from typing_extensions import Annotated class ApiV1AuditLogStreamsIdGet200ResponseAuditLogStream(BaseModel): """ @@ -30,13 +31,9 @@ class ApiV1AuditLogStreamsIdGet200ResponseAuditLogStream(BaseModel): url: StrictStr = Field(...) created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") - headers: Optional[conlist(ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner)] = None + headers: Optional[Annotated[List[ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner], Field()]] = None __properties = ["id", "url", "createdAt", "updatedAt", "headers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream_headers_inner.py b/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream_headers_inner.py index 457180c..6b3ea82 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream_headers_inner.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_id_get200_response_audit_log_stream_headers_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner(BaseModel): key: StrictStr = Field(...) value: StrictStr = Field(...) __properties = ["key", "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/infisicalapi_client/models/api_v1_audit_log_streams_id_patch_request.py b/infisicalapi_client/models/api_v1_audit_log_streams_id_patch_request.py index d741bad..2980329 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_id_patch_request.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 infisicalapi_client.models.api_v1_audit_log_streams_post_request_headers_inner import ApiV1AuditLogStreamsPostRequestHeadersInner +from typing_extensions import Annotated class ApiV1AuditLogStreamsIdPatchRequest(BaseModel): """ ApiV1AuditLogStreamsIdPatchRequest """ url: Optional[StrictStr] = Field(default=None, description="The HTTP URL to push logs to.") - headers: Optional[conlist(ApiV1AuditLogStreamsPostRequestHeadersInner)] = Field(default=None, description="The HTTP headers attached for the external prrovider requests.") + headers: Optional[Annotated[List[ApiV1AuditLogStreamsPostRequestHeadersInner], Field()]] = Field(default=None, description="The HTTP headers attached for the external prrovider requests.") __properties = ["url", "headers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_audit_log_streams_post200_response.py b/infisicalapi_client/models/api_v1_audit_log_streams_post200_response.py index 77b3888..12b45b1 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_post200_response.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_audit_log_streams_get200_response_audit_log_streams_inner import ApiV1AuditLogStreamsGet200ResponseAuditLogStreamsInner class ApiV1AuditLogStreamsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuditLogStreamsPost200Response(BaseModel): """ audit_log_stream: ApiV1AuditLogStreamsGet200ResponseAuditLogStreamsInner = Field(default=..., alias="auditLogStream") __properties = ["auditLogStream"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_audit_log_streams_post_request.py b/infisicalapi_client/models/api_v1_audit_log_streams_post_request.py index 0a2baf4..561bce1 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_post_request.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_post_request.py @@ -19,21 +19,18 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_audit_log_streams_post_request_headers_inner import ApiV1AuditLogStreamsPostRequestHeadersInner +from typing_extensions import Annotated class ApiV1AuditLogStreamsPostRequest(BaseModel): """ ApiV1AuditLogStreamsPostRequest """ - url: constr(strict=True, min_length=1) = Field(default=..., description="The HTTP URL to push logs to.") - headers: Optional[conlist(ApiV1AuditLogStreamsPostRequestHeadersInner)] = Field(default=None, description="The HTTP headers attached for the external prrovider requests.") + url: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The HTTP URL to push logs to.") + headers: Optional[Annotated[List[ApiV1AuditLogStreamsPostRequestHeadersInner], Field()]] = Field(default=None, description="The HTTP headers attached for the external prrovider requests.") __properties = ["url", "headers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_audit_log_streams_post_request_headers_inner.py b/infisicalapi_client/models/api_v1_audit_log_streams_post_request_headers_inner.py index 678d9a7..c406799 100644 --- a/infisicalapi_client/models/api_v1_audit_log_streams_post_request_headers_inner.py +++ b/infisicalapi_client/models/api_v1_audit_log_streams_post_request_headers_inner.py @@ -19,20 +19,17 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1AuditLogStreamsPostRequestHeadersInner(BaseModel): """ The HTTP headers attached for the external prrovider requests. # noqa: E501 """ - key: constr(strict=True, min_length=1) = Field(default=..., description="The HTTP header key name.") - value: constr(strict=True, min_length=1) = Field(default=..., description="The HTTP header value.") + key: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The HTTP header key name.") + value: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The HTTP header value.") __properties = ["key", "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/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response.py index e0f1774..da8e498 100644 --- a/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_aws_auth_identities_identity_id_get200_response_identity_aws_auth import ApiV1AuthAwsAuthIdentitiesIdentityIdGet200ResponseIdentityAwsAuth class ApiV1AuthAwsAuthIdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthAwsAuthIdentitiesIdentityIdGet200Response(BaseModel): """ identity_aws_auth: ApiV1AuthAwsAuthIdentitiesIdentityIdGet200ResponseIdentityAwsAuth = Field(default=..., alias="identityAwsAuth") __properties = ["identityAwsAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response_identity_aws_auth.py b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response_identity_aws_auth.py index 231b6c4..02bcb87 100644 --- a/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response_identity_aws_auth.py +++ b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_get200_response_identity_aws_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthAwsAuthIdentitiesIdentityIdGet200ResponseIdentityAwsAuth(BaseModel): """ @@ -38,11 +38,7 @@ class ApiV1AuthAwsAuthIdentitiesIdentityIdGet200ResponseIdentityAwsAuth(BaseMode allowed_principal_arns: StrictStr = Field(default=..., alias="allowedPrincipalArns") allowed_account_ids: StrictStr = Field(default=..., alias="allowedAccountIds") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "createdAt", "updatedAt", "identityId", "type", "stsEndpoint", "allowedPrincipalArns", "allowedAccountIds"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_patch_request.py index 9c38a8c..1244d33 100644 --- a/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_patch_request.py @@ -19,26 +19,23 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthAwsAuthIdentitiesIdentityIdPatchRequest(BaseModel): """ ApiV1AuthAwsAuthIdentitiesIdentityIdPatchRequest """ - sts_endpoint: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="stsEndpoint", description="The new endpoint URL for the AWS STS API.") + sts_endpoint: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="stsEndpoint", description="The new endpoint URL for the AWS STS API.") allowed_principal_arns: Optional[StrictStr] = Field(default='', alias="allowedPrincipalArns", description="The new comma-separated list of trusted IAM principal ARNs that are allowed to authenticate with Infisical.") allowed_account_ids: Optional[StrictStr] = Field(default='', alias="allowedAccountIds", description="The new comma-separated list of trusted AWS account IDs that are allowed to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=0)] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=0)]] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") __properties = ["stsEndpoint", "allowedPrincipalArns", "allowedAccountIds", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenNumUsesLimit", "accessTokenMaxTTL"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_post_request.py b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_post_request.py index 2d4b517..4a63603 100644 --- a/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_aws_auth_identities_identity_id_post_request.py @@ -19,26 +19,23 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthAwsAuthIdentitiesIdentityIdPostRequest(BaseModel): """ ApiV1AuthAwsAuthIdentitiesIdentityIdPostRequest """ - sts_endpoint: Optional[constr(strict=True, min_length=1)] = Field(default='https://sts.amazonaws.com/', alias="stsEndpoint", description="The endpoint URL for the AWS STS API.") + sts_endpoint: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default='https://sts.amazonaws.com/', alias="stsEndpoint", description="The endpoint URL for the AWS STS API.") allowed_principal_arns: Optional[StrictStr] = Field(default='', alias="allowedPrincipalArns", description="The comma-separated list of trusted IAM principal ARNs that are allowed to authenticate with Infisical.") allowed_account_ids: Optional[StrictStr] = Field(default='', alias="allowedAccountIds", description="The comma-separated list of trusted AWS account IDs that are allowed to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") __properties = ["stsEndpoint", "allowedPrincipalArns", "allowedAccountIds", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_aws_auth_login_post_request.py b/infisicalapi_client/models/api_v1_auth_aws_auth_login_post_request.py index 15574b4..1a0f826 100644 --- a/infisicalapi_client/models/api_v1_auth_aws_auth_login_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_aws_auth_login_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthAwsAuthLoginPostRequest(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1AuthAwsAuthLoginPostRequest(BaseModel): iam_request_body: StrictStr = Field(default=..., alias="iamRequestBody", description="The base64-encoded body of the signed request. Most likely, the base64-encoding of Action=GetCallerIdentity&Version=2011-06-15.") iam_request_headers: StrictStr = Field(default=..., alias="iamRequestHeaders", description="The base64-encoded headers of the sts:GetCallerIdentity signed request.") __properties = ["identityId", "iamHttpRequestMethod", "iamRequestBody", "iamRequestHeaders"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response.py index ce1f703..7db912e 100644 --- a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_azure_auth_identities_identity_id_get200_response_identity_azure_auth import ApiV1AuthAzureAuthIdentitiesIdentityIdGet200ResponseIdentityAzureAuth class ApiV1AuthAzureAuthIdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthAzureAuthIdentitiesIdentityIdGet200Response(BaseModel): """ identity_azure_auth: ApiV1AuthAzureAuthIdentitiesIdentityIdGet200ResponseIdentityAzureAuth = Field(default=..., alias="identityAzureAuth") __properties = ["identityAzureAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response_identity_azure_auth.py b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response_identity_azure_auth.py index 2c9d363..66d2aef 100644 --- a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response_identity_azure_auth.py +++ b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_get200_response_identity_azure_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthAzureAuthIdentitiesIdentityIdGet200ResponseIdentityAzureAuth(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1AuthAzureAuthIdentitiesIdentityIdGet200ResponseIdentityAzureAuth(Base resource: StrictStr = Field(...) allowed_service_principal_ids: StrictStr = Field(default=..., alias="allowedServicePrincipalIds") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "createdAt", "updatedAt", "identityId", "tenantId", "resource", "allowedServicePrincipalIds"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_patch_request.py index 87029e0..4988222 100644 --- a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_patch_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthAzureAuthIdentitiesIdentityIdPatchRequest(BaseModel): """ @@ -29,16 +30,12 @@ class ApiV1AuthAzureAuthIdentitiesIdentityIdPatchRequest(BaseModel): tenant_id: Optional[StrictStr] = Field(default=None, alias="tenantId", description="The new tenant ID for the Azure AD organization.") resource: Optional[StrictStr] = Field(default=None, description="The new resource URL for the application registered in Azure AD.") allowed_service_principal_ids: Optional[StrictStr] = Field(default='', alias="allowedServicePrincipalIds", description="The new comma-separated list of Azure AD service principal IDs that are allowed to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=0)] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=0)]] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") __properties = ["tenantId", "resource", "allowedServicePrincipalIds", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenNumUsesLimit", "accessTokenMaxTTL"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_post_request.py b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_post_request.py index d9d7b00..4c8ffbb 100644 --- a/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_azure_auth_identities_identity_id_post_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthAzureAuthIdentitiesIdentityIdPostRequest(BaseModel): """ @@ -29,16 +30,12 @@ class ApiV1AuthAzureAuthIdentitiesIdentityIdPostRequest(BaseModel): tenant_id: StrictStr = Field(default=..., alias="tenantId", description="The tenant ID for the Azure AD organization.") resource: StrictStr = Field(default=..., description="The resource URL for the application registered in Azure AD.") allowed_service_principal_ids: Optional[StrictStr] = Field(default='', alias="allowedServicePrincipalIds", description="The comma-separated list of Azure AD service principal IDs that are allowed to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") __properties = ["tenantId", "resource", "allowedServicePrincipalIds", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_check_auth_post200_response.py b/infisicalapi_client/models/api_v1_auth_check_auth_post200_response.py index 397e1fa..6492c92 100644 --- a/infisicalapi_client/models/api_v1_auth_check_auth_post200_response.py +++ b/infisicalapi_client/models/api_v1_auth_check_auth_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthCheckAuthPost200Response(BaseModel): """ @@ -28,17 +28,14 @@ class ApiV1AuthCheckAuthPost200Response(BaseModel): message: StrictStr = Field(...) __properties = ["message"] - @validator('message') + @field_validator('message') + @classmethod def message_validate_enum(cls, value): """Validates the enum""" if value not in ('Authenticated'): raise ValueError("must be one of enum values ('Authenticated')") 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/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response.py index 5a6e96d..08564ab 100644 --- a/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_gcp_auth_identities_identity_id_get200_response_identity_gcp_auth import ApiV1AuthGcpAuthIdentitiesIdentityIdGet200ResponseIdentityGcpAuth class ApiV1AuthGcpAuthIdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthGcpAuthIdentitiesIdentityIdGet200Response(BaseModel): """ identity_gcp_auth: ApiV1AuthGcpAuthIdentitiesIdentityIdGet200ResponseIdentityGcpAuth = Field(default=..., alias="identityGcpAuth") __properties = ["identityGcpAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response_identity_gcp_auth.py b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response_identity_gcp_auth.py index c0559e6..3a3bc6d 100644 --- a/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response_identity_gcp_auth.py +++ b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_get200_response_identity_gcp_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthGcpAuthIdentitiesIdentityIdGet200ResponseIdentityGcpAuth(BaseModel): """ @@ -38,11 +38,7 @@ class ApiV1AuthGcpAuthIdentitiesIdentityIdGet200ResponseIdentityGcpAuth(BaseMode allowed_projects: StrictStr = Field(default=..., alias="allowedProjects") allowed_zones: StrictStr = Field(default=..., alias="allowedZones") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "createdAt", "updatedAt", "identityId", "type", "allowedServiceAccounts", "allowedProjects", "allowedZones"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_patch_request.py index 87ca311..df35b53 100644 --- a/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_patch_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthGcpAuthIdentitiesIdentityIdPatchRequest(BaseModel): """ @@ -30,13 +31,14 @@ class ApiV1AuthGcpAuthIdentitiesIdentityIdPatchRequest(BaseModel): allowed_service_accounts: Optional[StrictStr] = Field(default='', alias="allowedServiceAccounts", description="The new comma-separated list of trusted service account emails corresponding to the GCE resource(s) allowed to authenticate with Infisical.") allowed_projects: Optional[StrictStr] = Field(default='', alias="allowedProjects", description="The new comma-separated list of trusted GCP projects that the GCE instance must belong to authenticate with Infisical.") allowed_zones: Optional[StrictStr] = Field(default='', alias="allowedZones", description="The new comma-separated list of trusted zones that the GCE instances must belong to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=0)] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=0)]] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") __properties = ["type", "allowedServiceAccounts", "allowedProjects", "allowedZones", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenNumUsesLimit", "accessTokenMaxTTL"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -45,11 +47,7 @@ def type_validate_enum(cls, value): if value not in ('iam', 'gce'): raise ValueError("must be one of enum values ('iam', 'gce')") 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/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_post_request.py b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_post_request.py index 900eee1..ccfd0b3 100644 --- a/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_gcp_auth_identities_identity_id_post_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthGcpAuthIdentitiesIdentityIdPostRequest(BaseModel): """ @@ -30,23 +31,20 @@ class ApiV1AuthGcpAuthIdentitiesIdentityIdPostRequest(BaseModel): allowed_service_accounts: Optional[StrictStr] = Field(default='', alias="allowedServiceAccounts", description="The comma-separated list of trusted service account emails corresponding to the GCE resource(s) allowed to authenticate with Infisical.") allowed_projects: Optional[StrictStr] = Field(default='', alias="allowedProjects", description="The comma-separated list of trusted GCP projects that the GCE instance must belong to authenticate with Infisical.") allowed_zones: Optional[StrictStr] = Field(default='', alias="allowedZones", description="The comma-separated list of trusted zones that the GCE instances must belong to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") __properties = ["type", "allowedServiceAccounts", "allowedProjects", "allowedZones", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('iam', 'gce'): raise ValueError("must be one of enum values ('iam', 'gce')") 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/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response.py b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response.py index 2610416..fe969e5 100644 --- a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response.py +++ b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response_identity_kubernetes_auth import ApiV1AuthKubernetesAuthIdentitiesIdentityIdDelete200ResponseIdentityKubernetesAuth class ApiV1AuthKubernetesAuthIdentitiesIdentityIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthKubernetesAuthIdentitiesIdentityIdDelete200Response(BaseModel): """ identity_kubernetes_auth: ApiV1AuthKubernetesAuthIdentitiesIdentityIdDelete200ResponseIdentityKubernetesAuth = Field(default=..., alias="identityKubernetesAuth") __properties = ["identityKubernetesAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response_identity_kubernetes_auth.py b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response_identity_kubernetes_auth.py index a78dd22..343b3a4 100644 --- a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response_identity_kubernetes_auth.py +++ b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_delete200_response_identity_kubernetes_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthKubernetesAuthIdentitiesIdentityIdDelete200ResponseIdentityKubernetesAuth(BaseModel): """ @@ -38,11 +38,7 @@ class ApiV1AuthKubernetesAuthIdentitiesIdentityIdDelete200ResponseIdentityKubern allowed_names: StrictStr = Field(default=..., alias="allowedNames") allowed_audience: StrictStr = Field(default=..., alias="allowedAudience") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "createdAt", "updatedAt", "identityId", "kubernetesHost", "allowedNamespaces", "allowedNames", "allowedAudience"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response.py index 4a767b0..c394df6 100644 --- a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_kubernetes_auth_identities_identity_id_get200_response_identity_kubernetes_auth import ApiV1AuthKubernetesAuthIdentitiesIdentityIdGet200ResponseIdentityKubernetesAuth class ApiV1AuthKubernetesAuthIdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthKubernetesAuthIdentitiesIdentityIdGet200Response(BaseModel): """ identity_kubernetes_auth: ApiV1AuthKubernetesAuthIdentitiesIdentityIdGet200ResponseIdentityKubernetesAuth = Field(default=..., alias="identityKubernetesAuth") __properties = ["identityKubernetesAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response_identity_kubernetes_auth.py b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response_identity_kubernetes_auth.py index b465043..b06fca9 100644 --- a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response_identity_kubernetes_auth.py +++ b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_get200_response_identity_kubernetes_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthKubernetesAuthIdentitiesIdentityIdGet200ResponseIdentityKubernetesAuth(BaseModel): """ @@ -40,11 +40,7 @@ class ApiV1AuthKubernetesAuthIdentitiesIdentityIdGet200ResponseIdentityKubernete ca_cert: StrictStr = Field(default=..., alias="caCert") token_reviewer_jwt: StrictStr = Field(default=..., alias="tokenReviewerJwt") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "createdAt", "updatedAt", "identityId", "kubernetesHost", "allowedNamespaces", "allowedNames", "allowedAudience", "caCert", "tokenReviewerJwt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_patch_request.py index ff9ca37..e5e478f 100644 --- a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_patch_request.py @@ -19,29 +19,26 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthKubernetesAuthIdentitiesIdentityIdPatchRequest(BaseModel): """ ApiV1AuthKubernetesAuthIdentitiesIdentityIdPatchRequest """ - kubernetes_host: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="kubernetesHost", description="The new host string, host:port pair, or URL to the base of the Kubernetes API server.") + kubernetes_host: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="kubernetesHost", description="The new host string, host:port pair, or URL to the base of the Kubernetes API server.") ca_cert: Optional[StrictStr] = Field(default=None, alias="caCert", description="The new PEM-encoded CA cert for the Kubernetes API server.") - token_reviewer_jwt: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="tokenReviewerJwt", description="The new long-lived service account JWT token for Infisical to access the TokenReview API to validate other service account JWT tokens submitted by applications/pods.") + token_reviewer_jwt: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="tokenReviewerJwt", description="The new long-lived service account JWT token for Infisical to access the TokenReview API to validate other service account JWT tokens submitted by applications/pods.") allowed_namespaces: Optional[StrictStr] = Field(default=None, alias="allowedNamespaces", description="The new comma-separated list of trusted namespaces that service accounts must belong to authenticate with Infisical.") allowed_names: Optional[StrictStr] = Field(default=None, alias="allowedNames", description="The new comma-separated list of trusted service account names that can authenticate with Infisical.") allowed_audience: Optional[StrictStr] = Field(default=None, alias="allowedAudience", description="The new optional audience claim that the service account JWT token must have to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=0)] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=0)]] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") __properties = ["kubernetesHost", "caCert", "tokenReviewerJwt", "allowedNamespaces", "allowedNames", "allowedAudience", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenNumUsesLimit", "accessTokenMaxTTL"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_post_request.py b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_post_request.py index db91057..2e474c2 100644 --- a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_identities_identity_id_post_request.py @@ -19,29 +19,26 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthKubernetesAuthIdentitiesIdentityIdPostRequest(BaseModel): """ ApiV1AuthKubernetesAuthIdentitiesIdentityIdPostRequest """ - kubernetes_host: constr(strict=True, min_length=1) = Field(default=..., alias="kubernetesHost", description="The host string, host:port pair, or URL to the base of the Kubernetes API server.") + kubernetes_host: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="kubernetesHost", description="The host string, host:port pair, or URL to the base of the Kubernetes API server.") ca_cert: Optional[StrictStr] = Field(default='', alias="caCert", description="The PEM-encoded CA cert for the Kubernetes API server.") - token_reviewer_jwt: constr(strict=True, min_length=1) = Field(default=..., alias="tokenReviewerJwt", description="The long-lived service account JWT token for Infisical to access the TokenReview API to validate other service account JWT tokens submitted by applications/pods.") + token_reviewer_jwt: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="tokenReviewerJwt", description="The long-lived service account JWT token for Infisical to access the TokenReview API to validate other service account JWT tokens submitted by applications/pods.") allowed_namespaces: StrictStr = Field(default=..., alias="allowedNamespaces", description="The comma-separated list of trusted namespaces that service accounts must belong to authenticate with Infisical.") allowed_names: StrictStr = Field(default=..., alias="allowedNames", description="The comma-separated list of trusted service account names that can authenticate with Infisical.") allowed_audience: StrictStr = Field(default=..., alias="allowedAudience", description="The optional audience claim that the service account JWT token must have to authenticate with Infisical.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") __properties = ["kubernetesHost", "caCert", "tokenReviewerJwt", "allowedNamespaces", "allowedNames", "allowedAudience", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_login_post_request.py b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_login_post_request.py index ecc06bb..f11b59a 100644 --- a/infisicalapi_client/models/api_v1_auth_kubernetes_auth_login_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_kubernetes_auth_login_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthKubernetesAuthLoginPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1AuthKubernetesAuthLoginPostRequest(BaseModel): identity_id: StrictStr = Field(default=..., alias="identityId", description="The ID of the identity to login.") jwt: StrictStr = Field(...) __properties = ["identityId", "jwt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response.py b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response.py index c418193..a895675 100644 --- a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response.py +++ b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_oidc_auth_identities_identity_id_delete200_response_identity_oidc_auth import ApiV1AuthOidcAuthIdentitiesIdentityIdDelete200ResponseIdentityOidcAuth class ApiV1AuthOidcAuthIdentitiesIdentityIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthOidcAuthIdentitiesIdentityIdDelete200Response(BaseModel): """ identity_oidc_auth: ApiV1AuthOidcAuthIdentitiesIdentityIdDelete200ResponseIdentityOidcAuth = Field(default=..., alias="identityOidcAuth") __properties = ["identityOidcAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response_identity_oidc_auth.py b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response_identity_oidc_auth.py index e8b0788..5c8bdc4 100644 --- a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response_identity_oidc_auth.py +++ b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_delete200_response_identity_oidc_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthOidcAuthIdentitiesIdentityIdDelete200ResponseIdentityOidcAuth(BaseModel): """ @@ -39,11 +39,7 @@ class ApiV1AuthOidcAuthIdentitiesIdentityIdDelete200ResponseIdentityOidcAuth(Bas created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "identityId", "oidcDiscoveryUrl", "boundIssuer", "boundAudiences", "boundClaims", "boundSubject", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response.py index 4ed2a62..283097e 100644 --- a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_oidc_auth_identities_identity_id_get200_response_identity_oidc_auth import ApiV1AuthOidcAuthIdentitiesIdentityIdGet200ResponseIdentityOidcAuth class ApiV1AuthOidcAuthIdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthOidcAuthIdentitiesIdentityIdGet200Response(BaseModel): """ identity_oidc_auth: ApiV1AuthOidcAuthIdentitiesIdentityIdGet200ResponseIdentityOidcAuth = Field(default=..., alias="identityOidcAuth") __properties = ["identityOidcAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response_identity_oidc_auth.py b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response_identity_oidc_auth.py index 6a0ab46..f263d08 100644 --- a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response_identity_oidc_auth.py +++ b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_get200_response_identity_oidc_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthOidcAuthIdentitiesIdentityIdGet200ResponseIdentityOidcAuth(BaseModel): """ @@ -40,11 +40,7 @@ class ApiV1AuthOidcAuthIdentitiesIdentityIdGet200ResponseIdentityOidcAuth(BaseMo updated_at: datetime = Field(default=..., alias="updatedAt") ca_cert: StrictStr = Field(default=..., alias="caCert") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "identityId", "oidcDiscoveryUrl", "boundIssuer", "boundAudiences", "boundClaims", "boundSubject", "createdAt", "updatedAt", "caCert"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_patch_request.py index dc3405a..ecf4571 100644 --- a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_patch_request.py @@ -19,29 +19,26 @@ from typing import Dict, List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthOidcAuthIdentitiesIdentityIdPatchRequest(BaseModel): """ ApiV1AuthOidcAuthIdentitiesIdentityIdPatchRequest """ - oidc_discovery_url: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="oidcDiscoveryUrl", description="The new URL used to retrieve the OpenID Connect configuration from the identity provider.") + oidc_discovery_url: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="oidcDiscoveryUrl", description="The new URL used to retrieve the OpenID Connect configuration from the identity provider.") ca_cert: Optional[StrictStr] = Field(default='', alias="caCert", description="The new PEM-encoded CA cert for establishing secure communication with the Identity Provider endpoints.") - bound_issuer: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="boundIssuer", description="The new unique identifier of the identity provider issuing the JWT.") + bound_issuer: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="boundIssuer", description="The new unique identifier of the identity provider issuing the JWT.") bound_audiences: Optional[StrictStr] = Field(default='', alias="boundAudiences", description="The new list of intended recipients.") bound_claims: Optional[Dict[str, StrictStr]] = Field(default=None, alias="boundClaims", description="The new attributes that should be present in the JWT for it to be valid.") bound_subject: Optional[StrictStr] = Field(default='', alias="boundSubject", description="The new expected principal that is the subject of the JWT.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") __properties = ["oidcDiscoveryUrl", "caCert", "boundIssuer", "boundAudiences", "boundClaims", "boundSubject", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_post_request.py b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_post_request.py index 2cb4031..425f84e 100644 --- a/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_oidc_auth_identities_identity_id_post_request.py @@ -19,29 +19,26 @@ from typing import Dict, List, Optional -from pydantic import BaseModel, Field, StrictStr, conint, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthOidcAuthIdentitiesIdentityIdPostRequest(BaseModel): """ ApiV1AuthOidcAuthIdentitiesIdentityIdPostRequest """ - oidc_discovery_url: constr(strict=True, min_length=1) = Field(default=..., alias="oidcDiscoveryUrl", description="The URL used to retrieve the OpenID Connect configuration from the identity provider.") + oidc_discovery_url: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="oidcDiscoveryUrl", description="The URL used to retrieve the OpenID Connect configuration from the identity provider.") ca_cert: Optional[StrictStr] = Field(default='', alias="caCert", description="The PEM-encoded CA cert for establishing secure communication with the Identity Provider endpoints.") - bound_issuer: constr(strict=True, min_length=1) = Field(default=..., alias="boundIssuer", description="The unique identifier of the identity provider issuing the JWT.") + bound_issuer: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="boundIssuer", description="The unique identifier of the identity provider issuing the JWT.") bound_audiences: Optional[StrictStr] = Field(default='', alias="boundAudiences", description="The list of intended recipients.") bound_claims: Dict[str, StrictStr] = Field(default=..., alias="boundClaims", description="The attributes that should be present in the JWT for it to be valid.") bound_subject: Optional[StrictStr] = Field(default='', alias="boundSubject", description="The expected principal that is the subject of the JWT.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") __properties = ["oidcDiscoveryUrl", "caCert", "boundIssuer", "boundAudiences", "boundClaims", "boundSubject", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response.py index 3d0b785..fd57349 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_get200_response_identity_token_auth import ApiV1AuthTokenAuthIdentitiesIdentityIdGet200ResponseIdentityTokenAuth class ApiV1AuthTokenAuthIdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthTokenAuthIdentitiesIdentityIdGet200Response(BaseModel): """ identity_token_auth: ApiV1AuthTokenAuthIdentitiesIdentityIdGet200ResponseIdentityTokenAuth = Field(default=..., alias="identityTokenAuth") __properties = ["identityTokenAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response_identity_token_auth.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response_identity_token_auth.py index adb6983..f778e0b 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response_identity_token_auth.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_get200_response_identity_token_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthTokenAuthIdentitiesIdentityIdGet200ResponseIdentityTokenAuth(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1AuthTokenAuthIdentitiesIdentityIdGet200ResponseIdentityTokenAuth(Base updated_at: datetime = Field(default=..., alias="updatedAt") identity_id: StrictStr = Field(default=..., alias="identityId") __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "accessTokenTrustedIps", "createdAt", "updatedAt", "identityId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_patch_request.py index 57f2b23..068bdfe 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_patch_request.py @@ -19,23 +19,20 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conint, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthTokenAuthIdentitiesIdentityIdPatchRequest(BaseModel): """ ApiV1AuthTokenAuthIdentitiesIdentityIdPatchRequest """ - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=0)] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The new IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=0)]] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an acccess token in seconds.") __properties = ["accessTokenTrustedIps", "accessTokenTTL", "accessTokenNumUsesLimit", "accessTokenMaxTTL"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request.py index 30c9cee..cfba37d 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request.py @@ -19,23 +19,20 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conint, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequest(BaseModel): """ ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequest """ - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an acccess token in seconds.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an acccess token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used.") __properties = ["accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner.py index 6ba27ab..c89a94d 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInne """ ip_address: StrictStr = Field(default=..., alias="ipAddress") __properties = ["ipAddress"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response.py index 3799d43..3e3763e 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_tokens_get200_response_tokens_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200ResponseTokensInner +from typing_extensions import Annotated class ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200Response(BaseModel): """ ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200Response """ - tokens: conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200ResponseTokensInner) = Field(...) + tokens: Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200ResponseTokensInner], Field()] = Field(...) __properties = ["tokens"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response_tokens_inner.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response_tokens_inner.py index 89c65c0..d4c39d1 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response_tokens_inner.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_get200_response_tokens_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200ResponseTokensInner(BaseModel): """ @@ -39,11 +39,7 @@ class ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200ResponseTokensInner(Base updated_at: datetime = Field(default=..., alias="updatedAt") name: Optional[StrictStr] = None __properties = ["id", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUses", "accessTokenNumUsesLimit", "accessTokenLastUsedAt", "accessTokenLastRenewedAt", "isAccessTokenRevoked", "identityUAClientSecretId", "identityId", "createdAt", "updatedAt", "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/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post200_response.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post200_response.py index 9d2aca3..fd08281 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post200_response.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post200_response.py @@ -19,7 +19,7 @@ from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthTokenAuthIdentitiesIdentityIdTokensPost200Response(BaseModel): """ @@ -31,17 +31,14 @@ class ApiV1AuthTokenAuthIdentitiesIdentityIdTokensPost200Response(BaseModel): token_type: StrictStr = Field(default=..., alias="tokenType") __properties = ["accessToken", "expiresIn", "accessTokenMaxTTL", "tokenType"] - @validator('token_type') + @field_validator('token_type') + @classmethod def token_type_validate_enum(cls, value): """Validates the enum""" if value not in ('Bearer'): raise ValueError("must be one of enum values ('Bearer')") 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/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post_request.py b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post_request.py index e8821bc..147eec1 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_identities_identity_id_tokens_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthTokenAuthIdentitiesIdentityIdTokensPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1AuthTokenAuthIdentitiesIdentityIdTokensPostRequest(BaseModel): """ name: Optional[StrictStr] = Field(default=None, description="The name of the token to create") __properties = ["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/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch200_response.py b/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch200_response.py index 97b3cdc..5b4fb14 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch200_response.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_tokens_get200_response_tokens_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200ResponseTokensInner class ApiV1AuthTokenAuthTokensTokenIdPatch200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthTokenAuthTokensTokenIdPatch200Response(BaseModel): """ token: ApiV1AuthTokenAuthIdentitiesIdentityIdTokensGet200ResponseTokensInner = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch_request.py index 42d8bea..e98343b 100644 --- a/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_token_auth_tokens_token_id_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthTokenAuthTokensTokenIdPatchRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1AuthTokenAuthTokensTokenIdPatchRequest(BaseModel): """ name: Optional[StrictStr] = Field(default=None, description="The name of the token to update to") __properties = ["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/infisicalapi_client/models/api_v1_auth_token_post200_response.py b/infisicalapi_client/models/api_v1_auth_token_post200_response.py index 1c577e8..8b398c4 100644 --- a/infisicalapi_client/models/api_v1_auth_token_post200_response.py +++ b/infisicalapi_client/models/api_v1_auth_token_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthTokenPost200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1AuthTokenPost200Response(BaseModel): """ token: StrictStr = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_auth_token_renew_post_request.py b/infisicalapi_client/models/api_v1_auth_token_renew_post_request.py index b95a7f1..b98e9c7 100644 --- a/infisicalapi_client/models/api_v1_auth_token_renew_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_token_renew_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthTokenRenewPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1AuthTokenRenewPostRequest(BaseModel): """ access_token: StrictStr = Field(default=..., alias="accessToken", description="The access token to renew.") __properties = ["accessToken"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_token_revoke_post_request.py b/infisicalapi_client/models/api_v1_auth_token_revoke_post_request.py index 0043060..382773a 100644 --- a/infisicalapi_client/models/api_v1_auth_token_revoke_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_token_revoke_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthTokenRevokePostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1AuthTokenRevokePostRequest(BaseModel): """ access_token: StrictStr = Field(default=..., alias="accessToken", description="The access token to revoke.") __properties = ["accessToken"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_client_secret_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_client_secret_id_get200_response.py index 7c2302c..0beff90 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_client_secret_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_client_secret_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response_client_secret_data_inner import ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsClientSecretIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsClientSecretIdGet20 """ client_secret_data: ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner = Field(default=..., alias="clientSecretData") __properties = ["clientSecretData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response.py index 651868c..d5b7bec 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response_client_secret_data_inner import ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner +from typing_extensions import Annotated class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200Response(BaseModel): """ ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200Response """ - client_secret_data: conlist(ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner) = Field(default=..., alias="clientSecretData") + client_secret_data: Annotated[List[ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner], Field()] = Field(default=..., alias="clientSecretData") __properties = ["clientSecretData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response_client_secret_data_inner.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response_client_secret_data_inner.py index 7b275f5..6af1f23 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response_client_secret_data_inner.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response_client_secret_data_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClien identity_uaid: StrictStr = Field(default=..., alias="identityUAId") is_client_secret_revoked: Optional[StrictBool] = Field(default=False, alias="isClientSecretRevoked") __properties = ["id", "createdAt", "updatedAt", "description", "clientSecretPrefix", "clientSecretNumUses", "clientSecretNumUsesLimit", "clientSecretTTL", "identityUAId", "isClientSecretRevoked"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post200_response.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post200_response.py index 35a9cb6..f84eec6 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post200_response.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_auth_universal_auth_identities_identity_id_client_secrets_get200_response_client_secret_data_inner import ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsPost200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsPost200Response(Bas client_secret: StrictStr = Field(default=..., alias="clientSecret") client_secret_data: ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsGet200ResponseClientSecretDataInner = Field(default=..., alias="clientSecretData") __properties = ["clientSecret", "clientSecretData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post_request.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post_request.py index 01027d4..9459f7c 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_client_secrets_post_request.py @@ -19,21 +19,18 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsPostRequest(BaseModel): """ ApiV1AuthUniversalAuthIdentitiesIdentityIdClientSecretsPostRequest """ description: Optional[StrictStr] = Field(default='', description="The description of the client secret.") - num_uses_limit: Optional[Union[confloat(ge=0, strict=True), conint(ge=0, strict=True)]] = Field(default=0, alias="numUsesLimit", description="The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.") - ttl: Optional[Union[confloat(le=315360000, ge=0, strict=True), conint(le=315360000, ge=0, strict=True)]] = Field(default=0, description="The lifetime for the client secret in seconds.") + num_uses_limit: Optional[Union[Annotated[float, Field(ge=0, strict=True)], Annotated[int, Field(ge=0, strict=True)]]] = Field(default=0, alias="numUsesLimit", description="The maximum number of times that the client secret can be used; a value of 0 implies infinite number of uses.") + ttl: Optional[Union[Annotated[float, Field(le=315360000, ge=0, strict=True)], Annotated[int, Field(le=315360000, ge=0, strict=True)]]] = Field(default=0, description="The lifetime for the client secret in seconds.") __properties = ["description", "numUsesLimit", "ttl"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response.py index fdea4a3..f768030 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_universal_auth_identities_identity_id_get200_response_identity_universal_auth import ApiV1AuthUniversalAuthIdentitiesIdentityIdGet200ResponseIdentityUniversalAuth class ApiV1AuthUniversalAuthIdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1AuthUniversalAuthIdentitiesIdentityIdGet200Response(BaseModel): """ identity_universal_auth: ApiV1AuthUniversalAuthIdentitiesIdentityIdGet200ResponseIdentityUniversalAuth = Field(default=..., alias="identityUniversalAuth") __properties = ["identityUniversalAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response_identity_universal_auth.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response_identity_universal_auth.py index d1bc4e5..981119f 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response_identity_universal_auth.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_get200_response_identity_universal_auth.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1AuthUniversalAuthIdentitiesIdentityIdGet200ResponseIdentityUniversalAuth(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1AuthUniversalAuthIdentitiesIdentityIdGet200ResponseIdentityUniversalA updated_at: datetime = Field(default=..., alias="updatedAt") identity_id: StrictStr = Field(default=..., alias="identityId") __properties = ["id", "clientId", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit", "clientSecretTrustedIps", "accessTokenTrustedIps", "createdAt", "updatedAt", "identityId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_patch_request.py index 77d0916..537fe68 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_patch_request.py @@ -19,24 +19,21 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conint, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthUniversalAuthIdentitiesIdentityIdPatchRequest(BaseModel): """ ApiV1AuthUniversalAuthIdentitiesIdentityIdPatchRequest """ - client_secret_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="clientSecretTrustedIps", description="The new list of IPs or CIDR ranges that the Client Secret can be used from.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="The new list of IPs or CIDR ranges that access tokens can be used from.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=0)] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an access token in seconds.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an access token in seconds.") + client_secret_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="clientSecretTrustedIps", description="The new list of IPs or CIDR ranges that the Client Secret can be used from.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="The new list of IPs or CIDR ranges that access tokens can be used from.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=0)]] = Field(default=None, alias="accessTokenTTL", description="The new lifetime for an access token in seconds.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=None, alias="accessTokenNumUsesLimit", description="The new maximum number of times that an access token can be used.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=None, alias="accessTokenMaxTTL", description="The new maximum lifetime for an access token in seconds.") __properties = ["clientSecretTrustedIps", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenNumUsesLimit", "accessTokenMaxTTL"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_post_request.py b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_post_request.py index 09d22b5..2fcca76 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_identities_identity_id_post_request.py @@ -19,24 +19,21 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conint, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_auth_token_auth_identities_identity_id_post_request_access_token_trusted_ips_inner import ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner +from typing_extensions import Annotated class ApiV1AuthUniversalAuthIdentitiesIdentityIdPostRequest(BaseModel): """ ApiV1AuthUniversalAuthIdentitiesIdentityIdPostRequest """ - client_secret_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="clientSecretTrustedIps", description="A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.") - access_token_trusted_ips: Optional[conlist(ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner, min_items=1)] = Field(default=None, alias="accessTokenTrustedIps", description="A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.") - access_token_ttl: Optional[conint(strict=True, le=315360000, ge=1)] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an access token in seconds. This value will be referenced at renewal time.") - access_token_max_ttl: Optional[conint(strict=True, le=315360000)] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.") - access_token_num_uses_limit: Optional[conint(strict=True, ge=0)] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.") + client_secret_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="clientSecretTrustedIps", description="A list of IPs or CIDR ranges that the Client Secret can be used from together with the Client ID to get back an access token. You can use 0.0.0.0/0, to allow usage from any network address.") + access_token_trusted_ips: Optional[Annotated[List[ApiV1AuthTokenAuthIdentitiesIdentityIdPostRequestAccessTokenTrustedIpsInner], Field(min_length=1)]] = Field(default=None, alias="accessTokenTrustedIps", description="A list of IPs or CIDR ranges that access tokens can be used from. You can use 0.0.0.0/0, to allow usage from any network address.") + access_token_ttl: Optional[Annotated[int, Field(strict=True, le=315360000, ge=1)]] = Field(default=2592000, alias="accessTokenTTL", description="The lifetime for an access token in seconds. This value will be referenced at renewal time.") + access_token_max_ttl: Optional[Annotated[int, Field(strict=True, le=315360000)]] = Field(default=2592000, alias="accessTokenMaxTTL", description="The maximum lifetime for an access token in seconds. This value will be referenced at renewal time.") + access_token_num_uses_limit: Optional[Annotated[int, Field(strict=True, ge=0)]] = Field(default=0, alias="accessTokenNumUsesLimit", description="The maximum number of times that an access token can be used; a value of 0 implies infinite number of uses.") __properties = ["clientSecretTrustedIps", "accessTokenTrustedIps", "accessTokenTTL", "accessTokenMaxTTL", "accessTokenNumUsesLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_auth_universal_auth_login_post_request.py b/infisicalapi_client/models/api_v1_auth_universal_auth_login_post_request.py index 91696fc..d588f69 100644 --- a/infisicalapi_client/models/api_v1_auth_universal_auth_login_post_request.py +++ b/infisicalapi_client/models/api_v1_auth_universal_auth_login_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1AuthUniversalAuthLoginPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1AuthUniversalAuthLoginPostRequest(BaseModel): client_id: StrictStr = Field(default=..., alias="clientId", description="Your Machine Identity Client ID.") client_secret: StrictStr = Field(default=..., alias="clientSecret", description="Your Machine Identity Client Secret.") __properties = ["clientId", "clientSecret"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request.py b/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request.py index f23a60f..2f32f13 100644 --- a/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request.py +++ b/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool from infisicalapi_client.models.api_v1_bot_bot_id_active_patch_request_bot_key import ApiV1BotBotIdActivePatchRequestBotKey class ApiV1BotBotIdActivePatchRequest(BaseModel): @@ -29,11 +29,7 @@ class ApiV1BotBotIdActivePatchRequest(BaseModel): is_active: StrictBool = Field(default=..., alias="isActive") bot_key: Optional[ApiV1BotBotIdActivePatchRequestBotKey] = Field(default=None, alias="botKey") __properties = ["isActive", "botKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request_bot_key.py b/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request_bot_key.py index ea76ac9..362b477 100644 --- a/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request_bot_key.py +++ b/infisicalapi_client/models/api_v1_bot_bot_id_active_patch_request_bot_key.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1BotBotIdActivePatchRequestBotKey(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1BotBotIdActivePatchRequestBotKey(BaseModel): nonce: Optional[StrictStr] = None encrypted_key: Optional[StrictStr] = Field(default=None, alias="encryptedKey") __properties = ["nonce", "encryptedKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_bot_project_id_get200_response.py b/infisicalapi_client/models/api_v1_bot_project_id_get200_response.py index be9c619..5513cb2 100644 --- a/infisicalapi_client/models/api_v1_bot_project_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_bot_project_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_bot_project_id_get200_response_bot import ApiV1BotProjectIdGet200ResponseBot class ApiV1BotProjectIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1BotProjectIdGet200Response(BaseModel): """ bot: ApiV1BotProjectIdGet200ResponseBot = Field(...) __properties = ["bot"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_bot_project_id_get200_response_bot.py b/infisicalapi_client/models/api_v1_bot_project_id_get200_response_bot.py index 104d085..e0025e9 100644 --- a/infisicalapi_client/models/api_v1_bot_project_id_get200_response_bot.py +++ b/infisicalapi_client/models/api_v1_bot_project_id_get200_response_bot.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1BotProjectIdGet200ResponseBot(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1BotProjectIdGet200ResponseBot(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "name", "isActive", "publicKey", "encryptedProjectKey", "encryptedProjectKeyNonce", "projectId", "senderId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response.py b/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response.py index b1acc33..6d568b6 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner import ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner +from typing_extensions import Annotated class ApiV1DynamicSecretsGet200Response(BaseModel): """ ApiV1DynamicSecretsGet200Response """ - dynamic_secrets: conlist(ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner) = Field(default=..., alias="dynamicSecrets") + dynamic_secrets: Annotated[List[ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner], Field()] = Field(default=..., alias="dynamicSecrets") __properties = ["dynamicSecrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner.py b/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner.py index a0b375b..036887e 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "name", "version", "type", "defaultTTL", "maxTTL", "folderId", "status", "statusDetails", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete200_response.py b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete200_response.py index 7ece530..28790d8 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete200_response.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_dynamic_secrets_name_leases_get200_response_leases_inner import ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner class ApiV1DynamicSecretsLeasesLeaseIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1DynamicSecretsLeasesLeaseIdDelete200Response(BaseModel): """ lease: ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner = Field(...) __properties = ["lease"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete_request.py b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete_request.py index 20c8df2..1ffa9a3 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete_request.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_delete_request.py @@ -19,22 +19,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictBool +from typing_extensions import Annotated class ApiV1DynamicSecretsLeasesLeaseIdDeleteRequest(BaseModel): """ ApiV1DynamicSecretsLeasesLeaseIdDeleteRequest """ - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project of the dynamic secret in.") - path: Optional[constr(strict=True, min_length=1)] = Field(default='/', description="The path of the dynamic secret in.") - environment_slug: constr(strict=True, min_length=1) = Field(default=..., alias="environmentSlug", description="The slug of the environment of the dynamic secret in.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project of the dynamic secret in.") + path: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default='/', description="The path of the dynamic secret in.") + environment_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="environmentSlug", description="The slug of the environment of the dynamic secret in.") is_forced: Optional[StrictBool] = Field(default=False, alias="isForced", description="A boolean flag to delete the the dynamic secret from infisical without trying to remove it from external provider. Used when the dynamic secret got modified externally.") __properties = ["projectSlug", "path", "environmentSlug", "isForced"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response.py b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response.py index d3c3d68..2d3bfdf 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_dynamic_secrets_leases_lease_id_get200_response_lease import ApiV1DynamicSecretsLeasesLeaseIdGet200ResponseLease class ApiV1DynamicSecretsLeasesLeaseIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1DynamicSecretsLeasesLeaseIdGet200Response(BaseModel): """ lease: ApiV1DynamicSecretsLeasesLeaseIdGet200ResponseLease = Field(...) __properties = ["lease"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response_lease.py b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response_lease.py index 9bce02c..f74a8d6 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response_lease.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_get200_response_lease.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner import ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner class ApiV1DynamicSecretsLeasesLeaseIdGet200ResponseLease(BaseModel): @@ -37,11 +37,7 @@ class ApiV1DynamicSecretsLeasesLeaseIdGet200ResponseLease(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") dynamic_secret: ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner = Field(default=..., alias="dynamicSecret") __properties = ["id", "version", "externalEntityId", "expireAt", "status", "statusDetails", "dynamicSecretId", "createdAt", "updatedAt", "dynamicSecret"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_renew_post_request.py b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_renew_post_request.py index ff94b05..62f707d 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_renew_post_request.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_lease_id_renew_post_request.py @@ -19,22 +19,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1DynamicSecretsLeasesLeaseIdRenewPostRequest(BaseModel): """ ApiV1DynamicSecretsLeasesLeaseIdRenewPostRequest """ ttl: Optional[StrictStr] = Field(default=None, description="The renew TTL that gets added with current expiry (ensure it's below max TTL) for a total less than creation time + max TTL.") - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project of the dynamic secret in.") - path: Optional[constr(strict=True, min_length=1)] = Field(default='/', description="The path of the dynamic secret in.") - environment_slug: constr(strict=True, min_length=1) = Field(default=..., alias="environmentSlug", description="The slug of the environment of the dynamic secret in.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project of the dynamic secret in.") + path: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default='/', description="The path of the dynamic secret in.") + environment_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="environmentSlug", description="The slug of the environment of the dynamic secret in.") __properties = ["ttl", "projectSlug", "path", "environmentSlug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post200_response.py b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post200_response.py index 60849a8..20311ab 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post200_response.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post200_response.py @@ -19,7 +19,7 @@ from typing import Any, Optional -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner import ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner from infisicalapi_client.models.api_v1_dynamic_secrets_name_leases_get200_response_leases_inner import ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner @@ -31,11 +31,7 @@ class ApiV1DynamicSecretsLeasesPost200Response(BaseModel): dynamic_secret: ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner = Field(default=..., alias="dynamicSecret") data: Optional[Any] = None __properties = ["lease", "dynamicSecret", "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/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post_request.py b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post_request.py index e80b700..cb754f7 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post_request.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_leases_post_request.py @@ -19,23 +19,20 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1DynamicSecretsLeasesPostRequest(BaseModel): """ ApiV1DynamicSecretsLeasesPostRequest """ - dynamic_secret_name: constr(strict=True, min_length=1) = Field(default=..., alias="dynamicSecretName", description="The name of the dynamic secret.") - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project of the dynamic secret in.") + dynamic_secret_name: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="dynamicSecretName", description="The name of the dynamic secret.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project of the dynamic secret in.") ttl: Optional[StrictStr] = Field(default=None, description="The lease lifetime ttl. If not provided the default TTL of dynamic secret will be used.") path: Optional[StrictStr] = Field(default='/', description="The path of the dynamic secret in.") - environment_slug: constr(strict=True, min_length=1) = Field(default=..., alias="environmentSlug", description="The path of the dynamic secret in.") + environment_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="environmentSlug", description="The path of the dynamic secret in.") __properties = ["dynamicSecretName", "projectSlug", "ttl", "path", "environmentSlug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_name_delete_request.py b/infisicalapi_client/models/api_v1_dynamic_secrets_name_delete_request.py index 2621358..f48f004 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_name_delete_request.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_name_delete_request.py @@ -19,22 +19,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1DynamicSecretsNameDeleteRequest(BaseModel): """ ApiV1DynamicSecretsNameDeleteRequest """ - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project to delete dynamic secret in.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project to delete dynamic secret in.") path: Optional[StrictStr] = Field(default='/', description="The path to delete the dynamic secret in.") - environment_slug: constr(strict=True, min_length=1) = Field(default=..., alias="environmentSlug", description="The slug of the environment to delete the dynamic secret in.") + environment_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="environmentSlug", description="The slug of the environment to delete the dynamic secret in.") is_forced: Optional[StrictBool] = Field(default=False, alias="isForced", description="A boolean flag to delete the the dynamic secret from infisical without trying to remove it from external provider. Used when the dynamic secret got modified externally.") __properties = ["projectSlug", "path", "environmentSlug", "isForced"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response.py b/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response.py index 0eb341b..b2d78e7 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_dynamic_secrets_name_get200_response_dynamic_secret import ApiV1DynamicSecretsNameGet200ResponseDynamicSecret class ApiV1DynamicSecretsNameGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1DynamicSecretsNameGet200Response(BaseModel): """ dynamic_secret: ApiV1DynamicSecretsNameGet200ResponseDynamicSecret = Field(default=..., alias="dynamicSecret") __properties = ["dynamicSecret"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response_dynamic_secret.py b/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response_dynamic_secret.py index 307c187..ac632d8 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response_dynamic_secret.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_name_get200_response_dynamic_secret.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1DynamicSecretsNameGet200ResponseDynamicSecret(BaseModel): """ @@ -38,11 +38,7 @@ class ApiV1DynamicSecretsNameGet200ResponseDynamicSecret(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") inputs: Optional[Any] = None __properties = ["id", "name", "version", "type", "defaultTTL", "maxTTL", "folderId", "status", "statusDetails", "createdAt", "updatedAt", "inputs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response.py b/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response.py index b4fd931..9f129c2 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_dynamic_secrets_name_leases_get200_response_leases_inner import ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner +from typing_extensions import Annotated class ApiV1DynamicSecretsNameLeasesGet200Response(BaseModel): """ ApiV1DynamicSecretsNameLeasesGet200Response """ - leases: conlist(ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner) = Field(...) + leases: Annotated[List[ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner], Field()] = Field(...) __properties = ["leases"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response_leases_inner.py b/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response_leases_inner.py index e8ddef8..806d7f6 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response_leases_inner.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_name_leases_get200_response_leases_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner(BaseModel): """ @@ -35,11 +35,7 @@ class ApiV1DynamicSecretsNameLeasesGet200ResponseLeasesInner(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "version", "externalEntityId", "expireAt", "status", "statusDetails", "dynamicSecretId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request.py b/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request.py index 7c1e510..626e5f5 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request.py @@ -19,23 +19,20 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_dynamic_secrets_name_patch_request_data import ApiV1DynamicSecretsNamePatchRequestData +from typing_extensions import Annotated class ApiV1DynamicSecretsNamePatchRequest(BaseModel): """ ApiV1DynamicSecretsNamePatchRequest """ - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project to update dynamic secret in.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project to update dynamic secret in.") path: Optional[StrictStr] = Field(default='/', description="The path to update the dynamic secret in.") - environment_slug: constr(strict=True, min_length=1) = Field(default=..., alias="environmentSlug", description="The slug of the environment to update the dynamic secret in.") + environment_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="environmentSlug", description="The slug of the environment to update the dynamic secret in.") data: ApiV1DynamicSecretsNamePatchRequestData = Field(...) __properties = ["projectSlug", "path", "environmentSlug", "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/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request_data.py b/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request_data.py index 35faf98..b9fc624 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request_data.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_name_patch_request_data.py @@ -19,7 +19,7 @@ from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1DynamicSecretsNamePatchRequestData(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1DynamicSecretsNamePatchRequestData(BaseModel): max_ttl: Optional[StrictStr] = Field(default=None, alias="maxTTL", description="The maximum limit a TTL can be leases or renewed.") new_name: Optional[StrictStr] = Field(default=None, alias="newName", description="The new name for the dynamic secret.") __properties = ["inputs", "defaultTTL", "maxTTL", "newName"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_post200_response.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post200_response.py index 67d74e8..be06b02 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post200_response.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_dynamic_secrets_get200_response_dynamic_secrets_inner import ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner class ApiV1DynamicSecretsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1DynamicSecretsPost200Response(BaseModel): """ dynamic_secret: ApiV1DynamicSecretsGet200ResponseDynamicSecretsInner = Field(default=..., alias="dynamicSecret") __properties = ["dynamicSecret"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request.py index 2358921..d8dce54 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request.py @@ -19,26 +19,23 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_dynamic_secrets_post_request_provider import ApiV1DynamicSecretsPostRequestProvider +from typing_extensions import Annotated class ApiV1DynamicSecretsPostRequest(BaseModel): """ ApiV1DynamicSecretsPostRequest """ - project_slug: constr(strict=True, min_length=1) = Field(default=..., alias="projectSlug", description="The slug of the project to create dynamic secret in.") + project_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectSlug", description="The slug of the project to create dynamic secret in.") provider: ApiV1DynamicSecretsPostRequestProvider = Field(...) default_ttl: StrictStr = Field(default=..., alias="defaultTTL", description="The default TTL that will be applied for all the leases.") max_ttl: Optional[StrictStr] = Field(default=None, alias="maxTTL", description="The maximum limit a TTL can be leases or renewed.") path: Optional[StrictStr] = Field(default='/', description="The path to create the dynamic secret in.") - environment_slug: constr(strict=True, min_length=1) = Field(default=..., alias="environmentSlug", description="The slug of the environment to create the dynamic secret in.") - name: constr(strict=True, max_length=64, min_length=1) = Field(default=..., description="The name of the dynamic secret.") + environment_slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="environmentSlug", description="The slug of the environment to create the dynamic secret in.") + name: Annotated[str, StringConstraints(strict=True, max_length=64, min_length=1)] = Field(default=..., description="The name of the dynamic secret.") __properties = ["projectSlug", "provider", "defaultTTL", "maxTTL", "path", "environmentSlug", "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/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider.py index 550a912..4f595c7 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider.py @@ -18,13 +18,13 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v1_dynamic_secrets_post_request_provider_any_of import ApiV1DynamicSecretsPostRequestProviderAnyOf from infisicalapi_client.models.api_v1_dynamic_secrets_post_request_provider_any_of1 import ApiV1DynamicSecretsPostRequestProviderAnyOf1 from infisicalapi_client.models.api_v1_dynamic_secrets_post_request_provider_any_of2 import ApiV1DynamicSecretsPostRequestProviderAnyOf2 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV1DYNAMICSECRETSPOSTREQUESTPROVIDER_ANY_OF_SCHEMAS = ["ApiV1DynamicSecretsPostRequestProviderAnyOf", "ApiV1DynamicSecretsPostRequestProviderAnyOf1", "ApiV1DynamicSecretsPostRequestProviderAnyOf2"] @@ -42,11 +42,9 @@ class ApiV1DynamicSecretsPostRequestProvider(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV1DynamicSecretsPostRequestProviderAnyOf, ApiV1DynamicSecretsPostRequestProviderAnyOf1, ApiV1DynamicSecretsPostRequestProviderAnyOf2] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV1DYNAMICSECRETSPOSTREQUESTPROVIDER_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV1DYNAMICSECRETSPOSTREQUESTPROVIDER_ANY_OF_SCHEMAS] = APIV1DYNAMICSECRETSPOSTREQUESTPROVIDER_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -58,7 +56,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV1DynamicSecretsPostRequestProvider.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of.py index 35e5400..242eada 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_dynamic_secrets_post_request_provider_any_of_inputs import ApiV1DynamicSecretsPostRequestProviderAnyOfInputs class ApiV1DynamicSecretsPostRequestProviderAnyOf(BaseModel): @@ -30,17 +30,14 @@ class ApiV1DynamicSecretsPostRequestProviderAnyOf(BaseModel): inputs: ApiV1DynamicSecretsPostRequestProviderAnyOfInputs = Field(...) __properties = ["type", "inputs"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('sql-database'): raise ValueError("must be one of enum values ('sql-database')") 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/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1.py index 0ea4c83..ebbd994 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_dynamic_secrets_post_request_provider_any_of1_inputs import ApiV1DynamicSecretsPostRequestProviderAnyOf1Inputs class ApiV1DynamicSecretsPostRequestProviderAnyOf1(BaseModel): @@ -30,17 +30,14 @@ class ApiV1DynamicSecretsPostRequestProviderAnyOf1(BaseModel): inputs: ApiV1DynamicSecretsPostRequestProviderAnyOf1Inputs = Field(...) __properties = ["type", "inputs"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('cassandra'): raise ValueError("must be one of enum values ('cassandra')") 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/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1_inputs.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1_inputs.py index 0f8d06a..8d18881 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1_inputs.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of1_inputs.py @@ -19,7 +19,8 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV1DynamicSecretsPostRequestProviderAnyOf1Inputs(BaseModel): """ @@ -27,7 +28,7 @@ class ApiV1DynamicSecretsPostRequestProviderAnyOf1Inputs(BaseModel): """ host: StrictStr = Field(...) port: Union[StrictFloat, StrictInt] = Field(...) - local_data_center: constr(strict=True, min_length=1) = Field(default=..., alias="localDataCenter") + local_data_center: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="localDataCenter") keyspace: Optional[StrictStr] = None username: StrictStr = Field(...) password: StrictStr = Field(...) @@ -36,11 +37,7 @@ class ApiV1DynamicSecretsPostRequestProviderAnyOf1Inputs(BaseModel): renew_statement: Optional[StrictStr] = Field(default=None, alias="renewStatement") ca: Optional[StrictStr] = None __properties = ["host", "port", "localDataCenter", "keyspace", "username", "password", "creationStatement", "revocationStatement", "renewStatement", "ca"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2.py index 3d07d23..9ac2a1a 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_dynamic_secrets_post_request_provider_any_of2_inputs import ApiV1DynamicSecretsPostRequestProviderAnyOf2Inputs class ApiV1DynamicSecretsPostRequestProviderAnyOf2(BaseModel): @@ -30,17 +30,14 @@ class ApiV1DynamicSecretsPostRequestProviderAnyOf2(BaseModel): inputs: ApiV1DynamicSecretsPostRequestProviderAnyOf2Inputs = Field(...) __properties = ["type", "inputs"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('aws-iam'): raise ValueError("must be one of enum values ('aws-iam')") 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/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2_inputs.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2_inputs.py index 8f3a233..1501f15 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2_inputs.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of2_inputs.py @@ -19,26 +19,23 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1DynamicSecretsPostRequestProviderAnyOf2Inputs(BaseModel): """ ApiV1DynamicSecretsPostRequestProviderAnyOf2Inputs """ - access_key: constr(strict=True, min_length=1) = Field(default=..., alias="accessKey") - secret_access_key: constr(strict=True, min_length=1) = Field(default=..., alias="secretAccessKey") - region: constr(strict=True, min_length=1) = Field(...) + access_key: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="accessKey") + secret_access_key: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="secretAccessKey") + region: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(...) aws_path: Optional[StrictStr] = Field(default=None, alias="awsPath") permission_boundary_policy_arn: Optional[StrictStr] = Field(default=None, alias="permissionBoundaryPolicyArn") policy_document: Optional[StrictStr] = Field(default=None, alias="policyDocument") user_groups: Optional[StrictStr] = Field(default=None, alias="userGroups") policy_arns: Optional[StrictStr] = Field(default=None, alias="policyArns") __properties = ["accessKey", "secretAccessKey", "region", "awsPath", "permissionBoundaryPolicyArn", "policyDocument", "userGroups", "policyArns"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of_inputs.py b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of_inputs.py index 5c16385..0d54c20 100644 --- a/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of_inputs.py +++ b/infisicalapi_client/models/api_v1_dynamic_secrets_post_request_provider_any_of_inputs.py @@ -19,7 +19,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1DynamicSecretsPostRequestProviderAnyOfInputs(BaseModel): """ @@ -37,17 +37,14 @@ class ApiV1DynamicSecretsPostRequestProviderAnyOfInputs(BaseModel): ca: Optional[StrictStr] = None __properties = ["client", "host", "port", "database", "username", "password", "creationStatement", "revocationStatement", "renewStatement", "ca"] - @validator('client') + @field_validator('client') + @classmethod def client_validate_enum(cls, value): """Validates the enum""" if value not in ('postgres', 'mysql2', 'oracledb', 'mssql'): raise ValueError("must be one of enum values ('postgres', 'mysql2', 'oracledb', 'mssql')") 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/infisicalapi_client/models/api_v1_external_kms_get200_response.py b/infisicalapi_client/models/api_v1_external_kms_get200_response.py index fc39584..a7fef64 100644 --- a/infisicalapi_client/models/api_v1_external_kms_get200_response.py +++ b/infisicalapi_client/models/api_v1_external_kms_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_external_kms_get200_response_external_kms_list_inner import ApiV1ExternalKmsGet200ResponseExternalKmsListInner +from typing_extensions import Annotated class ApiV1ExternalKmsGet200Response(BaseModel): """ ApiV1ExternalKmsGet200Response """ - external_kms_list: conlist(ApiV1ExternalKmsGet200ResponseExternalKmsListInner) = Field(default=..., alias="externalKmsList") + external_kms_list: Annotated[List[ApiV1ExternalKmsGet200ResponseExternalKmsListInner], Field()] = Field(default=..., alias="externalKmsList") __properties = ["externalKmsList"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner.py b/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner.py index 6492508..56b4dcc 100644 --- a/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner.py +++ b/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_external_kms_get200_response_external_kms_list_inner_external_kms import ApiV1ExternalKmsGet200ResponseExternalKmsListInnerExternalKms class ApiV1ExternalKmsGet200ResponseExternalKmsListInner(BaseModel): @@ -34,11 +34,7 @@ class ApiV1ExternalKmsGet200ResponseExternalKmsListInner(BaseModel): slug: StrictStr = Field(...) external_kms: ApiV1ExternalKmsGet200ResponseExternalKmsListInnerExternalKms = Field(default=..., alias="externalKms") __properties = ["id", "description", "isDisabled", "createdAt", "updatedAt", "slug", "externalKms"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner_external_kms.py b/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner_external_kms.py index ad0ecc3..bf194bc 100644 --- a/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner_external_kms.py +++ b/infisicalapi_client/models/api_v1_external_kms_get200_response_external_kms_list_inner_external_kms.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ExternalKmsGet200ResponseExternalKmsListInnerExternalKms(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1ExternalKmsGet200ResponseExternalKmsListInnerExternalKms(BaseModel): status: Optional[StrictStr] = None status_details: Optional[StrictStr] = Field(default=None, alias="statusDetails") __properties = ["provider", "status", "statusDetails"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_id_get200_response.py b/infisicalapi_client/models/api_v1_external_kms_id_get200_response.py index c7b965a..e5be439 100644 --- a/infisicalapi_client/models/api_v1_external_kms_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_external_kms_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_external_kms_id_get200_response_external_kms import ApiV1ExternalKmsIdGet200ResponseExternalKms class ApiV1ExternalKmsIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1ExternalKmsIdGet200Response(BaseModel): """ external_kms: ApiV1ExternalKmsIdGet200ResponseExternalKms = Field(default=..., alias="externalKms") __properties = ["externalKms"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms.py b/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms.py index 5f27c72..e3eb1e1 100644 --- a/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms.py +++ b/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_external_kms_id_get200_response_external_kms_external import ApiV1ExternalKmsIdGet200ResponseExternalKmsExternal class ApiV1ExternalKmsIdGet200ResponseExternalKms(BaseModel): @@ -36,11 +36,7 @@ class ApiV1ExternalKmsIdGet200ResponseExternalKms(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") external: ApiV1ExternalKmsIdGet200ResponseExternalKmsExternal = Field(...) __properties = ["id", "description", "isDisabled", "isReserved", "orgId", "slug", "createdAt", "updatedAt", "external"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms_external.py b/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms_external.py index 15a4308..383d969 100644 --- a/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms_external.py +++ b/infisicalapi_client/models/api_v1_external_kms_id_get200_response_external_kms_external.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs import ApiV1ExternalKmsPostRequestProviderInputs class ApiV1ExternalKmsIdGet200ResponseExternalKmsExternal(BaseModel): @@ -32,11 +32,7 @@ class ApiV1ExternalKmsIdGet200ResponseExternalKmsExternal(BaseModel): provider: StrictStr = Field(...) provider_input: ApiV1ExternalKmsPostRequestProviderInputs = Field(default=..., alias="providerInput") __properties = ["id", "status", "statusDetails", "provider", "providerInput"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_id_patch_request.py b/infisicalapi_client/models/api_v1_external_kms_id_patch_request.py index 37cb6c9..404251e 100644 --- a/infisicalapi_client/models/api_v1_external_kms_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_external_kms_id_patch_request.py @@ -19,22 +19,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_id_patch_request_provider import ApiV1ExternalKmsIdPatchRequestProvider +from typing_extensions import Annotated class ApiV1ExternalKmsIdPatchRequest(BaseModel): """ ApiV1ExternalKmsIdPatchRequest """ - slug: Optional[constr(strict=True, min_length=1)] = None + slug: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = None description: Optional[StrictStr] = None provider: ApiV1ExternalKmsIdPatchRequestProvider = Field(...) __properties = ["slug", "description", "provider"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider.py b/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider.py index 546791b..5a2dd5a 100644 --- a/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider.py +++ b/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_id_patch_request_provider_inputs import ApiV1ExternalKmsIdPatchRequestProviderInputs class ApiV1ExternalKmsIdPatchRequestProvider(BaseModel): @@ -30,17 +30,14 @@ class ApiV1ExternalKmsIdPatchRequestProvider(BaseModel): inputs: ApiV1ExternalKmsIdPatchRequestProviderInputs = Field(...) __properties = ["type", "inputs"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('aws'): raise ValueError("must be one of enum values ('aws')") 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/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider_inputs.py b/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider_inputs.py index 1b98d9d..34c6b7b 100644 --- a/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider_inputs.py +++ b/infisicalapi_client/models/api_v1_external_kms_id_patch_request_provider_inputs.py @@ -19,22 +19,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs_credential import ApiV1ExternalKmsPostRequestProviderInputsCredential +from typing_extensions import Annotated class ApiV1ExternalKmsIdPatchRequestProviderInputs(BaseModel): """ ApiV1ExternalKmsIdPatchRequestProviderInputs """ credential: Optional[ApiV1ExternalKmsPostRequestProviderInputsCredential] = None - aws_region: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="awsRegion", description="AWS region to connect") + aws_region: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="awsRegion", description="AWS region to connect") kms_key_id: Optional[StrictStr] = Field(default=None, alias="kmsKeyId", description="A pre existing AWS KMS key id to be used for encryption. If not provided a kms key will be generated.") __properties = ["credential", "awsRegion", "kmsKeyId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_post200_response.py b/infisicalapi_client/models/api_v1_external_kms_post200_response.py index 42e4570..f8b0cd3 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post200_response.py +++ b/infisicalapi_client/models/api_v1_external_kms_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_external_kms_post200_response_external_kms import ApiV1ExternalKmsPost200ResponseExternalKms class ApiV1ExternalKmsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1ExternalKmsPost200Response(BaseModel): """ external_kms: ApiV1ExternalKmsPost200ResponseExternalKms = Field(default=..., alias="externalKms") __properties = ["externalKms"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms.py b/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms.py index ebb5e87..c50ece4 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms.py +++ b/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_external_kms_post200_response_external_kms_external import ApiV1ExternalKmsPost200ResponseExternalKmsExternal class ApiV1ExternalKmsPost200ResponseExternalKms(BaseModel): @@ -36,11 +36,7 @@ class ApiV1ExternalKmsPost200ResponseExternalKms(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") external: ApiV1ExternalKmsPost200ResponseExternalKmsExternal = Field(...) __properties = ["id", "description", "isDisabled", "isReserved", "orgId", "slug", "createdAt", "updatedAt", "external"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms_external.py b/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms_external.py index 9043852..f61a5db 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms_external.py +++ b/infisicalapi_client/models/api_v1_external_kms_post200_response_external_kms_external.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ExternalKmsPost200ResponseExternalKmsExternal(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1ExternalKmsPost200ResponseExternalKmsExternal(BaseModel): status_details: Optional[StrictStr] = Field(default=None, alias="statusDetails") provider: StrictStr = Field(...) __properties = ["id", "status", "statusDetails", "provider"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_post_request.py b/infisicalapi_client/models/api_v1_external_kms_post_request.py index 1b07ad1..325815d 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request.py @@ -19,22 +19,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_post_request_provider import ApiV1ExternalKmsPostRequestProvider +from typing_extensions import Annotated class ApiV1ExternalKmsPostRequest(BaseModel): """ ApiV1ExternalKmsPostRequest """ - slug: constr(strict=True, min_length=1) = Field(...) + slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(...) description: Optional[StrictStr] = None provider: ApiV1ExternalKmsPostRequestProvider = Field(...) __properties = ["slug", "description", "provider"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_post_request_provider.py b/infisicalapi_client/models/api_v1_external_kms_post_request_provider.py index 0be5823..3b50ccc 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request_provider.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request_provider.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs import ApiV1ExternalKmsPostRequestProviderInputs class ApiV1ExternalKmsPostRequestProvider(BaseModel): @@ -30,17 +30,14 @@ class ApiV1ExternalKmsPostRequestProvider(BaseModel): inputs: ApiV1ExternalKmsPostRequestProviderInputs = Field(...) __properties = ["type", "inputs"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('aws'): raise ValueError("must be one of enum values ('aws')") 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/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs.py b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs.py index 64ff06a..bbeeba3 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs.py @@ -19,22 +19,19 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs_credential import ApiV1ExternalKmsPostRequestProviderInputsCredential +from typing_extensions import Annotated class ApiV1ExternalKmsPostRequestProviderInputs(BaseModel): """ ApiV1ExternalKmsPostRequestProviderInputs """ credential: ApiV1ExternalKmsPostRequestProviderInputsCredential = Field(...) - aws_region: constr(strict=True, min_length=1) = Field(default=..., alias="awsRegion", description="AWS region to connect") + aws_region: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="awsRegion", description="AWS region to connect") kms_key_id: Optional[StrictStr] = Field(default=None, alias="kmsKeyId", description="A pre existing AWS KMS key id to be used for encryption. If not provided a kms key will be generated.") __properties = ["credential", "awsRegion", "kmsKeyId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential.py b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential.py index 9d403d7..c5f145b 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs_credential_any_of import ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs_credential_any_of1 import ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV1EXTERNALKMSPOSTREQUESTPROVIDERINPUTSCREDENTIAL_ANY_OF_SCHEMAS = ["ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf", "ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1"] @@ -39,11 +39,9 @@ class ApiV1ExternalKmsPostRequestProviderInputsCredential(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf, ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV1EXTERNALKMSPOSTREQUESTPROVIDERINPUTSCREDENTIAL_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV1EXTERNALKMSPOSTREQUESTPROVIDERINPUTSCREDENTIAL_ANY_OF_SCHEMAS] = APIV1EXTERNALKMSPOSTREQUESTPROVIDERINPUTSCREDENTIAL_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV1ExternalKmsPostRequestProviderInputsCredential.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of.py b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of.py index 8ccf599..d299ef9 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs_credential_any_of_data import ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOfData class ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf(BaseModel): @@ -30,17 +30,14 @@ class ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf(BaseModel): data: ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOfData = Field(...) __properties = ["type", "data"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('access-key'): raise ValueError("must be one of enum values ('access-key')") 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/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1.py b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1.py index a7a7fb2..b23a679 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_external_kms_post_request_provider_inputs_credential_any_of1_data import ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1Data class ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1(BaseModel): @@ -30,17 +30,14 @@ class ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1(BaseModel): data: ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1Data = Field(...) __properties = ["type", "data"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('assume-role'): raise ValueError("must be one of enum values ('assume-role')") 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/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1_data.py b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1_data.py index eade75b..092d49c 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1_data.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of1_data.py @@ -19,20 +19,17 @@ from typing import Optional -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1Data(BaseModel): """ ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOf1Data """ - assume_role_arn: constr(strict=True, min_length=1) = Field(default=..., alias="assumeRoleArn", description="AWS user role to be assumed by infisical") - external_id: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="externalId", description="AWS assume role external id for furthur security in authentication") + assume_role_arn: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="assumeRoleArn", description="AWS user role to be assumed by infisical") + external_id: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="externalId", description="AWS assume role external id for furthur security in authentication") __properties = ["assumeRoleArn", "externalId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of_data.py b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of_data.py index 767f6f7..34c83d2 100644 --- a/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of_data.py +++ b/infisicalapi_client/models/api_v1_external_kms_post_request_provider_inputs_credential_any_of_data.py @@ -19,20 +19,17 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOfData(BaseModel): """ ApiV1ExternalKmsPostRequestProviderInputsCredentialAnyOfData """ - access_key: constr(strict=True, min_length=1) = Field(default=..., alias="accessKey", description="AWS user account access key") - secret_key: constr(strict=True, min_length=1) = Field(default=..., alias="secretKey", description="AWS user account secret key") + access_key: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="accessKey", description="AWS user account access key") + secret_key: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="secretKey", description="AWS user account secret key") __properties = ["accessKey", "secretKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_batch_patch_request.py b/infisicalapi_client/models/api_v1_folders_batch_patch_request.py index be6373d..62d30ae 100644 --- a/infisicalapi_client/models/api_v1_folders_batch_patch_request.py +++ b/infisicalapi_client/models/api_v1_folders_batch_patch_request.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_folders_batch_patch_request_folders_inner import ApiV1FoldersBatchPatchRequestFoldersInner +from typing_extensions import Annotated class ApiV1FoldersBatchPatchRequest(BaseModel): """ ApiV1FoldersBatchPatchRequest """ project_slug: StrictStr = Field(default=..., alias="projectSlug", description="The slug of the project where the folder is located.") - folders: conlist(ApiV1FoldersBatchPatchRequestFoldersInner, min_items=1) = Field(...) + folders: Annotated[List[ApiV1FoldersBatchPatchRequestFoldersInner], Field(min_length=1)] = Field(...) __properties = ["projectSlug", "folders"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_batch_patch_request_folders_inner.py b/infisicalapi_client/models/api_v1_folders_batch_patch_request_folders_inner.py index 9cb2170..2054b4f 100644 --- a/infisicalapi_client/models/api_v1_folders_batch_patch_request_folders_inner.py +++ b/infisicalapi_client/models/api_v1_folders_batch_patch_request_folders_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1FoldersBatchPatchRequestFoldersInner(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1FoldersBatchPatchRequestFoldersInner(BaseModel): name: StrictStr = Field(default=..., description="The new name of the folder.") path: Optional[StrictStr] = Field(default='/', description="The path of the folder to update.") __properties = ["id", "environment", "name", "path"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_folder_id_or_name_delete_request.py b/infisicalapi_client/models/api_v1_folders_folder_id_or_name_delete_request.py index b66da2e..2729746 100644 --- a/infisicalapi_client/models/api_v1_folders_folder_id_or_name_delete_request.py +++ b/infisicalapi_client/models/api_v1_folders_folder_id_or_name_delete_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1FoldersFolderIdOrNameDeleteRequest(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1FoldersFolderIdOrNameDeleteRequest(BaseModel): path: Optional[StrictStr] = Field(default='/', description="The path of the folder to delete.") directory: Optional[StrictStr] = Field(default='/', description="The directory of the folder to delete. (Deprecated in favor of path)") __properties = ["workspaceId", "environment", "path", "directory"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_folder_id_patch_request.py b/infisicalapi_client/models/api_v1_folders_folder_id_patch_request.py index 520d9ec..f89f503 100644 --- a/infisicalapi_client/models/api_v1_folders_folder_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_folders_folder_id_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1FoldersFolderIdPatchRequest(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1FoldersFolderIdPatchRequest(BaseModel): path: Optional[StrictStr] = Field(default='/', description="The path of the folder to update.") directory: Optional[StrictStr] = Field(default='/', description="The new directory of the folder to update. (Deprecated in favor of path)") __properties = ["workspaceId", "environment", "name", "path", "directory"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_get200_response.py b/infisicalapi_client/models/api_v1_folders_get200_response.py index e52fded..b323438 100644 --- a/infisicalapi_client/models/api_v1_folders_get200_response.py +++ b/infisicalapi_client/models/api_v1_folders_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_folders_get200_response_folders_inner import ApiV1FoldersGet200ResponseFoldersInner +from typing_extensions import Annotated class ApiV1FoldersGet200Response(BaseModel): """ ApiV1FoldersGet200Response """ - folders: conlist(ApiV1FoldersGet200ResponseFoldersInner) = Field(...) + folders: Annotated[List[ApiV1FoldersGet200ResponseFoldersInner], Field()] = Field(...) __properties = ["folders"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_get200_response_folders_inner.py b/infisicalapi_client/models/api_v1_folders_get200_response_folders_inner.py index b09e898..08282a4 100644 --- a/infisicalapi_client/models/api_v1_folders_get200_response_folders_inner.py +++ b/infisicalapi_client/models/api_v1_folders_get200_response_folders_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV1FoldersGet200ResponseFoldersInner(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1FoldersGet200ResponseFoldersInner(BaseModel): parent_id: Optional[StrictStr] = Field(default=None, alias="parentId") is_reserved: Optional[StrictBool] = Field(default=False, alias="isReserved") __properties = ["id", "name", "version", "createdAt", "updatedAt", "envId", "parentId", "isReserved"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_post200_response.py b/infisicalapi_client/models/api_v1_folders_post200_response.py index 1eedccc..e9fb115 100644 --- a/infisicalapi_client/models/api_v1_folders_post200_response.py +++ b/infisicalapi_client/models/api_v1_folders_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_folders_get200_response_folders_inner import ApiV1FoldersGet200ResponseFoldersInner class ApiV1FoldersPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1FoldersPost200Response(BaseModel): """ folder: ApiV1FoldersGet200ResponseFoldersInner = Field(...) __properties = ["folder"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_folders_post_request.py b/infisicalapi_client/models/api_v1_folders_post_request.py index b6ce4c6..bcece7e 100644 --- a/infisicalapi_client/models/api_v1_folders_post_request.py +++ b/infisicalapi_client/models/api_v1_folders_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1FoldersPostRequest(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1FoldersPostRequest(BaseModel): path: Optional[StrictStr] = Field(default='/', description="The path of the folder to create.") directory: Optional[StrictStr] = Field(default='/', description="The directory of the folder to create. (Deprecated in favor of path)") __properties = ["workspaceId", "environment", "name", "path", "directory"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_groups_current_slug_patch_request.py b/infisicalapi_client/models/api_v1_groups_current_slug_patch_request.py index 07a31eb..6bc2178 100644 --- a/infisicalapi_client/models/api_v1_groups_current_slug_patch_request.py +++ b/infisicalapi_client/models/api_v1_groups_current_slug_patch_request.py @@ -19,21 +19,18 @@ from typing import Optional -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1GroupsCurrentSlugPatchRequest(BaseModel): """ ApiV1GroupsCurrentSlugPatchRequest """ - name: Optional[constr(strict=True, min_length=1)] = Field(default=None, description="The new name of the group to update to.") - slug: Optional[constr(strict=True, max_length=36, min_length=5)] = Field(default=None, description="The new slug of the group to update to.") - role: Optional[constr(strict=True, min_length=1)] = Field(default=None, description="The new role of the group to update to.") + name: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, description="The new name of the group to update to.") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)]] = Field(default=None, description="The new slug of the group to update to.") + role: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, description="The new role of the group to update to.") __properties = ["name", "slug", "role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_groups_post200_response.py b/infisicalapi_client/models/api_v1_groups_post200_response.py index d097b2f..cfed431 100644 --- a/infisicalapi_client/models/api_v1_groups_post200_response.py +++ b/infisicalapi_client/models/api_v1_groups_post200_response.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1GroupsPost200Response(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1GroupsPost200Response(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "orgId", "name", "slug", "role", "roleId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_groups_post_request.py b/infisicalapi_client/models/api_v1_groups_post_request.py index 5745493..d1131d9 100644 --- a/infisicalapi_client/models/api_v1_groups_post_request.py +++ b/infisicalapi_client/models/api_v1_groups_post_request.py @@ -19,21 +19,18 @@ from typing import Optional -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1GroupsPostRequest(BaseModel): """ ApiV1GroupsPostRequest """ - name: constr(strict=True, max_length=50, min_length=1) = Field(default=..., description="The name of the group to create.") - slug: Optional[constr(strict=True, max_length=36, min_length=5)] = Field(default=None, description="The slug of the group to create.") - role: Optional[constr(strict=True, min_length=1)] = Field(default='no-access', description="The role of the group to create.") + name: Annotated[str, StringConstraints(strict=True, max_length=50, min_length=1)] = Field(default=..., description="The name of the group to create.") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)]] = Field(default=None, description="The slug of the group to create.") + role: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default='no-access', description="The role of the group to create.") __properties = ["name", "slug", "role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_groups_slug_users_get200_response.py b/infisicalapi_client/models/api_v1_groups_slug_users_get200_response.py index f4fdcfc..bc934f1 100644 --- a/infisicalapi_client/models/api_v1_groups_slug_users_get200_response.py +++ b/infisicalapi_client/models/api_v1_groups_slug_users_get200_response.py @@ -19,21 +19,18 @@ from typing import List, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt from infisicalapi_client.models.api_v1_groups_slug_users_get200_response_users_inner import ApiV1GroupsSlugUsersGet200ResponseUsersInner +from typing_extensions import Annotated class ApiV1GroupsSlugUsersGet200Response(BaseModel): """ ApiV1GroupsSlugUsersGet200Response """ - users: conlist(ApiV1GroupsSlugUsersGet200ResponseUsersInner) = Field(...) + users: Annotated[List[ApiV1GroupsSlugUsersGet200ResponseUsersInner], Field()] = Field(...) total_count: Union[StrictFloat, StrictInt] = Field(default=..., alias="totalCount") __properties = ["users", "totalCount"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_groups_slug_users_get200_response_users_inner.py b/infisicalapi_client/models/api_v1_groups_slug_users_get200_response_users_inner.py index c653a88..595b1ac 100644 --- a/infisicalapi_client/models/api_v1_groups_slug_users_get200_response_users_inner.py +++ b/infisicalapi_client/models/api_v1_groups_slug_users_get200_response_users_inner.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 ApiV1GroupsSlugUsersGet200ResponseUsersInner(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1GroupsSlugUsersGet200ResponseUsersInner(BaseModel): id: StrictStr = Field(...) is_part_of_group: StrictBool = Field(default=..., alias="isPartOfGroup") __properties = ["email", "username", "firstName", "lastName", "id", "isPartOfGroup"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_groups_slug_users_username_post200_response.py b/infisicalapi_client/models/api_v1_groups_slug_users_username_post200_response.py index d43e747..7d11ed8 100644 --- a/infisicalapi_client/models/api_v1_groups_slug_users_username_post200_response.py +++ b/infisicalapi_client/models/api_v1_groups_slug_users_username_post200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1GroupsSlugUsersUsernamePost200Response(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1GroupsSlugUsersUsernamePost200Response(BaseModel): last_name: Optional[StrictStr] = Field(default=None, alias="lastName") id: StrictStr = Field(...) __properties = ["email", "username", "firstName", "lastName", "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/infisicalapi_client/models/api_v1_identities_get200_response.py b/infisicalapi_client/models/api_v1_identities_get200_response.py index 7c3fd87..3ee83ed 100644 --- a/infisicalapi_client/models/api_v1_identities_get200_response.py +++ b/infisicalapi_client/models/api_v1_identities_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_identities_get200_response_identities_inner import ApiV1IdentitiesGet200ResponseIdentitiesInner +from typing_extensions import Annotated class ApiV1IdentitiesGet200Response(BaseModel): """ ApiV1IdentitiesGet200Response """ - identities: conlist(ApiV1IdentitiesGet200ResponseIdentitiesInner) = Field(...) + identities: Annotated[List[ApiV1IdentitiesGet200ResponseIdentitiesInner], Field()] = Field(...) __properties = ["identities"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner.py b/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner.py index de6d87e..5c3446c 100644 --- a/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner.py +++ b/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_identities_get200_response_identities_inner_identity import ApiV1IdentitiesGet200ResponseIdentitiesInnerIdentity from infisicalapi_client.models.api_v1_organization_organization_id_groups_get200_response_groups_inner_custom_role import ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInnerCustomRole @@ -37,11 +37,7 @@ class ApiV1IdentitiesGet200ResponseIdentitiesInner(BaseModel): custom_role: Optional[ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInnerCustomRole] = Field(default=None, alias="customRole") identity: ApiV1IdentitiesGet200ResponseIdentitiesInnerIdentity = Field(...) __properties = ["id", "role", "roleId", "orgId", "createdAt", "updatedAt", "identityId", "customRole", "identity"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner_identity.py b/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner_identity.py index fa71dc1..a51c0bf 100644 --- a/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner_identity.py +++ b/infisicalapi_client/models/api_v1_identities_get200_response_identities_inner_identity.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IdentitiesGet200ResponseIdentitiesInnerIdentity(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1IdentitiesGet200ResponseIdentitiesInnerIdentity(BaseModel): id: StrictStr = Field(...) auth_method: Optional[StrictStr] = Field(default=None, alias="authMethod") __properties = ["name", "id", "authMethod"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_identity_id_get200_response.py b/infisicalapi_client/models/api_v1_identities_identity_id_get200_response.py index dde37cf..3f76c3a 100644 --- a/infisicalapi_client/models/api_v1_identities_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_identities_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_identities_get200_response_identities_inner import ApiV1IdentitiesGet200ResponseIdentitiesInner class ApiV1IdentitiesIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1IdentitiesIdentityIdGet200Response(BaseModel): """ identity: ApiV1IdentitiesGet200ResponseIdentitiesInner = Field(...) __properties = ["identity"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response.py b/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response.py index c36b15a..3ebeb1e 100644 --- a/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response.py +++ b/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_identities_identity_id_identity_memberships_get200_response_identity_memberships_inner import ApiV1IdentitiesIdentityIdIdentityMembershipsGet200ResponseIdentityMembershipsInner +from typing_extensions import Annotated class ApiV1IdentitiesIdentityIdIdentityMembershipsGet200Response(BaseModel): """ ApiV1IdentitiesIdentityIdIdentityMembershipsGet200Response """ - identity_memberships: conlist(ApiV1IdentitiesIdentityIdIdentityMembershipsGet200ResponseIdentityMembershipsInner) = Field(default=..., alias="identityMemberships") + identity_memberships: Annotated[List[ApiV1IdentitiesIdentityIdIdentityMembershipsGet200ResponseIdentityMembershipsInner], Field()] = Field(default=..., alias="identityMemberships") __properties = ["identityMemberships"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response_identity_memberships_inner.py b/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response_identity_memberships_inner.py index 5f8f1aa..d7e8907 100644 --- a/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response_identity_memberships_inner.py +++ b/infisicalapi_client/models/api_v1_identities_identity_id_identity_memberships_get200_response_identity_memberships_inner.py @@ -19,10 +19,11 @@ from datetime import datetime from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_identities_get200_response_identities_inner_identity import ApiV1IdentitiesGet200ResponseIdentitiesInnerIdentity from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_project import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner +from typing_extensions import Annotated class ApiV1IdentitiesIdentityIdIdentityMembershipsGet200ResponseIdentityMembershipsInner(BaseModel): """ @@ -32,15 +33,11 @@ class ApiV1IdentitiesIdentityIdIdentityMembershipsGet200ResponseIdentityMembersh identity_id: StrictStr = Field(default=..., alias="identityId") created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") - roles: conlist(ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner) = Field(...) + roles: Annotated[List[ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner], Field()] = Field(...) identity: ApiV1IdentitiesGet200ResponseIdentitiesInnerIdentity = Field(...) project: ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject = Field(...) __properties = ["id", "identityId", "createdAt", "updatedAt", "roles", "identity", "project"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_identity_id_patch_request.py b/infisicalapi_client/models/api_v1_identities_identity_id_patch_request.py index 39e41c3..0a07201 100644 --- a/infisicalapi_client/models/api_v1_identities_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_identities_identity_id_patch_request.py @@ -19,20 +19,17 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1IdentitiesIdentityIdPatchRequest(BaseModel): """ ApiV1IdentitiesIdentityIdPatchRequest """ name: Optional[StrictStr] = Field(default=None, description="The new name of the identity.") - role: Optional[constr(strict=True, min_length=1)] = Field(default=None, description="The new role of the identity.") + role: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, description="The new role of the identity.") __properties = ["name", "role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_post200_response.py b/infisicalapi_client/models/api_v1_identities_post200_response.py index 48d90b4..f2ce9a1 100644 --- a/infisicalapi_client/models/api_v1_identities_post200_response.py +++ b/infisicalapi_client/models/api_v1_identities_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_identities_post200_response_identity import ApiV1IdentitiesPost200ResponseIdentity class ApiV1IdentitiesPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1IdentitiesPost200Response(BaseModel): """ identity: ApiV1IdentitiesPost200ResponseIdentity = Field(...) __properties = ["identity"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_post200_response_identity.py b/infisicalapi_client/models/api_v1_identities_post200_response_identity.py index 5328e32..cfe95bb 100644 --- a/infisicalapi_client/models/api_v1_identities_post200_response_identity.py +++ b/infisicalapi_client/models/api_v1_identities_post200_response_identity.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IdentitiesPost200ResponseIdentity(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1IdentitiesPost200ResponseIdentity(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "name", "authMethod", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_identities_post_request.py b/infisicalapi_client/models/api_v1_identities_post_request.py index e6d3167..875a71e 100644 --- a/infisicalapi_client/models/api_v1_identities_post_request.py +++ b/infisicalapi_client/models/api_v1_identities_post_request.py @@ -19,7 +19,8 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1IdentitiesPostRequest(BaseModel): """ @@ -27,13 +28,9 @@ class ApiV1IdentitiesPostRequest(BaseModel): """ name: StrictStr = Field(default=..., description="The name of the identity to create.") organization_id: StrictStr = Field(default=..., alias="organizationId", description="The organization ID to which the identity belongs.") - role: Optional[constr(strict=True, min_length=1)] = Field(default='no-access', description="The role of the identity. Possible values are 'no-access', 'member', and 'admin'.") + role: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default='no-access', description="The role of the identity. Possible values are 'no-access', 'member', and 'admin'.") __properties = ["name", "organizationId", "role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_access_token_post_request.py b/infisicalapi_client/models/api_v1_integration_auth_access_token_post_request.py index 85017da..46f63ee 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_access_token_post_request.py +++ b/infisicalapi_client/models/api_v1_integration_auth_access_token_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthAccessTokenPostRequest(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1IntegrationAuthAccessTokenPostRequest(BaseModel): namespace: Optional[StrictStr] = None refresh_token: Optional[StrictStr] = Field(default=None, alias="refreshToken", description="The refresh token for integration authorization.") __properties = ["workspaceId", "integration", "accessId", "accessToken", "awsAssumeIamRoleArn", "url", "namespace", "refreshToken"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_delete200_response.py b/infisicalapi_client/models/api_v1_integration_auth_delete200_response.py index e492c51..8d645a1 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_delete200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_delete200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_authorizations_get200_response_authorizations_inner import ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthDelete200Response(BaseModel): """ ApiV1IntegrationAuthDelete200Response """ - integration_auth: conlist(ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner) = Field(default=..., alias="integrationAuth") + integration_auth: Annotated[List[ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner], Field()] = Field(default=..., alias="integrationAuth") __properties = ["integrationAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response.py index 7b0fcbe..972979d 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_apps_get200_response_apps_inner import ApiV1IntegrationAuthIntegrationAuthIdAppsGet200ResponseAppsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdAppsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdAppsGet200Response """ - apps: conlist(ApiV1IntegrationAuthIntegrationAuthIdAppsGet200ResponseAppsInner) = Field(...) + apps: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdAppsGet200ResponseAppsInner], Field()] = Field(...) __properties = ["apps"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response_apps_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response_apps_inner.py index 3e179c2..f7bdfcb 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response_apps_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_apps_get200_response_apps_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdAppsGet200ResponseAppsInner(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdAppsGet200ResponseAppsInner(BaseModel app_id: Optional[StrictStr] = Field(default=None, alias="appId") owner: Optional[StrictStr] = None __properties = ["name", "appId", "owner"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response.py index 3b5b613..4586e3b 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response_kms_keys_inner import ApiV1IntegrationAuthIntegrationAuthIdAwsSecretsManagerKmsKeysGet200ResponseKmsKeysInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdAwsSecretsManagerKmsKeysGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdAwsSecretsManagerKmsKeysGet200Response """ - kms_keys: conlist(ApiV1IntegrationAuthIntegrationAuthIdAwsSecretsManagerKmsKeysGet200ResponseKmsKeysInner) = Field(default=..., alias="kmsKeys") + kms_keys: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdAwsSecretsManagerKmsKeysGet200ResponseKmsKeysInner], Field()] = Field(default=..., alias="kmsKeys") __properties = ["kmsKeys"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response_kms_keys_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response_kms_keys_inner.py index a5af796..916ad45 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response_kms_keys_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_aws_secrets_manager_kms_keys_get200_response_kms_keys_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdAwsSecretsManagerKmsKeysGet200ResponseKmsKeysInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdAwsSecretsManagerKmsKeysGet200Respons id: StrictStr = Field(...) alias: StrictStr = Field(...) __properties = ["id", "alias"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response.py index a2934b3..ab97b47 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response_workspaces_inner import ApiV1IntegrationAuthIntegrationAuthIdBitbucketWorkspacesGet200ResponseWorkspacesInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdBitbucketWorkspacesGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdBitbucketWorkspacesGet200Response """ - workspaces: conlist(ApiV1IntegrationAuthIntegrationAuthIdBitbucketWorkspacesGet200ResponseWorkspacesInner) = Field(...) + workspaces: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdBitbucketWorkspacesGet200ResponseWorkspacesInner], Field()] = Field(...) __properties = ["workspaces"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response_workspaces_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response_workspaces_inner.py index 2bed426..4217799 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response_workspaces_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_bitbucket_workspaces_get200_response_workspaces_inner.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 ApiV1IntegrationAuthIntegrationAuthIdBitbucketWorkspacesGet200ResponseWorkspacesInner(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdBitbucketWorkspacesGet200ResponseWork created_on: StrictStr = Field(...) updated_on: Optional[StrictStr] = None __properties = ["name", "slug", "uuid", "type", "is_private", "created_on", "updated_on"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response.py index e26ad1e..4597e31 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response_groups_inner import ApiV1IntegrationAuthIntegrationAuthIdChecklyGroupsGet200ResponseGroupsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdChecklyGroupsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdChecklyGroupsGet200Response """ - groups: conlist(ApiV1IntegrationAuthIntegrationAuthIdChecklyGroupsGet200ResponseGroupsInner) = Field(...) + groups: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdChecklyGroupsGet200ResponseGroupsInner], Field()] = Field(...) __properties = ["groups"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response_groups_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response_groups_inner.py index 6ff969b..4fe5e0b 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response_groups_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_checkly_groups_get200_response_groups_inner.py @@ -19,7 +19,7 @@ from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdChecklyGroupsGet200ResponseGroupsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdChecklyGroupsGet200ResponseGroupsInne name: StrictStr = Field(...) group_id: Union[StrictFloat, StrictInt] = Field(default=..., alias="groupId") __properties = ["name", "groupId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_get200_response.py index 61914f8..5a30d31 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_authorizations_get200_response_authorizations_inner import ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner class ApiV1IntegrationAuthIntegrationAuthIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdGet200Response(BaseModel): """ integration_auth: ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner = Field(default=..., alias="integrationAuth") __properties = ["integrationAuth"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response.py index cf1f866..fbfefab 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_github_envs_get200_response_envs_inner import ApiV1IntegrationAuthIntegrationAuthIdGithubEnvsGet200ResponseEnvsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdGithubEnvsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdGithubEnvsGet200Response """ - envs: conlist(ApiV1IntegrationAuthIntegrationAuthIdGithubEnvsGet200ResponseEnvsInner) = Field(...) + envs: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdGithubEnvsGet200ResponseEnvsInner], 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/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response_envs_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response_envs_inner.py index 84dbe1b..8a1ab69 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response_envs_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_envs_get200_response_envs_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdGithubEnvsGet200ResponseEnvsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdGithubEnvsGet200ResponseEnvsInner(Bas name: StrictStr = Field(...) env_id: StrictStr = Field(default=..., alias="envId") __properties = ["name", "envId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response.py index 8ea74a5..c5fb282 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_github_orgs_get200_response_orgs_inner import ApiV1IntegrationAuthIntegrationAuthIdGithubOrgsGet200ResponseOrgsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdGithubOrgsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdGithubOrgsGet200Response """ - orgs: conlist(ApiV1IntegrationAuthIntegrationAuthIdGithubOrgsGet200ResponseOrgsInner) = Field(...) + orgs: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdGithubOrgsGet200ResponseOrgsInner], Field()] = Field(...) __properties = ["orgs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response_orgs_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response_orgs_inner.py index 359a8e7..d04a9c5 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response_orgs_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_github_orgs_get200_response_orgs_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdGithubOrgsGet200ResponseOrgsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdGithubOrgsGet200ResponseOrgsInner(Bas name: StrictStr = Field(...) org_id: StrictStr = Field(default=..., alias="orgId") __properties = ["name", "orgId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response.py index ecd403b..eeb17a0 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner import ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200Response """ - pipelines: conlist(ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInner) = Field(...) + pipelines: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInner], Field()] = Field(...) __properties = ["pipelines"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner.py index 2232ff6..af82769 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_app import ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInnerApp from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_pipeline import ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInnerPipeline @@ -31,11 +31,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipeline stage: StrictStr = Field(...) pipeline: ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInnerPipeline = Field(...) __properties = ["app", "stage", "pipeline"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_app.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_app.py index b8f5bd1..10ad7b8 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_app.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_app.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInnerApp(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipeline """ app_id: StrictStr = Field(default=..., alias="appId") __properties = ["appId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_pipeline.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_pipeline.py index 3a70542..6548373 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_pipeline.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_heroku_pipelines_get200_response_pipelines_inner_pipeline.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipelinesInnerPipeline(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdHerokuPipelinesGet200ResponsePipeline name: StrictStr = Field(...) pipeline_id: StrictStr = Field(default=..., alias="pipelineId") __properties = ["name", "pipelineId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response.py index c897b94..3da1716 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response_secret_groups_inner import ApiV1IntegrationAuthIntegrationAuthIdNorthflankSecretGroupsGet200ResponseSecretGroupsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdNorthflankSecretGroupsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdNorthflankSecretGroupsGet200Response """ - secret_groups: conlist(ApiV1IntegrationAuthIntegrationAuthIdNorthflankSecretGroupsGet200ResponseSecretGroupsInner) = Field(default=..., alias="secretGroups") + secret_groups: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdNorthflankSecretGroupsGet200ResponseSecretGroupsInner], Field()] = Field(default=..., alias="secretGroups") __properties = ["secretGroups"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response_secret_groups_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response_secret_groups_inner.py index f3fc834..6e3c941 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response_secret_groups_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_northflank_secret_groups_get200_response_secret_groups_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdNorthflankSecretGroupsGet200ResponseSecretGroupsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdNorthflankSecretGroupsGet200ResponseS name: StrictStr = Field(...) group_id: StrictStr = Field(default=..., alias="groupId") __properties = ["name", "groupId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response.py index d2b1e00..9f77267 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response_apps_inner import ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200Response """ - apps: conlist(ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner) = Field(...) + apps: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner], Field()] = Field(...) __properties = ["apps"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response_apps_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response_apps_inner.py index 7e1bb3d..a46357f 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response_apps_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response_apps_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner(Bas name: StrictStr = Field(...) app_id: StrictStr = Field(default=..., alias="appId") __properties = ["name", "appId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_containers_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_containers_get200_response.py index ea9c1ae..a77aff1 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_containers_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_containers_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response_apps_inner import ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdQoveryContainersGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdQoveryContainersGet200Response """ - containers: conlist(ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner) = Field(...) + containers: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner], Field()] = Field(...) __properties = ["containers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response.py index d24878e..1c127f8 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response_environments_inner import ApiV1IntegrationAuthIntegrationAuthIdQoveryEnvironmentsGet200ResponseEnvironmentsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdQoveryEnvironmentsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdQoveryEnvironmentsGet200Response """ - environments: conlist(ApiV1IntegrationAuthIntegrationAuthIdQoveryEnvironmentsGet200ResponseEnvironmentsInner) = Field(...) + environments: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdQoveryEnvironmentsGet200ResponseEnvironmentsInner], Field()] = Field(...) __properties = ["environments"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response_environments_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response_environments_inner.py index 5a35cb1..6c21705 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response_environments_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_environments_get200_response_environments_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdQoveryEnvironmentsGet200ResponseEnvironmentsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdQoveryEnvironmentsGet200ResponseEnvir name: StrictStr = Field(...) environment_id: StrictStr = Field(default=..., alias="environmentId") __properties = ["name", "environmentId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_jobs_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_jobs_get200_response.py index 6f74e2a..4cd4e40 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_jobs_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_jobs_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_qovery_apps_get200_response_apps_inner import ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdQoveryJobsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdQoveryJobsGet200Response """ - jobs: conlist(ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner) = Field(...) + jobs: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdQoveryAppsGet200ResponseAppsInner], Field()] = Field(...) __properties = ["jobs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response.py index bf47e3d..dcd0494 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response_projects_inner import ApiV1IntegrationAuthIntegrationAuthIdQoveryProjectsGet200ResponseProjectsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdQoveryProjectsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdQoveryProjectsGet200Response """ - projects: conlist(ApiV1IntegrationAuthIntegrationAuthIdQoveryProjectsGet200ResponseProjectsInner) = Field(...) + projects: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdQoveryProjectsGet200ResponseProjectsInner], Field()] = Field(...) __properties = ["projects"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response_projects_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response_projects_inner.py index 6111223..14f7558 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response_projects_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_qovery_projects_get200_response_projects_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdQoveryProjectsGet200ResponseProjectsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdQoveryProjectsGet200ResponseProjectsI name: StrictStr = Field(...) project_id: StrictStr = Field(default=..., alias="projectId") __properties = ["name", "projectId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response.py index 3154a7d..7f09c1b 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_railway_services_get200_response_services_inner import ApiV1IntegrationAuthIntegrationAuthIdRailwayServicesGet200ResponseServicesInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdRailwayServicesGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdRailwayServicesGet200Response """ - services: conlist(ApiV1IntegrationAuthIntegrationAuthIdRailwayServicesGet200ResponseServicesInner) = Field(...) + services: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdRailwayServicesGet200ResponseServicesInner], Field()] = Field(...) __properties = ["services"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response_services_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response_services_inner.py index 0d412c2..4c2b479 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response_services_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_railway_services_get200_response_services_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdRailwayServicesGet200ResponseServicesInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdRailwayServicesGet200ResponseServices name: StrictStr = Field(...) service_id: StrictStr = Field(default=..., alias="serviceId") __properties = ["name", "serviceId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response.py index 77e8320..3e42599 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response_build_configs_inner import ApiV1IntegrationAuthIntegrationAuthIdTeamcityBuildConfigsGet200ResponseBuildConfigsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdTeamcityBuildConfigsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdTeamcityBuildConfigsGet200Response """ - build_configs: conlist(ApiV1IntegrationAuthIntegrationAuthIdTeamcityBuildConfigsGet200ResponseBuildConfigsInner) = Field(default=..., alias="buildConfigs") + build_configs: Annotated[List[ApiV1IntegrationAuthIntegrationAuthIdTeamcityBuildConfigsGet200ResponseBuildConfigsInner], Field()] = Field(default=..., alias="buildConfigs") __properties = ["buildConfigs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response_build_configs_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response_build_configs_inner.py index 942cdc7..affd165 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response_build_configs_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teamcity_build_configs_get200_response_build_configs_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthIntegrationAuthIdTeamcityBuildConfigsGet200ResponseBuildConfigsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationAuthIntegrationAuthIdTeamcityBuildConfigsGet200ResponseBui name: StrictStr = Field(...) build_config_id: StrictStr = Field(default=..., alias="buildConfigId") __properties = ["name", "buildConfigId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teams_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teams_get200_response.py index 68eb2a5..e3576f2 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teams_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_teams_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_project import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationAuthIdTeamsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdTeamsGet200Response """ - teams: conlist(ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject) = Field(...) + teams: Annotated[List[ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject], Field()] = Field(...) __properties = ["teams"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_vercel_branches_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_vercel_branches_get200_response.py index 1d834aa..0436c1a 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_vercel_branches_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_auth_id_vercel_branches_get200_response.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 ApiV1IntegrationAuthIntegrationAuthIdVercelBranchesGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationAuthIdVercelBranchesGet200Response """ - branches: conlist(StrictStr) = Field(...) + branches: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["branches"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response.py b/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response.py index c358229..76f8c6a 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_auth_integration_options_get200_response_integration_options_inner import ApiV1IntegrationAuthIntegrationOptionsGet200ResponseIntegrationOptionsInner +from typing_extensions import Annotated class ApiV1IntegrationAuthIntegrationOptionsGet200Response(BaseModel): """ ApiV1IntegrationAuthIntegrationOptionsGet200Response """ - integration_options: conlist(ApiV1IntegrationAuthIntegrationOptionsGet200ResponseIntegrationOptionsInner) = Field(default=..., alias="integrationOptions") + integration_options: Annotated[List[ApiV1IntegrationAuthIntegrationOptionsGet200ResponseIntegrationOptionsInner], Field()] = Field(default=..., alias="integrationOptions") __properties = ["integrationOptions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response_integration_options_inner.py b/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response_integration_options_inner.py index 71abd6f..0adaa0f 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response_integration_options_inner.py +++ b/infisicalapi_client/models/api_v1_integration_auth_integration_options_get200_response_integration_options_inner.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 ApiV1IntegrationAuthIntegrationOptionsGet200ResponseIntegrationOptionsInner(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1IntegrationAuthIntegrationOptionsGet200ResponseIntegrationOptionsInne client_id: Optional[StrictStr] = Field(default=None, alias="clientId") docs_link: Optional[StrictStr] = Field(default=None, alias="docsLink") __properties = ["name", "slug", "clientSlug", "image", "isAvailable", "type", "clientId", "docsLink"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_auth_oauth_token_post_request.py b/infisicalapi_client/models/api_v1_integration_auth_oauth_token_post_request.py index 262c614..8dd4c54 100644 --- a/infisicalapi_client/models/api_v1_integration_auth_oauth_token_post_request.py +++ b/infisicalapi_client/models/api_v1_integration_auth_oauth_token_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationAuthOauthTokenPostRequest(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1IntegrationAuthOauthTokenPostRequest(BaseModel): integration: StrictStr = Field(...) url: Optional[StrictStr] = None __properties = ["workspaceId", "code", "integration", "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/infisicalapi_client/models/api_v1_integration_integration_id_patch_request.py b/infisicalapi_client/models/api_v1_integration_integration_id_patch_request.py index eba35c4..cf48324 100644 --- a/infisicalapi_client/models/api_v1_integration_integration_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_integration_integration_id_patch_request.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 infisicalapi_client.models.api_v1_integration_integration_id_patch_request_metadata import ApiV1IntegrationIntegrationIdPatchRequestMetadata class ApiV1IntegrationIntegrationIdPatchRequest(BaseModel): @@ -35,11 +35,7 @@ class ApiV1IntegrationIntegrationIdPatchRequest(BaseModel): environment: StrictStr = Field(default=..., description="The environment to sync secrets from.") metadata: Optional[ApiV1IntegrationIntegrationIdPatchRequestMetadata] = None __properties = ["app", "appId", "isActive", "secretPath", "targetEnvironment", "owner", "environment", "metadata"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_integration_id_patch_request_metadata.py b/infisicalapi_client/models/api_v1_integration_integration_id_patch_request_metadata.py index 1ecd18c..c5def2a 100644 --- a/infisicalapi_client/models/api_v1_integration_integration_id_patch_request_metadata.py +++ b/infisicalapi_client/models/api_v1_integration_integration_id_patch_request_metadata.py @@ -19,9 +19,10 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_audit_log_streams_id_get200_response_audit_log_stream_headers_inner import ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner from infisicalapi_client.models.api_v1_integration_post_request_metadata_secret_gcp_label import ApiV1IntegrationPostRequestMetadataSecretGCPLabel +from typing_extensions import Annotated class ApiV1IntegrationIntegrationIdPatchRequestMetadata(BaseModel): """ @@ -33,7 +34,7 @@ class ApiV1IntegrationIntegrationIdPatchRequestMetadata(BaseModel): mapping_behavior: Optional[StrictStr] = Field(default=None, alias="mappingBehavior", description="The mapping behavior of the integration.") should_auto_redeploy: Optional[StrictBool] = Field(default=None, alias="shouldAutoRedeploy", description="Used by Render to trigger auto deploy.") secret_gcp_label: Optional[ApiV1IntegrationPostRequestMetadataSecretGCPLabel] = Field(default=None, alias="secretGCPLabel") - secret_aws_tag: Optional[conlist(ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner)] = Field(default=None, alias="secretAWSTag", description="The tags for AWS secrets.") + secret_aws_tag: Optional[Annotated[List[ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner], Field()]] = Field(default=None, alias="secretAWSTag", description="The tags for AWS secrets.") kms_key_id: Optional[StrictStr] = Field(default=None, alias="kmsKeyId", description="The ID of the encryption key from AWS KMS.") should_disable_delete: Optional[StrictBool] = Field(default=None, alias="shouldDisableDelete", description="The flag to disable deletion of secrets in AWS Parameter Store.") should_enable_delete: Optional[StrictBool] = Field(default=None, alias="shouldEnableDelete", description="The flag to enable deletion of secrets") @@ -41,7 +42,8 @@ class ApiV1IntegrationIntegrationIdPatchRequestMetadata(BaseModel): should_protect_secrets: Optional[StrictBool] = Field(default=None, alias="shouldProtectSecrets", description="Specifies if the secrets synced from Infisical to Gitlab should be marked as 'Protected'.") __properties = ["secretPrefix", "secretSuffix", "initialSyncBehavior", "mappingBehavior", "shouldAutoRedeploy", "secretGCPLabel", "secretAWSTag", "kmsKeyId", "shouldDisableDelete", "shouldEnableDelete", "shouldMaskSecrets", "shouldProtectSecrets"] - @validator('mapping_behavior') + @field_validator('mapping_behavior') + @classmethod def mapping_behavior_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -50,11 +52,7 @@ def mapping_behavior_validate_enum(cls, value): if value not in ('one-to-one', 'many-to-one'): raise ValueError("must be one of enum values ('one-to-one', 'many-to-one')") 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/infisicalapi_client/models/api_v1_integration_post200_response.py b/infisicalapi_client/models/api_v1_integration_post200_response.py index 3c031e4..7460618 100644 --- a/infisicalapi_client/models/api_v1_integration_post200_response.py +++ b/infisicalapi_client/models/api_v1_integration_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_integration_post200_response_integration import ApiV1IntegrationPost200ResponseIntegration class ApiV1IntegrationPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1IntegrationPost200Response(BaseModel): """ integration: ApiV1IntegrationPost200ResponseIntegration = Field(...) __properties = ["integration"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_post200_response_integration.py b/infisicalapi_client/models/api_v1_integration_post200_response_integration.py index 269e369..739ce14 100644 --- a/infisicalapi_client/models/api_v1_integration_post200_response_integration.py +++ b/infisicalapi_client/models/api_v1_integration_post200_response_integration.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1IntegrationPost200ResponseIntegration(BaseModel): """ @@ -50,11 +50,7 @@ class ApiV1IntegrationPost200ResponseIntegration(BaseModel): sync_message: Optional[StrictStr] = Field(default=None, alias="syncMessage") last_sync_job_id: Optional[StrictStr] = Field(default=None, alias="lastSyncJobId") __properties = ["id", "isActive", "url", "app", "appId", "targetEnvironment", "targetEnvironmentId", "targetService", "targetServiceId", "owner", "path", "region", "scope", "integration", "metadata", "integrationAuthId", "envId", "secretPath", "createdAt", "updatedAt", "lastUsed", "isSynced", "syncMessage", "lastSyncJobId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_post_request.py b/infisicalapi_client/models/api_v1_integration_post_request.py index 47cac2e..07cd6c4 100644 --- a/infisicalapi_client/models/api_v1_integration_post_request.py +++ b/infisicalapi_client/models/api_v1_integration_post_request.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 infisicalapi_client.models.api_v1_integration_post_request_metadata import ApiV1IntegrationPostRequestMetadata class ApiV1IntegrationPostRequest(BaseModel): @@ -43,11 +43,7 @@ class ApiV1IntegrationPostRequest(BaseModel): scope: Optional[StrictStr] = Field(default=None, description="Scope of the provider. Used by Github, Qovery") metadata: Optional[ApiV1IntegrationPostRequestMetadata] = None __properties = ["integrationAuthId", "app", "isActive", "appId", "secretPath", "sourceEnvironment", "targetEnvironment", "targetEnvironmentId", "targetService", "targetServiceId", "owner", "url", "path", "region", "scope", "metadata"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_integration_post_request_metadata.py b/infisicalapi_client/models/api_v1_integration_post_request_metadata.py index 0593792..c75c98e 100644 --- a/infisicalapi_client/models/api_v1_integration_post_request_metadata.py +++ b/infisicalapi_client/models/api_v1_integration_post_request_metadata.py @@ -19,9 +19,10 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_audit_log_streams_id_get200_response_audit_log_stream_headers_inner import ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner from infisicalapi_client.models.api_v1_integration_post_request_metadata_secret_gcp_label import ApiV1IntegrationPostRequestMetadataSecretGCPLabel +from typing_extensions import Annotated class ApiV1IntegrationPostRequestMetadata(BaseModel): """ @@ -33,7 +34,7 @@ class ApiV1IntegrationPostRequestMetadata(BaseModel): mapping_behavior: Optional[StrictStr] = Field(default=None, alias="mappingBehavior", description="The mapping behavior of the integration.") should_auto_redeploy: Optional[StrictBool] = Field(default=None, alias="shouldAutoRedeploy", description="Used by Render to trigger auto deploy.") secret_gcp_label: Optional[ApiV1IntegrationPostRequestMetadataSecretGCPLabel] = Field(default=None, alias="secretGCPLabel") - secret_aws_tag: Optional[conlist(ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner)] = Field(default=None, alias="secretAWSTag", description="The tags for AWS secrets.") + secret_aws_tag: Optional[Annotated[List[ApiV1AuditLogStreamsIdGet200ResponseAuditLogStreamHeadersInner], Field()]] = Field(default=None, alias="secretAWSTag", description="The tags for AWS secrets.") kms_key_id: Optional[StrictStr] = Field(default=None, alias="kmsKeyId", description="The ID of the encryption key from AWS KMS.") should_disable_delete: Optional[StrictBool] = Field(default=None, alias="shouldDisableDelete", description="The flag to disable deletion of secrets in AWS Parameter Store.") should_enable_delete: Optional[StrictBool] = Field(default=None, alias="shouldEnableDelete", description="The flag to enable deletion of secrets") @@ -41,7 +42,8 @@ class ApiV1IntegrationPostRequestMetadata(BaseModel): should_protect_secrets: Optional[StrictBool] = Field(default=None, alias="shouldProtectSecrets", description="Specifies if the secrets synced from Infisical to Gitlab should be marked as 'Protected'.") __properties = ["secretPrefix", "secretSuffix", "initialSyncBehavior", "mappingBehavior", "shouldAutoRedeploy", "secretGCPLabel", "secretAWSTag", "kmsKeyId", "shouldDisableDelete", "shouldEnableDelete", "shouldMaskSecrets", "shouldProtectSecrets"] - @validator('mapping_behavior') + @field_validator('mapping_behavior') + @classmethod def mapping_behavior_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -50,11 +52,7 @@ def mapping_behavior_validate_enum(cls, value): if value not in ('one-to-one', 'many-to-one'): raise ValueError("must be one of enum values ('one-to-one', 'many-to-one')") 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/infisicalapi_client/models/api_v1_integration_post_request_metadata_secret_gcp_label.py b/infisicalapi_client/models/api_v1_integration_post_request_metadata_secret_gcp_label.py index 05d69d0..3e618a5 100644 --- a/infisicalapi_client/models/api_v1_integration_post_request_metadata_secret_gcp_label.py +++ b/infisicalapi_client/models/api_v1_integration_post_request_metadata_secret_gcp_label.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1IntegrationPostRequestMetadataSecretGCPLabel(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1IntegrationPostRequestMetadataSecretGCPLabel(BaseModel): label_name: StrictStr = Field(default=..., alias="labelName") label_value: StrictStr = Field(default=..., alias="labelValue") __properties = ["labelName", "labelValue"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_invite_org_signup_post200_response.py b/infisicalapi_client/models/api_v1_invite_org_signup_post200_response.py index 01c49c8..81ab67a 100644 --- a/infisicalapi_client/models/api_v1_invite_org_signup_post200_response.py +++ b/infisicalapi_client/models/api_v1_invite_org_signup_post200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1InviteOrgSignupPost200Response(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1InviteOrgSignupPost200Response(BaseModel): message: StrictStr = Field(...) complete_invite_link: Optional[StrictStr] = Field(default=None, alias="completeInviteLink") __properties = ["message", "completeInviteLink"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_invite_org_signup_post_request.py b/infisicalapi_client/models/api_v1_invite_org_signup_post_request.py index df3c1aa..bcb0a7b 100644 --- a/infisicalapi_client/models/api_v1_invite_org_signup_post_request.py +++ b/infisicalapi_client/models/api_v1_invite_org_signup_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1InviteOrgSignupPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1InviteOrgSignupPostRequest(BaseModel): invitee_email: StrictStr = Field(default=..., alias="inviteeEmail") organization_id: StrictStr = Field(default=..., alias="organizationId") __properties = ["inviteeEmail", "organizationId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_invite_org_verify_post200_response.py b/infisicalapi_client/models/api_v1_invite_org_verify_post200_response.py index 55c990d..8bfc86a 100644 --- a/infisicalapi_client/models/api_v1_invite_org_verify_post200_response.py +++ b/infisicalapi_client/models/api_v1_invite_org_verify_post200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_password_email_password_reset_verify_post200_response_user import ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser class ApiV1InviteOrgVerifyPost200Response(BaseModel): @@ -30,11 +30,7 @@ class ApiV1InviteOrgVerifyPost200Response(BaseModel): token: Optional[StrictStr] = None user: ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser = Field(...) __properties = ["message", "token", "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/infisicalapi_client/models/api_v1_invite_org_verify_post_request.py b/infisicalapi_client/models/api_v1_invite_org_verify_post_request.py index 32e3a93..e6ac3c9 100644 --- a/infisicalapi_client/models/api_v1_invite_org_verify_post_request.py +++ b/infisicalapi_client/models/api_v1_invite_org_verify_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1InviteOrgVerifyPostRequest(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1InviteOrgVerifyPostRequest(BaseModel): organization_id: StrictStr = Field(default=..., alias="organizationId") code: StrictStr = Field(...) __properties = ["email", "organizationId", "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/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_get200_response_inner.py b/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_get200_response_inner.py index 74af147..ec2489b 100644 --- a/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_get200_response_inner.py +++ b/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_get200_response_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment class ApiV1LdapConfigConfigIdGroupMapsGet200ResponseInner(BaseModel): @@ -31,11 +31,7 @@ class ApiV1LdapConfigConfigIdGroupMapsGet200ResponseInner(BaseModel): ldap_group_cn: StrictStr = Field(default=..., alias="ldapGroupCN") group: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) __properties = ["id", "ldapConfigId", "ldapGroupCN", "group"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post200_response.py b/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post200_response.py index d5efa8c..59024f1 100644 --- a/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post200_response.py +++ b/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1LdapConfigConfigIdGroupMapsPost200Response(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1LdapConfigConfigIdGroupMapsPost200Response(BaseModel): ldap_group_cn: StrictStr = Field(default=..., alias="ldapGroupCN") group_id: StrictStr = Field(default=..., alias="groupId") __properties = ["id", "ldapConfigId", "ldapGroupCN", "groupId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post_request.py b/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post_request.py index 438545c..d785237 100644 --- a/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post_request.py +++ b/infisicalapi_client/models/api_v1_ldap_config_config_id_group_maps_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1LdapConfigConfigIdGroupMapsPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1LdapConfigConfigIdGroupMapsPostRequest(BaseModel): ldap_group_cn: StrictStr = Field(default=..., alias="ldapGroupCN") group_slug: StrictStr = Field(default=..., alias="groupSlug") __properties = ["ldapGroupCN", "groupSlug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_ldap_config_get200_response.py b/infisicalapi_client/models/api_v1_ldap_config_get200_response.py index c9168c7..61f8abf 100644 --- a/infisicalapi_client/models/api_v1_ldap_config_get200_response.py +++ b/infisicalapi_client/models/api_v1_ldap_config_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1LdapConfigGet200Response(BaseModel): """ @@ -38,11 +38,7 @@ class ApiV1LdapConfigGet200Response(BaseModel): group_search_filter: StrictStr = Field(default=..., alias="groupSearchFilter") ca_cert: StrictStr = Field(default=..., alias="caCert") __properties = ["id", "organization", "isActive", "url", "bindDN", "bindPass", "uniqueUserAttribute", "searchBase", "searchFilter", "groupSearchBase", "groupSearchFilter", "caCert"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_ldap_config_patch_request.py b/infisicalapi_client/models/api_v1_ldap_config_patch_request.py index 0588da7..a1a7430 100644 --- a/infisicalapi_client/models/api_v1_ldap_config_patch_request.py +++ b/infisicalapi_client/models/api_v1_ldap_config_patch_request.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 ApiV1LdapConfigPatchRequest(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1LdapConfigPatchRequest(BaseModel): ca_cert: Optional[StrictStr] = Field(default=None, alias="caCert") organization_id: StrictStr = Field(default=..., alias="organizationId") __properties = ["isActive", "url", "bindDN", "bindPass", "uniqueUserAttribute", "searchBase", "searchFilter", "groupSearchBase", "groupSearchFilter", "caCert", "organizationId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_ldap_config_post200_response.py b/infisicalapi_client/models/api_v1_ldap_config_post200_response.py index 5ab550f..fdc2577 100644 --- a/infisicalapi_client/models/api_v1_ldap_config_post200_response.py +++ b/infisicalapi_client/models/api_v1_ldap_config_post200_response.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1LdapConfigPost200Response(BaseModel): """ @@ -46,11 +46,7 @@ class ApiV1LdapConfigPost200Response(BaseModel): search_filter: Optional[StrictStr] = Field(default='', alias="searchFilter") unique_user_attribute: Optional[StrictStr] = Field(default='', alias="uniqueUserAttribute") __properties = ["id", "orgId", "isActive", "url", "encryptedBindDN", "bindDNIV", "bindDNTag", "encryptedBindPass", "bindPassIV", "bindPassTag", "searchBase", "encryptedCACert", "caCertIV", "caCertTag", "createdAt", "updatedAt", "groupSearchBase", "groupSearchFilter", "searchFilter", "uniqueUserAttribute"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_ldap_config_post_request.py b/infisicalapi_client/models/api_v1_ldap_config_post_request.py index bc1e8b4..77ac4fe 100644 --- a/infisicalapi_client/models/api_v1_ldap_config_post_request.py +++ b/infisicalapi_client/models/api_v1_ldap_config_post_request.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 ApiV1LdapConfigPostRequest(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1LdapConfigPostRequest(BaseModel): group_search_filter: Optional[StrictStr] = Field(default='(|(memberUid={{.Username}})(member={{.UserDN}})(uniqueMember={{.UserDN}}))', alias="groupSearchFilter") ca_cert: Optional[StrictStr] = Field(default='', alias="caCert") __properties = ["organizationId", "isActive", "url", "bindDN", "bindPass", "uniqueUserAttribute", "searchBase", "searchFilter", "groupSearchBase", "groupSearchFilter", "caCert"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_ldap_login_post_request.py b/infisicalapi_client/models/api_v1_ldap_login_post_request.py index a19e74c..b6f5d23 100644 --- a/infisicalapi_client/models/api_v1_ldap_login_post_request.py +++ b/infisicalapi_client/models/api_v1_ldap_login_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1LdapLoginPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1LdapLoginPostRequest(BaseModel): """ organization_slug: StrictStr = Field(default=..., alias="organizationSlug") __properties = ["organizationSlug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response.py b/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response.py index 97da2a0..4cd14d7 100644 --- a/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response.py @@ -19,21 +19,18 @@ from typing import List, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt from infisicalapi_client.models.api_v1_organization_admin_projects_get200_response_projects_inner import ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner +from typing_extensions import Annotated class ApiV1OrganizationAdminProjectsGet200Response(BaseModel): """ ApiV1OrganizationAdminProjectsGet200Response """ - projects: conlist(ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner) = Field(...) + projects: Annotated[List[ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner], Field()] = Field(...) count: Union[StrictFloat, StrictInt] = Field(...) __properties = ["projects", "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/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response_projects_inner.py b/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response_projects_inner.py index 1787b36..dafe1d2 100644 --- a/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response_projects_inner.py +++ b/infisicalapi_client/models/api_v1_organization_admin_projects_get200_response_projects_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner(BaseModel): """ @@ -38,11 +38,7 @@ class ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner(BaseModel): kms_certificate_key_id: Optional[StrictStr] = Field(default=None, alias="kmsCertificateKeyId") audit_logs_retention_days: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="auditLogsRetentionDays") __properties = ["id", "name", "slug", "autoCapitalization", "orgId", "createdAt", "updatedAt", "version", "upgradeStatus", "pitVersionLimit", "kmsCertificateKeyId", "auditLogsRetentionDays"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response.py b/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response.py index 6e22653..d4aab99 100644 --- a/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response.py +++ b/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response_membership import ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200ResponseMembership class ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200Response(Bas """ membership: ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200ResponseMembership = Field(...) __properties = ["membership"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response_membership.py b/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response_membership.py index 84ef790..1d9d30b 100644 --- a/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response_membership.py +++ b/infisicalapi_client/models/api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response_membership.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200ResponseMembership(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200ResponseMemb user_id: StrictStr = Field(default=..., alias="userId") project_id: StrictStr = Field(default=..., alias="projectId") __properties = ["id", "createdAt", "updatedAt", "userId", "projectId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_get200_response.py b/infisicalapi_client/models/api_v1_organization_get200_response.py index aca631f..6f4729b 100644 --- a/infisicalapi_client/models/api_v1_organization_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_get200_response_organizations_inner import ApiV1OrganizationGet200ResponseOrganizationsInner +from typing_extensions import Annotated class ApiV1OrganizationGet200Response(BaseModel): """ ApiV1OrganizationGet200Response """ - organizations: conlist(ApiV1OrganizationGet200ResponseOrganizationsInner) = Field(...) + organizations: Annotated[List[ApiV1OrganizationGet200ResponseOrganizationsInner], Field()] = Field(...) __properties = ["organizations"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_get200_response_organizations_inner.py b/infisicalapi_client/models/api_v1_organization_get200_response_organizations_inner.py index d528e94..39609ef 100644 --- a/infisicalapi_client/models/api_v1_organization_get200_response_organizations_inner.py +++ b/infisicalapi_client/models/api_v1_organization_get200_response_organizations_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1OrganizationGet200ResponseOrganizationsInner(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1OrganizationGet200ResponseOrganizationsInner(BaseModel): kms_default_key_id: Optional[StrictStr] = Field(default=None, alias="kmsDefaultKeyId") kms_encrypted_data_key: Optional[Any] = Field(default=None, alias="kmsEncryptedDataKey") __properties = ["id", "name", "customerId", "slug", "createdAt", "updatedAt", "authEnforced", "scimEnabled", "kmsDefaultKeyId", "kmsEncryptedDataKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_get200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_get200_response.py index 8dbe5b4..67178ee 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_get200_response_organizations_inner import ApiV1OrganizationGet200ResponseOrganizationsInner class ApiV1OrganizationOrganizationIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1OrganizationOrganizationIdGet200Response(BaseModel): """ organization: ApiV1OrganizationGet200ResponseOrganizationsInner = Field(...) __properties = ["organization"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response.py index 18479b7..6359f42 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_groups_get200_response_groups_inner import ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInner +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdGroupsGet200Response(BaseModel): """ ApiV1OrganizationOrganizationIdGroupsGet200Response """ - groups: conlist(ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInner) = Field(...) + groups: Annotated[List[ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInner], Field()] = Field(...) __properties = ["groups"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner.py b/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner.py index 2ca05dc..c8fe364 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_organization_organization_id_groups_get200_response_groups_inner_custom_role import ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInnerCustomRole class ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInner(BaseModel): @@ -36,11 +36,7 @@ class ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInner(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") custom_role: Optional[ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInnerCustomRole] = Field(default=None, alias="customRole") __properties = ["id", "orgId", "name", "slug", "role", "roleId", "createdAt", "updatedAt", "customRole"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner_custom_role.py b/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner_custom_role.py index f3ec949..aac292f 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner_custom_role.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_groups_get200_response_groups_inner_custom_role.py @@ -19,7 +19,7 @@ from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInnerCustomRole(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1OrganizationOrganizationIdGroupsGet200ResponseGroupsInnerCustomRole(B permissions: Optional[Any] = None description: Optional[StrictStr] = None __properties = ["id", "name", "slug", "permissions", "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/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response.py index 2bb656e..78acb6a 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_incident_contact_org_get200_response_incident_contacts_org_inner import ApiV1OrganizationOrganizationIdIncidentContactOrgGet200ResponseIncidentContactsOrgInner +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdIncidentContactOrgGet200Response(BaseModel): """ ApiV1OrganizationOrganizationIdIncidentContactOrgGet200Response """ - incident_contacts_org: conlist(ApiV1OrganizationOrganizationIdIncidentContactOrgGet200ResponseIncidentContactsOrgInner) = Field(default=..., alias="incidentContactsOrg") + incident_contacts_org: Annotated[List[ApiV1OrganizationOrganizationIdIncidentContactOrgGet200ResponseIncidentContactsOrgInner], Field()] = Field(default=..., alias="incidentContactsOrg") __properties = ["incidentContactsOrg"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response_incident_contacts_org_inner.py b/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response_incident_contacts_org_inner.py index 7f518b7..5b640f3 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response_incident_contacts_org_inner.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_get200_response_incident_contacts_org_inner.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationOrganizationIdIncidentContactOrgGet200ResponseIncidentContactsOrgInner(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1OrganizationOrganizationIdIncidentContactOrgGet200ResponseIncidentCon updated_at: datetime = Field(default=..., alias="updatedAt") org_id: StrictStr = Field(default=..., alias="orgId") __properties = ["id", "email", "createdAt", "updatedAt", "orgId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_post200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_post200_response.py index 90b7fcb..0146076 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_post200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_incident_contact_org_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_incident_contact_org_get200_response_incident_contacts_org_inner import ApiV1OrganizationOrganizationIdIncidentContactOrgGet200ResponseIncidentContactsOrgInner class ApiV1OrganizationOrganizationIdIncidentContactOrgPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1OrganizationOrganizationIdIncidentContactOrgPost200Response(BaseModel """ incident_contacts_org: ApiV1OrganizationOrganizationIdIncidentContactOrgGet200ResponseIncidentContactsOrgInner = Field(default=..., alias="incidentContactsOrg") __properties = ["incidentContactsOrg"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_patch200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_patch200_response.py index 8f9d4d2..60c704b 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_patch200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_patch200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_organization_get200_response_organizations_inner import ApiV1OrganizationGet200ResponseOrganizationsInner class ApiV1OrganizationOrganizationIdPatch200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV1OrganizationOrganizationIdPatch200Response(BaseModel): message: StrictStr = Field(...) organization: ApiV1OrganizationGet200ResponseOrganizationsInner = Field(...) __properties = ["message", "organization"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_patch_request.py b/infisicalapi_client/models/api_v1_organization_organization_id_patch_request.py index a19909e..f86b66d 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_patch_request.py @@ -19,19 +19,21 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdPatchRequest(BaseModel): """ ApiV1OrganizationOrganizationIdPatchRequest """ - name: Optional[constr(strict=True, max_length=64)] = None - slug: Optional[constr(strict=True, max_length=64)] = None + name: Optional[Annotated[str, StringConstraints(strict=True, max_length=64)]] = None + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=64)]] = None auth_enforced: Optional[StrictBool] = Field(default=None, alias="authEnforced") scim_enabled: Optional[StrictBool] = Field(default=None, alias="scimEnabled") __properties = ["name", "slug", "authEnforced", "scimEnabled"] - @validator('slug') + @field_validator('slug') + @classmethod def slug_validate_regular_expression(cls, value): """Validates the regular expression""" if value is None: @@ -40,11 +42,7 @@ def slug_validate_regular_expression(cls, value): if not re.match(r"^[a-zA-Z0-9-]+$", value): raise ValueError(r"must validate the regular expression /^[a-zA-Z0-9-]+$/") 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/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response.py index b2bfcd0..61414a9 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_organization_organization_id_permissions_get200_response_membership import ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdPermissionsGet200Response(BaseModel): """ ApiV1OrganizationOrganizationIdPermissionsGet200Response """ membership: ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership = Field(...) - permissions: conlist(StrictStr) = Field(...) + permissions: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["membership", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response_membership.py b/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response_membership.py index b217fd4..08061a7 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response_membership.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_permissions_get200_response_membership.py @@ -19,7 +19,8 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership(BaseModel): """ @@ -34,14 +35,10 @@ class ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership(BaseMod user_id: Optional[StrictStr] = Field(default=None, alias="userId") org_id: StrictStr = Field(default=..., alias="orgId") role_id: Optional[StrictStr] = Field(default=None, alias="roleId") - project_favorites: Optional[conlist(StrictStr)] = Field(default=None, alias="projectFavorites") + project_favorites: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="projectFavorites") is_active: Optional[StrictBool] = Field(default=True, alias="isActive") __properties = ["id", "role", "status", "inviteEmail", "createdAt", "updatedAt", "userId", "orgId", "roleId", "projectFavorites", "isActive"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response.py index f85d461..a671098 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_roles_get200_response_data import ApiV1OrganizationOrganizationIdRolesGet200ResponseData class ApiV1OrganizationOrganizationIdRolesGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1OrganizationOrganizationIdRolesGet200Response(BaseModel): """ data: ApiV1OrganizationOrganizationIdRolesGet200ResponseData = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data.py b/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data.py index 37ab7bd..bfdc9f8 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_roles_get200_response_data_roles_inner import ApiV1OrganizationOrganizationIdRolesGet200ResponseDataRolesInner +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdRolesGet200ResponseData(BaseModel): """ ApiV1OrganizationOrganizationIdRolesGet200ResponseData """ - roles: conlist(ApiV1OrganizationOrganizationIdRolesGet200ResponseDataRolesInner) = Field(...) + roles: Annotated[List[ApiV1OrganizationOrganizationIdRolesGet200ResponseDataRolesInner], 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/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data_roles_inner.py b/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data_roles_inner.py index 6d40ba1..b5c0178 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data_roles_inner.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_roles_get200_response_data_roles_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationOrganizationIdRolesGet200ResponseDataRolesInner(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1OrganizationOrganizationIdRolesGet200ResponseDataRolesInner(BaseModel org_id: StrictStr = Field(default=..., alias="orgId") permissions: Optional[Any] = None __properties = ["id", "name", "description", "slug", "createdAt", "updatedAt", "orgId", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response.py index 37c92a1..54775e6 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_roles_post200_response_role import ApiV1OrganizationOrganizationIdRolesPost200ResponseRole class ApiV1OrganizationOrganizationIdRolesPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1OrganizationOrganizationIdRolesPost200Response(BaseModel): """ role: ApiV1OrganizationOrganizationIdRolesPost200ResponseRole = Field(...) __properties = ["role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response_role.py b/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response_role.py index 52c4afe..dae63a0 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response_role.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_roles_post200_response_role.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationOrganizationIdRolesPost200ResponseRole(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1OrganizationOrganizationIdRolesPost200ResponseRole(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") org_id: StrictStr = Field(default=..., alias="orgId") __properties = ["id", "name", "description", "slug", "permissions", "createdAt", "updatedAt", "orgId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_roles_post_request.py b/infisicalapi_client/models/api_v1_organization_organization_id_roles_post_request.py index c788e8b..4b62f85 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_roles_post_request.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_roles_post_request.py @@ -19,22 +19,19 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdRolesPostRequest(BaseModel): """ ApiV1OrganizationOrganizationIdRolesPostRequest """ - slug: constr(strict=True, min_length=1) = Field(...) + slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(...) name: StrictStr = Field(...) description: Optional[StrictStr] = None - permissions: conlist(StrictStr) = Field(...) + permissions: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["slug", "name", "description", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_roles_role_id_patch_request.py b/infisicalapi_client/models/api_v1_organization_organization_id_roles_role_id_patch_request.py index 7e9debe..b0175c2 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_roles_role_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_roles_role_id_patch_request.py @@ -19,7 +19,8 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdRolesRoleIdPatchRequest(BaseModel): """ @@ -28,13 +29,9 @@ class ApiV1OrganizationOrganizationIdRolesRoleIdPatchRequest(BaseModel): slug: StrictStr = Field(...) name: Optional[StrictStr] = None description: Optional[StrictStr] = None - permissions: Optional[conlist(StrictStr)] = None + permissions: Optional[Annotated[List[StrictStr], Field()]] = None __properties = ["slug", "name", "description", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response.py b/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response.py index e481c89..e0261e9 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_users_get200_response_users_inner import ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInner +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdUsersGet200Response(BaseModel): """ ApiV1OrganizationOrganizationIdUsersGet200Response """ - users: conlist(ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInner) = Field(...) + users: Annotated[List[ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInner], 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/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner.py b/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner.py index e4e5bc5..104f967 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_organization_organization_id_users_get200_response_users_inner_user import ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInnerUser +from typing_extensions import Annotated class ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInner(BaseModel): """ @@ -33,15 +34,11 @@ class ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInner(BaseModel): user_id: Optional[StrictStr] = Field(default=None, alias="userId") org_id: StrictStr = Field(default=..., alias="orgId") role_id: Optional[StrictStr] = Field(default=None, alias="roleId") - project_favorites: Optional[conlist(StrictStr)] = Field(default=None, alias="projectFavorites") + project_favorites: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="projectFavorites") is_active: Optional[StrictBool] = Field(default=True, alias="isActive") user: ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInnerUser = Field(...) __properties = ["id", "role", "status", "inviteEmail", "userId", "orgId", "roleId", "projectFavorites", "isActive", "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/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner_user.py b/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner_user.py index c8d4762..1b3d4e1 100644 --- a/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner_user.py +++ b/infisicalapi_client/models/api_v1_organization_organization_id_users_get200_response_users_inner_user.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInnerUser(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1OrganizationOrganizationIdUsersGet200ResponseUsersInnerUser(BaseModel id: StrictStr = Field(...) public_key: Optional[StrictStr] = Field(default=..., alias="publicKey") __properties = ["username", "email", "firstName", "lastName", "id", "publicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_patch_request.py b/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_patch_request.py index 7d054cf..d9eea3c 100644 --- a/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_patch_request.py +++ b/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, StrictStr +from pydantic import ConfigDict, BaseModel, StrictStr class ApiV1OrganizationsOrganizationIdBillingDetailsPatchRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1OrganizationsOrganizationIdBillingDetailsPatchRequest(BaseModel): email: Optional[StrictStr] = None name: Optional[StrictStr] = None __properties = ["email", "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/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_payment_methods_post_request.py b/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_payment_methods_post_request.py index 185e500..be4a5b2 100644 --- a/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_payment_methods_post_request.py +++ b/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_payment_methods_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationsOrganizationIdBillingDetailsPaymentMethodsPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1OrganizationsOrganizationIdBillingDetailsPaymentMethodsPostRequest(Ba success_url: StrictStr = Field(...) cancel_url: StrictStr = Field(...) __properties = ["success_url", "cancel_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/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_tax_ids_post_request.py b/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_tax_ids_post_request.py index 6959c2e..f5e31c5 100644 --- a/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_tax_ids_post_request.py +++ b/infisicalapi_client/models/api_v1_organizations_organization_id_billing_details_tax_ids_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationsOrganizationIdBillingDetailsTaxIdsPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1OrganizationsOrganizationIdBillingDetailsTaxIdsPostRequest(BaseModel) type: StrictStr = Field(...) value: StrictStr = Field(...) __properties = ["type", "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/infisicalapi_client/models/api_v1_organizations_organization_id_plan_get200_response.py b/infisicalapi_client/models/api_v1_organizations_organization_id_plan_get200_response.py index 847b97c..25e0095 100644 --- a/infisicalapi_client/models/api_v1_organizations_organization_id_plan_get200_response.py +++ b/infisicalapi_client/models/api_v1_organizations_organization_id_plan_get200_response.py @@ -19,7 +19,7 @@ from typing import Any, Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel class ApiV1OrganizationsOrganizationIdPlanGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1OrganizationsOrganizationIdPlanGet200Response(BaseModel): """ plan: Optional[Any] = None __properties = ["plan"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_organizations_organization_id_session_trial_post_request.py b/infisicalapi_client/models/api_v1_organizations_organization_id_session_trial_post_request.py index 2ddb003..5e38ca2 100644 --- a/infisicalapi_client/models/api_v1_organizations_organization_id_session_trial_post_request.py +++ b/infisicalapi_client/models/api_v1_organizations_organization_id_session_trial_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1OrganizationsOrganizationIdSessionTrialPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1OrganizationsOrganizationIdSessionTrialPostRequest(BaseModel): """ success_url: StrictStr = Field(...) __properties = ["success_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/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response.py b/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response.py index 2a0f23a..678dc98 100644 --- a/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response.py +++ b/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_password_backup_private_key_get200_response_backup_private_key import ApiV1PasswordBackupPrivateKeyGet200ResponseBackupPrivateKey class ApiV1PasswordBackupPrivateKeyGet200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV1PasswordBackupPrivateKeyGet200Response(BaseModel): message: StrictStr = Field(...) backup_private_key: ApiV1PasswordBackupPrivateKeyGet200ResponseBackupPrivateKey = Field(default=..., alias="backupPrivateKey") __properties = ["message", "backupPrivateKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response_backup_private_key.py b/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response_backup_private_key.py index 66e1cf0..687b829 100644 --- a/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response_backup_private_key.py +++ b/infisicalapi_client/models/api_v1_password_backup_private_key_get200_response_backup_private_key.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordBackupPrivateKeyGet200ResponseBackupPrivateKey(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1PasswordBackupPrivateKeyGet200ResponseBackupPrivateKey(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") user_id: StrictStr = Field(default=..., alias="userId") __properties = ["id", "encryptedPrivateKey", "iv", "tag", "algorithm", "keyEncoding", "salt", "createdAt", "updatedAt", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_password_backup_private_key_post_request.py b/infisicalapi_client/models/api_v1_password_backup_private_key_post_request.py index 658f3c4..65eb6de 100644 --- a/infisicalapi_client/models/api_v1_password_backup_private_key_post_request.py +++ b/infisicalapi_client/models/api_v1_password_backup_private_key_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordBackupPrivateKeyPostRequest(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1PasswordBackupPrivateKeyPostRequest(BaseModel): salt: StrictStr = Field(...) verifier: StrictStr = Field(...) __properties = ["clientProof", "encryptedPrivateKey", "iv", "tag", "salt", "verifier"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_password_change_password_post_request.py b/infisicalapi_client/models/api_v1_password_change_password_post_request.py index 6253266..f8ce39a 100644 --- a/infisicalapi_client/models/api_v1_password_change_password_post_request.py +++ b/infisicalapi_client/models/api_v1_password_change_password_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordChangePasswordPostRequest(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1PasswordChangePasswordPostRequest(BaseModel): verifier: StrictStr = Field(...) password: StrictStr = Field(...) __properties = ["clientProof", "protectedKey", "protectedKeyIV", "protectedKeyTag", "encryptedPrivateKey", "encryptedPrivateKeyIV", "encryptedPrivateKeyTag", "salt", "verifier", "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/infisicalapi_client/models/api_v1_password_email_password_reset_post_request.py b/infisicalapi_client/models/api_v1_password_email_password_reset_post_request.py index d113c2f..29f5843 100644 --- a/infisicalapi_client/models/api_v1_password_email_password_reset_post_request.py +++ b/infisicalapi_client/models/api_v1_password_email_password_reset_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordEmailPasswordResetPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1PasswordEmailPasswordResetPostRequest(BaseModel): """ email: StrictStr = Field(...) __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/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response.py b/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response.py index cb87d6c..7959bfc 100644 --- a/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response.py +++ b/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_password_email_password_reset_verify_post200_response_user import ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser class ApiV1PasswordEmailPasswordResetVerifyPost200Response(BaseModel): @@ -30,11 +30,7 @@ class ApiV1PasswordEmailPasswordResetVerifyPost200Response(BaseModel): user: ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser = Field(...) token: StrictStr = Field(...) __properties = ["message", "user", "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/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response_user.py b/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response_user.py index 6a874dd..16bc76c 100644 --- a/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response_user.py +++ b/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post200_response_user.py @@ -19,7 +19,8 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser(BaseModel): """ @@ -27,13 +28,13 @@ class ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser(BaseModel): """ id: StrictStr = Field(...) email: Optional[StrictStr] = None - auth_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="authMethods") + auth_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="authMethods") super_admin: Optional[StrictBool] = Field(default=False, alias="superAdmin") first_name: Optional[StrictStr] = Field(default=None, alias="firstName") last_name: Optional[StrictStr] = Field(default=None, alias="lastName") is_accepted: Optional[StrictBool] = Field(default=False, alias="isAccepted") is_mfa_enabled: Optional[StrictBool] = Field(default=False, alias="isMfaEnabled") - mfa_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="mfaMethods") + mfa_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="mfaMethods") devices: Optional[Any] = None created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") @@ -45,11 +46,7 @@ class ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser(BaseModel): temporary_lock_date_end: Optional[datetime] = Field(default=None, alias="temporaryLockDateEnd") consecutive_failed_password_attempts: Optional[Union[StrictFloat, StrictInt]] = Field(default=0, alias="consecutiveFailedPasswordAttempts") __properties = ["id", "email", "authMethods", "superAdmin", "firstName", "lastName", "isAccepted", "isMfaEnabled", "mfaMethods", "devices", "createdAt", "updatedAt", "isGhost", "username", "isEmailVerified", "consecutiveFailedMfaAttempts", "isLocked", "temporaryLockDateEnd", "consecutiveFailedPasswordAttempts"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post_request.py b/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post_request.py index 3abcf55..4c4e719 100644 --- a/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post_request.py +++ b/infisicalapi_client/models/api_v1_password_email_password_reset_verify_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordEmailPasswordResetVerifyPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1PasswordEmailPasswordResetVerifyPostRequest(BaseModel): email: StrictStr = Field(...) code: StrictStr = Field(...) __properties = ["email", "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/infisicalapi_client/models/api_v1_password_password_reset_post_request.py b/infisicalapi_client/models/api_v1_password_password_reset_post_request.py index 6f0d666..5c9c99a 100644 --- a/infisicalapi_client/models/api_v1_password_password_reset_post_request.py +++ b/infisicalapi_client/models/api_v1_password_password_reset_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordPasswordResetPostRequest(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1PasswordPasswordResetPostRequest(BaseModel): salt: StrictStr = Field(...) verifier: StrictStr = Field(...) __properties = ["protectedKey", "protectedKeyIV", "protectedKeyTag", "encryptedPrivateKey", "encryptedPrivateKeyIV", "encryptedPrivateKeyTag", "salt", "verifier"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_password_srp1_post200_response.py b/infisicalapi_client/models/api_v1_password_srp1_post200_response.py index f512e06..aaec0dc 100644 --- a/infisicalapi_client/models/api_v1_password_srp1_post200_response.py +++ b/infisicalapi_client/models/api_v1_password_srp1_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordSrp1Post200Response(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1PasswordSrp1Post200Response(BaseModel): server_public_key: StrictStr = Field(default=..., alias="serverPublicKey") salt: StrictStr = Field(...) __properties = ["serverPublicKey", "salt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_password_srp1_post_request.py b/infisicalapi_client/models/api_v1_password_srp1_post_request.py index 1ea46aa..1ae50df 100644 --- a/infisicalapi_client/models/api_v1_password_srp1_post_request.py +++ b/infisicalapi_client/models/api_v1_password_srp1_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PasswordSrp1PostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1PasswordSrp1PostRequest(BaseModel): """ client_public_key: StrictStr = Field(default=..., alias="clientPublicKey") __properties = ["clientPublicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_certificate_get200_response.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_certificate_get200_response.py index a489c69..a2e4d13 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_certificate_get200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_certificate_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdCertificateGet200Response(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1PkiCaCaIdCertificateGet200Response(BaseModel): certificate_chain: StrictStr = Field(default=..., alias="certificateChain", description="The certificate chain of the CA") serial_number: StrictStr = Field(default=..., alias="serialNumber", description="The serial number of the CA certificate") __properties = ["certificate", "certificateChain", "serialNumber"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_crl_get200_response.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_crl_get200_response.py index 351dc02..bc4d6f8 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_crl_get200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_crl_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdCrlGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1PkiCaCaIdCrlGet200Response(BaseModel): """ crl: StrictStr = Field(default=..., description="The certificate revocation list (CRL) of the CA") __properties = ["crl"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_csr_get200_response.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_csr_get200_response.py index 800e103..e2bd96b 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_csr_get200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_csr_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdCsrGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1PkiCaCaIdCsrGet200Response(BaseModel): """ csr: StrictStr = Field(default=..., description="The generated CSR from the CA") __properties = ["csr"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post200_response.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post200_response.py index 76d746e..532aea7 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdImportCertificatePost200Response(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1PkiCaCaIdImportCertificatePost200Response(BaseModel): message: StrictStr = Field(...) ca_id: StrictStr = Field(default=..., alias="caId") __properties = ["message", "caId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post_request.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post_request.py index 0068ee3..3cf7913 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post_request.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_import_certificate_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdImportCertificatePostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1PkiCaCaIdImportCertificatePostRequest(BaseModel): certificate: StrictStr = Field(default=..., description="The certificate body to import") certificate_chain: StrictStr = Field(default=..., alias="certificateChain", description="The certificate chain to import") __properties = ["certificate", "certificateChain"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post200_response.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post200_response.py index 82deedf..bc213b7 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdIssueCertificatePost200Response(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1PkiCaCaIdIssueCertificatePost200Response(BaseModel): private_key: StrictStr = Field(default=..., alias="privateKey", description="The private key of the issued certificate") serial_number: StrictStr = Field(default=..., alias="serialNumber", description="The serial number of the issued certificate") __properties = ["certificate", "issuingCaCertificate", "certificateChain", "privateKey", "serialNumber"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post_request.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post_request.py index 1e70809..f54d407 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post_request.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_issue_certificate_post_request.py @@ -19,24 +19,21 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1PkiCaCaIdIssueCertificatePostRequest(BaseModel): """ ApiV1PkiCaCaIdIssueCertificatePostRequest """ friendly_name: Optional[StrictStr] = Field(default=None, alias="friendlyName", description="A friendly name for the certificate") - common_name: constr(strict=True, min_length=1) = Field(default=..., alias="commonName", description="The common name (CN) for the certificate") + common_name: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="commonName", description="The common name (CN) for the certificate") alt_names: Optional[StrictStr] = Field(default='', alias="altNames", description="A comma-delimited list of Subject Alternative Names (SANs) for the certificate; these can be host names or email addresses.") ttl: StrictStr = Field(default=..., description="The time to live for the certificate such as 1m, 1h, 1d, 1y, ...") not_before: Optional[StrictStr] = Field(default=None, alias="notBefore", description="The date and time when the certificate becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format") not_after: Optional[StrictStr] = Field(default=None, alias="notAfter", description="The date and time when the certificate expires in YYYY-MM-DDTHH:mm:ss.sssZ format") __properties = ["friendlyName", "commonName", "altNames", "ttl", "notBefore", "notAfter"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_patch_request.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_patch_request.py index b4be331..a9e6c4a 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdPatchRequest(BaseModel): """ @@ -28,7 +28,8 @@ class ApiV1PkiCaCaIdPatchRequest(BaseModel): status: Optional[StrictStr] = Field(default=None, description="The status of the CA to update to. This can be one of active or disabled") __properties = ["status"] - @validator('status') + @field_validator('status') + @classmethod def status_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -37,11 +38,7 @@ def status_validate_enum(cls, value): if value not in ('active', 'disabled'): raise ValueError("must be one of enum values ('active', 'disabled')") 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/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post200_response.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post200_response.py index 508c1de..ab364dd 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdSignCertificatePost200Response(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1PkiCaCaIdSignCertificatePost200Response(BaseModel): certificate_chain: StrictStr = Field(default=..., alias="certificateChain", description="The certificate chain of the issued certificate") serial_number: StrictStr = Field(default=..., alias="serialNumber", description="The serial number of the issued certificate") __properties = ["certificate", "issuingCaCertificate", "certificateChain", "serialNumber"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post_request.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post_request.py index 4496149..2d185b2 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post_request.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_certificate_post_request.py @@ -19,25 +19,22 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1PkiCaCaIdSignCertificatePostRequest(BaseModel): """ ApiV1PkiCaCaIdSignCertificatePostRequest """ - csr: constr(strict=True, min_length=1) = Field(default=..., description="The pem-encoded CSR to sign with the CA to be used for certificate issuance") + csr: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The pem-encoded CSR to sign with the CA to be used for certificate issuance") friendly_name: Optional[StrictStr] = Field(default=None, alias="friendlyName", description="A friendly name for the certificate") - common_name: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="commonName", description="The common name (CN) for the certificate") + common_name: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="commonName", description="The common name (CN) for the certificate") alt_names: Optional[StrictStr] = Field(default='', alias="altNames", description="A comma-delimited list of Subject Alternative Names (SANs) for the certificate; these can be host names or email addresses.") ttl: StrictStr = Field(default=..., description="The time to live for the certificate such as 1m, 1h, 1d, 1y, ...") not_before: Optional[StrictStr] = Field(default=None, alias="notBefore", description="The date and time when the certificate becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format") not_after: Optional[StrictStr] = Field(default=None, alias="notAfter", description="The date and time when the certificate expires in YYYY-MM-DDTHH:mm:ss.sssZ format") __properties = ["csr", "friendlyName", "commonName", "altNames", "ttl", "notBefore", "notAfter"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post200_response.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post200_response.py index 245be45..6ad0ec7 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCaCaIdSignIntermediatePost200Response(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1PkiCaCaIdSignIntermediatePost200Response(BaseModel): issuing_ca_certificate: StrictStr = Field(default=..., alias="issuingCaCertificate", description="The certificate of the issuing CA") serial_number: StrictStr = Field(default=..., alias="serialNumber", description="The serial number of the intermediate certificate") __properties = ["certificate", "certificateChain", "issuingCaCertificate", "serialNumber"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post_request.py b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post_request.py index 132f1b3..a348152 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post_request.py +++ b/infisicalapi_client/models/api_v1_pki_ca_ca_id_sign_intermediate_post_request.py @@ -19,22 +19,19 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1PkiCaCaIdSignIntermediatePostRequest(BaseModel): """ ApiV1PkiCaCaIdSignIntermediatePostRequest """ - csr: constr(strict=True, min_length=1) = Field(default=..., description="The pem-encoded CSR to sign with the CA") + csr: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The pem-encoded CSR to sign with the CA") not_before: Optional[StrictStr] = Field(default=None, alias="notBefore", description="The date and time when the intermediate CA becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format") not_after: StrictStr = Field(default=..., alias="notAfter", description="The date and time when the intermediate CA expires in YYYY-MM-DDTHH:mm:ss.sssZ format") - max_path_length: Optional[Union[confloat(ge=-1, strict=True), conint(ge=-1, strict=True)]] = Field(default=-1, alias="maxPathLength", description="The maximum number of intermediate CAs that may follow this CA in the certificate / CA chain. A maxPathLength of -1 implies no path limit on the chain.") + max_path_length: Optional[Union[Annotated[float, Field(ge=-1, strict=True)], Annotated[int, Field(ge=-1, strict=True)]]] = Field(default=-1, alias="maxPathLength", description="The maximum number of intermediate CAs that may follow this CA in the certificate / CA chain. A maxPathLength of -1 implies no path limit on the chain.") __properties = ["csr", "notBefore", "notAfter", "maxPathLength"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_post200_response.py b/infisicalapi_client/models/api_v1_pki_ca_post200_response.py index a89cb4a..091c27f 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_post200_response.py +++ b/infisicalapi_client/models/api_v1_pki_ca_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_pki_ca_post200_response_ca import ApiV1PkiCaPost200ResponseCa class ApiV1PkiCaPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1PkiCaPost200Response(BaseModel): """ ca: ApiV1PkiCaPost200ResponseCa = Field(...) __properties = ["ca"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_post200_response_ca.py b/infisicalapi_client/models/api_v1_pki_ca_post200_response_ca.py index 2972558..5147e99 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_post200_response_ca.py +++ b/infisicalapi_client/models/api_v1_pki_ca_post200_response_ca.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1PkiCaPost200ResponseCa(BaseModel): """ @@ -46,11 +46,7 @@ class ApiV1PkiCaPost200ResponseCa(BaseModel): not_before: Optional[datetime] = Field(default=None, alias="notBefore") not_after: Optional[datetime] = Field(default=None, alias="notAfter") __properties = ["id", "createdAt", "updatedAt", "parentCaId", "projectId", "type", "status", "friendlyName", "organization", "ou", "country", "province", "locality", "commonName", "dn", "serialNumber", "maxPathLength", "keyAlgorithm", "notBefore", "notAfter"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_ca_post_request.py b/infisicalapi_client/models/api_v1_pki_ca_post_request.py index 30a80e1..1b3fae6 100644 --- a/infisicalapi_client/models/api_v1_pki_ca_post_request.py +++ b/infisicalapi_client/models/api_v1_pki_ca_post_request.py @@ -19,7 +19,8 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1PkiCaPostRequest(BaseModel): """ @@ -36,18 +37,20 @@ class ApiV1PkiCaPostRequest(BaseModel): locality: StrictStr = Field(default=..., description="The locality name for the CA") not_before: Optional[StrictStr] = Field(default=None, alias="notBefore", description="The date and time when the CA becomes valid in YYYY-MM-DDTHH:mm:ss.sssZ format") not_after: Optional[StrictStr] = Field(default=None, alias="notAfter", description="The date and time when the CA expires in YYYY-MM-DDTHH:mm:ss.sssZ format") - max_path_length: Optional[Union[confloat(ge=-1, strict=True), conint(ge=-1, strict=True)]] = Field(default=-1, alias="maxPathLength", description="The maximum number of intermediate CAs that may follow this CA in the certificate / CA chain. A maxPathLength of -1 implies no path limit on the chain.") + max_path_length: Optional[Union[Annotated[float, Field(ge=-1, strict=True)], Annotated[int, Field(ge=-1, strict=True)]]] = Field(default=-1, alias="maxPathLength", description="The maximum number of intermediate CAs that may follow this CA in the certificate / CA chain. A maxPathLength of -1 implies no path limit on the chain.") key_algorithm: Optional[StrictStr] = Field(default='RSA_2048', alias="keyAlgorithm", description="The type of public key algorithm and size, in bits, of the key pair for the CA; when you create an intermediate CA, you must use a key algorithm supported by the parent CA.") __properties = ["projectSlug", "type", "friendlyName", "commonName", "organization", "ou", "country", "province", "locality", "notBefore", "notAfter", "maxPathLength", "keyAlgorithm"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('root', 'intermediate'): raise ValueError("must be one of enum values ('root', 'intermediate')") return value - @validator('key_algorithm') + @field_validator('key_algorithm') + @classmethod def key_algorithm_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -56,11 +59,7 @@ def key_algorithm_validate_enum(cls, value): if value not in ('RSA_2048', 'RSA_4096', 'EC_prime256v1', 'EC_secp384r1'): raise ValueError("must be one of enum values ('RSA_2048', 'RSA_4096', 'EC_prime256v1', 'EC_secp384r1')") 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/infisicalapi_client/models/api_v1_pki_certificates_serial_number_certificate_get200_response.py b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_certificate_get200_response.py index efe2ac5..fd38211 100644 --- a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_certificate_get200_response.py +++ b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_certificate_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCertificatesSerialNumberCertificateGet200Response(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1PkiCertificatesSerialNumberCertificateGet200Response(BaseModel): certificate_chain: StrictStr = Field(default=..., alias="certificateChain", description="The certificate chain of the certificate") serial_number: StrictStr = Field(default=..., alias="serialNumber", description="The serial number of the certificate") __properties = ["certificate", "certificateChain", "serialNumber"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response.py b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response.py index 5f0397d..f4f2e5a 100644 --- a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response.py +++ b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_pki_certificates_serial_number_get200_response_certificate import ApiV1PkiCertificatesSerialNumberGet200ResponseCertificate class ApiV1PkiCertificatesSerialNumberGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1PkiCertificatesSerialNumberGet200Response(BaseModel): """ certificate: ApiV1PkiCertificatesSerialNumberGet200ResponseCertificate = Field(...) __properties = ["certificate"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response_certificate.py b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response_certificate.py index a11b0c6..53c732e 100644 --- a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response_certificate.py +++ b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_get200_response_certificate.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1PkiCertificatesSerialNumberGet200ResponseCertificate(BaseModel): """ @@ -39,11 +39,7 @@ class ApiV1PkiCertificatesSerialNumberGet200ResponseCertificate(BaseModel): revocation_reason: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="revocationReason") alt_names: Optional[StrictStr] = Field(default='', alias="altNames") __properties = ["id", "createdAt", "updatedAt", "caId", "status", "serialNumber", "friendlyName", "commonName", "notBefore", "notAfter", "revokedAt", "revocationReason", "altNames"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post200_response.py b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post200_response.py index 7b509fe..c9aa55c 100644 --- a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post200_response.py +++ b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post200_response.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCertificatesSerialNumberRevokePost200Response(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1PkiCertificatesSerialNumberRevokePost200Response(BaseModel): serial_number: StrictStr = Field(default=..., alias="serialNumber", description="The serial number of the revoked certificate.") revoked_at: datetime = Field(default=..., alias="revokedAt", description="The date and time when the certificate was revoked") __properties = ["message", "serialNumber", "revokedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post_request.py b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post_request.py index 7e4d32c..19742a3 100644 --- a/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post_request.py +++ b/infisicalapi_client/models/api_v1_pki_certificates_serial_number_revoke_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1PkiCertificatesSerialNumberRevokePostRequest(BaseModel): """ @@ -28,17 +28,14 @@ class ApiV1PkiCertificatesSerialNumberRevokePostRequest(BaseModel): revocation_reason: StrictStr = Field(default=..., alias="revocationReason", description="The reason for revoking the certificate.") __properties = ["revocationReason"] - @validator('revocation_reason') + @field_validator('revocation_reason') + @classmethod def revocation_reason_validate_enum(cls, value): """Validates the enum""" if value not in ('UNSPECIFIED', 'KEY_COMPROMISE', 'CA_COMPROMISE', 'AFFILIATION_CHANGED', 'SUPERSEDED', 'CESSATION_OF_OPERATION', 'CERTIFICATE_HOLD', 'PRIVILEGE_WITHDRAWN', 'A_A_COMPROMISE'): raise ValueError("must be one of enum values ('UNSPECIFIED', 'KEY_COMPROMISE', 'CA_COMPROMISE', 'AFFILIATION_CHANGED', 'SUPERSEDED', 'CESSATION_OF_OPERATION', 'CERTIFICATE_HOLD', 'PRIVILEGE_WITHDRAWN', 'A_A_COMPROMISE')") 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/infisicalapi_client/models/api_v1_rate_limit_get200_response.py b/infisicalapi_client/models/api_v1_rate_limit_get200_response.py index 258fc8b..a8d7c61 100644 --- a/infisicalapi_client/models/api_v1_rate_limit_get200_response.py +++ b/infisicalapi_client/models/api_v1_rate_limit_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_rate_limit_get200_response_rate_limit import ApiV1RateLimitGet200ResponseRateLimit class ApiV1RateLimitGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1RateLimitGet200Response(BaseModel): """ rate_limit: ApiV1RateLimitGet200ResponseRateLimit = Field(default=..., alias="rateLimit") __properties = ["rateLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_rate_limit_get200_response_rate_limit.py b/infisicalapi_client/models/api_v1_rate_limit_get200_response_rate_limit.py index a0aeb49..b49a1b7 100644 --- a/infisicalapi_client/models/api_v1_rate_limit_get200_response_rate_limit.py +++ b/infisicalapi_client/models/api_v1_rate_limit_get200_response_rate_limit.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1RateLimitGet200ResponseRateLimit(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1RateLimitGet200ResponseRateLimit(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "readRateLimit", "writeRateLimit", "secretsRateLimit", "authRateLimit", "inviteUserRateLimit", "mfaRateLimit", "publicEndpointLimit", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_rate_limit_put_request.py b/infisicalapi_client/models/api_v1_rate_limit_put_request.py index 2b5c086..eb72569 100644 --- a/infisicalapi_client/models/api_v1_rate_limit_put_request.py +++ b/infisicalapi_client/models/api_v1_rate_limit_put_request.py @@ -19,7 +19,7 @@ from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt class ApiV1RateLimitPutRequest(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV1RateLimitPutRequest(BaseModel): mfa_rate_limit: Union[StrictFloat, StrictInt] = Field(default=..., alias="mfaRateLimit") public_endpoint_limit: Union[StrictFloat, StrictInt] = Field(default=..., alias="publicEndpointLimit") __properties = ["readRateLimit", "writeRateLimit", "secretsRateLimit", "authRateLimit", "inviteUserRateLimit", "mfaRateLimit", "publicEndpointLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_get200_response.py b/infisicalapi_client/models/api_v1_scim_groups_get200_response.py index 8c2cfb2..a8dc263 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_get200_response.py +++ b/infisicalapi_client/models/api_v1_scim_groups_get200_response.py @@ -19,24 +19,21 @@ from typing import List, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_scim_groups_get200_response_resources_inner import ApiV1ScimGroupsGet200ResponseResourcesInner +from typing_extensions import Annotated class ApiV1ScimGroupsGet200Response(BaseModel): """ ApiV1ScimGroupsGet200Response """ - resources: conlist(ApiV1ScimGroupsGet200ResponseResourcesInner) = Field(default=..., alias="Resources") + resources: Annotated[List[ApiV1ScimGroupsGet200ResponseResourcesInner], Field()] = Field(default=..., alias="Resources") items_per_page: Union[StrictFloat, StrictInt] = Field(default=..., alias="itemsPerPage") - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) start_index: Union[StrictFloat, StrictInt] = Field(default=..., alias="startIndex") total_results: Union[StrictFloat, StrictInt] = Field(default=..., alias="totalResults") __properties = ["Resources", "itemsPerPage", "schemas", "startIndex", "totalResults"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner.py b/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner.py index f715808..45b78fa 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner.py +++ b/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner.py @@ -19,25 +19,22 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_scim_groups_get200_response_resources_inner_meta import ApiV1ScimGroupsGet200ResponseResourcesInnerMeta from infisicalapi_client.models.api_v1_scim_users_org_membership_id_get201_response_groups_inner import ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner +from typing_extensions import Annotated class ApiV1ScimGroupsGet200ResponseResourcesInner(BaseModel): """ ApiV1ScimGroupsGet200ResponseResourcesInner """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) id: StrictStr = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") - members: conlist(ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner) = Field(...) + members: Annotated[List[ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner], Field()] = Field(...) meta: ApiV1ScimGroupsGet200ResponseResourcesInnerMeta = Field(...) __properties = ["schemas", "id", "displayName", "members", "meta"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner_meta.py b/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner_meta.py index 67bd76c..ce57f85 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner_meta.py +++ b/infisicalapi_client/models/api_v1_scim_groups_get200_response_resources_inner_meta.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ScimGroupsGet200ResponseResourcesInnerMeta(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1ScimGroupsGet200ResponseResourcesInnerMeta(BaseModel): """ resource_type: StrictStr = Field(default=..., alias="resourceType") __properties = ["resourceType"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request.py index 1e7819c..aded4c4 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_scim_groups_group_id_patch_request_operations_inner import ApiV1ScimGroupsGroupIdPatchRequestOperationsInner +from typing_extensions import Annotated class ApiV1ScimGroupsGroupIdPatchRequest(BaseModel): """ ApiV1ScimGroupsGroupIdPatchRequest """ - schemas: conlist(StrictStr) = Field(...) - operations: conlist(ApiV1ScimGroupsGroupIdPatchRequestOperationsInner) = Field(default=..., alias="Operations") + schemas: Annotated[List[StrictStr], Field()] = Field(...) + operations: Annotated[List[ApiV1ScimGroupsGroupIdPatchRequestOperationsInner], Field()] = Field(default=..., alias="Operations") __properties = ["schemas", "Operations"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner.py index 08668d9..a0255fd 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner.py @@ -18,13 +18,13 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v1_scim_groups_group_id_patch_request_operations_inner_any_of import ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf from infisicalapi_client.models.api_v1_scim_groups_group_id_patch_request_operations_inner_any_of1 import ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf1 from infisicalapi_client.models.api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2 import ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV1SCIMGROUPSGROUPIDPATCHREQUESTOPERATIONSINNER_ANY_OF_SCHEMAS = ["ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf", "ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf1", "ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2"] @@ -42,11 +42,9 @@ class ApiV1ScimGroupsGroupIdPatchRequestOperationsInner(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf, ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf1, ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV1SCIMGROUPSGROUPIDPATCHREQUESTOPERATIONSINNER_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV1SCIMGROUPSGROUPIDPATCHREQUESTOPERATIONSINNER_ANY_OF_SCHEMAS] = APIV1SCIMGROUPSGROUPIDPATCHREQUESTOPERATIONSINNER_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -58,7 +56,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV1ScimGroupsGroupIdPatchRequestOperationsInner.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of.py index 2165394..8f51dce 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_scim_groups_group_id_patch_request_operations_inner_any_of_value import ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOfValue class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf(BaseModel): @@ -30,17 +30,14 @@ class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf(BaseModel): value: ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOfValue = Field(...) __properties = ["op", "value"] - @validator('op') + @field_validator('op') + @classmethod def op_validate_enum(cls, value): """Validates the enum""" if value not in ('replace'): raise ValueError("must be one of enum values ('replace')") 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/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of1.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of1.py index b4694cf..b233420 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of1.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of1.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf1(BaseModel): """ @@ -29,17 +29,14 @@ class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf1(BaseModel): path: StrictStr = Field(...) __properties = ["op", "path"] - @validator('op') + @field_validator('op') + @classmethod def op_validate_enum(cls, value): """Validates the enum""" if value not in ('remove'): raise ValueError("must be one of enum values ('remove')") 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/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2.py index bc74c34..203eb03 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2_value_inner import ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2ValueInner +from typing_extensions import Annotated class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2(BaseModel): """ @@ -28,20 +29,17 @@ class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2(BaseModel): """ op: StrictStr = Field(...) path: StrictStr = Field(...) - value: conlist(ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2ValueInner) = Field(...) + value: Annotated[List[ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2ValueInner], Field()] = Field(...) __properties = ["op", "path", "value"] - @validator('op') + @field_validator('op') + @classmethod def op_validate_enum(cls, value): """Validates the enum""" if value not in ('add'): raise ValueError("must be one of enum values ('add')") 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/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2_value_inner.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2_value_inner.py index f7c4882..4e52360 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2_value_inner.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of2_value_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2ValueInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOf2ValueInner(BaseMode value: StrictStr = Field(...) display: Optional[StrictStr] = None __properties = ["value", "display"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of_value.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of_value.py index 0ae04db..4b1ea22 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of_value.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_patch_request_operations_inner_any_of_value.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOfValue(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1ScimGroupsGroupIdPatchRequestOperationsInnerAnyOfValue(BaseModel): id: StrictStr = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") __properties = ["id", "displayName"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_group_id_put_request.py b/infisicalapi_client/models/api_v1_scim_groups_group_id_put_request.py index 421df9a..5d1fd46 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_group_id_put_request.py +++ b/infisicalapi_client/models/api_v1_scim_groups_group_id_put_request.py @@ -19,23 +19,20 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_scim_users_org_membership_id_get201_response_groups_inner import ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner +from typing_extensions import Annotated class ApiV1ScimGroupsGroupIdPutRequest(BaseModel): """ ApiV1ScimGroupsGroupIdPutRequest """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) id: StrictStr = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") - members: conlist(ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner) = Field(...) + members: Annotated[List[ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner], Field()] = Field(...) __properties = ["schemas", "id", "displayName", "members"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_post200_response.py b/infisicalapi_client/models/api_v1_scim_groups_post200_response.py index 95e8a5a..6b0c48b 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_post200_response.py +++ b/infisicalapi_client/models/api_v1_scim_groups_post200_response.py @@ -19,25 +19,22 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_scim_groups_get200_response_resources_inner_meta import ApiV1ScimGroupsGet200ResponseResourcesInnerMeta from infisicalapi_client.models.api_v1_scim_users_org_membership_id_get201_response_groups_inner import ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner +from typing_extensions import Annotated class ApiV1ScimGroupsPost200Response(BaseModel): """ ApiV1ScimGroupsPost200Response """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) id: StrictStr = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") - members: Optional[conlist(ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner)] = None + members: Optional[Annotated[List[ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner], Field()]] = None meta: ApiV1ScimGroupsGet200ResponseResourcesInnerMeta = Field(...) __properties = ["schemas", "id", "displayName", "members", "meta"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_groups_post_request.py b/infisicalapi_client/models/api_v1_scim_groups_post_request.py index f01cdb3..8374ca3 100644 --- a/infisicalapi_client/models/api_v1_scim_groups_post_request.py +++ b/infisicalapi_client/models/api_v1_scim_groups_post_request.py @@ -19,22 +19,19 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_scim_users_org_membership_id_get201_response_groups_inner import ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner +from typing_extensions import Annotated class ApiV1ScimGroupsPostRequest(BaseModel): """ ApiV1ScimGroupsPostRequest """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") - members: Optional[conlist(ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner)] = None + members: Optional[Annotated[List[ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner], Field()]] = None __properties = ["schemas", "displayName", "members"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response.py b/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response.py index 9f283e8..3cbbc8a 100644 --- a/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response.py +++ b/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_scim_scim_tokens_get200_response_scim_tokens_inner import ApiV1ScimScimTokensGet200ResponseScimTokensInner +from typing_extensions import Annotated class ApiV1ScimScimTokensGet200Response(BaseModel): """ ApiV1ScimScimTokensGet200Response """ - scim_tokens: conlist(ApiV1ScimScimTokensGet200ResponseScimTokensInner) = Field(default=..., alias="scimTokens") + scim_tokens: Annotated[List[ApiV1ScimScimTokensGet200ResponseScimTokensInner], Field()] = Field(default=..., alias="scimTokens") __properties = ["scimTokens"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response_scim_tokens_inner.py b/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response_scim_tokens_inner.py index 8b03821..d333d7f 100644 --- a/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response_scim_tokens_inner.py +++ b/infisicalapi_client/models/api_v1_scim_scim_tokens_get200_response_scim_tokens_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1ScimScimTokensGet200ResponseScimTokensInner(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1ScimScimTokensGet200ResponseScimTokensInner(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "ttlDays", "description", "orgId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_scim_tokens_post200_response.py b/infisicalapi_client/models/api_v1_scim_scim_tokens_post200_response.py index 443ef47..1ff3e73 100644 --- a/infisicalapi_client/models/api_v1_scim_scim_tokens_post200_response.py +++ b/infisicalapi_client/models/api_v1_scim_scim_tokens_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ScimScimTokensPost200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1ScimScimTokensPost200Response(BaseModel): """ scim_token: StrictStr = Field(default=..., alias="scimToken") __properties = ["scimToken"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_scim_tokens_post_request.py b/infisicalapi_client/models/api_v1_scim_scim_tokens_post_request.py index 3d491a1..be57d36 100644 --- a/infisicalapi_client/models/api_v1_scim_scim_tokens_post_request.py +++ b/infisicalapi_client/models/api_v1_scim_scim_tokens_post_request.py @@ -19,7 +19,8 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1ScimScimTokensPostRequest(BaseModel): """ @@ -27,13 +28,9 @@ class ApiV1ScimScimTokensPostRequest(BaseModel): """ organization_id: StrictStr = Field(default=..., alias="organizationId") description: Optional[StrictStr] = '' - ttl_days: Optional[Union[confloat(ge=0, strict=True), conint(ge=0, strict=True)]] = Field(default=0, alias="ttlDays") + ttl_days: Optional[Union[Annotated[float, Field(ge=0, strict=True)], Annotated[int, Field(ge=0, strict=True)]]] = Field(default=0, alias="ttlDays") __properties = ["organizationId", "description", "ttlDays"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_scim_tokens_scim_token_id_delete200_response.py b/infisicalapi_client/models/api_v1_scim_scim_tokens_scim_token_id_delete200_response.py index 510abce..9228d35 100644 --- a/infisicalapi_client/models/api_v1_scim_scim_tokens_scim_token_id_delete200_response.py +++ b/infisicalapi_client/models/api_v1_scim_scim_tokens_scim_token_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_scim_scim_tokens_get200_response_scim_tokens_inner import ApiV1ScimScimTokensGet200ResponseScimTokensInner class ApiV1ScimScimTokensScimTokenIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1ScimScimTokensScimTokenIdDelete200Response(BaseModel): """ scim_token: ApiV1ScimScimTokensGet200ResponseScimTokensInner = Field(default=..., alias="scimToken") __properties = ["scimToken"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_get200_response.py b/infisicalapi_client/models/api_v1_scim_users_get200_response.py index 73dcbb0..ac63cdc 100644 --- a/infisicalapi_client/models/api_v1_scim_users_get200_response.py +++ b/infisicalapi_client/models/api_v1_scim_users_get200_response.py @@ -19,24 +19,21 @@ from typing import List, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner import ApiV1ScimUsersGet200ResponseResourcesInner +from typing_extensions import Annotated class ApiV1ScimUsersGet200Response(BaseModel): """ ApiV1ScimUsersGet200Response """ - resources: conlist(ApiV1ScimUsersGet200ResponseResourcesInner) = Field(default=..., alias="Resources") + resources: Annotated[List[ApiV1ScimUsersGet200ResponseResourcesInner], Field()] = Field(default=..., alias="Resources") items_per_page: Union[StrictFloat, StrictInt] = Field(default=..., alias="itemsPerPage") - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) start_index: Union[StrictFloat, StrictInt] = Field(default=..., alias="startIndex") total_results: Union[StrictFloat, StrictInt] = Field(default=..., alias="totalResults") __properties = ["Resources", "itemsPerPage", "schemas", "startIndex", "totalResults"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner.py b/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner.py index dd21ad8..11c9ab7 100644 --- a/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner.py +++ b/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner.py @@ -19,9 +19,10 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_emails_inner import ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_name import ApiV1ScimUsersGet200ResponseResourcesInnerName +from typing_extensions import Annotated class ApiV1ScimUsersGet200ResponseResourcesInner(BaseModel): """ @@ -30,15 +31,11 @@ class ApiV1ScimUsersGet200ResponseResourcesInner(BaseModel): id: StrictStr = Field(...) user_name: StrictStr = Field(default=..., alias="userName") name: ApiV1ScimUsersGet200ResponseResourcesInnerName = Field(...) - emails: conlist(ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner) = Field(...) + emails: Annotated[List[ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner], Field()] = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") active: StrictBool = Field(...) __properties = ["id", "userName", "name", "emails", "displayName", "active"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_emails_inner.py b/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_emails_inner.py index be29b1e..7b68fb9 100644 --- a/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_emails_inner.py +++ b/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_emails_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner(BaseModel): value: StrictStr = Field(...) type: StrictStr = Field(...) __properties = ["primary", "value", "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/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_name.py b/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_name.py index 8856f29..436171c 100644 --- a/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_name.py +++ b/infisicalapi_client/models/api_v1_scim_users_get200_response_resources_inner_name.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ScimUsersGet200ResponseResourcesInnerName(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1ScimUsersGet200ResponseResourcesInnerName(BaseModel): family_name: StrictStr = Field(default=..., alias="familyName") given_name: StrictStr = Field(default=..., alias="givenName") __properties = ["familyName", "givenName"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response.py b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response.py index 9c9941d..ef92549 100644 --- a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response.py +++ b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response.py @@ -19,29 +19,26 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_emails_inner import ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_name import ApiV1ScimUsersGet200ResponseResourcesInnerName from infisicalapi_client.models.api_v1_scim_users_org_membership_id_get201_response_groups_inner import ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner +from typing_extensions import Annotated class ApiV1ScimUsersOrgMembershipIdGet201Response(BaseModel): """ ApiV1ScimUsersOrgMembershipIdGet201Response """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) id: StrictStr = Field(...) user_name: StrictStr = Field(default=..., alias="userName") name: ApiV1ScimUsersGet200ResponseResourcesInnerName = Field(...) - emails: conlist(ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner) = Field(...) + emails: Annotated[List[ApiV1ScimUsersGet200ResponseResourcesInnerEmailsInner], Field()] = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") active: StrictBool = Field(...) - groups: conlist(ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner) = Field(...) + groups: Annotated[List[ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner], Field()] = Field(...) __properties = ["schemas", "id", "userName", "name", "emails", "displayName", "active", "groups"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response_groups_inner.py b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response_groups_inner.py index 055fd65..8a0fa87 100644 --- a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response_groups_inner.py +++ b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_get201_response_groups_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner(BaseModel): value: StrictStr = Field(...) display: StrictStr = Field(...) __properties = ["value", "display"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put200_response.py b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put200_response.py index 7cc38f2..e89a9c9 100644 --- a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put200_response.py +++ b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put200_response.py @@ -19,29 +19,26 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_name import ApiV1ScimUsersGet200ResponseResourcesInnerName from infisicalapi_client.models.api_v1_scim_users_org_membership_id_get201_response_groups_inner import ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner from infisicalapi_client.models.api_v1_scim_users_post_request_emails_inner import ApiV1ScimUsersPostRequestEmailsInner +from typing_extensions import Annotated class ApiV1ScimUsersOrgMembershipIdPut200Response(BaseModel): """ ApiV1ScimUsersOrgMembershipIdPut200Response """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) id: StrictStr = Field(...) user_name: StrictStr = Field(default=..., alias="userName") name: ApiV1ScimUsersGet200ResponseResourcesInnerName = Field(...) - emails: conlist(ApiV1ScimUsersPostRequestEmailsInner) = Field(...) + emails: Annotated[List[ApiV1ScimUsersPostRequestEmailsInner], Field()] = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") active: StrictBool = Field(...) - groups: conlist(ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner) = Field(...) + groups: Annotated[List[ApiV1ScimUsersOrgMembershipIdGet201ResponseGroupsInner], Field()] = Field(...) __properties = ["schemas", "id", "userName", "name", "emails", "displayName", "active", "groups"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put_request.py b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put_request.py index 0ffa396..33f7ca0 100644 --- a/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put_request.py +++ b/infisicalapi_client/models/api_v1_scim_users_org_membership_id_put_request.py @@ -19,25 +19,22 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_name import ApiV1ScimUsersGet200ResponseResourcesInnerName +from typing_extensions import Annotated class ApiV1ScimUsersOrgMembershipIdPutRequest(BaseModel): """ ApiV1ScimUsersOrgMembershipIdPutRequest """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) id: StrictStr = Field(...) user_name: StrictStr = Field(default=..., alias="userName") name: ApiV1ScimUsersGet200ResponseResourcesInnerName = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") active: StrictBool = Field(...) __properties = ["schemas", "id", "userName", "name", "displayName", "active"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_post200_response.py b/infisicalapi_client/models/api_v1_scim_users_post200_response.py index c1a746c..927daf3 100644 --- a/infisicalapi_client/models/api_v1_scim_users_post200_response.py +++ b/infisicalapi_client/models/api_v1_scim_users_post200_response.py @@ -19,27 +19,24 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_name import ApiV1ScimUsersGet200ResponseResourcesInnerName from infisicalapi_client.models.api_v1_scim_users_post_request_emails_inner import ApiV1ScimUsersPostRequestEmailsInner +from typing_extensions import Annotated class ApiV1ScimUsersPost200Response(BaseModel): """ ApiV1ScimUsersPost200Response """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) id: StrictStr = Field(...) user_name: StrictStr = Field(default=..., alias="userName") name: ApiV1ScimUsersGet200ResponseResourcesInnerName = Field(...) - emails: conlist(ApiV1ScimUsersPostRequestEmailsInner) = Field(...) + emails: Annotated[List[ApiV1ScimUsersPostRequestEmailsInner], Field()] = Field(...) display_name: StrictStr = Field(default=..., alias="displayName") active: StrictBool = Field(...) __properties = ["schemas", "id", "userName", "name", "emails", "displayName", "active"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_post_request.py b/infisicalapi_client/models/api_v1_scim_users_post_request.py index fdd94b3..318e7f0 100644 --- a/infisicalapi_client/models/api_v1_scim_users_post_request.py +++ b/infisicalapi_client/models/api_v1_scim_users_post_request.py @@ -19,25 +19,22 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_scim_users_get200_response_resources_inner_name import ApiV1ScimUsersGet200ResponseResourcesInnerName from infisicalapi_client.models.api_v1_scim_users_post_request_emails_inner import ApiV1ScimUsersPostRequestEmailsInner +from typing_extensions import Annotated class ApiV1ScimUsersPostRequest(BaseModel): """ ApiV1ScimUsersPostRequest """ - schemas: conlist(StrictStr) = Field(...) + schemas: Annotated[List[StrictStr], Field()] = Field(...) user_name: StrictStr = Field(default=..., alias="userName") name: ApiV1ScimUsersGet200ResponseResourcesInnerName = Field(...) - emails: Optional[conlist(ApiV1ScimUsersPostRequestEmailsInner)] = None + emails: Optional[Annotated[List[ApiV1ScimUsersPostRequestEmailsInner], Field()]] = None active: StrictBool = Field(...) __properties = ["schemas", "userName", "name", "emails", "active"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_scim_users_post_request_emails_inner.py b/infisicalapi_client/models/api_v1_scim_users_post_request_emails_inner.py index e5f24eb..6af4b4c 100644 --- a/infisicalapi_client/models/api_v1_scim_users_post_request_emails_inner.py +++ b/infisicalapi_client/models/api_v1_scim_users_post_request_emails_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1ScimUsersPostRequestEmailsInner(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1ScimUsersPostRequestEmailsInner(BaseModel): value: StrictStr = Field(...) type: StrictStr = Field(...) __properties = ["primary", "value", "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/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response.py b/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response.py index 8f4313d..2076c38 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approval_requests_count_get200_response_approvals import ApiV1SecretApprovalRequestsCountGet200ResponseApprovals class ApiV1SecretApprovalRequestsCountGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretApprovalRequestsCountGet200Response(BaseModel): """ approvals: ApiV1SecretApprovalRequestsCountGet200ResponseApprovals = Field(...) __properties = ["approvals"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response_approvals.py b/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response_approvals.py index 4a0c360..e29cc93 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response_approvals.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_count_get200_response_approvals.py @@ -19,7 +19,7 @@ from typing import Optional, Union -from pydantic import BaseModel, StrictFloat, StrictInt +from pydantic import ConfigDict, BaseModel, StrictFloat, StrictInt class ApiV1SecretApprovalRequestsCountGet200ResponseApprovals(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1SecretApprovalRequestsCountGet200ResponseApprovals(BaseModel): open: Optional[Union[StrictFloat, StrictInt]] = 0 closed: Optional[Union[StrictFloat, StrictInt]] = 0 __properties = ["open", "closed"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response.py b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response.py index 3fe33ca..ead51b8 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approval_requests_get200_response_approvals_inner import ApiV1SecretApprovalRequestsGet200ResponseApprovalsInner +from typing_extensions import Annotated class ApiV1SecretApprovalRequestsGet200Response(BaseModel): """ ApiV1SecretApprovalRequestsGet200Response """ - approvals: conlist(ApiV1SecretApprovalRequestsGet200ResponseApprovalsInner) = Field(...) + approvals: Annotated[List[ApiV1SecretApprovalRequestsGet200ResponseApprovalsInner], Field()] = Field(...) __properties = ["approvals"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner.py b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner.py index 9ab8bad..2423a57 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner.py @@ -19,11 +19,12 @@ from datetime import datetime from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_secret_approval_requests_get200_response_approvals_inner_commits_inner import ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitsInner from infisicalapi_client.models.api_v1_secret_approval_requests_get200_response_approvals_inner_committer_user import ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser from infisicalapi_client.models.api_v1_secret_approval_requests_get200_response_approvals_inner_policy import ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerPolicy from infisicalapi_client.models.api_v1_secret_approval_requests_get200_response_approvals_inner_reviewers_inner import ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerReviewersInner +from typing_extensions import Annotated class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInner(BaseModel): """ @@ -44,16 +45,12 @@ class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInner(BaseModel): bypass_reason: Optional[StrictStr] = Field(default=None, alias="bypassReason") policy: ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerPolicy = Field(...) committer_user: ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser = Field(default=..., alias="committerUser") - commits: conlist(ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitsInner) = Field(...) + commits: Annotated[List[ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitsInner], Field()] = Field(...) environment: StrictStr = Field(...) - reviewers: conlist(ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerReviewersInner) = Field(...) - approvers: conlist(StrictStr) = Field(...) + reviewers: Annotated[List[ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerReviewersInner], Field()] = Field(...) + approvers: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["id", "policyId", "hasMerged", "status", "conflicts", "slug", "folderId", "createdAt", "updatedAt", "isReplicated", "committerUserId", "statusChangedByUserId", "bypassReason", "policy", "committerUser", "commits", "environment", "reviewers", "approvers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_commits_inner.py b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_commits_inner.py index eab7cdd..236afcb 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_commits_inner.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_commits_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitsInner(BaseMo op: StrictStr = Field(...) secret_id: Optional[StrictStr] = Field(default=None, alias="secretId") __properties = ["op", "secretId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_committer_user.py b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_committer_user.py index 6fa7836..5cdddbc 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_committer_user.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_committer_user.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser(BaseM last_name: Optional[StrictStr] = Field(default=None, alias="lastName") username: StrictStr = Field(...) __properties = ["userId", "email", "firstName", "lastName", "username"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_policy.py b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_policy.py index 848b776..3d5fe2d 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_policy.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_policy.py @@ -19,7 +19,8 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerPolicy(BaseModel): """ @@ -28,15 +29,11 @@ class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerPolicy(BaseModel): id: StrictStr = Field(...) name: StrictStr = Field(...) approvals: Union[StrictFloat, StrictInt] = Field(...) - approvers: conlist(StrictStr) = Field(...) + approvers: Annotated[List[StrictStr], Field()] = Field(...) secret_path: Optional[StrictStr] = Field(default=None, alias="secretPath") enforcement_level: StrictStr = Field(default=..., alias="enforcementLevel") __properties = ["id", "name", "approvals", "approvers", "secretPath", "enforcementLevel"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_reviewers_inner.py b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_reviewers_inner.py index 7696b4c..edfb173 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_reviewers_inner.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_get200_response_approvals_inner_reviewers_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerReviewersInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerReviewersInner(Base user_id: StrictStr = Field(default=..., alias="userId") status: StrictStr = Field(...) __properties = ["userId", "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/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response.py index ca2e39b..1ca0b8b 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approval_requests_id_get200_response_approval import ApiV1SecretApprovalRequestsIdGet200ResponseApproval class ApiV1SecretApprovalRequestsIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretApprovalRequestsIdGet200Response(BaseModel): """ approval: ApiV1SecretApprovalRequestsIdGet200ResponseApproval = Field(...) __properties = ["approval"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval.py index e88fea5..5b7f096 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval.py @@ -19,11 +19,12 @@ from datetime import datetime from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_secret_approval_requests_get200_response_approvals_inner_committer_user import ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser from infisicalapi_client.models.api_v1_secret_approval_requests_id_get200_response_approval_commits_inner import ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInner from infisicalapi_client.models.api_v1_secret_approval_requests_id_get200_response_approval_policy import ApiV1SecretApprovalRequestsIdGet200ResponseApprovalPolicy from infisicalapi_client.models.api_v1_secret_approval_requests_id_get200_response_approval_reviewers_inner import ApiV1SecretApprovalRequestsIdGet200ResponseApprovalReviewersInner +from typing_extensions import Annotated class ApiV1SecretApprovalRequestsIdGet200ResponseApproval(BaseModel): """ @@ -46,15 +47,11 @@ class ApiV1SecretApprovalRequestsIdGet200ResponseApproval(BaseModel): environment: StrictStr = Field(...) status_changed_by_user: Optional[ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser] = Field(default=None, alias="statusChangedByUser") committer_user: ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser = Field(default=..., alias="committerUser") - reviewers: conlist(ApiV1SecretApprovalRequestsIdGet200ResponseApprovalReviewersInner) = Field(...) + reviewers: Annotated[List[ApiV1SecretApprovalRequestsIdGet200ResponseApprovalReviewersInner], Field()] = Field(...) secret_path: StrictStr = Field(default=..., alias="secretPath") - commits: conlist(ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInner) = Field(...) + commits: Annotated[List[ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInner], Field()] = Field(...) __properties = ["id", "policyId", "hasMerged", "status", "conflicts", "slug", "folderId", "createdAt", "updatedAt", "isReplicated", "committerUserId", "statusChangedByUserId", "bypassReason", "policy", "environment", "statusChangedByUser", "committerUser", "reviewers", "secretPath", "commits"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner.py index 18cb454..d0cb888 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner.py @@ -19,10 +19,11 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret import ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecret from infisicalapi_client.models.api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret_version import ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecretVersion from infisicalapi_client.models.api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner_tags_inner import ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner +from typing_extensions import Annotated class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInner(BaseModel): """ @@ -39,15 +40,11 @@ class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInner(BaseModel) created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") op: StrictStr = Field(...) - tags: Optional[conlist(ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner)] = None + tags: Optional[Annotated[List[ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner], Field()]] = None secret: Optional[ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecret] = None secret_version: Optional[ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecretVersion] = Field(default=None, alias="secretVersion") __properties = ["id", "secretKey", "secretValue", "secretComment", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "metadata", "createdAt", "updatedAt", "op", "tags", "secret", "secretVersion"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret.py index feea971..c1ebeed 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret.py @@ -19,7 +19,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecret(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecret(Base secret_value: Optional[StrictStr] = Field(default=None, alias="secretValue") secret_comment: Optional[StrictStr] = Field(default=None, alias="secretComment") __properties = ["id", "version", "secretKey", "secretValue", "secretComment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret_version.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret_version.py index 6072748..e1552fc 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret_version.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_commits_inner_secret_version.py @@ -19,8 +19,9 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner_tags_inner import ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner +from typing_extensions import Annotated class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecretVersion(BaseModel): """ @@ -31,13 +32,9 @@ class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalCommitsInnerSecretVersi secret_key: StrictStr = Field(default=..., alias="secretKey") secret_value: Optional[StrictStr] = Field(default=None, alias="secretValue") secret_comment: Optional[StrictStr] = Field(default=None, alias="secretComment") - tags: Optional[conlist(ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner)] = None + tags: Optional[Annotated[List[ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner], Field()]] = None __properties = ["id", "version", "secretKey", "secretValue", "secretComment", "tags"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_policy.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_policy.py index 9c59cbe..bf3b27f 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_policy.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_policy.py @@ -19,8 +19,9 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approval_requests_get200_response_approvals_inner_committer_user import ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser +from typing_extensions import Annotated class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalPolicy(BaseModel): """ @@ -29,15 +30,11 @@ class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalPolicy(BaseModel): id: StrictStr = Field(...) name: StrictStr = Field(...) approvals: Union[StrictFloat, StrictInt] = Field(...) - approvers: conlist(ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser) = Field(...) + approvers: Annotated[List[ApiV1SecretApprovalRequestsGet200ResponseApprovalsInnerCommitterUser], Field()] = Field(...) secret_path: Optional[StrictStr] = Field(default=None, alias="secretPath") enforcement_level: StrictStr = Field(default=..., alias="enforcementLevel") __properties = ["id", "name", "approvals", "approvers", "secretPath", "enforcementLevel"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_reviewers_inner.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_reviewers_inner.py index ecbaf38..85d60b2 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_reviewers_inner.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_get200_response_approval_reviewers_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalReviewersInner(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1SecretApprovalRequestsIdGet200ResponseApprovalReviewersInner(BaseMode username: StrictStr = Field(...) status: StrictStr = Field(...) __properties = ["userId", "email", "firstName", "lastName", "username", "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/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response.py index 8e80f17..10ac208 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approval_requests_id_merge_post200_response_approval import ApiV1SecretApprovalRequestsIdMergePost200ResponseApproval class ApiV1SecretApprovalRequestsIdMergePost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretApprovalRequestsIdMergePost200Response(BaseModel): """ approval: ApiV1SecretApprovalRequestsIdMergePost200ResponseApproval = Field(...) __properties = ["approval"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response_approval.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response_approval.py index 1dd36dc..230c71a 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response_approval.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post200_response_approval.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1SecretApprovalRequestsIdMergePost200ResponseApproval(BaseModel): """ @@ -39,11 +39,7 @@ class ApiV1SecretApprovalRequestsIdMergePost200ResponseApproval(BaseModel): status_changed_by_user_id: Optional[StrictStr] = Field(default=None, alias="statusChangedByUserId") bypass_reason: Optional[StrictStr] = Field(default=None, alias="bypassReason") __properties = ["id", "policyId", "hasMerged", "status", "conflicts", "slug", "folderId", "createdAt", "updatedAt", "isReplicated", "committerUserId", "statusChangedByUserId", "bypassReason"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post_request.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post_request.py index dd56708..b2130f1 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_merge_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsIdMergePostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1SecretApprovalRequestsIdMergePostRequest(BaseModel): """ bypass_reason: Optional[StrictStr] = Field(default=None, alias="bypassReason") __properties = ["bypassReason"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response.py index 0750056..af15309 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approval_requests_id_review_post200_response_review import ApiV1SecretApprovalRequestsIdReviewPost200ResponseReview class ApiV1SecretApprovalRequestsIdReviewPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretApprovalRequestsIdReviewPost200Response(BaseModel): """ review: ApiV1SecretApprovalRequestsIdReviewPost200ResponseReview = Field(...) __properties = ["review"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response_review.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response_review.py index 90b61ef..4628234 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response_review.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post200_response_review.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsIdReviewPost200ResponseReview(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1SecretApprovalRequestsIdReviewPost200ResponseReview(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") reviewer_user_id: StrictStr = Field(default=..., alias="reviewerUserId") __properties = ["id", "status", "requestId", "createdAt", "updatedAt", "reviewerUserId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post_request.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post_request.py index aab053d..c6d99b9 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_review_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsIdReviewPostRequest(BaseModel): """ @@ -28,17 +28,14 @@ class ApiV1SecretApprovalRequestsIdReviewPostRequest(BaseModel): status: StrictStr = Field(...) __properties = ["status"] - @validator('status') + @field_validator('status') + @classmethod def status_validate_enum(cls, value): """Validates the enum""" if value not in ('approved', 'rejected'): raise ValueError("must be one of enum values ('approved', 'rejected')") 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/infisicalapi_client/models/api_v1_secret_approval_requests_id_status_post_request.py b/infisicalapi_client/models/api_v1_secret_approval_requests_id_status_post_request.py index 00fcb53..8ee7ebc 100644 --- a/infisicalapi_client/models/api_v1_secret_approval_requests_id_status_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_approval_requests_id_status_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalRequestsIdStatusPostRequest(BaseModel): """ @@ -28,17 +28,14 @@ class ApiV1SecretApprovalRequestsIdStatusPostRequest(BaseModel): status: StrictStr = Field(...) __properties = ["status"] - @validator('status') + @field_validator('status') + @classmethod def status_validate_enum(cls, value): """Validates the enum""" if value not in ('open', 'close'): raise ValueError("must be one of enum values ('open', 'close')") 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/infisicalapi_client/models/api_v1_secret_approvals_board_get200_response.py b/infisicalapi_client/models/api_v1_secret_approvals_board_get200_response.py index 65de3b0..466492d 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_board_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_board_get200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner import ApiV1SecretApprovalsGet200ResponseApprovalsInner class ApiV1SecretApprovalsBoardGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretApprovalsBoardGet200Response(BaseModel): """ policy: Optional[ApiV1SecretApprovalsGet200ResponseApprovalsInner] = None __properties = ["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/infisicalapi_client/models/api_v1_secret_approvals_get200_response.py b/infisicalapi_client/models/api_v1_secret_approvals_get200_response.py index 59f6c8f..7d32aff 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner import ApiV1SecretApprovalsGet200ResponseApprovalsInner +from typing_extensions import Annotated class ApiV1SecretApprovalsGet200Response(BaseModel): """ ApiV1SecretApprovalsGet200Response """ - approvals: conlist(ApiV1SecretApprovalsGet200ResponseApprovalsInner) = Field(...) + approvals: Annotated[List[ApiV1SecretApprovalsGet200ResponseApprovalsInner], Field()] = Field(...) __properties = ["approvals"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner.py b/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner.py index c8effae..c1b07d3 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner.py @@ -19,9 +19,10 @@ from datetime import datetime from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_user_approvers_inner import ApiV1SecretApprovalsGet200ResponseApprovalsInnerUserApproversInner +from typing_extensions import Annotated class ApiV1SecretApprovalsGet200ResponseApprovalsInner(BaseModel): """ @@ -37,13 +38,9 @@ class ApiV1SecretApprovalsGet200ResponseApprovalsInner(BaseModel): enforcement_level: Optional[StrictStr] = Field(default='hard', alias="enforcementLevel") environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) project_id: StrictStr = Field(default=..., alias="projectId") - user_approvers: conlist(ApiV1SecretApprovalsGet200ResponseApprovalsInnerUserApproversInner) = Field(default=..., alias="userApprovers") + user_approvers: Annotated[List[ApiV1SecretApprovalsGet200ResponseApprovalsInnerUserApproversInner], Field()] = Field(default=..., alias="userApprovers") __properties = ["id", "name", "secretPath", "approvals", "envId", "createdAt", "updatedAt", "enforcementLevel", "environment", "projectId", "userApprovers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_environment.py b/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_environment.py index 6cd3a6c..df4d7e5 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_environment.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_environment.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment(BaseModel): name: StrictStr = Field(...) slug: StrictStr = Field(...) __properties = ["id", "name", "slug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_user_approvers_inner.py b/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_user_approvers_inner.py index e4064ec..75f3e17 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_user_approvers_inner.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_get200_response_approvals_inner_user_approvers_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretApprovalsGet200ResponseApprovalsInnerUserApproversInner(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1SecretApprovalsGet200ResponseApprovalsInnerUserApproversInner(BaseMod """ user_id: StrictStr = Field(default=..., alias="userId") __properties = ["userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approvals_post200_response.py b/infisicalapi_client/models/api_v1_secret_approvals_post200_response.py index 78c500c..87c0f46 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approvals_post200_response_approval import ApiV1SecretApprovalsPost200ResponseApproval class ApiV1SecretApprovalsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretApprovalsPost200Response(BaseModel): """ approval: ApiV1SecretApprovalsPost200ResponseApproval = Field(...) __properties = ["approval"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approvals_post200_response_approval.py b/infisicalapi_client/models/api_v1_secret_approvals_post200_response_approval.py index 21da4e7..d3902c0 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_post200_response_approval.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_post200_response_approval.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment class ApiV1SecretApprovalsPost200ResponseApproval(BaseModel): @@ -37,11 +37,7 @@ class ApiV1SecretApprovalsPost200ResponseApproval(BaseModel): environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) project_id: StrictStr = Field(default=..., alias="projectId") __properties = ["id", "name", "secretPath", "approvals", "envId", "createdAt", "updatedAt", "enforcementLevel", "environment", "projectId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_approvals_post_request.py b/infisicalapi_client/models/api_v1_secret_approvals_post_request.py index 5cd5b24..c4af1cc 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_post_request.py @@ -19,7 +19,8 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1SecretApprovalsPostRequest(BaseModel): """ @@ -29,12 +30,13 @@ class ApiV1SecretApprovalsPostRequest(BaseModel): name: Optional[StrictStr] = None environment: StrictStr = Field(...) secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath") - approvers: conlist(StrictStr, min_items=1) = Field(...) - approvals: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = 1 + approvers: Annotated[List[StrictStr], Field(min_length=1)] = Field(...) + approvals: Optional[Union[Annotated[float, Field(ge=1, strict=True)], Annotated[int, Field(ge=1, strict=True)]]] = 1 enforcement_level: Optional[StrictStr] = Field(default='hard', alias="enforcementLevel") __properties = ["workspaceId", "name", "environment", "secretPath", "approvers", "approvals", "enforcementLevel"] - @validator('enforcement_level') + @field_validator('enforcement_level') + @classmethod def enforcement_level_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -43,11 +45,7 @@ def enforcement_level_validate_enum(cls, value): if value not in ('hard', 'soft'): raise ValueError("must be one of enum values ('hard', 'soft')") 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/infisicalapi_client/models/api_v1_secret_approvals_sap_id_patch_request.py b/infisicalapi_client/models/api_v1_secret_approvals_sap_id_patch_request.py index 132810c..d039945 100644 --- a/infisicalapi_client/models/api_v1_secret_approvals_sap_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_secret_approvals_sap_id_patch_request.py @@ -19,20 +19,22 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1SecretApprovalsSapIdPatchRequest(BaseModel): """ ApiV1SecretApprovalsSapIdPatchRequest """ name: Optional[StrictStr] = None - approvers: conlist(StrictStr, min_items=1) = Field(...) - approvals: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = 1 + approvers: Annotated[List[StrictStr], Field(min_length=1)] = Field(...) + approvals: Optional[Union[Annotated[float, Field(ge=1, strict=True)], Annotated[int, Field(ge=1, strict=True)]]] = 1 secret_path: Optional[StrictStr] = Field(default=None, alias="secretPath") enforcement_level: Optional[StrictStr] = Field(default=None, alias="enforcementLevel") __properties = ["name", "approvers", "approvals", "secretPath", "enforcementLevel"] - @validator('enforcement_level') + @field_validator('enforcement_level') + @classmethod def enforcement_level_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,11 +43,7 @@ def enforcement_level_validate_enum(cls, value): if value not in ('hard', 'soft'): raise ValueError("must be one of enum values ('hard', 'soft')") 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/infisicalapi_client/models/api_v1_secret_imports_get200_response.py b/infisicalapi_client/models/api_v1_secret_imports_get200_response.py index b3fb09c..1884975 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_imports_get200_response.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_imports_get200_response_secret_imports_inner import ApiV1SecretImportsGet200ResponseSecretImportsInner +from typing_extensions import Annotated class ApiV1SecretImportsGet200Response(BaseModel): """ ApiV1SecretImportsGet200Response """ message: StrictStr = Field(...) - secret_imports: conlist(ApiV1SecretImportsGet200ResponseSecretImportsInner) = Field(default=..., alias="secretImports") + secret_imports: Annotated[List[ApiV1SecretImportsGet200ResponseSecretImportsInner], Field()] = Field(default=..., alias="secretImports") __properties = ["message", "secretImports"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner.py b/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner.py index faa88e4..2976629 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner.py +++ b/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_imports_get200_response_secret_imports_inner_import_env import ApiV1SecretImportsGet200ResponseSecretImportsInnerImportEnv class ApiV1SecretImportsGet200ResponseSecretImportsInner(BaseModel): @@ -40,11 +40,7 @@ class ApiV1SecretImportsGet200ResponseSecretImportsInner(BaseModel): is_reserved: Optional[StrictBool] = Field(default=False, alias="isReserved") import_env: ApiV1SecretImportsGet200ResponseSecretImportsInnerImportEnv = Field(default=..., alias="importEnv") __properties = ["id", "version", "importPath", "position", "createdAt", "updatedAt", "folderId", "isReplication", "isReplicationSuccess", "replicationStatus", "lastReplicated", "isReserved", "importEnv"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner_import_env.py b/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner_import_env.py index e51b206..a53699d 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner_import_env.py +++ b/infisicalapi_client/models/api_v1_secret_imports_get200_response_secret_imports_inner_import_env.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretImportsGet200ResponseSecretImportsInnerImportEnv(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretImportsGet200ResponseSecretImportsInnerImportEnv(BaseModel): slug: StrictStr = Field(...) id: StrictStr = Field(...) __properties = ["name", "slug", "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/infisicalapi_client/models/api_v1_secret_imports_post200_response.py b/infisicalapi_client/models/api_v1_secret_imports_post200_response.py index 8c2eed1..9c8aec7 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_imports_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_imports_get200_response_secret_imports_inner import ApiV1SecretImportsGet200ResponseSecretImportsInner class ApiV1SecretImportsPost200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV1SecretImportsPost200Response(BaseModel): message: StrictStr = Field(...) secret_import: ApiV1SecretImportsGet200ResponseSecretImportsInner = Field(default=..., alias="secretImport") __properties = ["message", "secretImport"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_post_request.py b/infisicalapi_client/models/api_v1_secret_imports_post_request.py index 712b52c..32f5f61 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_imports_post_request.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 infisicalapi_client.models.api_v1_secret_imports_post_request_import import ApiV1SecretImportsPostRequestImport class ApiV1SecretImportsPostRequest(BaseModel): @@ -32,11 +32,7 @@ class ApiV1SecretImportsPostRequest(BaseModel): var_import: ApiV1SecretImportsPostRequestImport = Field(default=..., alias="import") is_replication: Optional[StrictBool] = Field(default=False, alias="isReplication", description="When true, secrets from the source will be automatically sent to the destination. If approval policies exist at the destination, the secrets will be sent as approval requests instead of being applied immediately.") __properties = ["workspaceId", "environment", "path", "import", "isReplication"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_post_request_import.py b/infisicalapi_client/models/api_v1_secret_imports_post_request_import.py index 3f6d0af..a7b04b6 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_post_request_import.py +++ b/infisicalapi_client/models/api_v1_secret_imports_post_request_import.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretImportsPostRequestImport(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1SecretImportsPostRequestImport(BaseModel): environment: StrictStr = Field(default=..., description="The slug of the environment to import from.") path: StrictStr = Field(default=..., description="The path to import from.") __properties = ["environment", "path"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_delete_request.py b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_delete_request.py index ac7ad3f..8115537 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_delete_request.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_delete_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretImportsSecretImportIdDeleteRequest(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretImportsSecretImportIdDeleteRequest(BaseModel): environment: StrictStr = Field(default=..., description="The slug of the environment where the secret import is located.") path: Optional[StrictStr] = Field(default='/', description="The path of the secret import to delete.") __properties = ["workspaceId", "environment", "path"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request.py b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request.py index a37d156..32cceab 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_imports_secret_import_id_patch_request_import import ApiV1SecretImportsSecretImportIdPatchRequestImport class ApiV1SecretImportsSecretImportIdPatchRequest(BaseModel): @@ -31,11 +31,7 @@ class ApiV1SecretImportsSecretImportIdPatchRequest(BaseModel): path: Optional[StrictStr] = Field(default='/', description="The path of the secret import to update.") var_import: ApiV1SecretImportsSecretImportIdPatchRequestImport = Field(default=..., alias="import") __properties = ["workspaceId", "environment", "path", "import"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request_import.py b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request_import.py index 035cf7d..7949112 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request_import.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_patch_request_import.py @@ -19,7 +19,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1SecretImportsSecretImportIdPatchRequestImport(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretImportsSecretImportIdPatchRequestImport(BaseModel): path: Optional[StrictStr] = Field(default=None, description="The new path to import from.") position: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The new position of the secret import. The lowest number will be displayed as the first import.") __properties = ["environment", "path", "position"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_replication_resync_post_request.py b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_replication_resync_post_request.py index 4134c0d..ee3a52d 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_replication_resync_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secret_import_id_replication_resync_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretImportsSecretImportIdReplicationResyncPostRequest(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretImportsSecretImportIdReplicationResyncPostRequest(BaseModel): environment: StrictStr = Field(default=..., description="The slug of the environment where the secret import is located.") path: Optional[StrictStr] = Field(default='/', description="The path of the secret import to update.") __properties = ["workspaceId", "environment", "path"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response.py b/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response.py index 05749d7..656a990 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_imports_secrets_get200_response_secrets_inner import ApiV1SecretImportsSecretsGet200ResponseSecretsInner +from typing_extensions import Annotated class ApiV1SecretImportsSecretsGet200Response(BaseModel): """ ApiV1SecretImportsSecretsGet200Response """ - secrets: conlist(ApiV1SecretImportsSecretsGet200ResponseSecretsInner) = Field(...) + secrets: Annotated[List[ApiV1SecretImportsSecretsGet200ResponseSecretsInner], Field()] = Field(...) __properties = ["secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner.py b/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner.py index 0c8b1af..811df1f 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner.py @@ -19,9 +19,10 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment from infisicalapi_client.models.api_v1_secret_imports_secrets_get200_response_secrets_inner_secrets_inner import ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner +from typing_extensions import Annotated class ApiV1SecretImportsSecretsGet200ResponseSecretsInner(BaseModel): """ @@ -31,13 +32,9 @@ class ApiV1SecretImportsSecretsGet200ResponseSecretsInner(BaseModel): environment: StrictStr = Field(...) environment_info: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(default=..., alias="environmentInfo") folder_id: Optional[StrictStr] = Field(default=None, alias="folderId") - secrets: conlist(ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner) = Field(...) + secrets: Annotated[List[ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner], Field()] = Field(...) __properties = ["secretPath", "environment", "environmentInfo", "folderId", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner_secrets_inner.py b/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner_secrets_inner.py index 2c1510f..9add29b 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner_secrets_inner.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secrets_get200_response_secrets_inner_secrets_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner(BaseModel): """ @@ -48,11 +48,7 @@ class ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner(BaseModel) created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "version", "type", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "algorithm", "keyEncoding", "metadata", "userId", "folderId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response.py b/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response.py index 0742691..e4f625d 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_imports_secrets_raw_get200_response_secrets_inner import ApiV1SecretImportsSecretsRawGet200ResponseSecretsInner +from typing_extensions import Annotated class ApiV1SecretImportsSecretsRawGet200Response(BaseModel): """ ApiV1SecretImportsSecretsRawGet200Response """ - secrets: conlist(ApiV1SecretImportsSecretsRawGet200ResponseSecretsInner) = Field(...) + secrets: Annotated[List[ApiV1SecretImportsSecretsRawGet200ResponseSecretsInner], Field()] = Field(...) __properties = ["secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response_secrets_inner.py b/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response_secrets_inner.py index 153c42d..31919e2 100644 --- a/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response_secrets_inner.py +++ b/infisicalapi_client/models/api_v1_secret_imports_secrets_raw_get200_response_secrets_inner.py @@ -19,9 +19,10 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment from infisicalapi_client.models.api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner import ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner +from typing_extensions import Annotated class ApiV1SecretImportsSecretsRawGet200ResponseSecretsInner(BaseModel): """ @@ -31,13 +32,9 @@ class ApiV1SecretImportsSecretsRawGet200ResponseSecretsInner(BaseModel): environment: StrictStr = Field(...) environment_info: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(default=..., alias="environmentInfo") folder_id: Optional[StrictStr] = Field(default=None, alias="folderId") - secrets: conlist(ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner) = Field(...) + secrets: Annotated[List[ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner], Field()] = Field(...) __properties = ["secretPath", "environment", "environmentInfo", "folderId", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response.py b/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response.py index 90866b9..c6b1acf 100644 --- a/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_rotation_providers_workspace_id_get200_response_providers_inner import ApiV1SecretRotationProvidersWorkspaceIdGet200ResponseProvidersInner +from typing_extensions import Annotated class ApiV1SecretRotationProvidersWorkspaceIdGet200Response(BaseModel): """ ApiV1SecretRotationProvidersWorkspaceIdGet200Response """ - providers: conlist(ApiV1SecretRotationProvidersWorkspaceIdGet200ResponseProvidersInner) = Field(...) + providers: Annotated[List[ApiV1SecretRotationProvidersWorkspaceIdGet200ResponseProvidersInner], Field()] = Field(...) __properties = ["providers"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response_providers_inner.py b/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response_providers_inner.py index 4538861..bd598b2 100644 --- a/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response_providers_inner.py +++ b/infisicalapi_client/models/api_v1_secret_rotation_providers_workspace_id_get200_response_providers_inner.py @@ -19,7 +19,7 @@ from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretRotationProvidersWorkspaceIdGet200ResponseProvidersInner(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1SecretRotationProvidersWorkspaceIdGet200ResponseProvidersInner(BaseMo description: Optional[StrictStr] = None template: Optional[Any] = None __properties = ["name", "title", "image", "description", "template"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_get200_response.py b/infisicalapi_client/models/api_v1_secret_rotations_get200_response.py index 4700dfb..0a92ab2 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_rotations_get200_response_secret_rotations_inner import ApiV1SecretRotationsGet200ResponseSecretRotationsInner +from typing_extensions import Annotated class ApiV1SecretRotationsGet200Response(BaseModel): """ ApiV1SecretRotationsGet200Response """ - secret_rotations: conlist(ApiV1SecretRotationsGet200ResponseSecretRotationsInner) = Field(default=..., alias="secretRotations") + secret_rotations: Annotated[List[ApiV1SecretRotationsGet200ResponseSecretRotationsInner], Field()] = Field(default=..., alias="secretRotations") __properties = ["secretRotations"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner.py b/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner.py index 371c6b6..9d2458f 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner.py @@ -19,9 +19,10 @@ from datetime import datetime from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment from infisicalapi_client.models.api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner import ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInner +from typing_extensions import Annotated class ApiV1SecretRotationsGet200ResponseSecretRotationsInner(BaseModel): """ @@ -43,13 +44,9 @@ class ApiV1SecretRotationsGet200ResponseSecretRotationsInner(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) - outputs: conlist(ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInner) = Field(...) + outputs: Annotated[List[ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInner], Field()] = Field(...) __properties = ["id", "provider", "secretPath", "interval", "lastRotatedAt", "status", "statusMessage", "encryptedData", "encryptedDataIV", "encryptedDataTag", "algorithm", "keyEncoding", "envId", "createdAt", "updatedAt", "environment", "outputs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner.py b/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner.py index c427e56..c51b2ea 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner_secret import ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInnerSecret class ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInner(BaseModel): @@ -29,11 +29,7 @@ class ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInner(BaseMod key: StrictStr = Field(...) secret: ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInnerSecret = Field(...) __properties = ["key", "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/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner_secret.py b/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner_secret.py index 45a9362..892973a 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner_secret.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_get200_response_secret_rotations_inner_outputs_inner_secret.py @@ -19,7 +19,7 @@ from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInnerSecret(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretRotationsGet200ResponseSecretRotationsInnerOutputsInnerSecret(B id: StrictStr = Field(...) version: Union[StrictFloat, StrictInt] = Field(...) __properties = ["secretKey", "id", "version"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_post200_response.py b/infisicalapi_client/models/api_v1_secret_rotations_post200_response.py index ec6f768..6e8075c 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_rotations_post200_response_secret_rotation import ApiV1SecretRotationsPost200ResponseSecretRotation class ApiV1SecretRotationsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretRotationsPost200Response(BaseModel): """ secret_rotation: ApiV1SecretRotationsPost200ResponseSecretRotation = Field(default=..., alias="secretRotation") __properties = ["secretRotation"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation.py b/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation.py index a541196..ce1b438 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation.py @@ -19,9 +19,10 @@ from datetime import datetime from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment from infisicalapi_client.models.api_v1_secret_rotations_post200_response_secret_rotation_outputs_inner import ApiV1SecretRotationsPost200ResponseSecretRotationOutputsInner +from typing_extensions import Annotated class ApiV1SecretRotationsPost200ResponseSecretRotation(BaseModel): """ @@ -43,13 +44,9 @@ class ApiV1SecretRotationsPost200ResponseSecretRotation(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) - outputs: conlist(ApiV1SecretRotationsPost200ResponseSecretRotationOutputsInner) = Field(...) + outputs: Annotated[List[ApiV1SecretRotationsPost200ResponseSecretRotationOutputsInner], Field()] = Field(...) __properties = ["id", "provider", "secretPath", "interval", "lastRotatedAt", "status", "statusMessage", "encryptedData", "encryptedDataIV", "encryptedDataTag", "algorithm", "keyEncoding", "envId", "createdAt", "updatedAt", "environment", "outputs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation_outputs_inner.py b/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation_outputs_inner.py index 39843f6..486fc96 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation_outputs_inner.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_post200_response_secret_rotation_outputs_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretRotationsPost200ResponseSecretRotationOutputsInner(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV1SecretRotationsPost200ResponseSecretRotationOutputsInner(BaseModel): secret_id: StrictStr = Field(default=..., alias="secretId") rotation_id: StrictStr = Field(default=..., alias="rotationId") __properties = ["id", "key", "secretId", "rotationId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_post_request.py b/infisicalapi_client/models/api_v1_secret_rotations_post_request.py index b57b2ad..81bcdaa 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_post_request.py @@ -19,7 +19,8 @@ from typing import Any, Dict, Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1SecretRotationsPostRequest(BaseModel): """ @@ -28,17 +29,13 @@ class ApiV1SecretRotationsPostRequest(BaseModel): workspace_id: StrictStr = Field(default=..., alias="workspaceId") secret_path: StrictStr = Field(default=..., alias="secretPath") environment: StrictStr = Field(...) - interval: Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)] = Field(...) + interval: Union[Annotated[float, Field(ge=1, strict=True)], Annotated[int, Field(ge=1, strict=True)]] = Field(...) provider: StrictStr = Field(...) custom_provider: Optional[StrictStr] = Field(default=None, alias="customProvider") inputs: Dict[str, Any] = Field(...) outputs: Dict[str, StrictStr] = Field(...) __properties = ["workspaceId", "secretPath", "environment", "interval", "provider", "customProvider", "inputs", "outputs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response.py b/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response.py index 8ca545b..909331f 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_rotations_restart_post200_response_secret_rotation import ApiV1SecretRotationsRestartPost200ResponseSecretRotation class ApiV1SecretRotationsRestartPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretRotationsRestartPost200Response(BaseModel): """ secret_rotation: ApiV1SecretRotationsRestartPost200ResponseSecretRotation = Field(default=..., alias="secretRotation") __properties = ["secretRotation"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response_secret_rotation.py b/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response_secret_rotation.py index 83f4b61..ccffab7 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response_secret_rotation.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_restart_post200_response_secret_rotation.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment class ApiV1SecretRotationsRestartPost200ResponseSecretRotation(BaseModel): @@ -43,11 +43,7 @@ class ApiV1SecretRotationsRestartPost200ResponseSecretRotation(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) __properties = ["id", "provider", "secretPath", "interval", "lastRotatedAt", "status", "statusMessage", "encryptedData", "encryptedDataIV", "encryptedDataTag", "algorithm", "keyEncoding", "envId", "createdAt", "updatedAt", "environment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_rotations_restart_post_request.py b/infisicalapi_client/models/api_v1_secret_rotations_restart_post_request.py index bfce9d6..fc2cfa2 100644 --- a/infisicalapi_client/models/api_v1_secret_rotations_restart_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_rotations_restart_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretRotationsRestartPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1SecretRotationsRestartPostRequest(BaseModel): """ id: StrictStr = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post200_response.py b/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post200_response.py index fd14a1b..0634b8f 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretScanningCreateInstallationSessionOrganizationPost200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1SecretScanningCreateInstallationSessionOrganizationPost200Response(Ba """ session_id: StrictStr = Field(default=..., alias="sessionId") __properties = ["sessionId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post_request.py b/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post_request.py index 4d11c24..5ffeb5b 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_create_installation_session_organization_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretScanningCreateInstallationSessionOrganizationPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1SecretScanningCreateInstallationSessionOrganizationPostRequest(BaseMo """ organization_id: StrictStr = Field(default=..., alias="organizationId") __properties = ["organizationId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_scanning_installation_status_organization_organization_id_get200_response.py b/infisicalapi_client/models/api_v1_secret_scanning_installation_status_organization_organization_id_get200_response.py index 0cebf91..0135471 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_installation_status_organization_organization_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_installation_status_organization_organization_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class ApiV1SecretScanningInstallationStatusOrganizationOrganizationIdGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1SecretScanningInstallationStatusOrganizationOrganizationIdGet200Respo """ app_installation_completed: StrictBool = Field(default=..., alias="appInstallationCompleted") __properties = ["appInstallationCompleted"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post200_response.py b/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post200_response.py index b7e705e..c820f08 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post200_response.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretScanningLinkInstallationPost200Response(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1SecretScanningLinkInstallationPost200Response(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "installationId", "userId", "orgId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post_request.py b/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post_request.py index 9e98269..6870a54 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_link_installation_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretScanningLinkInstallationPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1SecretScanningLinkInstallationPostRequest(BaseModel): installation_id: StrictStr = Field(default=..., alias="installationId") session_id: StrictStr = Field(default=..., alias="sessionId") __properties = ["installationId", "sessionId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response.py b/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response.py index 644addb..5c73fd4 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_scanning_organization_organization_id_risks_get200_response_risks_inner import ApiV1SecretScanningOrganizationOrganizationIdRisksGet200ResponseRisksInner +from typing_extensions import Annotated class ApiV1SecretScanningOrganizationOrganizationIdRisksGet200Response(BaseModel): """ ApiV1SecretScanningOrganizationOrganizationIdRisksGet200Response """ - risks: conlist(ApiV1SecretScanningOrganizationOrganizationIdRisksGet200ResponseRisksInner) = Field(...) + risks: Annotated[List[ApiV1SecretScanningOrganizationOrganizationIdRisksGet200ResponseRisksInner], Field()] = Field(...) __properties = ["risks"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response_risks_inner.py b/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response_risks_inner.py index 65bafb1..62db7c8 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response_risks_inner.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_get200_response_risks_inner.py @@ -19,7 +19,8 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV1SecretScanningOrganizationOrganizationIdRisksGet200ResponseRisksInner(BaseModel): """ @@ -39,7 +40,7 @@ class ApiV1SecretScanningOrganizationOrganizationIdRisksGet200ResponseRisksInner email: Optional[StrictStr] = None var_date: Optional[StrictStr] = Field(default=None, alias="date") message: Optional[StrictStr] = None - tags: Optional[conlist(StrictStr)] = None + tags: Optional[Annotated[List[StrictStr], Field()]] = None rule_id: Optional[StrictStr] = Field(default=None, alias="ruleID") fingerprint: Optional[StrictStr] = None finger_print_without_commit_id: Optional[StrictStr] = Field(default=None, alias="fingerPrintWithoutCommitId") @@ -57,11 +58,7 @@ class ApiV1SecretScanningOrganizationOrganizationIdRisksGet200ResponseRisksInner created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "description", "startLine", "endLine", "startColumn", "endColumn", "file", "symlinkFile", "commit", "entropy", "author", "email", "date", "message", "tags", "ruleID", "fingerprint", "fingerPrintWithoutCommitId", "isFalsePositive", "isResolved", "riskOwner", "installationId", "repositoryId", "repositoryLink", "repositoryFullName", "pusherName", "pusherEmail", "status", "orgId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_risk_id_status_post_request.py b/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_risk_id_status_post_request.py index d856261..a4a6f58 100644 --- a/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_risk_id_status_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_scanning_organization_organization_id_risks_risk_id_status_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretScanningOrganizationOrganizationIdRisksRiskIdStatusPostRequest(BaseModel): """ @@ -28,17 +28,14 @@ class ApiV1SecretScanningOrganizationOrganizationIdRisksRiskIdStatusPostRequest( status: StrictStr = Field(...) __properties = ["status"] - @validator('status') + @field_validator('status') + @classmethod def status_validate_enum(cls, value): """Validates the enum""" if value not in ('RESOLVED_FALSE_POSITIVE', 'RESOLVED_REVOKED', 'RESOLVED_NOT_REVOKED', 'UNRESOLVED'): raise ValueError("must be one of enum values ('RESOLVED_FALSE_POSITIVE', 'RESOLVED_REVOKED', 'RESOLVED_NOT_REVOKED', 'UNRESOLVED')") 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/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response.py b/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response.py index 9e66334..b2278e8 100644 --- a/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner import ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner +from typing_extensions import Annotated class ApiV1SecretSecretIdSecretVersionsGet200Response(BaseModel): """ ApiV1SecretSecretIdSecretVersionsGet200Response """ - secret_versions: conlist(ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner) = Field(default=..., alias="secretVersions") + secret_versions: Annotated[List[ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner], Field()] = Field(default=..., alias="secretVersions") __properties = ["secretVersions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner.py b/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner.py index b06c951..638bda8 100644 --- a/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner.py +++ b/infisicalapi_client/models/api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner(BaseModel): """ @@ -41,11 +41,7 @@ class ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner(BaseMod created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "_id", "workspace", "environment", "version", "type", "secretKey", "secretValue", "secretComment", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "metadata", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_sharing_get200_response.py b/infisicalapi_client/models/api_v1_secret_sharing_get200_response.py index 0dc2f77..0420c11 100644 --- a/infisicalapi_client/models/api_v1_secret_sharing_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_sharing_get200_response.py @@ -19,21 +19,18 @@ from typing import List, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt from infisicalapi_client.models.api_v1_secret_sharing_get200_response_secrets_inner import ApiV1SecretSharingGet200ResponseSecretsInner +from typing_extensions import Annotated class ApiV1SecretSharingGet200Response(BaseModel): """ ApiV1SecretSharingGet200Response """ - secrets: conlist(ApiV1SecretSharingGet200ResponseSecretsInner) = Field(...) + secrets: Annotated[List[ApiV1SecretSharingGet200ResponseSecretsInner], Field()] = Field(...) total_count: Union[StrictFloat, StrictInt] = Field(default=..., alias="totalCount") __properties = ["secrets", "totalCount"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_sharing_get200_response_secrets_inner.py b/infisicalapi_client/models/api_v1_secret_sharing_get200_response_secrets_inner.py index 00ecae3..a187797 100644 --- a/infisicalapi_client/models/api_v1_secret_sharing_get200_response_secrets_inner.py +++ b/infisicalapi_client/models/api_v1_secret_sharing_get200_response_secrets_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1SecretSharingGet200ResponseSecretsInner(BaseModel): """ @@ -40,11 +40,7 @@ class ApiV1SecretSharingGet200ResponseSecretsInner(BaseModel): name: Optional[StrictStr] = None last_viewed_at: Optional[datetime] = Field(default=None, alias="lastViewedAt") __properties = ["id", "encryptedValue", "iv", "tag", "hashedHex", "expiresAt", "userId", "orgId", "createdAt", "updatedAt", "expiresAfterViews", "accessType", "name", "lastViewedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_sharing_post200_response.py b/infisicalapi_client/models/api_v1_secret_sharing_post200_response.py index adb9edd..d17c903 100644 --- a/infisicalapi_client/models/api_v1_secret_sharing_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_sharing_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretSharingPost200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1SecretSharingPost200Response(BaseModel): """ id: StrictStr = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_secret_sharing_post_request.py b/infisicalapi_client/models/api_v1_secret_sharing_post_request.py index 13eeff9..1064852 100644 --- a/infisicalapi_client/models/api_v1_secret_sharing_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_sharing_post_request.py @@ -19,23 +19,25 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1SecretSharingPostRequest(BaseModel): """ ApiV1SecretSharingPostRequest """ - name: Optional[constr(strict=True, max_length=50)] = None + name: Optional[Annotated[str, StringConstraints(strict=True, max_length=50)]] = None encrypted_value: StrictStr = Field(default=..., alias="encryptedValue") hashed_hex: StrictStr = Field(default=..., alias="hashedHex") iv: StrictStr = Field(...) tag: StrictStr = Field(...) expires_at: StrictStr = Field(default=..., alias="expiresAt") - expires_after_views: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = Field(default=None, alias="expiresAfterViews") + expires_after_views: Optional[Union[Annotated[float, Field(ge=1, strict=True)], Annotated[int, Field(ge=1, strict=True)]]] = Field(default=None, alias="expiresAfterViews") access_type: Optional[StrictStr] = Field(default='organization', alias="accessType") __properties = ["name", "encryptedValue", "hashedHex", "iv", "tag", "expiresAt", "expiresAfterViews", "accessType"] - @validator('access_type') + @field_validator('access_type') + @classmethod def access_type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -44,11 +46,7 @@ def access_type_validate_enum(cls, value): if value not in ('anyone', 'organization'): raise ValueError("must be one of enum values ('anyone', 'organization')") 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/infisicalapi_client/models/api_v1_secret_sharing_public_id_get200_response.py b/infisicalapi_client/models/api_v1_secret_sharing_public_id_get200_response.py index 1bfc8e1..65115df 100644 --- a/infisicalapi_client/models/api_v1_secret_sharing_public_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_sharing_public_id_get200_response.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1SecretSharingPublicIdGet200Response(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV1SecretSharingPublicIdGet200Response(BaseModel): access_type: Optional[StrictStr] = Field(default='anyone', alias="accessType") org_name: Optional[StrictStr] = Field(default=None, alias="orgName") __properties = ["encryptedValue", "iv", "tag", "expiresAt", "expiresAfterViews", "accessType", "orgName"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_sharing_public_post_request.py b/infisicalapi_client/models/api_v1_secret_sharing_public_post_request.py index 6460bf3..c5ef6c6 100644 --- a/infisicalapi_client/models/api_v1_secret_sharing_public_post_request.py +++ b/infisicalapi_client/models/api_v1_secret_sharing_public_post_request.py @@ -19,7 +19,8 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictStr, confloat, conint +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1SecretSharingPublicPostRequest(BaseModel): """ @@ -30,13 +31,9 @@ class ApiV1SecretSharingPublicPostRequest(BaseModel): iv: StrictStr = Field(...) tag: StrictStr = Field(...) expires_at: StrictStr = Field(default=..., alias="expiresAt") - expires_after_views: Optional[Union[confloat(ge=1, strict=True), conint(ge=1, strict=True)]] = Field(default=None, alias="expiresAfterViews") + expires_after_views: Optional[Union[Annotated[float, Field(ge=1, strict=True)], Annotated[int, Field(ge=1, strict=True)]]] = Field(default=None, alias="expiresAfterViews") __properties = ["encryptedValue", "hashedHex", "iv", "tag", "expiresAt", "expiresAfterViews"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response.py b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response.py index d489cd4..8738b5c 100644 --- a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot import ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshot class ApiV1SecretSnapshotSecretSnapshotIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretSnapshotSecretSnapshotIdGet200Response(BaseModel): """ secret_snapshot: ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshot = Field(default=..., alias="secretSnapshot") __properties = ["secretSnapshot"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot.py b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot.py index 805e900..d8f6324 100644 --- a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot.py +++ b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot.py @@ -19,10 +19,11 @@ from datetime import datetime from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_environment import ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotEnvironment from infisicalapi_client.models.api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_folder_version_inner import ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotFolderVersionInner from infisicalapi_client.models.api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner import ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInner +from typing_extensions import Annotated class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshot(BaseModel): """ @@ -31,16 +32,12 @@ class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshot(BaseModel) id: StrictStr = Field(...) project_id: StrictStr = Field(default=..., alias="projectId") environment: ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotEnvironment = Field(...) - secret_versions: conlist(ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInner) = Field(default=..., alias="secretVersions") - folder_version: conlist(ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotFolderVersionInner) = Field(default=..., alias="folderVersion") + secret_versions: Annotated[List[ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInner], Field()] = Field(default=..., alias="secretVersions") + folder_version: Annotated[List[ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotFolderVersionInner], Field()] = Field(default=..., alias="folderVersion") created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "projectId", "environment", "secretVersions", "folderVersion", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_environment.py b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_environment.py index 560fd3f..8058deb 100644 --- a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_environment.py +++ b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_environment.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotEnvironment(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotEnvironment slug: StrictStr = Field(...) name: StrictStr = Field(...) __properties = ["id", "slug", "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/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_folder_version_inner.py b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_folder_version_inner.py index 659da73..a13e64b 100644 --- a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_folder_version_inner.py +++ b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_folder_version_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotFolderVersionInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotFolderVersi id: StrictStr = Field(...) name: StrictStr = Field(...) __properties = ["id", "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/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner.py b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner.py index 9e1fb26..6f09e57 100644 --- a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner.py +++ b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner_tags_inner import ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner +from typing_extensions import Annotated class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInner(BaseModel): """ @@ -38,13 +39,9 @@ class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersi created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") secret_id: StrictStr = Field(default=..., alias="secretId") - tags: conlist(ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner) = Field(...) + tags: Annotated[List[ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner], Field()] = Field(...) __properties = ["id", "version", "secretKey", "secretValue", "secretComment", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "metadata", "createdAt", "updatedAt", "secretId", "tags"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner_tags_inner.py b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner_tags_inner.py index 2365a18..502cbc1 100644 --- a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner_tags_inner.py +++ b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_get200_response_secret_snapshot_secret_versions_inner_tags_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersionsInnerTagsInner(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1SecretSnapshotSecretSnapshotIdGet200ResponseSecretSnapshotSecretVersi slug: StrictStr = Field(...) color: Optional[StrictStr] = None __properties = ["id", "slug", "color"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_rollback_post200_response.py b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_rollback_post200_response.py index 9a62cbe..8080a52 100644 --- a/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_rollback_post200_response.py +++ b/infisicalapi_client/models/api_v1_secret_snapshot_secret_snapshot_id_rollback_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_secret_snapshots_get200_response_secret_snapshots_inner import ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200ResponseSecretSnapshotsInner class ApiV1SecretSnapshotSecretSnapshotIdRollbackPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1SecretSnapshotSecretSnapshotIdRollbackPost200Response(BaseModel): """ secret_snapshot: ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200ResponseSecretSnapshotsInner = Field(default=..., alias="secretSnapshot") __properties = ["secretSnapshot"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_sso_config_get200_response.py b/infisicalapi_client/models/api_v1_sso_config_get200_response.py index aa6832e..9394a3b 100644 --- a/infisicalapi_client/models/api_v1_sso_config_get200_response.py +++ b/infisicalapi_client/models/api_v1_sso_config_get200_response.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1SsoConfigGet200Response(BaseModel): """ @@ -35,11 +35,7 @@ class ApiV1SsoConfigGet200Response(BaseModel): cert: StrictStr = Field(...) last_used: Optional[datetime] = Field(default=None, alias="lastUsed") __properties = ["id", "organization", "orgId", "authProvider", "isActive", "entryPoint", "issuer", "cert", "lastUsed"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_sso_config_patch_request.py b/infisicalapi_client/models/api_v1_sso_config_patch_request.py index 259da8b..c4b954e 100644 --- a/infisicalapi_client/models/api_v1_sso_config_patch_request.py +++ b/infisicalapi_client/models/api_v1_sso_config_patch_request.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 ApiV1SsoConfigPatchRequest(BaseModel): """ @@ -33,7 +33,8 @@ class ApiV1SsoConfigPatchRequest(BaseModel): organization_id: StrictStr = Field(default=..., alias="organizationId") __properties = ["authProvider", "isActive", "entryPoint", "issuer", "cert", "organizationId"] - @validator('auth_provider') + @field_validator('auth_provider') + @classmethod def auth_provider_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -42,11 +43,7 @@ def auth_provider_validate_enum(cls, value): if value not in ('okta-saml', 'azure-saml', 'jumpcloud-saml', 'google-saml', 'keycloak-saml'): raise ValueError("must be one of enum values ('okta-saml', 'azure-saml', 'jumpcloud-saml', 'google-saml', 'keycloak-saml')") 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/infisicalapi_client/models/api_v1_sso_config_post200_response.py b/infisicalapi_client/models/api_v1_sso_config_post200_response.py index 3da8ad2..c6a7a8a 100644 --- a/infisicalapi_client/models/api_v1_sso_config_post200_response.py +++ b/infisicalapi_client/models/api_v1_sso_config_post200_response.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1SsoConfigPost200Response(BaseModel): """ @@ -42,11 +42,7 @@ class ApiV1SsoConfigPost200Response(BaseModel): org_id: StrictStr = Field(default=..., alias="orgId") last_used: Optional[datetime] = Field(default=None, alias="lastUsed") __properties = ["id", "authProvider", "isActive", "encryptedEntryPoint", "entryPointIV", "entryPointTag", "encryptedIssuer", "issuerTag", "issuerIV", "encryptedCert", "certIV", "certTag", "createdAt", "updatedAt", "orgId", "lastUsed"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_sso_config_post_request.py b/infisicalapi_client/models/api_v1_sso_config_post_request.py index d01a607..402eaeb 100644 --- a/infisicalapi_client/models/api_v1_sso_config_post_request.py +++ b/infisicalapi_client/models/api_v1_sso_config_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1SsoConfigPostRequest(BaseModel): """ @@ -33,17 +33,14 @@ class ApiV1SsoConfigPostRequest(BaseModel): cert: StrictStr = Field(...) __properties = ["organizationId", "authProvider", "isActive", "entryPoint", "issuer", "cert"] - @validator('auth_provider') + @field_validator('auth_provider') + @classmethod def auth_provider_validate_enum(cls, value): """Validates the enum""" if value not in ('okta-saml', 'azure-saml', 'jumpcloud-saml', 'google-saml', 'keycloak-saml'): raise ValueError("must be one of enum values ('okta-saml', 'azure-saml', 'jumpcloud-saml', 'google-saml', 'keycloak-saml')") 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/infisicalapi_client/models/api_v1_sso_oidc_config_get200_response.py b/infisicalapi_client/models/api_v1_sso_oidc_config_get200_response.py index 1292d26..f6d6a40 100644 --- a/infisicalapi_client/models/api_v1_sso_oidc_config_get200_response.py +++ b/infisicalapi_client/models/api_v1_sso_oidc_config_get200_response.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 ApiV1SsoOidcConfigGet200Response(BaseModel): """ @@ -39,11 +39,7 @@ class ApiV1SsoOidcConfigGet200Response(BaseModel): client_id: StrictStr = Field(default=..., alias="clientId") client_secret: StrictStr = Field(default=..., alias="clientSecret") __properties = ["id", "issuer", "authorizationEndpoint", "jwksUri", "tokenEndpoint", "userinfoEndpoint", "configurationType", "discoveryURL", "isActive", "orgId", "allowedEmailDomains", "clientId", "clientSecret"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_sso_oidc_config_patch200_response.py b/infisicalapi_client/models/api_v1_sso_oidc_config_patch200_response.py index 149b6ee..71beb18 100644 --- a/infisicalapi_client/models/api_v1_sso_oidc_config_patch200_response.py +++ b/infisicalapi_client/models/api_v1_sso_oidc_config_patch200_response.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 ApiV1SsoOidcConfigPatch200Response(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1SsoOidcConfigPatch200Response(BaseModel): allowed_email_domains: Optional[StrictStr] = Field(default=None, alias="allowedEmailDomains") is_active: StrictBool = Field(default=..., alias="isActive") __properties = ["id", "issuer", "authorizationEndpoint", "configurationType", "discoveryURL", "jwksUri", "tokenEndpoint", "userinfoEndpoint", "orgId", "allowedEmailDomains", "isActive"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_sso_oidc_config_patch_request.py b/infisicalapi_client/models/api_v1_sso_oidc_config_patch_request.py index 738ff13..7882eba 100644 --- a/infisicalapi_client/models/api_v1_sso_oidc_config_patch_request.py +++ b/infisicalapi_client/models/api_v1_sso_oidc_config_patch_request.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 ApiV1SsoOidcConfigPatchRequest(BaseModel): """ @@ -39,7 +39,8 @@ class ApiV1SsoOidcConfigPatchRequest(BaseModel): org_slug: StrictStr = Field(default=..., alias="orgSlug") __properties = ["allowedEmailDomains", "discoveryURL", "configurationType", "issuer", "authorizationEndpoint", "jwksUri", "tokenEndpoint", "userinfoEndpoint", "clientId", "clientSecret", "isActive", "orgSlug"] - @validator('configuration_type') + @field_validator('configuration_type') + @classmethod def configuration_type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -48,11 +49,7 @@ def configuration_type_validate_enum(cls, value): if value not in ('custom', 'discoveryURL'): raise ValueError("must be one of enum values ('custom', 'discoveryURL')") 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/infisicalapi_client/models/api_v1_sso_oidc_config_post200_response.py b/infisicalapi_client/models/api_v1_sso_oidc_config_post200_response.py index c7706c8..6e00466 100644 --- a/infisicalapi_client/models/api_v1_sso_oidc_config_post200_response.py +++ b/infisicalapi_client/models/api_v1_sso_oidc_config_post200_response.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 ApiV1SsoOidcConfigPost200Response(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1SsoOidcConfigPost200Response(BaseModel): is_active: StrictBool = Field(default=..., alias="isActive") allowed_email_domains: Optional[StrictStr] = Field(default=None, alias="allowedEmailDomains") __properties = ["id", "issuer", "authorizationEndpoint", "configurationType", "discoveryURL", "jwksUri", "tokenEndpoint", "userinfoEndpoint", "orgId", "isActive", "allowedEmailDomains"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_sso_oidc_config_post_request.py b/infisicalapi_client/models/api_v1_sso_oidc_config_post_request.py index a09f425..b8d1197 100644 --- a/infisicalapi_client/models/api_v1_sso_oidc_config_post_request.py +++ b/infisicalapi_client/models/api_v1_sso_oidc_config_post_request.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 ApiV1SsoOidcConfigPostRequest(BaseModel): """ @@ -39,17 +39,14 @@ class ApiV1SsoOidcConfigPostRequest(BaseModel): org_slug: StrictStr = Field(default=..., alias="orgSlug") __properties = ["allowedEmailDomains", "configurationType", "issuer", "discoveryURL", "authorizationEndpoint", "jwksUri", "tokenEndpoint", "userinfoEndpoint", "clientId", "clientSecret", "isActive", "orgSlug"] - @validator('configuration_type') + @field_validator('configuration_type') + @classmethod def configuration_type_validate_enum(cls, value): """Validates the enum""" if value not in ('custom', 'discoveryURL'): raise ValueError("must be one of enum values ('custom', 'discoveryURL')") 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/infisicalapi_client/models/api_v1_sso_token_exchange_post_request.py b/infisicalapi_client/models/api_v1_sso_token_exchange_post_request.py index a576efb..cbf8d7f 100644 --- a/infisicalapi_client/models/api_v1_sso_token_exchange_post_request.py +++ b/infisicalapi_client/models/api_v1_sso_token_exchange_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1SsoTokenExchangePostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1SsoTokenExchangePostRequest(BaseModel): provider_auth_token: StrictStr = Field(default=..., alias="providerAuthToken") email: StrictStr = Field(...) __properties = ["providerAuthToken", "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/infisicalapi_client/models/api_v1_user_action_get200_response.py b/infisicalapi_client/models/api_v1_user_action_get200_response.py index 0e996a0..691e0fb 100644 --- a/infisicalapi_client/models/api_v1_user_action_get200_response.py +++ b/infisicalapi_client/models/api_v1_user_action_get200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_user_action_get200_response_user_action import ApiV1UserActionGet200ResponseUserAction class ApiV1UserActionGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1UserActionGet200Response(BaseModel): """ user_action: Optional[ApiV1UserActionGet200ResponseUserAction] = Field(default=None, alias="userAction") __properties = ["userAction"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_action_get200_response_user_action.py b/infisicalapi_client/models/api_v1_user_action_get200_response_user_action.py index aba6878..da220ab 100644 --- a/infisicalapi_client/models/api_v1_user_action_get200_response_user_action.py +++ b/infisicalapi_client/models/api_v1_user_action_get200_response_user_action.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1UserActionGet200ResponseUserAction(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1UserActionGet200ResponseUserAction(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") user_id: StrictStr = Field(default=..., alias="userId") __properties = ["id", "action", "createdAt", "updatedAt", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_action_post200_response.py b/infisicalapi_client/models/api_v1_user_action_post200_response.py index c9a63cd..0d083d7 100644 --- a/infisicalapi_client/models/api_v1_user_action_post200_response.py +++ b/infisicalapi_client/models/api_v1_user_action_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_user_action_post200_response_user_action import ApiV1UserActionPost200ResponseUserAction class ApiV1UserActionPost200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV1UserActionPost200Response(BaseModel): message: StrictStr = Field(...) user_action: ApiV1UserActionPost200ResponseUserAction = Field(default=..., alias="userAction") __properties = ["message", "userAction"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_action_post200_response_user_action.py b/infisicalapi_client/models/api_v1_user_action_post200_response_user_action.py index 4681ec4..a05c5c3 100644 --- a/infisicalapi_client/models/api_v1_user_action_post200_response_user_action.py +++ b/infisicalapi_client/models/api_v1_user_action_post200_response_user_action.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1UserActionPost200ResponseUserAction(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1UserActionPost200ResponseUserAction(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") user_id: StrictStr = Field(default=..., alias="userId") __properties = ["id", "action", "createdAt", "updatedAt", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_action_post_request.py b/infisicalapi_client/models/api_v1_user_action_post_request.py index a069897..5d22d33 100644 --- a/infisicalapi_client/models/api_v1_user_action_post_request.py +++ b/infisicalapi_client/models/api_v1_user_action_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1UserActionPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1UserActionPostRequest(BaseModel): """ action: StrictStr = Field(...) __properties = ["action"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_engagement_me_wish_post_request.py b/infisicalapi_client/models/api_v1_user_engagement_me_wish_post_request.py index b8627c1..b21714c 100644 --- a/infisicalapi_client/models/api_v1_user_engagement_me_wish_post_request.py +++ b/infisicalapi_client/models/api_v1_user_engagement_me_wish_post_request.py @@ -19,19 +19,16 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1UserEngagementMeWishPostRequest(BaseModel): """ ApiV1UserEngagementMeWishPostRequest """ - text: constr(strict=True, min_length=1) = Field(...) + text: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(...) __properties = ["text"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_get200_response.py b/infisicalapi_client/models/api_v1_user_get200_response.py index d980116..652ca7e 100644 --- a/infisicalapi_client/models/api_v1_user_get200_response.py +++ b/infisicalapi_client/models/api_v1_user_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_user_get200_response_user import ApiV1UserGet200ResponseUser class ApiV1UserGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1UserGet200Response(BaseModel): """ user: ApiV1UserGet200ResponseUser = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_user_get200_response_user.py b/infisicalapi_client/models/api_v1_user_get200_response_user.py index 6644cf2..cb4678a 100644 --- a/infisicalapi_client/models/api_v1_user_get200_response_user.py +++ b/infisicalapi_client/models/api_v1_user_get200_response_user.py @@ -19,7 +19,8 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV1UserGet200ResponseUser(BaseModel): """ @@ -27,13 +28,13 @@ class ApiV1UserGet200ResponseUser(BaseModel): """ id: StrictStr = Field(...) email: Optional[StrictStr] = None - auth_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="authMethods") + auth_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="authMethods") super_admin: Optional[StrictBool] = Field(default=False, alias="superAdmin") first_name: Optional[StrictStr] = Field(default=None, alias="firstName") last_name: Optional[StrictStr] = Field(default=None, alias="lastName") is_accepted: Optional[StrictBool] = Field(default=False, alias="isAccepted") is_mfa_enabled: Optional[StrictBool] = Field(default=False, alias="isMfaEnabled") - mfa_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="mfaMethods") + mfa_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="mfaMethods") devices: Optional[Any] = None created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") @@ -58,11 +59,7 @@ class ApiV1UserGet200ResponseUser(BaseModel): verifier: StrictStr = Field(...) user_id: StrictStr = Field(default=..., alias="userId") __properties = ["id", "email", "authMethods", "superAdmin", "firstName", "lastName", "isAccepted", "isMfaEnabled", "mfaMethods", "devices", "createdAt", "updatedAt", "isGhost", "username", "isEmailVerified", "consecutiveFailedMfaAttempts", "isLocked", "temporaryLockDateEnd", "consecutiveFailedPasswordAttempts", "clientPublicKey", "serverPrivateKey", "encryptionVersion", "protectedKey", "protectedKeyIV", "protectedKeyTag", "publicKey", "encryptedPrivateKey", "iv", "tag", "salt", "verifier", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_me_project_favorites_get200_response.py b/infisicalapi_client/models/api_v1_user_me_project_favorites_get200_response.py index 120512f..d96affd 100644 --- a/infisicalapi_client/models/api_v1_user_me_project_favorites_get200_response.py +++ b/infisicalapi_client/models/api_v1_user_me_project_favorites_get200_response.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 ApiV1UserMeProjectFavoritesGet200Response(BaseModel): """ ApiV1UserMeProjectFavoritesGet200Response """ - project_favorites: conlist(StrictStr) = Field(default=..., alias="projectFavorites") + project_favorites: Annotated[List[StrictStr], Field()] = Field(default=..., alias="projectFavorites") __properties = ["projectFavorites"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_me_project_favorites_put_request.py b/infisicalapi_client/models/api_v1_user_me_project_favorites_put_request.py index 7f907fe..e850fda 100644 --- a/infisicalapi_client/models/api_v1_user_me_project_favorites_put_request.py +++ b/infisicalapi_client/models/api_v1_user_me_project_favorites_put_request.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1UserMeProjectFavoritesPutRequest(BaseModel): """ ApiV1UserMeProjectFavoritesPutRequest """ org_id: StrictStr = Field(default=..., alias="orgId") - project_favorites: conlist(StrictStr) = Field(default=..., alias="projectFavorites") + project_favorites: Annotated[List[StrictStr], Field()] = Field(default=..., alias="projectFavorites") __properties = ["orgId", "projectFavorites"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_user_private_key_get200_response.py b/infisicalapi_client/models/api_v1_user_private_key_get200_response.py index 024fd47..8e172bf 100644 --- a/infisicalapi_client/models/api_v1_user_private_key_get200_response.py +++ b/infisicalapi_client/models/api_v1_user_private_key_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1UserPrivateKeyGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1UserPrivateKeyGet200Response(BaseModel): """ private_key: StrictStr = Field(default=..., alias="privateKey") __properties = ["privateKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_webhooks_get200_response.py b/infisicalapi_client/models/api_v1_webhooks_get200_response.py index 47e27d1..632131c 100644 --- a/infisicalapi_client/models/api_v1_webhooks_get200_response.py +++ b/infisicalapi_client/models/api_v1_webhooks_get200_response.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_webhooks_get200_response_webhooks_inner import ApiV1WebhooksGet200ResponseWebhooksInner +from typing_extensions import Annotated class ApiV1WebhooksGet200Response(BaseModel): """ ApiV1WebhooksGet200Response """ message: StrictStr = Field(...) - webhooks: conlist(ApiV1WebhooksGet200ResponseWebhooksInner) = Field(...) + webhooks: Annotated[List[ApiV1WebhooksGet200ResponseWebhooksInner], Field()] = Field(...) __properties = ["message", "webhooks"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_webhooks_get200_response_webhooks_inner.py b/infisicalapi_client/models/api_v1_webhooks_get200_response_webhooks_inner.py index 43d2360..4bfd568 100644 --- a/infisicalapi_client/models/api_v1_webhooks_get200_response_webhooks_inner.py +++ b/infisicalapi_client/models/api_v1_webhooks_get200_response_webhooks_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment class ApiV1WebhooksGet200ResponseWebhooksInner(BaseModel): @@ -39,11 +39,7 @@ class ApiV1WebhooksGet200ResponseWebhooksInner(BaseModel): environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) url: StrictStr = Field(...) __properties = ["id", "secretPath", "lastStatus", "lastRunErrorMessage", "isDisabled", "createdAt", "updatedAt", "envId", "type", "projectId", "environment", "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/infisicalapi_client/models/api_v1_webhooks_post200_response.py b/infisicalapi_client/models/api_v1_webhooks_post200_response.py index 4b51d68..aa8b40c 100644 --- a/infisicalapi_client/models/api_v1_webhooks_post200_response.py +++ b/infisicalapi_client/models/api_v1_webhooks_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_webhooks_post200_response_webhook import ApiV1WebhooksPost200ResponseWebhook class ApiV1WebhooksPost200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV1WebhooksPost200Response(BaseModel): message: StrictStr = Field(...) webhook: ApiV1WebhooksPost200ResponseWebhook = Field(...) __properties = ["message", "webhook"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_webhooks_post200_response_webhook.py b/infisicalapi_client/models/api_v1_webhooks_post200_response_webhook.py index 6004cd9..184aa8a 100644 --- a/infisicalapi_client/models/api_v1_webhooks_post200_response_webhook.py +++ b/infisicalapi_client/models/api_v1_webhooks_post200_response_webhook.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment class ApiV1WebhooksPost200ResponseWebhook(BaseModel): @@ -38,11 +38,7 @@ class ApiV1WebhooksPost200ResponseWebhook(BaseModel): project_id: StrictStr = Field(default=..., alias="projectId") environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) __properties = ["id", "secretPath", "lastStatus", "lastRunErrorMessage", "isDisabled", "createdAt", "updatedAt", "envId", "type", "projectId", "environment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_webhooks_post_request.py b/infisicalapi_client/models/api_v1_webhooks_post_request.py index ed07597..866af46 100644 --- a/infisicalapi_client/models/api_v1_webhooks_post_request.py +++ b/infisicalapi_client/models/api_v1_webhooks_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1WebhooksPostRequest(BaseModel): """ @@ -33,7 +33,8 @@ class ApiV1WebhooksPostRequest(BaseModel): secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath") __properties = ["type", "workspaceId", "environment", "webhookUrl", "webhookSecretKey", "secretPath"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -42,11 +43,7 @@ def type_validate_enum(cls, value): if value not in ('general', 'slack'): raise ValueError("must be one of enum values ('general', 'slack')") 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/infisicalapi_client/models/api_v1_webhooks_webhook_id_patch_request.py b/infisicalapi_client/models/api_v1_webhooks_webhook_id_patch_request.py index 081b526..fd3702a 100644 --- a/infisicalapi_client/models/api_v1_webhooks_webhook_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_webhooks_webhook_id_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class ApiV1WebhooksWebhookIdPatchRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1WebhooksWebhookIdPatchRequest(BaseModel): """ is_disabled: Optional[StrictBool] = Field(default=False, alias="isDisabled") __properties = ["isDisabled"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_get200_response.py b/infisicalapi_client/models/api_v1_workspace_get200_response.py index 03a436a..1aab902 100644 --- a/infisicalapi_client/models/api_v1_workspace_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_get200_response_workspaces_inner import ApiV1WorkspaceGet200ResponseWorkspacesInner +from typing_extensions import Annotated class ApiV1WorkspaceGet200Response(BaseModel): """ ApiV1WorkspaceGet200Response """ - workspaces: conlist(ApiV1WorkspaceGet200ResponseWorkspacesInner) = Field(...) + workspaces: Annotated[List[ApiV1WorkspaceGet200ResponseWorkspacesInner], Field()] = Field(...) __properties = ["workspaces"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_get200_response_workspaces_inner.py b/infisicalapi_client/models/api_v1_workspace_get200_response_workspaces_inner.py index 7727a5a..89b094f 100644 --- a/infisicalapi_client/models/api_v1_workspace_get200_response_workspaces_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_get200_response_workspaces_inner.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v1_secret_imports_get200_response_secret_imports_inner_import_env import ApiV1SecretImportsGet200ResponseSecretImportsInnerImportEnv +from typing_extensions import Annotated class ApiV1WorkspaceGet200ResponseWorkspacesInner(BaseModel): """ @@ -39,13 +40,9 @@ class ApiV1WorkspaceGet200ResponseWorkspacesInner(BaseModel): kms_certificate_key_id: Optional[StrictStr] = Field(default=None, alias="kmsCertificateKeyId") audit_logs_retention_days: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="auditLogsRetentionDays") id: StrictStr = Field(default=..., alias="_id") - environments: conlist(ApiV1SecretImportsGet200ResponseSecretImportsInnerImportEnv) = Field(...) + environments: Annotated[List[ApiV1SecretImportsGet200ResponseSecretImportsInnerImportEnv], Field()] = Field(...) __properties = ["id", "name", "slug", "autoCapitalization", "orgId", "createdAt", "updatedAt", "version", "upgradeStatus", "pitVersionLimit", "kmsCertificateKeyId", "auditLogsRetentionDays", "_id", "environments"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response.py b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response.py index ad76e49..ae83f71 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_project_id_permissions_get200_response_data import ApiV1WorkspaceProjectIdPermissionsGet200ResponseData class ApiV1WorkspaceProjectIdPermissionsGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceProjectIdPermissionsGet200Response(BaseModel): """ data: ApiV1WorkspaceProjectIdPermissionsGet200ResponseData = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data.py b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data.py index ed3a2e5..f1f7492 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_id_permissions_get200_response_data_membership import ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembership +from typing_extensions import Annotated class ApiV1WorkspaceProjectIdPermissionsGet200ResponseData(BaseModel): """ ApiV1WorkspaceProjectIdPermissionsGet200ResponseData """ membership: ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembership = Field(...) - permissions: conlist(StrictStr) = Field(...) + permissions: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["membership", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership.py b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership.py index a1bedcb..7ca164c 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_id_permissions_get200_response_data_membership_roles_inner import ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembershipRolesInner +from typing_extensions import Annotated class ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembership(BaseModel): """ @@ -31,13 +32,9 @@ class ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembership(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") user_id: StrictStr = Field(default=..., alias="userId") project_id: StrictStr = Field(default=..., alias="projectId") - roles: conlist(ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembershipRolesInner) = Field(...) + roles: Annotated[List[ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembershipRolesInner], Field()] = Field(...) __properties = ["id", "createdAt", "updatedAt", "userId", "projectId", "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/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership_roles_inner.py b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership_roles_inner.py index bbcd995..b9b29f6 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership_roles_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_permissions_get200_response_data_membership_roles_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembershipRolesInner(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1WorkspaceProjectIdPermissionsGet200ResponseDataMembershipRolesInner(B """ role: StrictStr = Field(...) __properties = ["role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response.py b/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response.py index b4405e4..e7fbd01 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_project_id_tags_get200_response_workspace_tags_inner import ApiV1WorkspaceProjectIdTagsGet200ResponseWorkspaceTagsInner +from typing_extensions import Annotated class ApiV1WorkspaceProjectIdTagsGet200Response(BaseModel): """ ApiV1WorkspaceProjectIdTagsGet200Response """ - workspace_tags: conlist(ApiV1WorkspaceProjectIdTagsGet200ResponseWorkspaceTagsInner) = Field(default=..., alias="workspaceTags") + workspace_tags: Annotated[List[ApiV1WorkspaceProjectIdTagsGet200ResponseWorkspaceTagsInner], Field()] = Field(default=..., alias="workspaceTags") __properties = ["workspaceTags"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response_workspace_tags_inner.py b/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response_workspace_tags_inner.py index 14f96b8..25f506e 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response_workspace_tags_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_tags_get200_response_workspace_tags_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceProjectIdTagsGet200ResponseWorkspaceTagsInner(BaseModel): """ @@ -34,11 +34,7 @@ class ApiV1WorkspaceProjectIdTagsGet200ResponseWorkspaceTagsInner(BaseModel): project_id: StrictStr = Field(default=..., alias="projectId") created_by_actor_type: Optional[StrictStr] = Field(default='user', alias="createdByActorType") __properties = ["id", "slug", "color", "createdAt", "updatedAt", "createdBy", "projectId", "createdByActorType"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_tags_post200_response.py b/infisicalapi_client/models/api_v1_workspace_project_id_tags_post200_response.py index dbebfcd..7278b80 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_tags_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_tags_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_project_id_tags_get200_response_workspace_tags_inner import ApiV1WorkspaceProjectIdTagsGet200ResponseWorkspaceTagsInner class ApiV1WorkspaceProjectIdTagsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceProjectIdTagsPost200Response(BaseModel): """ workspace_tag: ApiV1WorkspaceProjectIdTagsGet200ResponseWorkspaceTagsInner = Field(default=..., alias="workspaceTag") __properties = ["workspaceTag"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_tags_post_request.py b/infisicalapi_client/models/api_v1_workspace_project_id_tags_post_request.py index f03ee73..447909f 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_tags_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_tags_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceProjectIdTagsPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceProjectIdTagsPostRequest(BaseModel): slug: StrictStr = Field(default=..., description="The slug of the tag to create.") color: StrictStr = Field(default=..., description="The color of the tag to create.") __properties = ["slug", "color"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response.py b/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response.py index 6e458c9..41afd7d 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_project_id_tags_tag_id_get200_response_workspace_tag import ApiV1WorkspaceProjectIdTagsTagIdGet200ResponseWorkspaceTag class ApiV1WorkspaceProjectIdTagsTagIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceProjectIdTagsTagIdGet200Response(BaseModel): """ workspace_tag: ApiV1WorkspaceProjectIdTagsTagIdGet200ResponseWorkspaceTag = Field(default=..., alias="workspaceTag") __properties = ["workspaceTag"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response_workspace_tag.py b/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response_workspace_tag.py index 6feb6d0..4909c4d 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response_workspace_tag.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_get200_response_workspace_tag.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceProjectIdTagsTagIdGet200ResponseWorkspaceTag(BaseModel): """ @@ -35,11 +35,7 @@ class ApiV1WorkspaceProjectIdTagsTagIdGet200ResponseWorkspaceTag(BaseModel): created_by_actor_type: Optional[StrictStr] = Field(default='user', alias="createdByActorType") name: StrictStr = Field(...) __properties = ["id", "slug", "color", "createdAt", "updatedAt", "createdBy", "projectId", "createdByActorType", "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/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_patch_request.py b/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_patch_request.py index e7cb953..ca4025e 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_workspace_project_id_tags_tag_id_patch_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceProjectIdTagsTagIdPatchRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceProjectIdTagsTagIdPatchRequest(BaseModel): slug: StrictStr = Field(default=..., description="The slug of the tag to update.") color: StrictStr = Field(default=..., description="The color of the tag to update.") __properties = ["slug", "color"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response.py index f43f3eb..fa6bc5e 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_project_slug_roles_get200_response_roles_inner import ApiV1WorkspaceProjectSlugRolesGet200ResponseRolesInner +from typing_extensions import Annotated class ApiV1WorkspaceProjectSlugRolesGet200Response(BaseModel): """ ApiV1WorkspaceProjectSlugRolesGet200Response """ - roles: conlist(ApiV1WorkspaceProjectSlugRolesGet200ResponseRolesInner) = Field(...) + roles: Annotated[List[ApiV1WorkspaceProjectSlugRolesGet200ResponseRolesInner], 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/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response_roles_inner.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response_roles_inner.py index dbe2b68..6c2d29b 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response_roles_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_get200_response_roles_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceProjectSlugRolesGet200ResponseRolesInner(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV1WorkspaceProjectSlugRolesGet200ResponseRolesInner(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") project_id: StrictStr = Field(default=..., alias="projectId") __properties = ["id", "name", "description", "slug", "createdAt", "updatedAt", "projectId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response.py index 50a3c87..30ea33b 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post200_response_role import ApiV1WorkspaceProjectSlugRolesPost200ResponseRole class ApiV1WorkspaceProjectSlugRolesPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceProjectSlugRolesPost200Response(BaseModel): """ role: ApiV1WorkspaceProjectSlugRolesPost200ResponseRole = Field(...) __properties = ["role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role.py index 37366e2..c7ad063 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner import ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInner +from typing_extensions import Annotated class ApiV1WorkspaceProjectSlugRolesPost200ResponseRole(BaseModel): """ @@ -30,16 +31,12 @@ class ApiV1WorkspaceProjectSlugRolesPost200ResponseRole(BaseModel): name: StrictStr = Field(...) description: Optional[StrictStr] = None slug: StrictStr = Field(...) - permissions: conlist(ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInner) = Field(...) + permissions: Annotated[List[ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInner], Field()] = Field(...) created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") project_id: StrictStr = Field(default=..., alias="projectId") __properties = ["id", "name", "description", "slug", "permissions", "createdAt", "updatedAt", "projectId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner.py index be9cd83..eb6fea7 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions import ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerConditions from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_subject import ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerSubject @@ -31,11 +31,7 @@ class ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInner(BaseMode action: ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerSubject = Field(...) conditions: Optional[ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerConditions] = None __properties = ["subject", "action", "conditions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions.py index ebc1541..07c7bae 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions_secret_path import ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerConditionsSecretPath class ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerConditions(BaseModel): @@ -29,11 +29,7 @@ class ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerCondition environment: Optional[StrictStr] = None secret_path: Optional[ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerConditionsSecretPath] = Field(default=None, alias="secretPath") __properties = ["environment", "secretPath"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions_secret_path.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions_secret_path.py index 5487d78..02617f9 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions_secret_path.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_conditions_secret_path.py @@ -19,19 +19,16 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerConditionsSecretPath(BaseModel): """ ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerConditionsSecretPath """ - glob: constr(strict=True, min_length=1) = Field(default=..., alias="$glob") + glob: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="$glob") __properties = ["$glob"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_subject.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_subject.py index e6577b7..fb91f89 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_subject.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post200_response_role_permissions_inner_subject.py @@ -18,10 +18,11 @@ import pprint import re # noqa: F401 -from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, conlist, constr, validator +from typing import Literal, List, Optional +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictStr, ValidationError from typing import Union, Any, List, TYPE_CHECKING from pydantic import StrictStr, Field +from typing_extensions import Annotated APIV1WORKSPACEPROJECTSLUGROLESPOST200RESPONSEROLEPERMISSIONSINNERSUBJECT_ANY_OF_SCHEMAS = ["List[str]", "str"] @@ -31,17 +32,15 @@ class ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerSubject(B """ # data type: str - anyof_schema_1_validator: Optional[constr(strict=True, min_length=1)] = None + anyof_schema_1_validator: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = None # data type: List[str] - anyof_schema_2_validator: Optional[conlist(StrictStr)] = None + anyof_schema_2_validator: Optional[Annotated[List[StrictStr], Field()]] = None if TYPE_CHECKING: actual_instance: Union[List[str], str] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV1WORKSPACEPROJECTSLUGROLESPOST200RESPONSEROLEPERMISSIONSINNERSUBJECT_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV1WORKSPACEPROJECTSLUGROLESPOST200RESPONSEROLEPERMISSIONSINNERSUBJECT_ANY_OF_SCHEMAS] = APIV1WORKSPACEPROJECTSLUGROLESPOST200RESPONSEROLEPERMISSIONSINNERSUBJECT_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -53,7 +52,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV1WorkspaceProjectSlugRolesPost200ResponseRolePermissionsInnerSubject.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request.py index f23b11a..8f2060f 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request.py @@ -19,23 +19,20 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner +from typing_extensions import Annotated class ApiV1WorkspaceProjectSlugRolesPostRequest(BaseModel): """ ApiV1WorkspaceProjectSlugRolesPostRequest """ - slug: constr(strict=True, min_length=1) = Field(default=..., description="The slug of the role.") - name: constr(strict=True, min_length=1) = Field(default=..., description="The name of the role.") + slug: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The slug of the role.") + name: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The name of the role.") description: Optional[StrictStr] = Field(default=None, description="The description for the role.") - permissions: conlist(ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner) = Field(default=..., description="The permissions assigned to the role.") + permissions: Annotated[List[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner], Field()] = Field(default=..., description="The permissions assigned to the role.") __properties = ["slug", "name", "description", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner.py index 2aaf4a1..742f399 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditions class ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner(BaseModel): @@ -31,24 +31,22 @@ class ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner(BaseModel): conditions: Optional[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditions] = None __properties = ["action", "subject", "conditions"] - @validator('action') + @field_validator('action') + @classmethod def action_validate_enum(cls, value): """Validates the enum""" if value not in ('read', 'create', 'edit', 'delete'): raise ValueError("must be one of enum values ('read', 'create', 'edit', 'delete')") return value - @validator('subject') + @field_validator('subject') + @classmethod def subject_validate_enum(cls, value): """Validates the enum""" if value not in ('role', 'member', 'groups', 'settings', 'integrations', 'webhooks', 'service-tokens', 'environments', 'tags', 'audit-logs', 'ip-allowlist', 'workspace', 'secrets', 'secret-folders', 'secret-rollback', 'secret-approval', 'secret-rotation', 'identity', 'certificate-authorities', 'certificates', 'kms'): raise ValueError("must be one of enum values ('role', 'member', 'groups', 'settings', 'integrations', 'webhooks', 'service-tokens', 'environments', 'tags', 'audit-logs', 'ip-allowlist', 'workspace', 'secrets', 'secret-folders', 'secret-rollback', 'secret-approval', 'secret-rotation', 'identity', 'certificate-authorities', 'certificates', 'kms')") 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/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions.py index 34ec0c8..f598bd2 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions_secret_path import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditionsSecretPath class ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditions(BaseModel): @@ -29,11 +29,7 @@ class ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditions(BaseMo environment: Optional[StrictStr] = Field(default=None, description="The environment slug this permission should allow.") secret_path: Optional[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditionsSecretPath] = Field(default=None, alias="secretPath") __properties = ["environment", "secretPath"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions_secret_path.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions_secret_path.py index 98a1823..fbf890b 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions_secret_path.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_post_request_permissions_inner_conditions_secret_path.py @@ -19,19 +19,16 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditionsSecretPath(BaseModel): """ ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInnerConditionsSecretPath """ - glob: constr(strict=True, min_length=1) = Field(default=..., alias="$glob", description="The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** ") + glob: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="$glob", description="The secret path this permission should allow. Can be a glob pattern such as /folder-name/*/** ") __properties = ["$glob"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_role_id_patch_request.py b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_role_id_patch_request.py index 424bcb1..6f843eb 100644 --- a/infisicalapi_client/models/api_v1_workspace_project_slug_roles_role_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_workspace_project_slug_roles_role_id_patch_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_project_slug_roles_post_request_permissions_inner import ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner +from typing_extensions import Annotated class ApiV1WorkspaceProjectSlugRolesRoleIdPatchRequest(BaseModel): """ @@ -28,13 +29,9 @@ class ApiV1WorkspaceProjectSlugRolesRoleIdPatchRequest(BaseModel): """ slug: Optional[StrictStr] = Field(default=None, description="The slug of the role.") name: Optional[StrictStr] = Field(default=None, description="The name of the role.") - permissions: Optional[conlist(ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner)] = Field(default=None, description="The permissions assigned to the role.") + permissions: Optional[Annotated[List[ApiV1WorkspaceProjectSlugRolesPostRequestPermissionsInner], Field()]] = Field(default=None, description="The permissions assigned to the role.") __properties = ["slug", "name", "permissions"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_filters_actors_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_filters_actors_get200_response.py index ac08894..cec561f 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_filters_actors_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_filters_actors_get200_response.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 ApiV1WorkspaceWorkspaceIdAuditLogsFiltersActorsGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdAuditLogsFiltersActorsGet200Response """ - actors: conlist(StrictStr) = Field(...) + actors: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["actors"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response.py index 392c279..0250f0c 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner import ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdAuditLogsGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdAuditLogsGet200Response """ - audit_logs: conlist(ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInner) = Field(default=..., alias="auditLogs") + audit_logs: Annotated[List[ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInner], Field()] = Field(default=..., alias="auditLogs") __properties = ["auditLogs"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner.py index ed3d2e7..61630e3 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner_event import ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInnerEvent class ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInner(BaseModel): @@ -38,11 +38,7 @@ class ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInner(BaseModel): event: ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInnerEvent = Field(...) actor: ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInnerEvent = Field(...) __properties = ["id", "ipAddress", "userAgent", "userAgentType", "expiresAt", "createdAt", "updatedAt", "orgId", "projectId", "event", "actor"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner_event.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner_event.py index 121e6b6..259a57c 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner_event.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_audit_logs_get200_response_audit_logs_inner_event.py @@ -19,7 +19,7 @@ from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInnerEvent(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdAuditLogsGet200ResponseAuditLogsInnerEvent(BaseMo type: StrictStr = Field(...) metadata: Optional[Any] = None __properties = ["type", "metadata"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response.py index ce2335e..0f7a7b8 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_authorizations_get200_response_authorizations_inner import ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdAuthorizationsGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdAuthorizationsGet200Response """ - authorizations: conlist(ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner) = Field(...) + authorizations: Annotated[List[ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner], Field()] = Field(...) __properties = ["authorizations"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response_authorizations_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response_authorizations_inner.py index df4a926..b4ee213 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response_authorizations_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_authorizations_get200_response_authorizations_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1WorkspaceWorkspaceIdAuthorizationsGet200ResponseAuthorizationsInner(B created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "projectId", "integration", "teamId", "url", "namespace", "accountId", "metadata", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_auto_capitalization_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_auto_capitalization_post_request.py index 22ebe51..f3c02f9 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_auto_capitalization_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_auto_capitalization_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class ApiV1WorkspaceWorkspaceIdAutoCapitalizationPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1WorkspaceWorkspaceIdAutoCapitalizationPostRequest(BaseModel): """ auto_capitalization: StrictBool = Field(default=..., alias="autoCapitalization") __properties = ["autoCapitalization"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_delete200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_delete200_response.py index 6a83824..1b4d1cb 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_delete200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_delete200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from infisicalapi_client.models.api_v1_organization_admin_projects_get200_response_projects_inner import ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner class ApiV1WorkspaceWorkspaceIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdDelete200Response(BaseModel): """ workspace: Optional[ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner] = None __properties = ["workspace"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response.py index 7dd426b..82d545c 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_environments_env_id_get200_response_environment import ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200ResponseEnvironment class ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200Response(BaseModel): """ environment: ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200ResponseEnvironment = Field(...) __properties = ["environment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response_environment.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response_environment.py index 9e52c14..6c099ac 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response_environment.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_env_id_get200_response_environment.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200ResponseEnvironment(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200ResponseEnvironment(BaseMo created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "name", "slug", "position", "projectId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_id_patch_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_id_patch_request.py index 41e1ffe..03cd942 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_id_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV1WorkspaceWorkspaceIdEnvironmentsIdPatchRequest(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1WorkspaceWorkspaceIdEnvironmentsIdPatchRequest(BaseModel): name: Optional[StrictStr] = Field(default=None, description="The new name of the environment.") position: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, description="The new position of the environment. The lowest number will be displayed as the first environment.") __properties = ["slug", "name", "position"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post200_response.py index 621f026..d266a17 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_workspace_id_environments_env_id_get200_response_environment import ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200ResponseEnvironment class ApiV1WorkspaceWorkspaceIdEnvironmentsPost200Response(BaseModel): @@ -30,11 +30,7 @@ class ApiV1WorkspaceWorkspaceIdEnvironmentsPost200Response(BaseModel): workspace: StrictStr = Field(...) environment: ApiV1WorkspaceWorkspaceIdEnvironmentsEnvIdGet200ResponseEnvironment = Field(...) __properties = ["message", "workspace", "environment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post_request.py index e66b162..f152c7e 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_environments_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdEnvironmentsPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdEnvironmentsPostRequest(BaseModel): name: StrictStr = Field(default=..., description="The name of the environment to create.") slug: StrictStr = Field(default=..., description="The slug of the environment to create.") __properties = ["name", "slug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_get200_response.py index 1ffd4c9..0346823 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_get200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel +from pydantic import ConfigDict, BaseModel from infisicalapi_client.models.api_v1_workspace_get200_response_workspaces_inner import ApiV1WorkspaceGet200ResponseWorkspacesInner class ApiV1WorkspaceWorkspaceIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdGet200Response(BaseModel): """ workspace: Optional[ApiV1WorkspaceGet200ResponseWorkspacesInner] = None __properties = ["workspace"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response.py index e112757..0fc2408 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_integrations_get200_response_integrations_inner import ApiV1WorkspaceWorkspaceIdIntegrationsGet200ResponseIntegrationsInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdIntegrationsGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdIntegrationsGet200Response """ - integrations: conlist(ApiV1WorkspaceWorkspaceIdIntegrationsGet200ResponseIntegrationsInner) = Field(...) + integrations: Annotated[List[ApiV1WorkspaceWorkspaceIdIntegrationsGet200ResponseIntegrationsInner], Field()] = Field(...) __properties = ["integrations"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response_integrations_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response_integrations_inner.py index b80f351..33a5df9 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response_integrations_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_integrations_get200_response_integrations_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v1_secret_approvals_get200_response_approvals_inner_environment import ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment class ApiV1WorkspaceWorkspaceIdIntegrationsGet200ResponseIntegrationsInner(BaseModel): @@ -52,11 +52,7 @@ class ApiV1WorkspaceWorkspaceIdIntegrationsGet200ResponseIntegrationsInner(BaseM last_sync_job_id: Optional[StrictStr] = Field(default=None, alias="lastSyncJobId") environment: ApiV1SecretApprovalsGet200ResponseApprovalsInnerEnvironment = Field(...) __properties = ["id", "isActive", "url", "app", "appId", "targetEnvironment", "targetEnvironmentId", "targetService", "targetServiceId", "owner", "path", "region", "scope", "integration", "metadata", "integrationAuthId", "envId", "secretPath", "createdAt", "updatedAt", "lastUsed", "isSynced", "syncMessage", "lastSyncJobId", "environment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request.py index 85652d4..fb51049 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_key_post_request_key import ApiV1WorkspaceWorkspaceIdKeyPostRequestKey class ApiV1WorkspaceWorkspaceIdKeyPostRequest(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdKeyPostRequest(BaseModel): """ key: ApiV1WorkspaceWorkspaceIdKeyPostRequestKey = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request_key.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request_key.py index 8c06f50..111cc6d 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request_key.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_key_post_request_key.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdKeyPostRequestKey(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1WorkspaceWorkspaceIdKeyPostRequestKey(BaseModel): nonce: StrictStr = Field(...) user_id: StrictStr = Field(default=..., alias="userId") __properties = ["encryptedKey", "nonce", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response.py index a3abdc3..ce28746 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_keys_get200_response_public_keys_inner import ApiV1WorkspaceWorkspaceIdKeysGet200ResponsePublicKeysInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdKeysGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdKeysGet200Response """ - public_keys: conlist(ApiV1WorkspaceWorkspaceIdKeysGet200ResponsePublicKeysInner) = Field(default=..., alias="publicKeys") + public_keys: Annotated[List[ApiV1WorkspaceWorkspaceIdKeysGet200ResponsePublicKeysInner], Field()] = Field(default=..., alias="publicKeys") __properties = ["publicKeys"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response_public_keys_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response_public_keys_inner.py index 5787310..1dbce59 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response_public_keys_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_keys_get200_response_public_keys_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdKeysGet200ResponsePublicKeysInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdKeysGet200ResponsePublicKeysInner(BaseModel): public_key: Optional[StrictStr] = Field(default=None, alias="publicKey") user_id: StrictStr = Field(default=..., alias="userId") __properties = ["publicKey", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_get200_response.py index f75436c..7f3059c 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdKmsBackupGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1WorkspaceWorkspaceIdKmsBackupGet200Response(BaseModel): """ secret_manager: StrictStr = Field(default=..., alias="secretManager") __properties = ["secretManager"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_post_request.py index 4c83d31..196c7a4 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_backup_post_request.py @@ -19,19 +19,16 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdKmsBackupPostRequest(BaseModel): """ ApiV1WorkspaceWorkspaceIdKmsBackupPostRequest """ - backup: constr(strict=True, min_length=1) = Field(...) + backup: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(...) __properties = ["backup"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response.py index 844fc67..215c097 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_kms_get200_response_secret_manager_kms_key import ApiV1WorkspaceWorkspaceIdKmsGet200ResponseSecretManagerKmsKey class ApiV1WorkspaceWorkspaceIdKmsGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdKmsGet200Response(BaseModel): """ secret_manager_kms_key: ApiV1WorkspaceWorkspaceIdKmsGet200ResponseSecretManagerKmsKey = Field(default=..., alias="secretManagerKmsKey") __properties = ["secretManagerKmsKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response_secret_manager_kms_key.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response_secret_manager_kms_key.py index 1cb6b4c..9152818 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response_secret_manager_kms_key.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_get200_response_secret_manager_kms_key.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1WorkspaceWorkspaceIdKmsGet200ResponseSecretManagerKmsKey(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1WorkspaceWorkspaceIdKmsGet200ResponseSecretManagerKmsKey(BaseModel): slug: StrictStr = Field(...) is_external: StrictBool = Field(default=..., alias="isExternal") __properties = ["id", "slug", "isExternal"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request.py index 196f47a..432f2d5 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_kms_patch_request_kms import ApiV1WorkspaceWorkspaceIdKmsPatchRequestKms class ApiV1WorkspaceWorkspaceIdKmsPatchRequest(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdKmsPatchRequest(BaseModel): """ kms: ApiV1WorkspaceWorkspaceIdKmsPatchRequestKms = Field(...) __properties = ["kms"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms.py index 21ba288..4d1c946 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v1_workspace_workspace_id_kms_patch_request_kms_any_of import ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf from infisicalapi_client.models.api_v1_workspace_workspace_id_kms_patch_request_kms_any_of1 import ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV1WORKSPACEWORKSPACEIDKMSPATCHREQUESTKMS_ANY_OF_SCHEMAS = ["ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf", "ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf1"] @@ -39,11 +39,9 @@ class ApiV1WorkspaceWorkspaceIdKmsPatchRequestKms(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf, ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV1WORKSPACEWORKSPACEIDKMSPATCHREQUESTKMS_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV1WORKSPACEWORKSPACEIDKMSPATCHREQUESTKMS_ANY_OF_SCHEMAS] = APIV1WORKSPACEWORKSPACEIDKMSPATCHREQUESTKMS_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV1WorkspaceWorkspaceIdKmsPatchRequestKms.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of.py index da61221..d26809e 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf(BaseModel): """ @@ -28,17 +28,14 @@ class ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf(BaseModel): type: StrictStr = Field(...) __properties = ["type"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('internal'): raise ValueError("must be one of enum values ('internal')") 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/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of1.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of1.py index 14cc33a..7c92b1c 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of1.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_kms_patch_request_kms_any_of1.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf1(BaseModel): """ @@ -29,17 +29,14 @@ class ApiV1WorkspaceWorkspaceIdKmsPatchRequestKmsAnyOf1(BaseModel): kms_id: StrictStr = Field(default=..., alias="kmsId") __properties = ["type", "kmsId"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value not in ('external'): raise ValueError("must be one of enum values ('external')") 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/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post200_response.py index 9ff2cd5..d79e994 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner import ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInner class ApiV1WorkspaceWorkspaceIdMembershipsDetailsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdMembershipsDetailsPost200Response(BaseModel): """ membership: ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInner = Field(...) __properties = ["membership"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post_request.py index 02aa876..71a1114 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_details_post_request.py @@ -19,19 +19,16 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdMembershipsDetailsPostRequest(BaseModel): """ ApiV1WorkspaceWorkspaceIdMembershipsDetailsPostRequest """ - username: constr(strict=True, min_length=1) = Field(default=..., description="The username to get project membership of. Email is the default username.") + username: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., description="The username to get project membership of. Email is the default username.") __properties = ["username"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response.py index 7587429..3913565 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner import ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdMembershipsGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdMembershipsGet200Response """ - memberships: conlist(ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInner) = Field(...) + memberships: Annotated[List[ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInner], Field()] = Field(...) __properties = ["memberships"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner.py index b81b9e3..3ec379d 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner.py @@ -19,9 +19,10 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner_user import ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInnerUser from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInner(BaseModel): """ @@ -31,13 +32,9 @@ class ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInner(BaseMod user_id: StrictStr = Field(default=..., alias="userId") project_id: StrictStr = Field(default=..., alias="projectId") user: ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInnerUser = Field(...) - roles: conlist(ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner) = Field(...) + roles: Annotated[List[ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner], Field()] = Field(...) __properties = ["id", "userId", "projectId", "user", "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/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner_user.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner_user.py index d0e5010..3c54c8a 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner_user.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_get200_response_memberships_inner_user.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInnerUser(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV1WorkspaceWorkspaceIdMembershipsGet200ResponseMembershipsInnerUser(Bas id: StrictStr = Field(...) public_key: StrictStr = Field(default=..., alias="publicKey") __properties = ["email", "firstName", "lastName", "id", "publicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response.py index 16f06e1..9b71ddd 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_membership_id_patch200_response_roles_inner import ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatch200ResponseRolesInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatch200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatch200Response """ - roles: conlist(ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatch200ResponseRolesInner) = Field(...) + roles: Annotated[List[ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatch200ResponseRolesInner], 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/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response_roles_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response_roles_inner.py index 46b74cb..65c32c7 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response_roles_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch200_response_roles_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatch200ResponseRolesInner(BaseModel): """ @@ -37,11 +37,7 @@ class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatch200ResponseRolesInner created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "role", "projectMembershipId", "customRoleId", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime", "temporaryAccessEndTime", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request.py index 035c9b9..d27e3b1 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner import ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequest(BaseModel): """ ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequest """ - roles: conlist(ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner, min_items=1) = Field(default=..., description="A list of roles to update the membership to.") + roles: Annotated[List[ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner], Field(min_length=1)] = Field(default=..., description="A list of roles to update the membership to.") __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/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner.py index 0490a1a..673044c 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of import ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of1 import ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV1WORKSPACEWORKSPACEIDMEMBERSHIPSMEMBERSHIPIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS = ["ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf", "ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf1"] @@ -39,11 +39,9 @@ class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner(Bas if TYPE_CHECKING: actual_instance: Union[ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf, ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV1WORKSPACEWORKSPACEIDMEMBERSHIPSMEMBERSHIPIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV1WORKSPACEWORKSPACEIDMEMBERSHIPSMEMBERSHIPIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS] = APIV1WORKSPACEWORKSPACEIDMEMBERSHIPSMEMBERSHIPIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of.py index 2d91c2e..ab711ee 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of.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 ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyO role: StrictStr = Field(...) is_temporary: Optional[StrictBool] = Field(default=False, alias="isTemporary") __properties = ["role", "isTemporary"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of1.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of1.py index 173ba1d..d6c7da5 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of1.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner_any_of1.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyOf1(BaseModel): """ @@ -32,17 +32,14 @@ class ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInnerAnyO temporary_access_start_time: datetime = Field(default=..., alias="temporaryAccessStartTime") __properties = ["role", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime"] - @validator('temporary_mode') + @field_validator('temporary_mode') + @classmethod def temporary_mode_validate_enum(cls, value): """Validates the enum""" if value not in ('relative'): raise ValueError("must be one of enum values ('relative')") 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/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post200_response.py index e5e8ff8..52a157b 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post200_response.py @@ -19,21 +19,18 @@ from typing import List -from pydantic import BaseModel, Field, StrictBool, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool from infisicalapi_client.models.api_v1_organization_organization_id_permissions_get200_response_membership import ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdMembershipsPost200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdMembershipsPost200Response """ success: StrictBool = Field(...) - data: conlist(ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership) = Field(...) + data: Annotated[List[ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership], Field()] = Field(...) __properties = ["success", "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/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request.py index 3fb3865..46d7ce6 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_post_request_members_inner import ApiV1WorkspaceWorkspaceIdMembershipsPostRequestMembersInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdMembershipsPostRequest(BaseModel): """ ApiV1WorkspaceWorkspaceIdMembershipsPostRequest """ - members: conlist(ApiV1WorkspaceWorkspaceIdMembershipsPostRequestMembersInner, min_items=1) = Field(...) + members: Annotated[List[ApiV1WorkspaceWorkspaceIdMembershipsPostRequestMembersInner], Field(min_length=1)] = Field(...) __properties = ["members"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request_members_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request_members_inner.py index 9c7d644..31d1ff3 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request_members_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_memberships_post_request_members_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdMembershipsPostRequestMembersInner(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1WorkspaceWorkspaceIdMembershipsPostRequestMembersInner(BaseModel): workspace_encrypted_key: StrictStr = Field(default=..., alias="workspaceEncryptedKey") workspace_encrypted_nonce: StrictStr = Field(default=..., alias="workspaceEncryptedNonce") __properties = ["orgMembershipId", "workspaceEncryptedKey", "workspaceEncryptedNonce"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_migrate_v3_post200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_migrate_v3_post200_response.py index 292901e..b2774e9 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_migrate_v3_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_migrate_v3_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdMigrateV3Post200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1WorkspaceWorkspaceIdMigrateV3Post200Response(BaseModel): """ message: StrictStr = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post200_response.py index 3cd514d..d7e888d 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_organization_admin_projects_get200_response_projects_inner import ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner class ApiV1WorkspaceWorkspaceIdNamePost200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV1WorkspaceWorkspaceIdNamePost200Response(BaseModel): message: StrictStr = Field(...) workspace: ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner = Field(...) __properties = ["message", "workspace"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post_request.py index 9732364..f5034f4 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_name_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdNamePostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1WorkspaceWorkspaceIdNamePostRequest(BaseModel): """ name: StrictStr = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_workspace_workspace_id_patch200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_patch200_response.py index 6e4c651..ca952cc 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_patch200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_patch200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_admin_projects_get200_response_projects_inner import ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner class ApiV1WorkspaceWorkspaceIdPatch200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdPatch200Response(BaseModel): """ workspace: ApiV1OrganizationAdminProjectsGet200ResponseProjectsInner = Field(...) __properties = ["workspace"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_patch_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_patch_request.py index b0204cc..119608c 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_patch_request.py @@ -19,20 +19,17 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictBool, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictBool +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdPatchRequest(BaseModel): """ ApiV1WorkspaceWorkspaceIdPatchRequest """ - name: Optional[constr(strict=True, max_length=64)] = Field(default=None, description="The new name of the project.") + name: Optional[Annotated[str, StringConstraints(strict=True, max_length=64)]] = Field(default=None, description="The new name of the project.") auto_capitalization: Optional[StrictBool] = Field(default=None, alias="autoCapitalization", description="Disable or enable auto-capitalization for the project.") __properties = ["name", "autoCapitalization"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_count_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_count_get200_response.py index 3c745cd..49d7cea 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_count_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_count_get200_response.py @@ -19,7 +19,7 @@ from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt class ApiV1WorkspaceWorkspaceIdSecretSnapshotsCountGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV1WorkspaceWorkspaceIdSecretSnapshotsCountGet200Response(BaseModel): """ count: Union[StrictFloat, StrictInt] = Field(...) __properties = ["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/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response.py index c9d498d..30fd5fe 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_secret_snapshots_get200_response_secret_snapshots_inner import ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200ResponseSecretSnapshotsInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200Response """ - secret_snapshots: conlist(ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200ResponseSecretSnapshotsInner) = Field(default=..., alias="secretSnapshots") + secret_snapshots: Annotated[List[ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200ResponseSecretSnapshotsInner], Field()] = Field(default=..., alias="secretSnapshots") __properties = ["secretSnapshots"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response_secret_snapshots_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response_secret_snapshots_inner.py index b4bf9e9..f4e98dd 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response_secret_snapshots_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_secret_snapshots_get200_response_secret_snapshots_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200ResponseSecretSnapshotsInner(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1WorkspaceWorkspaceIdSecretSnapshotsGet200ResponseSecretSnapshotsInner created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "envId", "folderId", "parentFolderId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response.py index 4c8a693..2345ff3 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_service_token_data_get200_response_service_token_data_inner import ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200Response """ - service_token_data: conlist(ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner) = Field(default=..., alias="serviceTokenData") + service_token_data: Annotated[List[ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner], Field()] = Field(default=..., alias="serviceTokenData") __properties = ["serviceTokenData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response_service_token_data_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response_service_token_data_inner.py index 1806688..636df5d 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response_service_token_data_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_service_token_data_get200_response_service_token_data_inner.py @@ -19,7 +19,8 @@ from datetime import datetime from typing import Any, List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner(BaseModel): """ @@ -28,7 +29,7 @@ class ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInn id: StrictStr = Field(...) name: StrictStr = Field(...) scopes: Optional[Any] = None - permissions: conlist(StrictStr) = Field(...) + permissions: Annotated[List[StrictStr], Field()] = Field(...) last_used: Optional[datetime] = Field(default=None, alias="lastUsed") expires_at: Optional[datetime] = Field(default=None, alias="expiresAt") created_at: datetime = Field(default=..., alias="createdAt") @@ -36,11 +37,7 @@ class ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInn created_by: StrictStr = Field(default=..., alias="createdBy") project_id: StrictStr = Field(default=..., alias="projectId") __properties = ["id", "name", "scopes", "permissions", "lastUsed", "expiresAt", "createdAt", "updatedAt", "createdBy", "projectId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response.py index 549db26..04c7093 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_trusted_ips_get200_response_trusted_ips_inner import ApiV1WorkspaceWorkspaceIdTrustedIpsGet200ResponseTrustedIpsInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdTrustedIpsGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdTrustedIpsGet200Response """ - trusted_ips: conlist(ApiV1WorkspaceWorkspaceIdTrustedIpsGet200ResponseTrustedIpsInner) = Field(default=..., alias="trustedIps") + trusted_ips: Annotated[List[ApiV1WorkspaceWorkspaceIdTrustedIpsGet200ResponseTrustedIpsInner], Field()] = Field(default=..., alias="trustedIps") __properties = ["trustedIps"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response_trusted_ips_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response_trusted_ips_inner.py index d169af8..e27b54e 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response_trusted_ips_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_get200_response_trusted_ips_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV1WorkspaceWorkspaceIdTrustedIpsGet200ResponseTrustedIpsInner(BaseModel): """ @@ -35,11 +35,7 @@ class ApiV1WorkspaceWorkspaceIdTrustedIpsGet200ResponseTrustedIpsInner(BaseModel created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "ipAddress", "type", "prefix", "isActive", "comment", "projectId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post200_response.py index 7b9a5a1..61dffc6 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_trusted_ips_get200_response_trusted_ips_inner import ApiV1WorkspaceWorkspaceIdTrustedIpsGet200ResponseTrustedIpsInner class ApiV1WorkspaceWorkspaceIdTrustedIpsPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdTrustedIpsPost200Response(BaseModel): """ trusted_ip: ApiV1WorkspaceWorkspaceIdTrustedIpsGet200ResponseTrustedIpsInner = Field(default=..., alias="trustedIp") __properties = ["trustedIp"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post_request.py index b939bb2..d7700ed 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_post_request.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 ApiV1WorkspaceWorkspaceIdTrustedIpsPostRequest(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV1WorkspaceWorkspaceIdTrustedIpsPostRequest(BaseModel): comment: Optional[StrictStr] = '' is_active: StrictBool = Field(default=..., alias="isActive") __properties = ["ipAddress", "comment", "isActive"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_trusted_ip_id_patch_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_trusted_ip_id_patch_request.py index c5e8591..b45d032 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_trusted_ip_id_patch_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_trusted_ips_trusted_ip_id_patch_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdTrustedIpsTrustedIpIdPatchRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdTrustedIpsTrustedIpIdPatchRequest(BaseModel): ip_address: StrictStr = Field(default=..., alias="ipAddress") comment: Optional[StrictStr] = '' __properties = ["ipAddress", "comment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response.py index c0cfd6b..b0b48bf 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdUsersGet200Response(BaseModel): """ ApiV1WorkspaceWorkspaceIdUsersGet200Response """ - users: conlist(ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner) = Field(...) + users: Annotated[List[ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner], 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/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner.py index 1cdd7da..d6680c3 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner.py @@ -19,10 +19,11 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_project import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_user import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerUser +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner(BaseModel): """ @@ -33,13 +34,9 @@ class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner(BaseModel): project_id: StrictStr = Field(default=..., alias="projectId") user: ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerUser = Field(...) project: ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject = Field(...) - roles: conlist(ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner) = Field(...) + roles: Annotated[List[ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner], Field()] = Field(...) __properties = ["id", "userId", "projectId", "user", "project", "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/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_project.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_project.py index 9139d95..036b221 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_project.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_project.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerProject(BaseModel): name: StrictStr = Field(...) id: StrictStr = Field(...) __properties = ["name", "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/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner.py index aa9ae4e..68020b4 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner(BaseModel temporary_access_start_time: Optional[datetime] = Field(default=None, alias="temporaryAccessStartTime") temporary_access_end_time: Optional[datetime] = Field(default=None, alias="temporaryAccessEndTime") __properties = ["id", "role", "customRoleId", "customRoleName", "customRoleSlug", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime", "temporaryAccessEndTime"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_user.py b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_user.py index e36b86b..e495c99 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_user.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_id_users_get200_response_users_inner_user.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerUser(BaseModel): """ @@ -32,11 +32,7 @@ class ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerUser(BaseModel): id: StrictStr = Field(...) public_key: StrictStr = Field(default=..., alias="publicKey") __properties = ["email", "username", "firstName", "lastName", "id", "publicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_slug_audit_logs_retention_put_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_slug_audit_logs_retention_put_request.py index 1b28ba6..241b16f 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_slug_audit_logs_retention_put_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_slug_audit_logs_retention_put_request.py @@ -19,19 +19,16 @@ from typing import Union -from pydantic import BaseModel, Field, confloat, conint +from pydantic import ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceSlugAuditLogsRetentionPutRequest(BaseModel): """ ApiV1WorkspaceWorkspaceSlugAuditLogsRetentionPutRequest """ - audit_logs_retention_days: Union[confloat(ge=0, strict=True), conint(ge=0, strict=True)] = Field(default=..., alias="auditLogsRetentionDays") + audit_logs_retention_days: Union[Annotated[float, Field(ge=0, strict=True)], Annotated[int, Field(ge=0, strict=True)]] = Field(default=..., alias="auditLogsRetentionDays") __properties = ["auditLogsRetentionDays"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v1_workspace_workspace_slug_version_limit_put_request.py b/infisicalapi_client/models/api_v1_workspace_workspace_slug_version_limit_put_request.py index 2b6f5ef..3de696b 100644 --- a/infisicalapi_client/models/api_v1_workspace_workspace_slug_version_limit_put_request.py +++ b/infisicalapi_client/models/api_v1_workspace_workspace_slug_version_limit_put_request.py @@ -19,19 +19,16 @@ from typing import Union -from pydantic import BaseModel, Field, confloat, conint +from pydantic import ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV1WorkspaceWorkspaceSlugVersionLimitPutRequest(BaseModel): """ ApiV1WorkspaceWorkspaceSlugVersionLimitPutRequest """ - pit_version_limit: Union[confloat(le=100, ge=1, strict=True), conint(le=100, ge=1, strict=True)] = Field(default=..., alias="pitVersionLimit") + pit_version_limit: Union[Annotated[float, Field(le=100, ge=1, strict=True)], Annotated[int, Field(le=100, ge=1, strict=True)]] = Field(default=..., alias="pitVersionLimit") __properties = ["pitVersionLimit"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_auth_mfa_verify_post200_response.py b/infisicalapi_client/models/api_v2_auth_mfa_verify_post200_response.py index f421124..646386e 100644 --- a/infisicalapi_client/models/api_v2_auth_mfa_verify_post200_response.py +++ b/infisicalapi_client/models/api_v2_auth_mfa_verify_post200_response.py @@ -19,7 +19,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV2AuthMfaVerifyPost200Response(BaseModel): """ @@ -35,11 +35,7 @@ class ApiV2AuthMfaVerifyPost200Response(BaseModel): tag: StrictStr = Field(...) token: StrictStr = Field(...) __properties = ["encryptionVersion", "protectedKey", "protectedKeyIV", "protectedKeyTag", "publicKey", "encryptedPrivateKey", "iv", "tag", "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/infisicalapi_client/models/api_v2_auth_mfa_verify_post_request.py b/infisicalapi_client/models/api_v2_auth_mfa_verify_post_request.py index 0f6f6d8..851a55c 100644 --- a/infisicalapi_client/models/api_v2_auth_mfa_verify_post_request.py +++ b/infisicalapi_client/models/api_v2_auth_mfa_verify_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2AuthMfaVerifyPostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV2AuthMfaVerifyPostRequest(BaseModel): """ mfa_token: StrictStr = Field(default=..., alias="mfaToken") __properties = ["mfaToken"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_org_id_identity_memberships_get200_response.py b/infisicalapi_client/models/api_v2_organizations_org_id_identity_memberships_get200_response.py index 6b494ad..aa3e018 100644 --- a/infisicalapi_client/models/api_v2_organizations_org_id_identity_memberships_get200_response.py +++ b/infisicalapi_client/models/api_v2_organizations_org_id_identity_memberships_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_identities_get200_response_identities_inner import ApiV1IdentitiesGet200ResponseIdentitiesInner +from typing_extensions import Annotated class ApiV2OrganizationsOrgIdIdentityMembershipsGet200Response(BaseModel): """ ApiV2OrganizationsOrgIdIdentityMembershipsGet200Response """ - identity_memberships: conlist(ApiV1IdentitiesGet200ResponseIdentitiesInner) = Field(default=..., alias="identityMemberships") + identity_memberships: Annotated[List[ApiV1IdentitiesGet200ResponseIdentitiesInner], Field()] = Field(default=..., alias="identityMemberships") __properties = ["identityMemberships"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response.py index 2c551c3..5b3d50c 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_organizations_organization_id_memberships_get200_response_users_inner import ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInner +from typing_extensions import Annotated class ApiV2OrganizationsOrganizationIdMembershipsGet200Response(BaseModel): """ ApiV2OrganizationsOrganizationIdMembershipsGet200Response """ - users: conlist(ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInner) = Field(...) + users: Annotated[List[ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInner], 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/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner.py index aad9e77..7a67283 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v2_organizations_organization_id_memberships_get200_response_users_inner_user import ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInnerUser +from typing_extensions import Annotated class ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInner(BaseModel): """ @@ -33,15 +34,11 @@ class ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInner(BaseMo user_id: Optional[StrictStr] = Field(default=None, alias="userId") org_id: StrictStr = Field(default=..., alias="orgId") role_id: Optional[StrictStr] = Field(default=None, alias="roleId") - project_favorites: Optional[conlist(StrictStr)] = Field(default=None, alias="projectFavorites") + project_favorites: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="projectFavorites") is_active: Optional[StrictBool] = Field(default=True, alias="isActive") user: ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInnerUser = Field(...) __properties = ["id", "role", "status", "inviteEmail", "userId", "orgId", "roleId", "projectFavorites", "isActive", "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/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner_user.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner_user.py index 95a66a2..877a9b9 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner_user.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_get200_response_users_inner_user.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 ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInnerUser(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV2OrganizationsOrganizationIdMembershipsGet200ResponseUsersInnerUser(Ba id: StrictStr = Field(...) public_key: StrictStr = Field(default=..., alias="publicKey") __properties = ["username", "email", "isEmailVerified", "firstName", "lastName", "id", "publicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_delete200_response.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_delete200_response.py index 8b0bf3b..ebcebe6 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_delete200_response.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_organization_id_permissions_get200_response_membership import ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdDelete200Response(B """ membership: ApiV1OrganizationOrganizationIdPermissionsGet200ResponseMembership = Field(...) __properties = ["membership"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response.py index 6eb5827..ee831a0 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership import ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembership class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200Response(Base """ membership: ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembership = Field(...) __properties = ["membership"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership.py index 55db3a3..b9708ee 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr from infisicalapi_client.models.api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership_user import ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembershipUser +from typing_extensions import Annotated class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembership(BaseModel): """ @@ -33,15 +34,11 @@ class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembe user_id: Optional[StrictStr] = Field(default=None, alias="userId") org_id: StrictStr = Field(default=..., alias="orgId") role_id: Optional[StrictStr] = Field(default=None, alias="roleId") - project_favorites: Optional[conlist(StrictStr)] = Field(default=None, alias="projectFavorites") + project_favorites: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="projectFavorites") is_active: Optional[StrictBool] = Field(default=True, alias="isActive") user: ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembershipUser = Field(...) __properties = ["id", "role", "status", "inviteEmail", "userId", "orgId", "roleId", "projectFavorites", "isActive", "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/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership_user.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership_user.py index 323dfe3..4fcc2c0 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership_user.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_get200_response_membership_user.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 ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembershipUser(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdGet200ResponseMembe id: StrictStr = Field(...) public_key: Optional[StrictStr] = Field(default=..., alias="publicKey") __properties = ["username", "email", "isEmailVerified", "firstName", "lastName", "id", "publicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_patch_request.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_patch_request.py index 8c8afb0..a436a57 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_patch_request.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_patch_request.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 ApiV2OrganizationsOrganizationIdMembershipsMembershipIdPatchRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdPatchRequest(BaseMo role: Optional[StrictStr] = Field(default=None, description="The new role of the membership.") is_active: Optional[StrictBool] = Field(default=None, alias="isActive", description="The active status of the membership") __properties = ["role", "isActive"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_project_memberships_get200_response.py b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_project_memberships_get200_response.py index 998a0b1..3bb3ad7 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_project_memberships_get200_response.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_memberships_membership_id_project_memberships_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner +from typing_extensions import Annotated class ApiV2OrganizationsOrganizationIdMembershipsMembershipIdProjectMembershipsGet200Response(BaseModel): """ ApiV2OrganizationsOrganizationIdMembershipsMembershipIdProjectMembershipsGet200Response """ - memberships: conlist(ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner) = Field(...) + memberships: Annotated[List[ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInner], Field()] = Field(...) __properties = ["memberships"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response.py b/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response.py index 2335f36..b0e031f 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner import ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInner +from typing_extensions import Annotated class ApiV2OrganizationsOrganizationIdWorkspacesGet200Response(BaseModel): """ ApiV2OrganizationsOrganizationIdWorkspacesGet200Response """ - workspaces: conlist(ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInner) = Field(...) + workspaces: Annotated[List[ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInner], Field()] = Field(...) __properties = ["workspaces"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner.py b/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner.py index 49dd61a..a08e785 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner.py @@ -19,8 +19,9 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner_environments_inner import ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInnerEnvironmentsInner +from typing_extensions import Annotated class ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInner(BaseModel): """ @@ -30,13 +31,9 @@ class ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInner(Ba name: StrictStr = Field(...) slug: StrictStr = Field(...) organization: StrictStr = Field(...) - environments: conlist(ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInnerEnvironmentsInner) = Field(...) + environments: Annotated[List[ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInnerEnvironmentsInner], Field()] = Field(...) __properties = ["id", "name", "slug", "organization", "environments"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner_environments_inner.py b/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner_environments_inner.py index caa01c2..da503ba 100644 --- a/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner_environments_inner.py +++ b/infisicalapi_client/models/api_v2_organizations_organization_id_workspaces_get200_response_workspaces_inner_environments_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInnerEnvironmentsInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2OrganizationsOrganizationIdWorkspacesGet200ResponseWorkspacesInnerEnv name: StrictStr = Field(...) slug: StrictStr = Field(...) __properties = ["name", "slug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_service_token_get200_response.py b/infisicalapi_client/models/api_v2_service_token_get200_response.py index 9fea16d..a35fe08 100644 --- a/infisicalapi_client/models/api_v2_service_token_get200_response.py +++ b/infisicalapi_client/models/api_v2_service_token_get200_response.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v2_service_token_get200_response_user import ApiV2ServiceTokenGet200ResponseUser +from typing_extensions import Annotated class ApiV2ServiceTokenGet200Response(BaseModel): """ @@ -29,7 +30,7 @@ class ApiV2ServiceTokenGet200Response(BaseModel): id: StrictStr = Field(...) name: StrictStr = Field(...) scopes: Optional[Any] = None - permissions: conlist(StrictStr) = Field(...) + permissions: Annotated[List[StrictStr], Field()] = Field(...) last_used: Optional[datetime] = Field(default=None, alias="lastUsed") expires_at: Optional[datetime] = Field(default=None, alias="expiresAt") secret_hash: StrictStr = Field(default=..., alias="secretHash") @@ -45,11 +46,7 @@ class ApiV2ServiceTokenGet200Response(BaseModel): id: StrictStr = Field(default=..., alias="_id") v: Optional[Union[StrictFloat, StrictInt]] = Field(default=0, alias="__v") __properties = ["id", "name", "scopes", "permissions", "lastUsed", "expiresAt", "secretHash", "encryptedKey", "iv", "tag", "createdAt", "updatedAt", "createdBy", "projectId", "workspace", "user", "_id", "__v"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_service_token_get200_response_user.py b/infisicalapi_client/models/api_v2_service_token_get200_response_user.py index 5fd99c8..2fa895f 100644 --- a/infisicalapi_client/models/api_v2_service_token_get200_response_user.py +++ b/infisicalapi_client/models/api_v2_service_token_get200_response_user.py @@ -19,13 +19,14 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV2ServiceTokenGet200ResponseUser(BaseModel): """ ApiV2ServiceTokenGet200ResponseUser """ - auth_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="authMethods") + auth_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="authMethods") id: StrictStr = Field(...) created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") @@ -33,15 +34,11 @@ class ApiV2ServiceTokenGet200ResponseUser(BaseModel): email: Optional[StrictStr] = None first_name: Optional[StrictStr] = Field(default=None, alias="firstName") last_name: Optional[StrictStr] = Field(default=None, alias="lastName") - mfa_methods: Optional[conlist(StrictStr)] = Field(default=None, alias="mfaMethods") + mfa_methods: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="mfaMethods") v: Optional[Union[StrictFloat, StrictInt]] = Field(default=0, alias="__v") id: StrictStr = Field(default=..., alias="_id") __properties = ["authMethods", "id", "createdAt", "updatedAt", "devices", "email", "firstName", "lastName", "mfaMethods", "__v", "_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/infisicalapi_client/models/api_v2_service_token_post200_response.py b/infisicalapi_client/models/api_v2_service_token_post200_response.py index f3b0f5e..5fd3263 100644 --- a/infisicalapi_client/models/api_v2_service_token_post200_response.py +++ b/infisicalapi_client/models/api_v2_service_token_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_workspace_id_service_token_data_get200_response_service_token_data_inner import ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner class ApiV2ServiceTokenPost200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV2ServiceTokenPost200Response(BaseModel): service_token: StrictStr = Field(default=..., alias="serviceToken") service_token_data: ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner = Field(default=..., alias="serviceTokenData") __properties = ["serviceToken", "serviceTokenData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_service_token_post_request.py b/infisicalapi_client/models/api_v2_service_token_post_request.py index 607bbfa..e6a572f 100644 --- a/infisicalapi_client/models/api_v2_service_token_post_request.py +++ b/infisicalapi_client/models/api_v2_service_token_post_request.py @@ -19,8 +19,9 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v2_service_token_post_request_scopes_inner import ApiV2ServiceTokenPostRequestScopesInner +from typing_extensions import Annotated class ApiV2ServiceTokenPostRequest(BaseModel): """ @@ -28,26 +29,23 @@ class ApiV2ServiceTokenPostRequest(BaseModel): """ name: StrictStr = Field(...) workspace_id: StrictStr = Field(default=..., alias="workspaceId") - scopes: conlist(ApiV2ServiceTokenPostRequestScopesInner, min_items=1) = Field(...) + scopes: Annotated[List[ApiV2ServiceTokenPostRequestScopesInner], Field(min_length=1)] = Field(...) encrypted_key: StrictStr = Field(default=..., alias="encryptedKey") iv: StrictStr = Field(...) tag: StrictStr = Field(...) expires_in: Optional[Union[StrictFloat, StrictInt]] = Field(default=..., alias="expiresIn") - permissions: conlist(StrictStr) = Field(...) + permissions: Annotated[List[StrictStr], Field()] = Field(...) __properties = ["name", "workspaceId", "scopes", "encryptedKey", "iv", "tag", "expiresIn", "permissions"] - @validator('permissions') + @field_validator('permissions') + @classmethod def permissions_validate_enum(cls, value): """Validates the enum""" for i in value: if i not in ('read', 'write'): raise ValueError("each list item must be one of ('read', 'write')") 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/infisicalapi_client/models/api_v2_service_token_post_request_scopes_inner.py b/infisicalapi_client/models/api_v2_service_token_post_request_scopes_inner.py index 06b1b1e..eda404a 100644 --- a/infisicalapi_client/models/api_v2_service_token_post_request_scopes_inner.py +++ b/infisicalapi_client/models/api_v2_service_token_post_request_scopes_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2ServiceTokenPostRequestScopesInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2ServiceTokenPostRequestScopesInner(BaseModel): environment: StrictStr = Field(...) secret_path: StrictStr = Field(default=..., alias="secretPath") __properties = ["environment", "secretPath"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_service_token_service_token_id_delete200_response.py b/infisicalapi_client/models/api_v2_service_token_service_token_id_delete200_response.py index 512b065..5a65b9d 100644 --- a/infisicalapi_client/models/api_v2_service_token_service_token_id_delete200_response.py +++ b/infisicalapi_client/models/api_v2_service_token_service_token_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_service_token_data_get200_response_service_token_data_inner import ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner class ApiV2ServiceTokenServiceTokenIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2ServiceTokenServiceTokenIdDelete200Response(BaseModel): """ service_token_data: ApiV1WorkspaceWorkspaceIdServiceTokenDataGet200ResponseServiceTokenDataInner = Field(default=..., alias="serviceTokenData") __properties = ["serviceTokenData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_api_keys_api_key_data_id_delete200_response.py b/infisicalapi_client/models/api_v2_users_me_api_keys_api_key_data_id_delete200_response.py index 7163d76..f9e70ec 100644 --- a/infisicalapi_client/models/api_v2_users_me_api_keys_api_key_data_id_delete200_response.py +++ b/infisicalapi_client/models/api_v2_users_me_api_keys_api_key_data_id_delete200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_users_me_api_keys_get200_response_inner import ApiV2UsersMeApiKeysGet200ResponseInner class ApiV2UsersMeApiKeysApiKeyDataIdDelete200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2UsersMeApiKeysApiKeyDataIdDelete200Response(BaseModel): """ api_key_data: ApiV2UsersMeApiKeysGet200ResponseInner = Field(default=..., alias="apiKeyData") __properties = ["apiKeyData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_api_keys_get200_response_inner.py b/infisicalapi_client/models/api_v2_users_me_api_keys_get200_response_inner.py index c452d0b..631213f 100644 --- a/infisicalapi_client/models/api_v2_users_me_api_keys_get200_response_inner.py +++ b/infisicalapi_client/models/api_v2_users_me_api_keys_get200_response_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2UsersMeApiKeysGet200ResponseInner(BaseModel): """ @@ -33,11 +33,7 @@ class ApiV2UsersMeApiKeysGet200ResponseInner(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") user_id: StrictStr = Field(default=..., alias="userId") __properties = ["id", "name", "lastUsed", "expiresAt", "createdAt", "updatedAt", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_api_keys_post200_response.py b/infisicalapi_client/models/api_v2_users_me_api_keys_post200_response.py index 7de5eb2..a0a6999 100644 --- a/infisicalapi_client/models/api_v2_users_me_api_keys_post200_response.py +++ b/infisicalapi_client/models/api_v2_users_me_api_keys_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v2_users_me_api_keys_get200_response_inner import ApiV2UsersMeApiKeysGet200ResponseInner class ApiV2UsersMeApiKeysPost200Response(BaseModel): @@ -29,11 +29,7 @@ class ApiV2UsersMeApiKeysPost200Response(BaseModel): api_key: StrictStr = Field(default=..., alias="apiKey") api_key_data: ApiV2UsersMeApiKeysGet200ResponseInner = Field(default=..., alias="apiKeyData") __properties = ["apiKey", "apiKeyData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_api_keys_post_request.py b/infisicalapi_client/models/api_v2_users_me_api_keys_post_request.py index 2e08f98..16888ae 100644 --- a/infisicalapi_client/models/api_v2_users_me_api_keys_post_request.py +++ b/infisicalapi_client/models/api_v2_users_me_api_keys_post_request.py @@ -19,7 +19,7 @@ from typing import Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV2UsersMeApiKeysPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2UsersMeApiKeysPostRequest(BaseModel): name: StrictStr = Field(...) expires_in: Union[StrictFloat, StrictInt] = Field(default=..., alias="expiresIn") __properties = ["name", "expiresIn"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_auth_methods_put_request.py b/infisicalapi_client/models/api_v2_users_me_auth_methods_put_request.py index d56cee1..eb42865 100644 --- a/infisicalapi_client/models/api_v2_users_me_auth_methods_put_request.py +++ b/infisicalapi_client/models/api_v2_users_me_auth_methods_put_request.py @@ -19,27 +19,25 @@ from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV2UsersMeAuthMethodsPutRequest(BaseModel): """ ApiV2UsersMeAuthMethodsPutRequest """ - auth_methods: conlist(StrictStr, min_items=1) = Field(default=..., alias="authMethods") + auth_methods: Annotated[List[StrictStr], Field(min_length=1)] = Field(default=..., alias="authMethods") __properties = ["authMethods"] - @validator('auth_methods') + @field_validator('auth_methods') + @classmethod def auth_methods_validate_enum(cls, value): """Validates the enum""" for i in value: if i not in ('email', 'google', 'github', 'gitlab', 'okta-saml', 'azure-saml', 'jumpcloud-saml', 'google-saml', 'keycloak-saml', 'ldap', 'oidc'): raise ValueError("each list item must be one of ('email', 'google', 'github', 'gitlab', 'okta-saml', 'azure-saml', 'jumpcloud-saml', 'google-saml', 'keycloak-saml', 'ldap', 'oidc')") 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/infisicalapi_client/models/api_v2_users_me_emails_code_post_request.py b/infisicalapi_client/models/api_v2_users_me_emails_code_post_request.py index 92affac..6d49c8a 100644 --- a/infisicalapi_client/models/api_v2_users_me_emails_code_post_request.py +++ b/infisicalapi_client/models/api_v2_users_me_emails_code_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2UsersMeEmailsCodePostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV2UsersMeEmailsCodePostRequest(BaseModel): """ username: StrictStr = Field(...) __properties = ["username"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_emails_verify_post_request.py b/infisicalapi_client/models/api_v2_users_me_emails_verify_post_request.py index 00ef31f..ec61bb0 100644 --- a/infisicalapi_client/models/api_v2_users_me_emails_verify_post_request.py +++ b/infisicalapi_client/models/api_v2_users_me_emails_verify_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2UsersMeEmailsVerifyPostRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2UsersMeEmailsVerifyPostRequest(BaseModel): username: StrictStr = Field(...) code: StrictStr = Field(...) __properties = ["username", "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/infisicalapi_client/models/api_v2_users_me_mfa_patch200_response.py b/infisicalapi_client/models/api_v2_users_me_mfa_patch200_response.py index 002e817..52045fe 100644 --- a/infisicalapi_client/models/api_v2_users_me_mfa_patch200_response.py +++ b/infisicalapi_client/models/api_v2_users_me_mfa_patch200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_password_email_password_reset_verify_post200_response_user import ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser class ApiV2UsersMeMfaPatch200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2UsersMeMfaPatch200Response(BaseModel): """ user: ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser = Field(...) __properties = ["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/infisicalapi_client/models/api_v2_users_me_mfa_patch_request.py b/infisicalapi_client/models/api_v2_users_me_mfa_patch_request.py index fb80f14..94df8a1 100644 --- a/infisicalapi_client/models/api_v2_users_me_mfa_patch_request.py +++ b/infisicalapi_client/models/api_v2_users_me_mfa_patch_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class ApiV2UsersMeMfaPatchRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV2UsersMeMfaPatchRequest(BaseModel): """ is_mfa_enabled: StrictBool = Field(default=..., alias="isMfaEnabled") __properties = ["isMfaEnabled"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_name_patch_request.py b/infisicalapi_client/models/api_v2_users_me_name_patch_request.py index 80e00dd..2d19b9d 100644 --- a/infisicalapi_client/models/api_v2_users_me_name_patch_request.py +++ b/infisicalapi_client/models/api_v2_users_me_name_patch_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2UsersMeNamePatchRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2UsersMeNamePatchRequest(BaseModel): first_name: StrictStr = Field(default=..., alias="firstName") last_name: StrictStr = Field(default=..., alias="lastName") __properties = ["firstName", "lastName"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_users_me_sessions_get200_response_inner.py b/infisicalapi_client/models/api_v2_users_me_sessions_get200_response_inner.py index 40208ac..fb0e771 100644 --- a/infisicalapi_client/models/api_v2_users_me_sessions_get200_response_inner.py +++ b/infisicalapi_client/models/api_v2_users_me_sessions_get200_response_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt, StrictStr class ApiV2UsersMeSessionsGet200ResponseInner(BaseModel): """ @@ -35,11 +35,7 @@ class ApiV2UsersMeSessionsGet200ResponseInner(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") user_id: StrictStr = Field(default=..., alias="userId") __properties = ["id", "ip", "userAgent", "refreshVersion", "accessVersion", "lastUsed", "createdAt", "updatedAt", "userId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_post200_response.py b/infisicalapi_client/models/api_v2_workspace_post200_response.py index 88b4602..1e2ef8e 100644 --- a/infisicalapi_client/models/api_v2_workspace_post200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_get200_response_workspaces_inner import ApiV1WorkspaceGet200ResponseWorkspacesInner class ApiV2WorkspacePost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2WorkspacePost200Response(BaseModel): """ project: ApiV1WorkspaceGet200ResponseWorkspacesInner = Field(...) __properties = ["project"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_post_request.py b/infisicalapi_client/models/api_v2_workspace_post_request.py index 4289eaa..4b11a58 100644 --- a/infisicalapi_client/models/api_v2_workspace_post_request.py +++ b/infisicalapi_client/models/api_v2_workspace_post_request.py @@ -19,21 +19,18 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV2WorkspacePostRequest(BaseModel): """ ApiV2WorkspacePostRequest """ project_name: StrictStr = Field(default=..., alias="projectName", description="The name of the project to create.") - slug: Optional[constr(strict=True, max_length=36, min_length=5)] = Field(default=None, description="An optional slug for the project.") + slug: Optional[Annotated[str, StringConstraints(strict=True, max_length=36, min_length=5)]] = Field(default=None, description="An optional slug for the project.") kms_key_id: Optional[StrictStr] = Field(default=None, alias="kmsKeyId") __properties = ["projectName", "slug", "kmsKeyId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_get200_response.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_get200_response.py index 39a9ea8..6fbde28 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_get200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_identities_identity_id_identity_memberships_get200_response_identity_memberships_inner import ApiV1IdentitiesIdentityIdIdentityMembershipsGet200ResponseIdentityMembershipsInner class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdGet200Response(BaseMod """ identity_membership: ApiV1IdentitiesIdentityIdIdentityMembershipsGet200ResponseIdentityMembershipsInner = Field(default=..., alias="identityMembership") __properties = ["identityMembership"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request.py index c47d187..f44ce5a 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner import ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInner +from typing_extensions import Annotated class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequest(BaseModel): """ ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequest """ - roles: conlist(ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInner, min_items=1) = Field(default=..., description="A list of role slugs to assign to the identity project membership.") + roles: Annotated[List[ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInner], Field(min_length=1)] = Field(default=..., description="A list of role slugs to assign to the identity project membership.") __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/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner.py index fdd7ad9..d3741c3 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of import ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf from infisicalapi_client.models.api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of1 import ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS = ["ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf", "ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf1"] @@ -39,11 +39,9 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInner if TYPE_CHECKING: actual_instance: Union[ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf, ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS] = APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPATCHREQUESTROLESINNER_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInner.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of.py index 1aca150..9df3370 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of.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 ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInner role: StrictStr = Field(default=..., description="The role slug to assign to the newly created identity project membership.") is_temporary: Optional[StrictBool] = Field(default=False, alias="isTemporary", description="Whether the assigned role is temporary. If isTemporary is set true, must provide temporaryMode, temporaryRange and temporaryAccessStartTime.") __properties = ["role", "isTemporary"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of1.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of1.py index 9a24497..fe5f87c 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of1.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_patch_request_roles_inner_any_of1.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInnerAnyOf1(BaseModel): """ @@ -32,17 +32,14 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPatchRequestRolesInner temporary_access_start_time: datetime = Field(default=..., alias="temporaryAccessStartTime", description="Time to which the temporary access starts") __properties = ["role", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime"] - @validator('temporary_mode') + @field_validator('temporary_mode') + @classmethod def temporary_mode_validate_enum(cls, value): """Validates the enum""" if value not in ('relative'): raise ValueError("must be one of enum values ('relative')") 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/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response.py index e5740ac..851a3cd 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_workspace_project_id_identity_memberships_identity_id_post200_response_identity_membership import ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPost200ResponseIdentityMembership class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPost200Response(BaseMo """ identity_membership: ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPost200ResponseIdentityMembership = Field(default=..., alias="identityMembership") __properties = ["identityMembership"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response_identity_membership.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response_identity_membership.py index 633409a..bf14dd5 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response_identity_membership.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post200_response_identity_membership.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPost200ResponseIdentityMembership(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPost200ResponseIdentit created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "projectId", "identityId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request.py index 6b5defa..d7eb8d0 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request.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 infisicalapi_client.models.api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner import ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInner +from typing_extensions import Annotated class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequest(BaseModel): """ ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequest """ role: Optional[StrictStr] = 'no-access' - roles: Optional[conlist(ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInner)] = Field(default=None, description="A list of role slugs to assign to the newly created identity project membership.") + roles: Optional[Annotated[List[ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInner], Field()]] = Field(default=None, description="A list of role slugs to assign to the newly created identity project membership.") __properties = ["role", "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/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner.py index 4032f04..fa2bbee 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of import ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf from infisicalapi_client.models.api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of1 import ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPOSTREQUESTROLESINNER_ANY_OF_SCHEMAS = ["ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf", "ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf1"] @@ -39,11 +39,9 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInner( if TYPE_CHECKING: actual_instance: Union[ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf, ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPOSTREQUESTROLESINNER_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPOSTREQUESTROLESINNER_ANY_OF_SCHEMAS] = APIV2WORKSPACEPROJECTIDIDENTITYMEMBERSHIPSIDENTITYIDPOSTREQUESTROLESINNER_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInner.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of.py index 8b2ae83..707565d 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of.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 ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerA role: StrictStr = Field(default=..., description="The role slug to assign to the newly created identity project membership.") is_temporary: Optional[StrictBool] = Field(default=False, alias="isTemporary", description="The role slug to assign to the newly created identity project membership.") __properties = ["role", "isTemporary"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of1.py b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of1.py index a3b38c7..ec4bbcb 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of1.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_identity_memberships_identity_id_post_request_roles_inner_any_of1.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerAnyOf1(BaseModel): """ @@ -32,17 +32,14 @@ class ApiV2WorkspaceProjectIdIdentityMembershipsIdentityIdPostRequestRolesInnerA temporary_access_start_time: datetime = Field(default=..., alias="temporaryAccessStartTime", description="The role slug to assign to the newly created identity project membership.") __properties = ["role", "isTemporary", "temporaryMode", "temporaryRange", "temporaryAccessStartTime"] - @validator('temporary_mode') + @field_validator('temporary_mode') + @classmethod def temporary_mode_validate_enum(cls, value): """Validates the enum""" if value not in ('relative'): raise ValueError("must be one of enum values ('relative')") 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/infisicalapi_client/models/api_v2_workspace_project_id_memberships_delete_request.py b/infisicalapi_client/models/api_v2_workspace_project_id_memberships_delete_request.py index 27b2f50..6b38997 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_memberships_delete_request.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_memberships_delete_request.py @@ -19,20 +19,17 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV2WorkspaceProjectIdMembershipsDeleteRequest(BaseModel): """ ApiV2WorkspaceProjectIdMembershipsDeleteRequest """ - emails: Optional[conlist(StrictStr)] = Field(default=None, description="A list of organization member emails to remove from the project.") - usernames: Optional[conlist(StrictStr)] = Field(default=None, description="A list of usernames to remove from the project.") + emails: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, description="A list of organization member emails to remove from the project.") + usernames: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, description="A list of usernames to remove from the project.") __properties = ["emails", "usernames"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post200_response.py b/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post200_response.py index da42801..a892da0 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_organization_admin_projects_project_id_grant_admin_access_post200_response_membership import ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200ResponseMembership +from typing_extensions import Annotated class ApiV2WorkspaceProjectIdMembershipsPost200Response(BaseModel): """ ApiV2WorkspaceProjectIdMembershipsPost200Response """ - memberships: conlist(ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200ResponseMembership) = Field(...) + memberships: Annotated[List[ApiV1OrganizationAdminProjectsProjectIdGrantAdminAccessPost200ResponseMembership], Field()] = Field(...) __properties = ["memberships"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post_request.py b/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post_request.py index a5fda3f..83b20c7 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post_request.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_memberships_post_request.py @@ -19,20 +19,17 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV2WorkspaceProjectIdMembershipsPostRequest(BaseModel): """ ApiV2WorkspaceProjectIdMembershipsPostRequest """ - emails: Optional[conlist(StrictStr)] = Field(default=None, description="A list of organization member emails to invite to the project.") - usernames: Optional[conlist(StrictStr)] = Field(default=None, description="A list of usernames to invite to the project.") + emails: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, description="A list of organization member emails to invite to the project.") + usernames: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, description="A list of usernames to invite to the project.") __properties = ["emails", "usernames"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_post_request.py b/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_post_request.py index 2e73c65..8af2968 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_post_request.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_post_request.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2WorkspaceProjectIdUpgradePostRequest(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV2WorkspaceProjectIdUpgradePostRequest(BaseModel): """ user_private_key: StrictStr = Field(default=..., alias="userPrivateKey") __properties = ["userPrivateKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_status_get200_response.py b/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_status_get200_response.py index c3ba26c..49f6460 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_status_get200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_project_id_upgrade_status_get200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2WorkspaceProjectIdUpgradeStatusGet200Response(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV2WorkspaceProjectIdUpgradeStatusGet200Response(BaseModel): """ status: Optional[StrictStr] = 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/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response.py b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response.py index 3b2967e..1bce0e2 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner import ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInner +from typing_extensions import Annotated class ApiV2WorkspaceProjectSlugGroupsGet200Response(BaseModel): """ ApiV2WorkspaceProjectSlugGroupsGet200Response """ - group_memberships: conlist(ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInner) = Field(default=..., alias="groupMemberships") + group_memberships: Annotated[List[ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInner], Field()] = Field(default=..., alias="groupMemberships") __properties = ["groupMemberships"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner.py b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner.py index 53892ba..0a8e15e 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner.py +++ b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner.py @@ -19,9 +19,10 @@ from datetime import datetime from typing import List -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_workspace_workspace_id_users_get200_response_users_inner_roles_inner import ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner from infisicalapi_client.models.api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner_group import ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInnerGroup +from typing_extensions import Annotated class ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInner(BaseModel): """ @@ -31,14 +32,10 @@ class ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInner(BaseMod group_id: StrictStr = Field(default=..., alias="groupId") created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") - roles: conlist(ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner) = Field(...) + roles: Annotated[List[ApiV1WorkspaceWorkspaceIdUsersGet200ResponseUsersInnerRolesInner], Field()] = Field(...) group: ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInnerGroup = Field(...) __properties = ["id", "groupId", "createdAt", "updatedAt", "roles", "group"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner_group.py b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner_group.py index cbeebc6..17ee140 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner_group.py +++ b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_get200_response_group_memberships_inner_group.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInnerGroup(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV2WorkspaceProjectSlugGroupsGet200ResponseGroupMembershipsInnerGroup(Ba id: StrictStr = Field(...) slug: StrictStr = Field(...) __properties = ["name", "id", "slug"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_patch_request.py b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_patch_request.py index 74dbb5c..e5f85e6 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_patch_request.py +++ b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_patch_request.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_workspace_workspace_id_memberships_membership_id_patch_request_roles_inner import ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner +from typing_extensions import Annotated class ApiV2WorkspaceProjectSlugGroupsGroupSlugPatchRequest(BaseModel): """ ApiV2WorkspaceProjectSlugGroupsGroupSlugPatchRequest """ - roles: conlist(ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner, min_items=1) = Field(default=..., description="A list of roles to update the group to.") + roles: Annotated[List[ApiV1WorkspaceWorkspaceIdMembershipsMembershipIdPatchRequestRolesInner], Field(min_length=1)] = Field(default=..., description="A list of roles to update the group to.") __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/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response.py b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response.py index 8339374..6fbfd3b 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_workspace_project_slug_groups_group_slug_post200_response_group_membership import ApiV2WorkspaceProjectSlugGroupsGroupSlugPost200ResponseGroupMembership class ApiV2WorkspaceProjectSlugGroupsGroupSlugPost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV2WorkspaceProjectSlugGroupsGroupSlugPost200Response(BaseModel): """ group_membership: ApiV2WorkspaceProjectSlugGroupsGroupSlugPost200ResponseGroupMembership = Field(default=..., alias="groupMembership") __properties = ["groupMembership"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response_group_membership.py b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response_group_membership.py index 07512d2..5fab824 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response_group_membership.py +++ b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post200_response_group_membership.py @@ -19,7 +19,7 @@ from datetime import datetime -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2WorkspaceProjectSlugGroupsGroupSlugPost200ResponseGroupMembership(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV2WorkspaceProjectSlugGroupsGroupSlugPost200ResponseGroupMembership(Bas created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") __properties = ["id", "projectId", "groupId", "createdAt", "updatedAt"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post_request.py b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post_request.py index d181bc7..c1c0a99 100644 --- a/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post_request.py +++ b/infisicalapi_client/models/api_v2_workspace_project_slug_groups_group_slug_post_request.py @@ -19,19 +19,16 @@ from typing import Optional -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV2WorkspaceProjectSlugGroupsGroupSlugPostRequest(BaseModel): """ ApiV2WorkspaceProjectSlugGroupsGroupSlugPostRequest """ - role: Optional[constr(strict=True, min_length=1)] = Field(default='no-access', description="The role for the group to assume in the project.") + role: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default='no-access', description="The role for the group to assume in the project.") __properties = ["role"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_slug_cas_get200_response.py b/infisicalapi_client/models/api_v2_workspace_slug_cas_get200_response.py index 037185e..7eec6f6 100644 --- a/infisicalapi_client/models/api_v2_workspace_slug_cas_get200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_slug_cas_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_pki_ca_post200_response_ca import ApiV1PkiCaPost200ResponseCa +from typing_extensions import Annotated class ApiV2WorkspaceSlugCasGet200Response(BaseModel): """ ApiV2WorkspaceSlugCasGet200Response """ - cas: conlist(ApiV1PkiCaPost200ResponseCa) = Field(...) + cas: Annotated[List[ApiV1PkiCaPost200ResponseCa], Field()] = Field(...) __properties = ["cas"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_slug_certificates_get200_response.py b/infisicalapi_client/models/api_v2_workspace_slug_certificates_get200_response.py index 42c7744..6c64f6a 100644 --- a/infisicalapi_client/models/api_v2_workspace_slug_certificates_get200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_slug_certificates_get200_response.py @@ -19,21 +19,18 @@ from typing import List, Union -from pydantic import BaseModel, Field, StrictFloat, StrictInt, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictFloat, StrictInt from infisicalapi_client.models.api_v1_pki_certificates_serial_number_get200_response_certificate import ApiV1PkiCertificatesSerialNumberGet200ResponseCertificate +from typing_extensions import Annotated class ApiV2WorkspaceSlugCertificatesGet200Response(BaseModel): """ ApiV2WorkspaceSlugCertificatesGet200Response """ - certificates: conlist(ApiV1PkiCertificatesSerialNumberGet200ResponseCertificate) = Field(...) + certificates: Annotated[List[ApiV1PkiCertificatesSerialNumberGet200ResponseCertificate], Field()] = Field(...) total_count: Union[StrictFloat, StrictInt] = Field(default=..., alias="totalCount") __properties = ["certificates", "totalCount"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_slug_patch_request.py b/infisicalapi_client/models/api_v2_workspace_slug_patch_request.py index ab0daa7..f2f05b5 100644 --- a/infisicalapi_client/models/api_v2_workspace_slug_patch_request.py +++ b/infisicalapi_client/models/api_v2_workspace_slug_patch_request.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 ApiV2WorkspaceSlugPatchRequest(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV2WorkspaceSlugPatchRequest(BaseModel): name: Optional[StrictStr] = Field(default=None, description="The new name of the project.") auto_capitalization: Optional[StrictBool] = Field(default=None, alias="autoCapitalization", description="The new auto-capitalization setting.") __properties = ["name", "autoCapitalization"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response.py b/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response.py index 55520be..eede46e 100644 --- a/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response.py +++ b/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v2_workspace_workspace_id_encrypted_key_get200_response_sender import ApiV2WorkspaceWorkspaceIdEncryptedKeyGet200ResponseSender class ApiV2WorkspaceWorkspaceIdEncryptedKeyGet200Response(BaseModel): @@ -36,11 +36,7 @@ class ApiV2WorkspaceWorkspaceIdEncryptedKeyGet200Response(BaseModel): updated_at: datetime = Field(default=..., alias="updatedAt") sender: ApiV2WorkspaceWorkspaceIdEncryptedKeyGet200ResponseSender = Field(...) __properties = ["id", "encryptedKey", "nonce", "receiverId", "senderId", "projectId", "createdAt", "updatedAt", "sender"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response_sender.py b/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response_sender.py index a5c43a3..c8f5e3a 100644 --- a/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response_sender.py +++ b/infisicalapi_client/models/api_v2_workspace_workspace_id_encrypted_key_get200_response_sender.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV2WorkspaceWorkspaceIdEncryptedKeyGet200ResponseSender(BaseModel): """ @@ -27,11 +27,7 @@ class ApiV2WorkspaceWorkspaceIdEncryptedKeyGet200ResponseSender(BaseModel): """ public_key: StrictStr = Field(default=..., alias="publicKey") __properties = ["publicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_auth_login1_post_request.py b/infisicalapi_client/models/api_v3_auth_login1_post_request.py index 1737761..66c0420 100644 --- a/infisicalapi_client/models/api_v3_auth_login1_post_request.py +++ b/infisicalapi_client/models/api_v3_auth_login1_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV3AuthLogin1PostRequest(BaseModel): """ @@ -29,11 +29,7 @@ class ApiV3AuthLogin1PostRequest(BaseModel): provider_auth_token: Optional[StrictStr] = Field(default=None, alias="providerAuthToken") client_public_key: StrictStr = Field(default=..., alias="clientPublicKey") __properties = ["email", "providerAuthToken", "clientPublicKey"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_auth_login2_post200_response.py b/infisicalapi_client/models/api_v3_auth_login2_post200_response.py index 27f05f8..9ad92d5 100644 --- a/infisicalapi_client/models/api_v3_auth_login2_post200_response.py +++ b/infisicalapi_client/models/api_v3_auth_login2_post200_response.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v3_auth_login2_post200_response_any_of import ApiV3AuthLogin2Post200ResponseAnyOf from infisicalapi_client.models.api_v3_auth_login2_post200_response_any_of1 import ApiV3AuthLogin2Post200ResponseAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV3AUTHLOGIN2POST200RESPONSE_ANY_OF_SCHEMAS = ["ApiV3AuthLogin2Post200ResponseAnyOf", "ApiV3AuthLogin2Post200ResponseAnyOf1"] @@ -39,11 +39,9 @@ class ApiV3AuthLogin2Post200Response(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV3AuthLogin2Post200ResponseAnyOf, ApiV3AuthLogin2Post200ResponseAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV3AUTHLOGIN2POST200RESPONSE_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV3AUTHLOGIN2POST200RESPONSE_ANY_OF_SCHEMAS] = APIV3AUTHLOGIN2POST200RESPONSE_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV3AuthLogin2Post200Response.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of.py b/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of.py index a8ab4b1..5f8b2f4 100644 --- a/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of.py +++ b/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV3AuthLogin2Post200ResponseAnyOf(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV3AuthLogin2Post200ResponseAnyOf(BaseModel): mfa_enabled: StrictBool = Field(default=..., alias="mfaEnabled") token: StrictStr = Field(...) __properties = ["mfaEnabled", "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/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of1.py b/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of1.py index 79adeed..1279fab 100644 --- a/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of1.py +++ b/infisicalapi_client/models/api_v3_auth_login2_post200_response_any_of1.py @@ -19,7 +19,7 @@ from typing import Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV3AuthLogin2Post200ResponseAnyOf1(BaseModel): """ @@ -36,11 +36,7 @@ class ApiV3AuthLogin2Post200ResponseAnyOf1(BaseModel): tag: StrictStr = Field(...) token: StrictStr = Field(...) __properties = ["mfaEnabled", "encryptionVersion", "protectedKey", "protectedKeyIV", "protectedKeyTag", "publicKey", "encryptedPrivateKey", "iv", "tag", "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/infisicalapi_client/models/api_v3_auth_login2_post_request.py b/infisicalapi_client/models/api_v3_auth_login2_post_request.py index 2e2a4a3..171d061 100644 --- a/infisicalapi_client/models/api_v3_auth_login2_post_request.py +++ b/infisicalapi_client/models/api_v3_auth_login2_post_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV3AuthLogin2PostRequest(BaseModel): """ @@ -31,11 +31,7 @@ class ApiV3AuthLogin2PostRequest(BaseModel): captcha_token: Optional[StrictStr] = Field(default=None, alias="captchaToken") password: Optional[StrictStr] = None __properties = ["email", "providerAuthToken", "clientProof", "captchaToken", "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/infisicalapi_client/models/api_v3_secrets_backfill_secret_references_post_request.py b/infisicalapi_client/models/api_v3_secrets_backfill_secret_references_post_request.py index 202fbbd..87bf7cc 100644 --- a/infisicalapi_client/models/api_v3_secrets_backfill_secret_references_post_request.py +++ b/infisicalapi_client/models/api_v3_secrets_backfill_secret_references_post_request.py @@ -19,19 +19,16 @@ -from pydantic import BaseModel, Field, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field +from typing_extensions import Annotated class ApiV3SecretsBackfillSecretReferencesPostRequest(BaseModel): """ ApiV3SecretsBackfillSecretReferencesPostRequest """ - project_id: constr(strict=True, min_length=1) = Field(default=..., alias="projectId") + project_id: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="projectId") __properties = ["projectId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_delete_request.py b/infisicalapi_client/models/api_v3_secrets_batch_delete_request.py index 3d00855..5974835 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_delete_request.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_delete_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_batch_delete_request_secrets_inner import ApiV3SecretsBatchDeleteRequestSecretsInner +from typing_extensions import Annotated class ApiV3SecretsBatchDeleteRequest(BaseModel): """ @@ -29,13 +30,9 @@ class ApiV3SecretsBatchDeleteRequest(BaseModel): workspace_id: StrictStr = Field(default=..., alias="workspaceId") environment: StrictStr = Field(...) secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath") - secrets: conlist(ApiV3SecretsBatchDeleteRequestSecretsInner, min_items=1) = Field(...) + secrets: Annotated[List[ApiV3SecretsBatchDeleteRequestSecretsInner], Field(min_length=1)] = Field(...) __properties = ["workspaceId", "environment", "secretPath", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_delete_request_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_batch_delete_request_secrets_inner.py index aba61be..9bbd086 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_delete_request_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_delete_request_secrets_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV3SecretsBatchDeleteRequestSecretsInner(BaseModel): """ @@ -29,7 +29,8 @@ class ApiV3SecretsBatchDeleteRequestSecretsInner(BaseModel): type: Optional[StrictStr] = 'shared' __properties = ["secretName", "type"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -38,11 +39,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_batch_patch_request.py b/infisicalapi_client/models/api_v3_secrets_batch_patch_request.py index be80e62..06bb215 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_patch_request.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_patch_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_batch_patch_request_secrets_inner import ApiV3SecretsBatchPatchRequestSecretsInner +from typing_extensions import Annotated class ApiV3SecretsBatchPatchRequest(BaseModel): """ @@ -29,13 +30,9 @@ class ApiV3SecretsBatchPatchRequest(BaseModel): workspace_id: StrictStr = Field(default=..., alias="workspaceId") environment: StrictStr = Field(...) secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath") - secrets: conlist(ApiV3SecretsBatchPatchRequestSecretsInner, min_items=1) = Field(...) + secrets: Annotated[List[ApiV3SecretsBatchPatchRequestSecretsInner], Field(min_length=1)] = Field(...) __properties = ["workspaceId", "environment", "secretPath", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_patch_request_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_batch_patch_request_secrets_inner.py index 63a2bd6..2ae5527 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_patch_request_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_patch_request_secrets_inner.py @@ -19,7 +19,8 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV3SecretsBatchPatchRequestSecretsInner(BaseModel): """ @@ -37,10 +38,11 @@ class ApiV3SecretsBatchPatchRequestSecretsInner(BaseModel): secret_comment_iv: Optional[StrictStr] = Field(default=None, alias="secretCommentIV") secret_comment_tag: Optional[StrictStr] = Field(default=None, alias="secretCommentTag") skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding") - tags: Optional[conlist(StrictStr)] = None + tags: Optional[Annotated[List[StrictStr], Field()]] = None __properties = ["secretName", "type", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "skipMultilineEncoding", "tags"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -49,11 +51,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_batch_post200_response.py b/infisicalapi_client/models/api_v3_secrets_batch_post200_response.py index 84cf845..102a82b 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_post200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_post200_response.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v3_secrets_batch_post200_response_any_of import ApiV3SecretsBatchPost200ResponseAnyOf from infisicalapi_client.models.api_v3_secrets_raw_secret_name_post200_response_any_of1 import ApiV3SecretsRawSecretNamePost200ResponseAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV3SECRETSBATCHPOST200RESPONSE_ANY_OF_SCHEMAS = ["ApiV3SecretsBatchPost200ResponseAnyOf", "ApiV3SecretsRawSecretNamePost200ResponseAnyOf1"] @@ -39,11 +39,9 @@ class ApiV3SecretsBatchPost200Response(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV3SecretsBatchPost200ResponseAnyOf, ApiV3SecretsRawSecretNamePost200ResponseAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV3SECRETSBATCHPOST200RESPONSE_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV3SECRETSBATCHPOST200RESPONSE_ANY_OF_SCHEMAS] = APIV3SECRETSBATCHPOST200RESPONSE_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV3SecretsBatchPost200Response.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v3_secrets_batch_post200_response_any_of.py b/infisicalapi_client/models/api_v3_secrets_batch_post200_response_any_of.py index 8920dc3..ca27642 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_post200_response_any_of.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_post200_response_any_of.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_imports_secrets_get200_response_secrets_inner_secrets_inner import ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner +from typing_extensions import Annotated class ApiV3SecretsBatchPost200ResponseAnyOf(BaseModel): """ ApiV3SecretsBatchPost200ResponseAnyOf """ - secrets: conlist(ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner) = Field(...) + secrets: Annotated[List[ApiV1SecretImportsSecretsGet200ResponseSecretsInnerSecretsInner], Field()] = Field(...) __properties = ["secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_post_request.py b/infisicalapi_client/models/api_v3_secrets_batch_post_request.py index de109e3..afb7dcb 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_post_request.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_post_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_batch_post_request_secrets_inner import ApiV3SecretsBatchPostRequestSecretsInner +from typing_extensions import Annotated class ApiV3SecretsBatchPostRequest(BaseModel): """ @@ -29,13 +30,9 @@ class ApiV3SecretsBatchPostRequest(BaseModel): workspace_id: StrictStr = Field(default=..., alias="workspaceId") environment: StrictStr = Field(...) secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath") - secrets: conlist(ApiV3SecretsBatchPostRequestSecretsInner, min_items=1) = Field(...) + secrets: Annotated[List[ApiV3SecretsBatchPostRequestSecretsInner], Field(min_length=1)] = Field(...) __properties = ["workspaceId", "environment", "secretPath", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_post_request_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_batch_post_request_secrets_inner.py index c46c293..d620c27 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_post_request_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_post_request_secrets_inner.py @@ -19,7 +19,7 @@ from typing import Dict, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV3SecretsBatchPostRequestSecretsInner(BaseModel): """ @@ -38,11 +38,7 @@ class ApiV3SecretsBatchPostRequestSecretsInner(BaseModel): metadata: Optional[Dict[str, StrictStr]] = None skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding") __properties = ["secretName", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "metadata", "skipMultilineEncoding"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request.py index eb488a7..d6e9d2a 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_batch_raw_delete_request_secrets_inner import ApiV3SecretsBatchRawDeleteRequestSecretsInner +from typing_extensions import Annotated class ApiV3SecretsBatchRawDeleteRequest(BaseModel): """ @@ -30,13 +31,9 @@ class ApiV3SecretsBatchRawDeleteRequest(BaseModel): workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId", description="The ID of the project where the secret is located.") environment: StrictStr = Field(default=..., description="The slug of the environment where the secret is located.") secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath", description="The path of the secret.") - secrets: conlist(ApiV3SecretsBatchRawDeleteRequestSecretsInner, min_items=1) = Field(...) + secrets: Annotated[List[ApiV3SecretsBatchRawDeleteRequestSecretsInner], Field(min_length=1)] = Field(...) __properties = ["projectSlug", "workspaceId", "environment", "secretPath", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request_secrets_inner.py index 9a4f659..1c174f2 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_delete_request_secrets_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV3SecretsBatchRawDeleteRequestSecretsInner(BaseModel): """ @@ -29,7 +29,8 @@ class ApiV3SecretsBatchRawDeleteRequestSecretsInner(BaseModel): type: Optional[StrictStr] = 'shared' __properties = ["secretKey", "type"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -38,11 +39,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request.py index 157065e..64fcaf7 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_batch_raw_patch_request_secrets_inner import ApiV3SecretsBatchRawPatchRequestSecretsInner +from typing_extensions import Annotated class ApiV3SecretsBatchRawPatchRequest(BaseModel): """ @@ -30,13 +31,9 @@ class ApiV3SecretsBatchRawPatchRequest(BaseModel): workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId", description="The ID of the project where the secret is located.") environment: StrictStr = Field(default=..., description="The slug of the environment where the secret is located.") secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath", description="The path of the secret to update") - secrets: conlist(ApiV3SecretsBatchRawPatchRequestSecretsInner, min_items=1) = Field(...) + secrets: Annotated[List[ApiV3SecretsBatchRawPatchRequestSecretsInner], Field(min_length=1)] = Field(...) __properties = ["projectSlug", "workspaceId", "environment", "secretPath", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request_secrets_inner.py index 28a7612..cf615bc 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_patch_request_secrets_inner.py @@ -19,7 +19,8 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV3SecretsBatchRawPatchRequestSecretsInner(BaseModel): """ @@ -29,16 +30,12 @@ class ApiV3SecretsBatchRawPatchRequestSecretsInner(BaseModel): secret_value: StrictStr = Field(default=..., alias="secretValue", description="The new value of the secret.") secret_comment: Optional[StrictStr] = Field(default=None, alias="secretComment", description="Update comment to the secret.") skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding", description="Skip multiline encoding for the secret value.") - new_secret_name: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="newSecretName", description="The new name for the secret") - tag_ids: Optional[conlist(StrictStr)] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the updated secret.") + new_secret_name: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="newSecretName", description="The new name for the secret") + tag_ids: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the updated secret.") secret_reminder_note: Optional[StrictStr] = Field(default=None, alias="secretReminderNote", description="Note to be attached in notification email") secret_reminder_repeat_days: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="secretReminderRepeatDays", description="Interval for secret rotation notifications, measured in days") __properties = ["secretKey", "secretValue", "secretComment", "skipMultilineEncoding", "newSecretName", "tagIds", "secretReminderNote", "secretReminderRepeatDays"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response.py index 48da070..56cb5b4 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v3_secrets_batch_raw_post200_response_any_of import ApiV3SecretsBatchRawPost200ResponseAnyOf from infisicalapi_client.models.api_v3_secrets_raw_secret_name_post200_response_any_of1 import ApiV3SecretsRawSecretNamePost200ResponseAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV3SECRETSBATCHRAWPOST200RESPONSE_ANY_OF_SCHEMAS = ["ApiV3SecretsBatchRawPost200ResponseAnyOf", "ApiV3SecretsRawSecretNamePost200ResponseAnyOf1"] @@ -39,11 +39,9 @@ class ApiV3SecretsBatchRawPost200Response(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV3SecretsBatchRawPost200ResponseAnyOf, ApiV3SecretsRawSecretNamePost200ResponseAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV3SECRETSBATCHRAWPOST200RESPONSE_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV3SECRETSBATCHRAWPOST200RESPONSE_ANY_OF_SCHEMAS] = APIV3SECRETSBATCHRAWPOST200RESPONSE_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV3SecretsBatchRawPost200Response.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response_any_of.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response_any_of.py index 8cbc2b8..bd13956 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response_any_of.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_post200_response_any_of.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner import ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner +from typing_extensions import Annotated class ApiV3SecretsBatchRawPost200ResponseAnyOf(BaseModel): """ ApiV3SecretsBatchRawPost200ResponseAnyOf """ - secrets: conlist(ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner) = Field(...) + secrets: Annotated[List[ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner], Field()] = Field(...) __properties = ["secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request.py index 63fa68e..81d9082 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_batch_raw_post_request_secrets_inner import ApiV3SecretsBatchRawPostRequestSecretsInner +from typing_extensions import Annotated class ApiV3SecretsBatchRawPostRequest(BaseModel): """ @@ -30,13 +31,9 @@ class ApiV3SecretsBatchRawPostRequest(BaseModel): workspace_id: Optional[StrictStr] = Field(default=None, alias="workspaceId", description="The ID of the project to update the secret in.") environment: StrictStr = Field(default=..., description="The slug of the environment to create the secret in.") secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath", description="The path to create the secret in.") - secrets: conlist(ApiV3SecretsBatchRawPostRequestSecretsInner, min_items=1) = Field(...) + secrets: Annotated[List[ApiV3SecretsBatchRawPostRequestSecretsInner], Field(min_length=1)] = Field(...) __properties = ["projectSlug", "workspaceId", "environment", "secretPath", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request_secrets_inner.py index 4fc0a21..65b8e00 100644 --- a/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_batch_raw_post_request_secrets_inner.py @@ -19,7 +19,8 @@ from typing import Dict, List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV3SecretsBatchRawPostRequestSecretsInner(BaseModel): """ @@ -30,13 +31,9 @@ class ApiV3SecretsBatchRawPostRequestSecretsInner(BaseModel): secret_comment: Optional[StrictStr] = Field(default='', alias="secretComment", description="Attach a comment to the secret.") skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding", description="Skip multiline encoding for the secret value.") metadata: Optional[Dict[str, StrictStr]] = None - tag_ids: Optional[conlist(StrictStr)] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the created secret.") + tag_ids: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the created secret.") __properties = ["secretKey", "secretValue", "secretComment", "skipMultilineEncoding", "metadata", "tagIds"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_get200_response.py b/infisicalapi_client/models/api_v3_secrets_get200_response.py index f6494ad..4805bcb 100644 --- a/infisicalapi_client/models/api_v3_secrets_get200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_get200_response.py @@ -19,22 +19,19 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_secrets_get200_response_imports_inner import ApiV3SecretsGet200ResponseImportsInner from infisicalapi_client.models.api_v3_secrets_get200_response_secrets_inner import ApiV3SecretsGet200ResponseSecretsInner +from typing_extensions import Annotated class ApiV3SecretsGet200Response(BaseModel): """ ApiV3SecretsGet200Response """ - secrets: conlist(ApiV3SecretsGet200ResponseSecretsInner) = Field(...) - imports: Optional[conlist(ApiV3SecretsGet200ResponseImportsInner)] = None + secrets: Annotated[List[ApiV3SecretsGet200ResponseSecretsInner], Field()] = Field(...) + imports: Optional[Annotated[List[ApiV3SecretsGet200ResponseImportsInner], Field()]] = None __properties = ["secrets", "imports"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner.py b/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner.py index 6a0d3ce..f3be21b 100644 --- a/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_get200_response_imports_inner_secrets_inner import ApiV3SecretsGet200ResponseImportsInnerSecretsInner +from typing_extensions import Annotated class ApiV3SecretsGet200ResponseImportsInner(BaseModel): """ @@ -29,13 +30,9 @@ class ApiV3SecretsGet200ResponseImportsInner(BaseModel): secret_path: StrictStr = Field(default=..., alias="secretPath") environment: StrictStr = Field(...) folder_id: Optional[StrictStr] = Field(default=None, alias="folderId") - secrets: conlist(ApiV3SecretsGet200ResponseImportsInnerSecretsInner) = Field(...) + secrets: Annotated[List[ApiV3SecretsGet200ResponseImportsInnerSecretsInner], Field()] = Field(...) __properties = ["secretPath", "environment", "folderId", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner_secrets_inner.py index 12bc53c..2a427d2 100644 --- a/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_get200_response_imports_inner_secrets_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV3SecretsGet200ResponseImportsInnerSecretsInner(BaseModel): """ @@ -51,11 +51,7 @@ class ApiV3SecretsGet200ResponseImportsInnerSecretsInner(BaseModel): workspace: StrictStr = Field(...) environment: StrictStr = Field(...) __properties = ["id", "version", "type", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "algorithm", "keyEncoding", "metadata", "userId", "folderId", "createdAt", "updatedAt", "_id", "workspace", "environment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_get200_response_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_get200_response_secrets_inner.py index eb75e62..ccc416f 100644 --- a/infisicalapi_client/models/api_v3_secrets_get200_response_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_get200_response_secrets_inner.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner import ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner +from typing_extensions import Annotated class ApiV3SecretsGet200ResponseSecretsInner(BaseModel): """ @@ -52,13 +53,9 @@ class ApiV3SecretsGet200ResponseSecretsInner(BaseModel): workspace: StrictStr = Field(...) environment: StrictStr = Field(...) secret_path: Optional[StrictStr] = Field(default=None, alias="secretPath") - tags: conlist(ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner) = Field(...) + tags: Annotated[List[ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner], Field()] = Field(...) __properties = ["id", "version", "type", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "algorithm", "keyEncoding", "metadata", "userId", "folderId", "createdAt", "updatedAt", "_id", "workspace", "environment", "secretPath", "tags"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_move_post200_response.py b/infisicalapi_client/models/api_v3_secrets_move_post200_response.py index a243a97..bf16273 100644 --- a/infisicalapi_client/models/api_v3_secrets_move_post200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_move_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictBool +from pydantic import ConfigDict, BaseModel, Field, StrictBool class ApiV3SecretsMovePost200Response(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV3SecretsMovePost200Response(BaseModel): is_source_updated: StrictBool = Field(default=..., alias="isSourceUpdated") is_destination_updated: StrictBool = Field(default=..., alias="isDestinationUpdated") __properties = ["isSourceUpdated", "isDestinationUpdated"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_move_post_request.py b/infisicalapi_client/models/api_v3_secrets_move_post_request.py index c846cf3..75c518a 100644 --- a/infisicalapi_client/models/api_v3_secrets_move_post_request.py +++ b/infisicalapi_client/models/api_v3_secrets_move_post_request.py @@ -19,7 +19,8 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV3SecretsMovePostRequest(BaseModel): """ @@ -30,14 +31,10 @@ class ApiV3SecretsMovePostRequest(BaseModel): source_secret_path: Optional[StrictStr] = Field(default='/', alias="sourceSecretPath") destination_environment: StrictStr = Field(default=..., alias="destinationEnvironment") destination_secret_path: Optional[StrictStr] = Field(default='/', alias="destinationSecretPath") - secret_ids: conlist(StrictStr) = Field(default=..., alias="secretIds") + secret_ids: Annotated[List[StrictStr], Field()] = Field(default=..., alias="secretIds") should_overwrite: Optional[StrictBool] = Field(default=False, alias="shouldOverwrite") __properties = ["projectSlug", "sourceEnvironment", "sourceSecretPath", "destinationEnvironment", "destinationSecretPath", "secretIds", "shouldOverwrite"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_raw_get200_response.py b/infisicalapi_client/models/api_v3_secrets_raw_get200_response.py index c88fa37..6fb9efa 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_get200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_get200_response.py @@ -19,22 +19,19 @@ from typing import List, Optional -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_secrets_raw_get200_response_imports_inner import ApiV3SecretsRawGet200ResponseImportsInner from infisicalapi_client.models.api_v3_secrets_raw_get200_response_secrets_inner import ApiV3SecretsRawGet200ResponseSecretsInner +from typing_extensions import Annotated class ApiV3SecretsRawGet200Response(BaseModel): """ ApiV3SecretsRawGet200Response """ - secrets: conlist(ApiV3SecretsRawGet200ResponseSecretsInner) = Field(...) - imports: Optional[conlist(ApiV3SecretsRawGet200ResponseImportsInner)] = None + secrets: Annotated[List[ApiV3SecretsRawGet200ResponseSecretsInner], Field()] = Field(...) + imports: Optional[Annotated[List[ApiV3SecretsRawGet200ResponseImportsInner], Field()]] = None __properties = ["secrets", "imports"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner.py b/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner.py index ce3f8bd..c92db27 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner.py @@ -19,8 +19,9 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v3_secrets_raw_get200_response_imports_inner_secrets_inner import ApiV3SecretsRawGet200ResponseImportsInnerSecretsInner +from typing_extensions import Annotated class ApiV3SecretsRawGet200ResponseImportsInner(BaseModel): """ @@ -29,13 +30,9 @@ class ApiV3SecretsRawGet200ResponseImportsInner(BaseModel): secret_path: StrictStr = Field(default=..., alias="secretPath") environment: StrictStr = Field(...) folder_id: Optional[StrictStr] = Field(default=None, alias="folderId") - secrets: conlist(ApiV3SecretsRawGet200ResponseImportsInnerSecretsInner) = Field(...) + secrets: Annotated[List[ApiV3SecretsRawGet200ResponseImportsInnerSecretsInner], Field()] = Field(...) __properties = ["secretPath", "environment", "folderId", "secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner_secrets_inner.py index e94af39..b75ccbb 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_get200_response_imports_inner_secrets_inner.py @@ -19,7 +19,7 @@ from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV3SecretsRawGet200ResponseImportsInnerSecretsInner(BaseModel): """ @@ -39,11 +39,7 @@ class ApiV3SecretsRawGet200ResponseImportsInnerSecretsInner(BaseModel): skip_multiline_encoding: Optional[StrictBool] = Field(default=False, alias="skipMultilineEncoding") metadata: Optional[Any] = None __properties = ["id", "_id", "workspace", "environment", "version", "type", "secretKey", "secretValue", "secretComment", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "metadata"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_raw_get200_response_secrets_inner.py b/infisicalapi_client/models/api_v3_secrets_raw_get200_response_secrets_inner.py index 5ead25b..371446f 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_get200_response_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_get200_response_secrets_inner.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner import ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner +from typing_extensions import Annotated class ApiV3SecretsRawGet200ResponseSecretsInner(BaseModel): """ @@ -42,13 +43,9 @@ class ApiV3SecretsRawGet200ResponseSecretsInner(BaseModel): created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") secret_path: Optional[StrictStr] = Field(default=None, alias="secretPath") - tags: Optional[conlist(ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner)] = None + tags: Optional[Annotated[List[ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner], Field()]] = None __properties = ["id", "_id", "workspace", "environment", "version", "type", "secretKey", "secretValue", "secretComment", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "metadata", "createdAt", "updatedAt", "secretPath", "tags"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_delete_request.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_delete_request.py index 3f736f8..a7a266a 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_delete_request.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_delete_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV3SecretsRawSecretNameDeleteRequest(BaseModel): """ @@ -31,7 +31,8 @@ class ApiV3SecretsRawSecretNameDeleteRequest(BaseModel): type: Optional[StrictStr] = Field(default='shared', description="The type of the secret to delete.") __properties = ["workspaceId", "environment", "secretPath", "type"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -40,11 +41,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response.py index 6aec46a..f76a715 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_secrets_raw_secret_name_get200_response_secret import ApiV3SecretsRawSecretNameGet200ResponseSecret class ApiV3SecretsRawSecretNameGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV3SecretsRawSecretNameGet200Response(BaseModel): """ secret: ApiV3SecretsRawSecretNameGet200ResponseSecret = Field(...) __properties = ["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/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response_secret.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response_secret.py index 4e8aabc..a28937f 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response_secret.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_get200_response_secret.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner import ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner +from typing_extensions import Annotated class ApiV3SecretsRawSecretNameGet200ResponseSecret(BaseModel): """ @@ -41,13 +42,9 @@ class ApiV3SecretsRawSecretNameGet200ResponseSecret(BaseModel): metadata: Optional[Any] = None created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") - tags: Optional[conlist(ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner)] = None + tags: Optional[Annotated[List[ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner], Field()]] = None __properties = ["id", "_id", "workspace", "environment", "version", "type", "secretKey", "secretValue", "secretComment", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "metadata", "createdAt", "updatedAt", "tags"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_patch_request.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_patch_request.py index 787b236..443c449 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_patch_request.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_patch_request.py @@ -19,7 +19,8 @@ from typing import Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist, constr, validator +from pydantic import field_validator, StringConstraints, ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV3SecretsRawSecretNamePatchRequest(BaseModel): """ @@ -31,15 +32,16 @@ class ApiV3SecretsRawSecretNamePatchRequest(BaseModel): secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath", description="The path of the secret to update") skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding", description="Skip multiline encoding for the secret value.") type: Optional[StrictStr] = Field(default='shared', description="The type of the secret to update.") - tag_ids: Optional[conlist(StrictStr)] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the updated secret.") + tag_ids: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the updated secret.") metadata: Optional[Dict[str, StrictStr]] = None secret_reminder_note: Optional[StrictStr] = Field(default=None, alias="secretReminderNote", description="Note to be attached in notification email") secret_reminder_repeat_days: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="secretReminderRepeatDays", description="Interval for secret rotation notifications, measured in days") - new_secret_name: Optional[constr(strict=True, min_length=1)] = Field(default=None, alias="newSecretName", description="The new name for the secret") + new_secret_name: Optional[Annotated[str, StringConstraints(strict=True, min_length=1)]] = Field(default=None, alias="newSecretName", description="The new name for the secret") secret_comment: Optional[StrictStr] = Field(default=None, alias="secretComment", description="Update comment to the secret.") __properties = ["workspaceId", "environment", "secretValue", "secretPath", "skipMultilineEncoding", "type", "tagIds", "metadata", "secretReminderNote", "secretReminderRepeatDays", "newSecretName", "secretComment"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -48,11 +50,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response.py index a5e4d0f..1816291 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v3_secrets_raw_secret_name_post200_response_any_of import ApiV3SecretsRawSecretNamePost200ResponseAnyOf from infisicalapi_client.models.api_v3_secrets_raw_secret_name_post200_response_any_of1 import ApiV3SecretsRawSecretNamePost200ResponseAnyOf1 from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV3SECRETSRAWSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS = ["ApiV3SecretsRawSecretNamePost200ResponseAnyOf", "ApiV3SecretsRawSecretNamePost200ResponseAnyOf1"] @@ -39,11 +39,9 @@ class ApiV3SecretsRawSecretNamePost200Response(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV3SecretsRawSecretNamePost200ResponseAnyOf, ApiV3SecretsRawSecretNamePost200ResponseAnyOf1] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV3SECRETSRAWSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV3SECRETSRAWSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS] = APIV3SECRETSRAWSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV3SecretsRawSecretNamePost200Response.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of.py index 66515cb..d61167c 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_secret_id_secret_versions_get200_response_secret_versions_inner import ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner class ApiV3SecretsRawSecretNamePost200ResponseAnyOf(BaseModel): @@ -28,11 +28,7 @@ class ApiV3SecretsRawSecretNamePost200ResponseAnyOf(BaseModel): """ secret: ApiV1SecretSecretIdSecretVersionsGet200ResponseSecretVersionsInner = Field(...) __properties = ["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/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of1.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of1.py index fbb2cda..c406d8f 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of1.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post200_response_any_of1.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v1_secret_approval_requests_id_merge_post200_response_approval import ApiV1SecretApprovalRequestsIdMergePost200ResponseApproval class ApiV3SecretsRawSecretNamePost200ResponseAnyOf1(BaseModel): @@ -28,11 +28,7 @@ class ApiV3SecretsRawSecretNamePost200ResponseAnyOf1(BaseModel): """ approval: ApiV1SecretApprovalRequestsIdMergePost200ResponseApproval = Field(...) __properties = ["approval"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post_request.py b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post_request.py index 78cefec..e9cf08a 100644 --- a/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post_request.py +++ b/infisicalapi_client/models/api_v3_secrets_raw_secret_name_post_request.py @@ -19,7 +19,8 @@ from typing import List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from typing_extensions import Annotated class ApiV3SecretsRawSecretNamePostRequest(BaseModel): """ @@ -30,14 +31,15 @@ class ApiV3SecretsRawSecretNamePostRequest(BaseModel): secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath", description="The path to create the secret in.") secret_value: StrictStr = Field(default=..., alias="secretValue", description="The value of the secret to create.") secret_comment: Optional[StrictStr] = Field(default='', alias="secretComment", description="Attach a comment to the secret.") - tag_ids: Optional[conlist(StrictStr)] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the created secret.") + tag_ids: Optional[Annotated[List[StrictStr], Field()]] = Field(default=None, alias="tagIds", description="The ID of the tags to be attached to the created secret.") skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding", description="Skip multiline encoding for the secret value.") type: Optional[StrictStr] = Field(default='shared', description="The type of the secret to create.") secret_reminder_repeat_days: Optional[Union[StrictFloat, StrictInt]] = Field(default=None, alias="secretReminderRepeatDays", description="Interval for secret rotation notifications, measured in days") secret_reminder_note: Optional[StrictStr] = Field(default=None, alias="secretReminderNote", description="Note to be attached in notification email") __properties = ["workspaceId", "environment", "secretPath", "secretValue", "secretComment", "tagIds", "skipMultilineEncoding", "type", "secretReminderRepeatDays", "secretReminderNote"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -46,11 +48,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_secret_name_delete_request.py b/infisicalapi_client/models/api_v3_secrets_secret_name_delete_request.py index 6dae366..243f0c1 100644 --- a/infisicalapi_client/models/api_v3_secrets_secret_name_delete_request.py +++ b/infisicalapi_client/models/api_v3_secrets_secret_name_delete_request.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr class ApiV3SecretsSecretNameDeleteRequest(BaseModel): """ @@ -32,7 +32,8 @@ class ApiV3SecretsSecretNameDeleteRequest(BaseModel): environment: StrictStr = Field(...) __properties = ["type", "secretPath", "secretId", "workspaceId", "environment"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,11 +42,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response.py b/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response.py index 46ddda5..5bd1210 100644 --- a/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_secrets_secret_name_get200_response_secret import ApiV3SecretsSecretNameGet200ResponseSecret class ApiV3SecretsSecretNameGet200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV3SecretsSecretNameGet200Response(BaseModel): """ secret: ApiV3SecretsSecretNameGet200ResponseSecret = Field(...) __properties = ["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/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response_secret.py b/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response_secret.py index 3937b6e..517e1cd 100644 --- a/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response_secret.py +++ b/infisicalapi_client/models/api_v3_secrets_secret_name_get200_response_secret.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV3SecretsSecretNameGet200ResponseSecret(BaseModel): """ @@ -50,11 +50,7 @@ class ApiV3SecretsSecretNameGet200ResponseSecret(BaseModel): workspace: StrictStr = Field(...) environment: StrictStr = Field(...) __properties = ["id", "version", "type", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "algorithm", "keyEncoding", "metadata", "userId", "folderId", "createdAt", "updatedAt", "workspace", "environment"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_secret_name_patch_request.py b/infisicalapi_client/models/api_v3_secrets_secret_name_patch_request.py index 80b5953..8af94e9 100644 --- a/infisicalapi_client/models/api_v3_secrets_secret_name_patch_request.py +++ b/infisicalapi_client/models/api_v3_secrets_secret_name_patch_request.py @@ -19,7 +19,8 @@ from typing import Dict, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictStr, confloat, conint, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr +from typing_extensions import Annotated class ApiV3SecretsSecretNamePatchRequest(BaseModel): """ @@ -36,9 +37,9 @@ class ApiV3SecretsSecretNamePatchRequest(BaseModel): secret_comment_ciphertext: Optional[StrictStr] = Field(default=None, alias="secretCommentCiphertext") secret_comment_iv: Optional[StrictStr] = Field(default=None, alias="secretCommentIV") secret_comment_tag: Optional[StrictStr] = Field(default=None, alias="secretCommentTag") - secret_reminder_repeat_days: Optional[Union[confloat(le=365, ge=1, strict=True), conint(le=365, ge=1, strict=True)]] = Field(default=None, alias="secretReminderRepeatDays") + secret_reminder_repeat_days: Optional[Union[Annotated[float, Field(le=365, ge=1, strict=True)], Annotated[int, Field(le=365, ge=1, strict=True)]]] = Field(default=None, alias="secretReminderRepeatDays") secret_reminder_note: Optional[StrictStr] = Field(default=None, alias="secretReminderNote") - tags: Optional[conlist(StrictStr)] = None + tags: Optional[Annotated[List[StrictStr], Field()]] = None skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding") secret_name: Optional[StrictStr] = Field(default=None, alias="secretName") secret_key_iv: Optional[StrictStr] = Field(default=None, alias="secretKeyIV") @@ -47,7 +48,8 @@ class ApiV3SecretsSecretNamePatchRequest(BaseModel): metadata: Optional[Dict[str, StrictStr]] = None __properties = ["workspaceId", "environment", "secretId", "type", "secretPath", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "secretReminderRepeatDays", "secretReminderNote", "tags", "skipMultilineEncoding", "secretName", "secretKeyIV", "secretKeyTag", "secretKeyCiphertext", "metadata"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -56,11 +58,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response.py b/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response.py index 550d765..b6cf22d 100644 --- a/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response.py @@ -18,12 +18,12 @@ import pprint import re # noqa: F401 -from typing import Optional -from pydantic import BaseModel, Field, StrictStr, ValidationError, validator +from typing import Literal, Optional +from pydantic import field_validator, ConfigDict, BaseModel, StrictStr, ValidationError from infisicalapi_client.models.api_v3_secrets_raw_secret_name_post200_response_any_of1 import ApiV3SecretsRawSecretNamePost200ResponseAnyOf1 from infisicalapi_client.models.api_v3_secrets_secret_name_post200_response_any_of import ApiV3SecretsSecretNamePost200ResponseAnyOf from typing import Union, Any, List, TYPE_CHECKING -from pydantic import StrictStr, Field +from pydantic import StrictStr APIV3SECRETSSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS = ["ApiV3SecretsRawSecretNamePost200ResponseAnyOf1", "ApiV3SecretsSecretNamePost200ResponseAnyOf"] @@ -39,11 +39,9 @@ class ApiV3SecretsSecretNamePost200Response(BaseModel): if TYPE_CHECKING: actual_instance: Union[ApiV3SecretsRawSecretNamePost200ResponseAnyOf1, ApiV3SecretsSecretNamePost200ResponseAnyOf] else: - actual_instance: Any - any_of_schemas: List[str] = Field(APIV3SECRETSSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS, const=True) - - class Config: - validate_assignment = True + actual_instance: Any = None + any_of_schemas: Literal[APIV3SECRETSSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS] = APIV3SECRETSSECRETNAMEPOST200RESPONSE_ANY_OF_SCHEMAS + model_config = ConfigDict(validate_assignment=True) def __init__(self, *args, **kwargs) -> None: if args: @@ -55,7 +53,8 @@ def __init__(self, *args, **kwargs) -> None: else: super().__init__(**kwargs) - @validator('actual_instance') + @field_validator('actual_instance') + @classmethod def actual_instance_must_validate_anyof(cls, v): instance = ApiV3SecretsSecretNamePost200Response.construct() error_messages = [] diff --git a/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response_any_of.py b/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response_any_of.py index a76e58c..ebbae29 100644 --- a/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response_any_of.py +++ b/infisicalapi_client/models/api_v3_secrets_secret_name_post200_response_any_of.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_secrets_get200_response_imports_inner_secrets_inner import ApiV3SecretsGet200ResponseImportsInnerSecretsInner class ApiV3SecretsSecretNamePost200ResponseAnyOf(BaseModel): @@ -28,11 +28,7 @@ class ApiV3SecretsSecretNamePost200ResponseAnyOf(BaseModel): """ secret: ApiV3SecretsGet200ResponseImportsInnerSecretsInner = Field(...) __properties = ["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/infisicalapi_client/models/api_v3_secrets_secret_name_post_request.py b/infisicalapi_client/models/api_v3_secrets_secret_name_post_request.py index 11dbb55..cc87177 100644 --- a/infisicalapi_client/models/api_v3_secrets_secret_name_post_request.py +++ b/infisicalapi_client/models/api_v3_secrets_secret_name_post_request.py @@ -19,7 +19,7 @@ from typing import Dict, Optional -from pydantic import BaseModel, Field, StrictBool, StrictStr, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictBool, StrictStr class ApiV3SecretsSecretNamePostRequest(BaseModel): """ @@ -42,7 +42,8 @@ class ApiV3SecretsSecretNamePostRequest(BaseModel): skip_multiline_encoding: Optional[StrictBool] = Field(default=None, alias="skipMultilineEncoding") __properties = ["workspaceId", "environment", "type", "secretPath", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "metadata", "skipMultilineEncoding"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -51,11 +52,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_tags_secret_name_delete_request.py b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_delete_request.py index a731e5e..7eba133 100644 --- a/infisicalapi_client/models/api_v3_secrets_tags_secret_name_delete_request.py +++ b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_delete_request.py @@ -19,7 +19,8 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV3SecretsTagsSecretNameDeleteRequest(BaseModel): """ @@ -29,10 +30,11 @@ class ApiV3SecretsTagsSecretNameDeleteRequest(BaseModel): environment: StrictStr = Field(default=..., description="The slug of the environment where the secret is located") secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath", description="The path of the secret to detach tags from.") type: Optional[StrictStr] = Field(default='shared', description="The type of the secret to attach tags to. (shared/personal)") - tag_slugs: conlist(StrictStr, min_items=1) = Field(default=..., alias="tagSlugs", description="An array of existing tag slugs to detach from the secret.") + tag_slugs: Annotated[List[StrictStr], Field(min_length=1)] = Field(default=..., alias="tagSlugs", description="An array of existing tag slugs to detach from the secret.") __properties = ["projectSlug", "environment", "secretPath", "type", "tagSlugs"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,11 +43,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response.py b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response.py index 345ad71..46959c5 100644 --- a/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response.py +++ b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_secrets_tags_secret_name_post200_response_secret import ApiV3SecretsTagsSecretNamePost200ResponseSecret class ApiV3SecretsTagsSecretNamePost200Response(BaseModel): @@ -28,11 +28,7 @@ class ApiV3SecretsTagsSecretNamePost200Response(BaseModel): """ secret: ApiV3SecretsTagsSecretNamePost200ResponseSecret = Field(...) __properties = ["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/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret.py b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret.py index cea41ee..d79271d 100644 --- a/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret.py +++ b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret.py @@ -19,8 +19,9 @@ from datetime import datetime from typing import Any, List, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr, conlist +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr from infisicalapi_client.models.api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner import ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner +from typing_extensions import Annotated class ApiV3SecretsTagsSecretNamePost200ResponseSecret(BaseModel): """ @@ -48,13 +49,9 @@ class ApiV3SecretsTagsSecretNamePost200ResponseSecret(BaseModel): folder_id: StrictStr = Field(default=..., alias="folderId") created_at: datetime = Field(default=..., alias="createdAt") updated_at: datetime = Field(default=..., alias="updatedAt") - tags: conlist(ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner) = Field(...) + tags: Annotated[List[ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner], Field()] = Field(...) __properties = ["id", "version", "type", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "algorithm", "keyEncoding", "metadata", "userId", "folderId", "createdAt", "updatedAt", "tags"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner.py b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner.py index 7e14700..e0257c1 100644 --- a/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner.py +++ b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post200_response_secret_tags_inner.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner(BaseModel): """ @@ -30,11 +30,7 @@ class ApiV3SecretsTagsSecretNamePost200ResponseSecretTagsInner(BaseModel): color: Optional[StrictStr] = None name: StrictStr = Field(...) __properties = ["id", "slug", "color", "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/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post_request.py b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post_request.py index ea73072..5f54b8b 100644 --- a/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post_request.py +++ b/infisicalapi_client/models/api_v3_secrets_tags_secret_name_post_request.py @@ -19,7 +19,8 @@ from typing import List, Optional -from pydantic import BaseModel, Field, StrictStr, conlist, validator +from pydantic import field_validator, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV3SecretsTagsSecretNamePostRequest(BaseModel): """ @@ -29,10 +30,11 @@ class ApiV3SecretsTagsSecretNamePostRequest(BaseModel): environment: StrictStr = Field(default=..., description="The slug of the environment where the secret is located") secret_path: Optional[StrictStr] = Field(default='/', alias="secretPath", description="The path of the secret to attach tags to.") type: Optional[StrictStr] = Field(default='shared', description="The type of the secret to attach tags to. (shared/personal)") - tag_slugs: conlist(StrictStr, min_items=1) = Field(default=..., alias="tagSlugs", description="An array of existing tag slugs to attach to the secret.") + tag_slugs: Annotated[List[StrictStr], Field(min_length=1)] = Field(default=..., alias="tagSlugs", description="An array of existing tag slugs to attach to the secret.") __properties = ["projectSlug", "environment", "secretPath", "type", "tagSlugs"] - @validator('type') + @field_validator('type') + @classmethod def type_validate_enum(cls, value): """Validates the enum""" if value is None: @@ -41,11 +43,7 @@ def type_validate_enum(cls, value): if value not in ('shared', 'personal'): raise ValueError("must be one of enum values ('shared', 'personal')") 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/infisicalapi_client/models/api_v3_signup_complete_account_signup_post200_response.py b/infisicalapi_client/models/api_v3_signup_complete_account_signup_post200_response.py index 9243620..6a61f97 100644 --- a/infisicalapi_client/models/api_v3_signup_complete_account_signup_post200_response.py +++ b/infisicalapi_client/models/api_v3_signup_complete_account_signup_post200_response.py @@ -19,7 +19,7 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_password_email_password_reset_verify_post200_response_user import ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser class ApiV3SignupCompleteAccountSignupPost200Response(BaseModel): @@ -31,11 +31,7 @@ class ApiV3SignupCompleteAccountSignupPost200Response(BaseModel): token: StrictStr = Field(...) organization_id: Optional[StrictStr] = Field(default=None, alias="organizationId") __properties = ["message", "user", "token", "organizationId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_signup_complete_account_signup_post_request.py b/infisicalapi_client/models/api_v3_signup_complete_account_signup_post_request.py index 87eeda5..7daf139 100644 --- a/infisicalapi_client/models/api_v3_signup_complete_account_signup_post_request.py +++ b/infisicalapi_client/models/api_v3_signup_complete_account_signup_post_request.py @@ -19,7 +19,8 @@ from typing import Optional -from pydantic import BaseModel, Field, StrictStr, constr +from pydantic import StringConstraints, ConfigDict, BaseModel, Field, StrictStr +from typing_extensions import Annotated class ApiV3SignupCompleteAccountSignupPostRequest(BaseModel): """ @@ -37,16 +38,12 @@ class ApiV3SignupCompleteAccountSignupPostRequest(BaseModel): encrypted_private_key_tag: StrictStr = Field(default=..., alias="encryptedPrivateKeyTag") salt: StrictStr = Field(...) verifier: StrictStr = Field(...) - organization_name: constr(strict=True, min_length=1) = Field(default=..., alias="organizationName") + organization_name: Annotated[str, StringConstraints(strict=True, min_length=1)] = Field(default=..., alias="organizationName") provider_auth_token: Optional[StrictStr] = Field(default=None, alias="providerAuthToken") attribution_source: Optional[StrictStr] = Field(default=None, alias="attributionSource") password: StrictStr = Field(...) __properties = ["email", "firstName", "lastName", "protectedKey", "protectedKeyIV", "protectedKeyTag", "publicKey", "encryptedPrivateKey", "encryptedPrivateKeyIV", "encryptedPrivateKeyTag", "salt", "verifier", "organizationName", "providerAuthToken", "attributionSource", "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/infisicalapi_client/models/api_v3_signup_email_verify_post200_response.py b/infisicalapi_client/models/api_v3_signup_email_verify_post200_response.py index e833dea..fe0ca05 100644 --- a/infisicalapi_client/models/api_v3_signup_email_verify_post200_response.py +++ b/infisicalapi_client/models/api_v3_signup_email_verify_post200_response.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr from infisicalapi_client.models.api_v1_password_email_password_reset_verify_post200_response_user import ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser class ApiV3SignupEmailVerifyPost200Response(BaseModel): @@ -30,11 +30,7 @@ class ApiV3SignupEmailVerifyPost200Response(BaseModel): token: StrictStr = Field(...) user: ApiV1PasswordEmailPasswordResetVerifyPost200ResponseUser = Field(...) __properties = ["message", "token", "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/infisicalapi_client/models/api_v3_users_me_api_keys_get200_response.py b/infisicalapi_client/models/api_v3_users_me_api_keys_get200_response.py index 5dc15ec..79317a7 100644 --- a/infisicalapi_client/models/api_v3_users_me_api_keys_get200_response.py +++ b/infisicalapi_client/models/api_v3_users_me_api_keys_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v2_users_me_api_keys_get200_response_inner import ApiV2UsersMeApiKeysGet200ResponseInner +from typing_extensions import Annotated class ApiV3UsersMeApiKeysGet200Response(BaseModel): """ ApiV3UsersMeApiKeysGet200Response """ - api_key_data: conlist(ApiV2UsersMeApiKeysGet200ResponseInner) = Field(default=..., alias="apiKeyData") + api_key_data: Annotated[List[ApiV2UsersMeApiKeysGet200ResponseInner], Field()] = Field(default=..., alias="apiKeyData") __properties = ["apiKeyData"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response.py b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response.py index 04a6222..a60cf47 100644 --- a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response.py +++ b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_workspaces_project_id_secrets_get200_response_secrets_inner import ApiV3WorkspacesProjectIdSecretsGet200ResponseSecretsInner +from typing_extensions import Annotated class ApiV3WorkspacesProjectIdSecretsGet200Response(BaseModel): """ ApiV3WorkspacesProjectIdSecretsGet200Response """ - secrets: conlist(ApiV3WorkspacesProjectIdSecretsGet200ResponseSecretsInner) = Field(...) + secrets: Annotated[List[ApiV3WorkspacesProjectIdSecretsGet200ResponseSecretsInner], Field()] = Field(...) __properties = ["secrets"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response_secrets_inner.py b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response_secrets_inner.py index 71d0667..31f1f99 100644 --- a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response_secrets_inner.py +++ b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_get200_response_secrets_inner.py @@ -19,7 +19,7 @@ from datetime import datetime from typing import Any, Optional, Union -from pydantic import BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictBool, StrictFloat, StrictInt, StrictStr class ApiV3WorkspacesProjectIdSecretsGet200ResponseSecretsInner(BaseModel): """ @@ -50,11 +50,7 @@ class ApiV3WorkspacesProjectIdSecretsGet200ResponseSecretsInner(BaseModel): environment: StrictStr = Field(...) workspace: StrictStr = Field(...) __properties = ["id", "version", "type", "secretKeyCiphertext", "secretKeyIV", "secretKeyTag", "secretValueCiphertext", "secretValueIV", "secretValueTag", "secretCommentCiphertext", "secretCommentIV", "secretCommentTag", "secretReminderNote", "secretReminderRepeatDays", "skipMultilineEncoding", "algorithm", "keyEncoding", "metadata", "userId", "folderId", "createdAt", "updatedAt", "environment", "workspace"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request.py b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request.py index 3f650f7..525bd60 100644 --- a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request.py +++ b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request.py @@ -19,20 +19,17 @@ from typing import List -from pydantic import BaseModel, Field, conlist +from pydantic import ConfigDict, BaseModel, Field from infisicalapi_client.models.api_v3_workspaces_project_id_secrets_names_post_request_secrets_to_update_inner import ApiV3WorkspacesProjectIdSecretsNamesPostRequestSecretsToUpdateInner +from typing_extensions import Annotated class ApiV3WorkspacesProjectIdSecretsNamesPostRequest(BaseModel): """ ApiV3WorkspacesProjectIdSecretsNamesPostRequest """ - secrets_to_update: conlist(ApiV3WorkspacesProjectIdSecretsNamesPostRequestSecretsToUpdateInner) = Field(default=..., alias="secretsToUpdate") + secrets_to_update: Annotated[List[ApiV3WorkspacesProjectIdSecretsNamesPostRequestSecretsToUpdateInner], Field()] = Field(default=..., alias="secretsToUpdate") __properties = ["secretsToUpdate"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request_secrets_to_update_inner.py b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request_secrets_to_update_inner.py index 00de803..3f4b297 100644 --- a/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request_secrets_to_update_inner.py +++ b/infisicalapi_client/models/api_v3_workspaces_project_id_secrets_names_post_request_secrets_to_update_inner.py @@ -19,7 +19,7 @@ -from pydantic import BaseModel, Field, StrictStr +from pydantic import ConfigDict, BaseModel, Field, StrictStr class ApiV3WorkspacesProjectIdSecretsNamesPostRequestSecretsToUpdateInner(BaseModel): """ @@ -28,11 +28,7 @@ class ApiV3WorkspacesProjectIdSecretsNamesPostRequestSecretsToUpdateInner(BaseMo secret_name: StrictStr = Field(default=..., alias="secretName") secret_id: StrictStr = Field(default=..., alias="secretId") __properties = ["secretName", "secretId"] - - class Config: - """Pydantic configuration""" - allow_population_by_field_name = True - validate_assignment = True + model_config = ConfigDict(populate_by_name=True, validate_assignment=True) def to_str(self) -> str: """Returns the string representation of the model using alias""" diff --git a/log.txt b/log.txt new file mode 100644 index 0000000..e69de29 diff --git a/poetry.lock b/poetry.lock new file mode 100644 index 0000000..ace9866 --- /dev/null +++ b/poetry.lock @@ -0,0 +1,492 @@ +# This file is automatically @generated by Poetry 1.8.2 and should not be changed by hand. + +[[package]] +name = "aenum" +version = "3.1.15" +description = "Advanced Enumerations (compatible with Python's stdlib Enum), NamedTuples, and NamedConstants" +optional = false +python-versions = "*" +files = [ + {file = "aenum-3.1.15-py2-none-any.whl", hash = "sha256:27b1710b9d084de6e2e695dab78fe9f269de924b51ae2850170ee7e1ca6288a5"}, + {file = "aenum-3.1.15-py3-none-any.whl", hash = "sha256:e0dfaeea4c2bd362144b87377e2c61d91958c5ed0b4daf89cb6f45ae23af6288"}, + {file = "aenum-3.1.15.tar.gz", hash = "sha256:8cbd76cd18c4f870ff39b24284d3ea028fbe8731a58df3aa581e434c575b9559"}, +] + +[[package]] +name = "annotated-types" +version = "0.7.0" +description = "Reusable constraint types to use with typing.Annotated" +optional = false +python-versions = ">=3.8" +files = [ + {file = "annotated_types-0.7.0-py3-none-any.whl", hash = "sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53"}, + {file = "annotated_types-0.7.0.tar.gz", hash = "sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89"}, +] + +[package.dependencies] +typing-extensions = {version = ">=4.0.0", markers = "python_version < \"3.9\""} + +[[package]] +name = "cachetools" +version = "5.5.0" +description = "Extensible memoizing collections and decorators" +optional = false +python-versions = ">=3.7" +files = [ + {file = "cachetools-5.5.0-py3-none-any.whl", hash = "sha256:02134e8439cdc2ffb62023ce1debca2944c3f289d66bb17ead3ab3dede74b292"}, + {file = "cachetools-5.5.0.tar.gz", hash = "sha256:2cc24fb4cbe39633fb7badd9db9ca6295d766d9c2995f245725a46715d050f2a"}, +] + +[[package]] +name = "chardet" +version = "5.2.0" +description = "Universal encoding detector for Python 3" +optional = false +python-versions = ">=3.7" +files = [ + {file = "chardet-5.2.0-py3-none-any.whl", hash = "sha256:e1cf59446890a00105fe7b7912492ea04b6e6f06d4b742b2c788469e34c82970"}, + {file = "chardet-5.2.0.tar.gz", hash = "sha256:1b3b6ff479a8c414bc3fa2c0852995695c4a026dcd6d0633b2dd092ca39c1cf7"}, +] + +[[package]] +name = "colorama" +version = "0.4.6" +description = "Cross-platform colored terminal text." +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,!=3.6.*,>=2.7" +files = [ + {file = "colorama-0.4.6-py2.py3-none-any.whl", hash = "sha256:4f1d9991f5acc0ca119f9d443620b77f9d6b33703e51011c16baf57afb285fc6"}, + {file = "colorama-0.4.6.tar.gz", hash = "sha256:08695f5cb7ed6e0531a20572697297273c47b8cae5a63ffc6d6ed5c201be6e44"}, +] + +[[package]] +name = "distlib" +version = "0.3.9" +description = "Distribution utilities" +optional = false +python-versions = "*" +files = [ + {file = "distlib-0.3.9-py2.py3-none-any.whl", hash = "sha256:47f8c22fd27c27e25a65601af709b38e4f0a45ea4fc2e710f65755fa8caaaf87"}, + {file = "distlib-0.3.9.tar.gz", hash = "sha256:a60f20dea646b8a33f3e7772f74dc0b2d0772d2837ee1342a00645c81edf9403"}, +] + +[[package]] +name = "exceptiongroup" +version = "1.2.2" +description = "Backport of PEP 654 (exception groups)" +optional = false +python-versions = ">=3.7" +files = [ + {file = "exceptiongroup-1.2.2-py3-none-any.whl", hash = "sha256:3111b9d131c238bec2f8f516e123e14ba243563fb135d3fe885990585aa7795b"}, + {file = "exceptiongroup-1.2.2.tar.gz", hash = "sha256:47c2edf7c6738fafb49fd34290706d1a1a2f4d1c6df275526b62cbb4aa5393cc"}, +] + +[package.extras] +test = ["pytest (>=6)"] + +[[package]] +name = "filelock" +version = "3.16.1" +description = "A platform independent file lock." +optional = false +python-versions = ">=3.8" +files = [ + {file = "filelock-3.16.1-py3-none-any.whl", hash = "sha256:2082e5703d51fbf98ea75855d9d5527e33d8ff23099bec374a134febee6946b0"}, + {file = "filelock-3.16.1.tar.gz", hash = "sha256:c249fbfcd5db47e5e2d6d62198e565475ee65e4831e2561c8e313fa7eb961435"}, +] + +[package.extras] +docs = ["furo (>=2024.8.6)", "sphinx (>=8.0.2)", "sphinx-autodoc-typehints (>=2.4.1)"] +testing = ["covdefaults (>=2.3)", "coverage (>=7.6.1)", "diff-cover (>=9.2)", "pytest (>=8.3.3)", "pytest-asyncio (>=0.24)", "pytest-cov (>=5)", "pytest-mock (>=3.14)", "pytest-timeout (>=2.3.1)", "virtualenv (>=20.26.4)"] +typing = ["typing-extensions (>=4.12.2)"] + +[[package]] +name = "flake8" +version = "5.0.4" +description = "the modular source code checker: pep8 pyflakes and co" +optional = false +python-versions = ">=3.6.1" +files = [ + {file = "flake8-5.0.4-py2.py3-none-any.whl", hash = "sha256:7a1cf6b73744f5806ab95e526f6f0d8c01c66d7bbe349562d22dfca20610b248"}, + {file = "flake8-5.0.4.tar.gz", hash = "sha256:6fbe320aad8d6b95cec8b8e47bc933004678dc63095be98528b7bdd2a9f510db"}, +] + +[package.dependencies] +mccabe = ">=0.7.0,<0.8.0" +pycodestyle = ">=2.9.0,<2.10.0" +pyflakes = ">=2.5.0,<2.6.0" + +[[package]] +name = "iniconfig" +version = "2.0.0" +description = "brain-dead simple config-ini parsing" +optional = false +python-versions = ">=3.7" +files = [ + {file = "iniconfig-2.0.0-py3-none-any.whl", hash = "sha256:b6a85871a79d2e3b22d2d1b94ac2824226a63c6b741c88f7ae975f18b6778374"}, + {file = "iniconfig-2.0.0.tar.gz", hash = "sha256:2d91e135bf72d31a410b17c16da610a82cb55f6b0477d1a902134b24a455b8b3"}, +] + +[[package]] +name = "mccabe" +version = "0.7.0" +description = "McCabe checker, plugin for flake8" +optional = false +python-versions = ">=3.6" +files = [ + {file = "mccabe-0.7.0-py2.py3-none-any.whl", hash = "sha256:6c2d30ab6be0e4a46919781807b4f0d834ebdd6c6e3dca0bda5a15f863427b6e"}, + {file = "mccabe-0.7.0.tar.gz", hash = "sha256:348e0240c33b60bbdf4e523192ef919f28cb2c3d7d5c7794f74009290f236325"}, +] + +[[package]] +name = "packaging" +version = "24.2" +description = "Core utilities for Python packages" +optional = false +python-versions = ">=3.8" +files = [ + {file = "packaging-24.2-py3-none-any.whl", hash = "sha256:09abb1bccd265c01f4a3aa3f7a7db064b36514d2cba19a2f694fe6150451a759"}, + {file = "packaging-24.2.tar.gz", hash = "sha256:c228a6dc5e932d346bc5739379109d49e8853dd8223571c7c5b55260edc0b97f"}, +] + +[[package]] +name = "platformdirs" +version = "4.3.6" +description = "A small Python package for determining appropriate platform-specific dirs, e.g. a `user data dir`." +optional = false +python-versions = ">=3.8" +files = [ + {file = "platformdirs-4.3.6-py3-none-any.whl", hash = "sha256:73e575e1408ab8103900836b97580d5307456908a03e92031bab39e4554cc3fb"}, + {file = "platformdirs-4.3.6.tar.gz", hash = "sha256:357fb2acbc885b0419afd3ce3ed34564c13c9b95c89360cd9563f73aa5e2b907"}, +] + +[package.extras] +docs = ["furo (>=2024.8.6)", "proselint (>=0.14)", "sphinx (>=8.0.2)", "sphinx-autodoc-typehints (>=2.4)"] +test = ["appdirs (==1.4.4)", "covdefaults (>=2.3)", "pytest (>=8.3.2)", "pytest-cov (>=5)", "pytest-mock (>=3.14)"] +type = ["mypy (>=1.11.2)"] + +[[package]] +name = "pluggy" +version = "1.5.0" +description = "plugin and hook calling mechanisms for python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pluggy-1.5.0-py3-none-any.whl", hash = "sha256:44e1ad92c8ca002de6377e165f3e0f1be63266ab4d554740532335b9d75ea669"}, + {file = "pluggy-1.5.0.tar.gz", hash = "sha256:2cffa88e94fdc978c4c574f15f9e59b7f4201d439195c3715ca9e2486f1d0cf1"}, +] + +[package.extras] +dev = ["pre-commit", "tox"] +testing = ["pytest", "pytest-benchmark"] + +[[package]] +name = "pycodestyle" +version = "2.9.1" +description = "Python style guide checker" +optional = false +python-versions = ">=3.6" +files = [ + {file = "pycodestyle-2.9.1-py2.py3-none-any.whl", hash = "sha256:d1735fc58b418fd7c5f658d28d943854f8a849b01a5d0a1e6f3f3fdd0166804b"}, + {file = "pycodestyle-2.9.1.tar.gz", hash = "sha256:2c9607871d58c76354b697b42f5d57e1ada7d261c261efac224b664affdc5785"}, +] + +[[package]] +name = "pydantic" +version = "2.10.2" +description = "Data validation using Python type hints" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pydantic-2.10.2-py3-none-any.whl", hash = "sha256:cfb96e45951117c3024e6b67b25cdc33a3cb7b2fa62e239f7af1378358a1d99e"}, + {file = "pydantic-2.10.2.tar.gz", hash = "sha256:2bc2d7f17232e0841cbba4641e65ba1eb6fafb3a08de3a091ff3ce14a197c4fa"}, +] + +[package.dependencies] +annotated-types = ">=0.6.0" +pydantic-core = "2.27.1" +typing-extensions = ">=4.12.2" + +[package.extras] +email = ["email-validator (>=2.0.0)"] +timezone = ["tzdata"] + +[[package]] +name = "pydantic-core" +version = "2.27.1" +description = "Core functionality for Pydantic validation and serialization" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pydantic_core-2.27.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:71a5e35c75c021aaf400ac048dacc855f000bdfed91614b4a726f7432f1f3d6a"}, + {file = "pydantic_core-2.27.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:f82d068a2d6ecfc6e054726080af69a6764a10015467d7d7b9f66d6ed5afa23b"}, + {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:121ceb0e822f79163dd4699e4c54f5ad38b157084d97b34de8b232bcaad70278"}, + {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:4603137322c18eaf2e06a4495f426aa8d8388940f3c457e7548145011bb68e05"}, + {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a33cd6ad9017bbeaa9ed78a2e0752c5e250eafb9534f308e7a5f7849b0b1bfb4"}, + {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:15cc53a3179ba0fcefe1e3ae50beb2784dede4003ad2dfd24f81bba4b23a454f"}, + {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:45d9c5eb9273aa50999ad6adc6be5e0ecea7e09dbd0d31bd0c65a55a2592ca08"}, + {file = "pydantic_core-2.27.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8bf7b66ce12a2ac52d16f776b31d16d91033150266eb796967a7e4621707e4f6"}, + {file = "pydantic_core-2.27.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:655d7dd86f26cb15ce8a431036f66ce0318648f8853d709b4167786ec2fa4807"}, + {file = "pydantic_core-2.27.1-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:5556470f1a2157031e676f776c2bc20acd34c1990ca5f7e56f1ebf938b9ab57c"}, + {file = "pydantic_core-2.27.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:f69ed81ab24d5a3bd93861c8c4436f54afdf8e8cc421562b0c7504cf3be58206"}, + {file = "pydantic_core-2.27.1-cp310-none-win32.whl", hash = "sha256:f5a823165e6d04ccea61a9f0576f345f8ce40ed533013580e087bd4d7442b52c"}, + {file = "pydantic_core-2.27.1-cp310-none-win_amd64.whl", hash = "sha256:57866a76e0b3823e0b56692d1a0bf722bffb324839bb5b7226a7dbd6c9a40b17"}, + {file = "pydantic_core-2.27.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:ac3b20653bdbe160febbea8aa6c079d3df19310d50ac314911ed8cc4eb7f8cb8"}, + {file = "pydantic_core-2.27.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a5a8e19d7c707c4cadb8c18f5f60c843052ae83c20fa7d44f41594c644a1d330"}, + {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7f7059ca8d64fea7f238994c97d91f75965216bcbe5f695bb44f354893f11d52"}, + {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bed0f8a0eeea9fb72937ba118f9db0cb7e90773462af7962d382445f3005e5a4"}, + {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a3cb37038123447cf0f3ea4c74751f6a9d7afef0eb71aa07bf5f652b5e6a132c"}, + {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:84286494f6c5d05243456e04223d5a9417d7f443c3b76065e75001beb26f88de"}, + {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:acc07b2cfc5b835444b44a9956846b578d27beeacd4b52e45489e93276241025"}, + {file = "pydantic_core-2.27.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:4fefee876e07a6e9aad7a8c8c9f85b0cdbe7df52b8a9552307b09050f7512c7e"}, + {file = "pydantic_core-2.27.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:258c57abf1188926c774a4c94dd29237e77eda19462e5bb901d88adcab6af919"}, + {file = "pydantic_core-2.27.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:35c14ac45fcfdf7167ca76cc80b2001205a8d5d16d80524e13508371fb8cdd9c"}, + {file = "pydantic_core-2.27.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d1b26e1dff225c31897696cab7d4f0a315d4c0d9e8666dbffdb28216f3b17fdc"}, + {file = "pydantic_core-2.27.1-cp311-none-win32.whl", hash = "sha256:2cdf7d86886bc6982354862204ae3b2f7f96f21a3eb0ba5ca0ac42c7b38598b9"}, + {file = "pydantic_core-2.27.1-cp311-none-win_amd64.whl", hash = "sha256:3af385b0cee8df3746c3f406f38bcbfdc9041b5c2d5ce3e5fc6637256e60bbc5"}, + {file = "pydantic_core-2.27.1-cp311-none-win_arm64.whl", hash = "sha256:81f2ec23ddc1b476ff96563f2e8d723830b06dceae348ce02914a37cb4e74b89"}, + {file = "pydantic_core-2.27.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9cbd94fc661d2bab2bc702cddd2d3370bbdcc4cd0f8f57488a81bcce90c7a54f"}, + {file = "pydantic_core-2.27.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:5f8c4718cd44ec1580e180cb739713ecda2bdee1341084c1467802a417fe0f02"}, + {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:15aae984e46de8d376df515f00450d1522077254ef6b7ce189b38ecee7c9677c"}, + {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1ba5e3963344ff25fc8c40da90f44b0afca8cfd89d12964feb79ac1411a260ac"}, + {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:992cea5f4f3b29d6b4f7f1726ed8ee46c8331c6b4eed6db5b40134c6fe1768bb"}, + {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0325336f348dbee6550d129b1627cb8f5351a9dc91aad141ffb96d4937bd9529"}, + {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7597c07fbd11515f654d6ece3d0e4e5093edc30a436c63142d9a4b8e22f19c35"}, + {file = "pydantic_core-2.27.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3bbd5d8cc692616d5ef6fbbbd50dbec142c7e6ad9beb66b78a96e9c16729b089"}, + {file = "pydantic_core-2.27.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:dc61505e73298a84a2f317255fcc72b710b72980f3a1f670447a21efc88f8381"}, + {file = "pydantic_core-2.27.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:e1f735dc43da318cad19b4173dd1ffce1d84aafd6c9b782b3abc04a0d5a6f5bb"}, + {file = "pydantic_core-2.27.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:f4e5658dbffe8843a0f12366a4c2d1c316dbe09bb4dfbdc9d2d9cd6031de8aae"}, + {file = "pydantic_core-2.27.1-cp312-none-win32.whl", hash = "sha256:672ebbe820bb37988c4d136eca2652ee114992d5d41c7e4858cdd90ea94ffe5c"}, + {file = "pydantic_core-2.27.1-cp312-none-win_amd64.whl", hash = "sha256:66ff044fd0bb1768688aecbe28b6190f6e799349221fb0de0e6f4048eca14c16"}, + {file = "pydantic_core-2.27.1-cp312-none-win_arm64.whl", hash = "sha256:9a3b0793b1bbfd4146304e23d90045f2a9b5fd5823aa682665fbdaf2a6c28f3e"}, + {file = "pydantic_core-2.27.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:f216dbce0e60e4d03e0c4353c7023b202d95cbaeff12e5fd2e82ea0a66905073"}, + {file = "pydantic_core-2.27.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a2e02889071850bbfd36b56fd6bc98945e23670773bc7a76657e90e6b6603c08"}, + {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42b0e23f119b2b456d07ca91b307ae167cc3f6c846a7b169fca5326e32fdc6cf"}, + {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:764be71193f87d460a03f1f7385a82e226639732214b402f9aa61f0d025f0737"}, + {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1c00666a3bd2f84920a4e94434f5974d7bbc57e461318d6bb34ce9cdbbc1f6b2"}, + {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3ccaa88b24eebc0f849ce0a4d09e8a408ec5a94afff395eb69baf868f5183107"}, + {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c65af9088ac534313e1963443d0ec360bb2b9cba6c2909478d22c2e363d98a51"}, + {file = "pydantic_core-2.27.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:206b5cf6f0c513baffaeae7bd817717140770c74528f3e4c3e1cec7871ddd61a"}, + {file = "pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:062f60e512fc7fff8b8a9d680ff0ddaaef0193dba9fa83e679c0c5f5fbd018bc"}, + {file = "pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:a0697803ed7d4af5e4c1adf1670af078f8fcab7a86350e969f454daf598c4960"}, + {file = "pydantic_core-2.27.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:58ca98a950171f3151c603aeea9303ef6c235f692fe555e883591103da709b23"}, + {file = "pydantic_core-2.27.1-cp313-none-win32.whl", hash = "sha256:8065914ff79f7eab1599bd80406681f0ad08f8e47c880f17b416c9f8f7a26d05"}, + {file = "pydantic_core-2.27.1-cp313-none-win_amd64.whl", hash = "sha256:ba630d5e3db74c79300d9a5bdaaf6200172b107f263c98a0539eeecb857b2337"}, + {file = "pydantic_core-2.27.1-cp313-none-win_arm64.whl", hash = "sha256:45cf8588c066860b623cd11c4ba687f8d7175d5f7ef65f7129df8a394c502de5"}, + {file = "pydantic_core-2.27.1-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:5897bec80a09b4084aee23f9b73a9477a46c3304ad1d2d07acca19723fb1de62"}, + {file = "pydantic_core-2.27.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:d0165ab2914379bd56908c02294ed8405c252250668ebcb438a55494c69f44ab"}, + {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:6b9af86e1d8e4cfc82c2022bfaa6f459381a50b94a29e95dcdda8442d6d83864"}, + {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f6c8a66741c5f5447e047ab0ba7a1c61d1e95580d64bce852e3df1f895c4067"}, + {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9a42d6a8156ff78981f8aa56eb6394114e0dedb217cf8b729f438f643608cbcd"}, + {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:64c65f40b4cd8b0e049a8edde07e38b476da7e3aaebe63287c899d2cff253fa5"}, + {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fdcf339322a3fae5cbd504edcefddd5a50d9ee00d968696846f089b4432cf78"}, + {file = "pydantic_core-2.27.1-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:bf99c8404f008750c846cb4ac4667b798a9f7de673ff719d705d9b2d6de49c5f"}, + {file = "pydantic_core-2.27.1-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:8f1edcea27918d748c7e5e4d917297b2a0ab80cad10f86631e488b7cddf76a36"}, + {file = "pydantic_core-2.27.1-cp38-cp38-musllinux_1_1_armv7l.whl", hash = "sha256:159cac0a3d096f79ab6a44d77a961917219707e2a130739c64d4dd46281f5c2a"}, + {file = "pydantic_core-2.27.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:029d9757eb621cc6e1848fa0b0310310de7301057f623985698ed7ebb014391b"}, + {file = "pydantic_core-2.27.1-cp38-none-win32.whl", hash = "sha256:a28af0695a45f7060e6f9b7092558a928a28553366519f64083c63a44f70e618"}, + {file = "pydantic_core-2.27.1-cp38-none-win_amd64.whl", hash = "sha256:2d4567c850905d5eaaed2f7a404e61012a51caf288292e016360aa2b96ff38d4"}, + {file = "pydantic_core-2.27.1-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:e9386266798d64eeb19dd3677051f5705bf873e98e15897ddb7d76f477131967"}, + {file = "pydantic_core-2.27.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4228b5b646caa73f119b1ae756216b59cc6e2267201c27d3912b592c5e323b60"}, + {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0b3dfe500de26c52abe0477dde16192ac39c98f05bf2d80e76102d394bd13854"}, + {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:aee66be87825cdf72ac64cb03ad4c15ffef4143dbf5c113f64a5ff4f81477bf9"}, + {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3b748c44bb9f53031c8cbc99a8a061bc181c1000c60a30f55393b6e9c45cc5bd"}, + {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5ca038c7f6a0afd0b2448941b6ef9d5e1949e999f9e5517692eb6da58e9d44be"}, + {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6e0bd57539da59a3e4671b90a502da9a28c72322a4f17866ba3ac63a82c4498e"}, + {file = "pydantic_core-2.27.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ac6c2c45c847bbf8f91930d88716a0fb924b51e0c6dad329b793d670ec5db792"}, + {file = "pydantic_core-2.27.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b94d4ba43739bbe8b0ce4262bcc3b7b9f31459ad120fb595627eaeb7f9b9ca01"}, + {file = "pydantic_core-2.27.1-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:00e6424f4b26fe82d44577b4c842d7df97c20be6439e8e685d0d715feceb9fb9"}, + {file = "pydantic_core-2.27.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:38de0a70160dd97540335b7ad3a74571b24f1dc3ed33f815f0880682e6880131"}, + {file = "pydantic_core-2.27.1-cp39-none-win32.whl", hash = "sha256:7ccebf51efc61634f6c2344da73e366c75e735960b5654b63d7e6f69a5885fa3"}, + {file = "pydantic_core-2.27.1-cp39-none-win_amd64.whl", hash = "sha256:a57847b090d7892f123726202b7daa20df6694cbd583b67a592e856bff603d6c"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3fa80ac2bd5856580e242dbc202db873c60a01b20309c8319b5c5986fbe53ce6"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:d950caa237bb1954f1b8c9227b5065ba6875ac9771bb8ec790d956a699b78676"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0e4216e64d203e39c62df627aa882f02a2438d18a5f21d7f721621f7a5d3611d"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:02a3d637bd387c41d46b002f0e49c52642281edacd2740e5a42f7017feea3f2c"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:161c27ccce13b6b0c8689418da3885d3220ed2eae2ea5e9b2f7f3d48f1d52c27"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:19910754e4cc9c63bc1c7f6d73aa1cfee82f42007e407c0f413695c2f7ed777f"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:e173486019cc283dc9778315fa29a363579372fe67045e971e89b6365cc035ed"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:af52d26579b308921b73b956153066481f064875140ccd1dfd4e77db89dbb12f"}, + {file = "pydantic_core-2.27.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:981fb88516bd1ae8b0cbbd2034678a39dedc98752f264ac9bc5839d3923fa04c"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5fde892e6c697ce3e30c61b239330fc5d569a71fefd4eb6512fc6caec9dd9e2f"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:816f5aa087094099fff7edabb5e01cc370eb21aa1a1d44fe2d2aefdfb5599b31"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:9c10c309e18e443ddb108f0ef64e8729363adbfd92d6d57beec680f6261556f3"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:98476c98b02c8e9b2eec76ac4156fd006628b1b2d0ef27e548ffa978393fd154"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:c3027001c28434e7ca5a6e1e527487051136aa81803ac812be51802150d880dd"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:7699b1df36a48169cdebda7ab5a2bac265204003f153b4bd17276153d997670a"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:1c39b07d90be6b48968ddc8c19e7585052088fd7ec8d568bb31ff64c70ae3c97"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:46ccfe3032b3915586e469d4972973f893c0a2bb65669194a5bdea9bacc088c2"}, + {file = "pydantic_core-2.27.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:62ba45e21cf6571d7f716d903b5b7b6d2617e2d5d67c0923dc47b9d41369f840"}, + {file = "pydantic_core-2.27.1.tar.gz", hash = "sha256:62a763352879b84aa31058fc931884055fd75089cccbd9d58bb6afd01141b235"}, +] + +[package.dependencies] +typing-extensions = ">=4.6.0,<4.7.0 || >4.7.0" + +[[package]] +name = "pyflakes" +version = "2.5.0" +description = "passive checker of Python programs" +optional = false +python-versions = ">=3.6" +files = [ + {file = "pyflakes-2.5.0-py2.py3-none-any.whl", hash = "sha256:4579f67d887f804e67edb544428f264b7b24f435b263c4614f384135cea553d2"}, + {file = "pyflakes-2.5.0.tar.gz", hash = "sha256:491feb020dca48ccc562a8c0cbe8df07ee13078df59813b83959cbdada312ea3"}, +] + +[[package]] +name = "pyproject-api" +version = "1.8.0" +description = "API to interact with the python pyproject.toml based projects" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pyproject_api-1.8.0-py3-none-any.whl", hash = "sha256:3d7d347a047afe796fd5d1885b1e391ba29be7169bd2f102fcd378f04273d228"}, + {file = "pyproject_api-1.8.0.tar.gz", hash = "sha256:77b8049f2feb5d33eefcc21b57f1e279636277a8ac8ad6b5871037b243778496"}, +] + +[package.dependencies] +packaging = ">=24.1" +tomli = {version = ">=2.0.1", markers = "python_version < \"3.11\""} + +[package.extras] +docs = ["furo (>=2024.8.6)", "sphinx-autodoc-typehints (>=2.4.1)"] +testing = ["covdefaults (>=2.3)", "pytest (>=8.3.3)", "pytest-cov (>=5)", "pytest-mock (>=3.14)", "setuptools (>=75.1)"] + +[[package]] +name = "pytest" +version = "8.3.3" +description = "pytest: simple powerful testing with Python" +optional = false +python-versions = ">=3.8" +files = [ + {file = "pytest-8.3.3-py3-none-any.whl", hash = "sha256:a6853c7375b2663155079443d2e45de913a911a11d669df02a50814944db57b2"}, + {file = "pytest-8.3.3.tar.gz", hash = "sha256:70b98107bd648308a7952b06e6ca9a50bc660be218d53c257cc1fc94fda10181"}, +] + +[package.dependencies] +colorama = {version = "*", markers = "sys_platform == \"win32\""} +exceptiongroup = {version = ">=1.0.0rc8", markers = "python_version < \"3.11\""} +iniconfig = "*" +packaging = "*" +pluggy = ">=1.5,<2" +tomli = {version = ">=1", markers = "python_version < \"3.11\""} + +[package.extras] +dev = ["argcomplete", "attrs (>=19.2)", "hypothesis (>=3.56)", "mock", "pygments (>=2.7.2)", "requests", "setuptools", "xmlschema"] + +[[package]] +name = "python-dateutil" +version = "2.9.0.post0" +description = "Extensions to the standard Python datetime module" +optional = false +python-versions = "!=3.0.*,!=3.1.*,!=3.2.*,>=2.7" +files = [ + {file = "python-dateutil-2.9.0.post0.tar.gz", hash = "sha256:37dd54208da7e1cd875388217d5e00ebd4179249f90fb72437e91a35459a0ad3"}, + {file = "python_dateutil-2.9.0.post0-py2.py3-none-any.whl", hash = "sha256:a8b2bc7bffae282281c8140a97d3aa9c14da0b136dfe83f850eea9a5f7470427"}, +] + +[package.dependencies] +six = ">=1.5" + +[[package]] +name = "six" +version = "1.16.0" +description = "Python 2 and 3 compatibility utilities" +optional = false +python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*" +files = [ + {file = "six-1.16.0-py2.py3-none-any.whl", hash = "sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"}, + {file = "six-1.16.0.tar.gz", hash = "sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926"}, +] + +[[package]] +name = "tomli" +version = "2.1.0" +description = "A lil' TOML parser" +optional = false +python-versions = ">=3.8" +files = [ + {file = "tomli-2.1.0-py3-none-any.whl", hash = "sha256:a5c57c3d1c56f5ccdf89f6523458f60ef716e210fc47c4cfb188c5ba473e0391"}, + {file = "tomli-2.1.0.tar.gz", hash = "sha256:3f646cae2aec94e17d04973e4249548320197cfabdf130015d023de4b74d8ab8"}, +] + +[[package]] +name = "tox" +version = "4.23.2" +description = "tox is a generic virtualenv management and test command line tool" +optional = false +python-versions = ">=3.8" +files = [ + {file = "tox-4.23.2-py3-none-any.whl", hash = "sha256:452bc32bb031f2282881a2118923176445bac783ab97c874b8770ab4c3b76c38"}, + {file = "tox-4.23.2.tar.gz", hash = "sha256:86075e00e555df6e82e74cfc333917f91ecb47ffbc868dcafbd2672e332f4a2c"}, +] + +[package.dependencies] +cachetools = ">=5.5" +chardet = ">=5.2" +colorama = ">=0.4.6" +filelock = ">=3.16.1" +packaging = ">=24.1" +platformdirs = ">=4.3.6" +pluggy = ">=1.5" +pyproject-api = ">=1.8" +tomli = {version = ">=2.0.1", markers = "python_version < \"3.11\""} +typing-extensions = {version = ">=4.12.2", markers = "python_version < \"3.11\""} +virtualenv = ">=20.26.6" + +[package.extras] +test = ["devpi-process (>=1.0.2)", "pytest (>=8.3.3)", "pytest-mock (>=3.14)"] + +[[package]] +name = "typing-extensions" +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.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, + {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, +] + +[[package]] +name = "urllib3" +version = "2.2.3" +description = "HTTP library with thread-safe connection pooling, file post, and more." +optional = false +python-versions = ">=3.8" +files = [ + {file = "urllib3-2.2.3-py3-none-any.whl", hash = "sha256:ca899ca043dcb1bafa3e262d73aa25c465bfb49e0bd9dd5d59f1d0acba2f8fac"}, + {file = "urllib3-2.2.3.tar.gz", hash = "sha256:e7d814a81dad81e6caf2ec9fdedb284ecc9c73076b62654547cc64ccdcae26e9"}, +] + +[package.extras] +brotli = ["brotli (>=1.0.9)", "brotlicffi (>=0.8.0)"] +h2 = ["h2 (>=4,<5)"] +socks = ["pysocks (>=1.5.6,!=1.5.7,<2.0)"] +zstd = ["zstandard (>=0.18.0)"] + +[[package]] +name = "virtualenv" +version = "20.28.0" +description = "Virtual Python Environment builder" +optional = false +python-versions = ">=3.8" +files = [ + {file = "virtualenv-20.28.0-py3-none-any.whl", hash = "sha256:23eae1b4516ecd610481eda647f3a7c09aea295055337331bb4e6892ecce47b0"}, + {file = "virtualenv-20.28.0.tar.gz", hash = "sha256:2c9c3262bb8e7b87ea801d715fae4495e6032450c71d2309be9550e7364049aa"}, +] + +[package.dependencies] +distlib = ">=0.3.7,<1" +filelock = ">=3.12.2,<4" +platformdirs = ">=3.9.1,<5" + +[package.extras] +docs = ["furo (>=2023.7.26)", "proselint (>=0.13)", "sphinx (>=7.1.2,!=7.3)", "sphinx-argparse (>=0.4)", "sphinxcontrib-towncrier (>=0.2.1a0)", "towncrier (>=23.6)"] +test = ["covdefaults (>=2.3)", "coverage (>=7.2.7)", "coverage-enable-subprocess (>=1)", "flaky (>=3.7)", "packaging (>=23.1)", "pytest (>=7.4)", "pytest-env (>=0.8.2)", "pytest-freezer (>=0.4.8)", "pytest-mock (>=3.11.1)", "pytest-randomly (>=3.12)", "pytest-timeout (>=2.1)", "setuptools (>=68)", "time-machine (>=2.10)"] + +[metadata] +lock-version = "2.0" +python-versions = "^3.8" +content-hash = "154b5fe3ba336651afff996b930337620f5ae2ae6a879615e81f0ff2778aaea2" diff --git a/pyproject.toml b/pyproject.toml index 27eacf1..1e0c78f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -10,12 +10,12 @@ keywords = ["OpenAPI", "OpenAPI-Generator", "Infisical API"] include = ["infisicalapi_client/py.typed"] [tool.poetry.dependencies] -python = "^3.7" +python = "^3.8" urllib3 = ">= 1.25.3" python-dateutil = ">=2.8.2" -pydantic = "^1.10.5, <2" aenum = ">=3.1.11" +pydantic = ">2.1" [tool.poetry.dev-dependencies] pytest = ">=7.2.1" diff --git a/requirements.txt b/requirements.txt index 258c179..41cf94f 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,5 +1,5 @@ python_dateutil >= 2.5.3 setuptools >= 21.0.0 urllib3 >= 1.25.3, < 2.1.0 -pydantic >= 1.10.5, < 2 +pydantic >= 2.1 aenum >= 3.1.11 diff --git a/setup.py b/setup.py index 7a025ef..c72ab2c 100644 --- a/setup.py +++ b/setup.py @@ -16,11 +16,11 @@ # http://pypi.python.org/pypi/setuptools NAME = "infisicalsdk" VERSION = "1.0.1" -PYTHON_REQUIRES = ">=3.7" +PYTHON_REQUIRES = ">=3.8" REQUIRES = [ "urllib3 >= 1.25.3, < 2.1.0", "python-dateutil", - "pydantic >= 1.10.5, < 2", + "pydantic >= 2.1", "aenum", "requests~=2.32", "boto3~=1.35",