From dbb31bd4bdc34b5580e3458f5539e02e35c82148 Mon Sep 17 00:00:00 2001 From: Concourse Date: Fri, 29 Nov 2024 10:06:13 +0000 Subject: [PATCH] identity python updates for v2.1.92 Signed-off-by: Concourse --- README.md | 64 +- sdk/README.md | 10 + sdk/docs/ApplicationMetadataApi.md | 60 +- sdk/docs/ApplicationsApi.md | 314 +++--- sdk/docs/AuthenticationApi.md | 448 ++++----- sdk/docs/CreateNetworkZoneRequest.md | 33 + sdk/docs/IdentityProviderApi.md | 120 +-- sdk/docs/IpAddressDefinition.md | 30 + sdk/docs/MeApi.md | 130 +-- sdk/docs/NetworkZoneDefinitionResponse.md | 38 + sdk/docs/NetworkZonesApi.md | 478 +++++++++ sdk/docs/NetworkZonesApplyRules.md | 29 + sdk/docs/PersonalAuthenticationTokensApi.md | 192 ++-- sdk/docs/RolesApi.md | 504 +++++----- sdk/docs/TokensApi.md | 56 +- sdk/docs/UpdateNetworkZoneRequest.md | 32 + sdk/docs/UsersApi.md | 936 +++++++++--------- sdk/finbourne_identity/__init__.py | 12 + sdk/finbourne_identity/api/__init__.py | 2 + .../api/network_zones_api.py | 815 +++++++++++++++ sdk/finbourne_identity/configuration.py | 2 +- sdk/finbourne_identity/models/__init__.py | 10 + .../models/create_network_zone_request.py | 106 ++ .../models/ip_address_definition.py | 83 ++ .../network_zone_definition_response.py | 129 +++ .../models/network_zones_apply_rules.py | 71 ++ .../models/update_network_zone_request.py | 99 ++ sdk/poetry.lock | 242 +++-- sdk/pyproject.toml | 2 +- 29 files changed, 3531 insertions(+), 1516 deletions(-) create mode 100644 sdk/docs/CreateNetworkZoneRequest.md create mode 100644 sdk/docs/IpAddressDefinition.md create mode 100644 sdk/docs/NetworkZoneDefinitionResponse.md create mode 100644 sdk/docs/NetworkZonesApi.md create mode 100644 sdk/docs/NetworkZonesApplyRules.md create mode 100644 sdk/docs/UpdateNetworkZoneRequest.md create mode 100644 sdk/finbourne_identity/api/network_zones_api.py create mode 100644 sdk/finbourne_identity/models/create_network_zone_request.py create mode 100644 sdk/finbourne_identity/models/ip_address_definition.py create mode 100644 sdk/finbourne_identity/models/network_zone_definition_response.py create mode 100644 sdk/finbourne_identity/models/network_zones_apply_rules.py create mode 100644 sdk/finbourne_identity/models/update_network_zone_request.py diff --git a/README.md b/README.md index cccbe82f..c3963af4 100644 --- a/README.md +++ b/README.md @@ -28,8 +28,8 @@ This code is automatically generated by the [OpenAPI Generator](https://openapi- ## Versions -- API version: 0.0.3088 -- SDK version: 2.1.91 +- API version: 0.0.3094 +- SDK version: 2.1.92 ## Requirements @@ -159,33 +159,32 @@ Other optional configuration ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, ApplicationMetadataApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -194,26 +193,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(ApplicationMetadataApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(ApplicationMetadataApi) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_access_controlled_resources(opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_access_controlled_resources(opts=opts) + # ListAccessControlledResources: Get resources available for access control + api_response = api_instance.list_access_controlled_resources() + pprint(api_response) - # ListAccessControlledResources: Get resources available for access control - api_response = await api_instance.list_access_controlled_resources() - pprint(api_response) - except ApiException as e: - print("Exception when calling ApplicationMetadataApi->list_access_controlled_resources: %s\n" % e) + except ApiException as e: + print("Exception when calling ApplicationMetadataApi->list_access_controlled_resources: %s\n" % e) -asyncio.run(main()) +main() ``` diff --git a/sdk/README.md b/sdk/README.md index 3f717606..dfd9d7b7 100644 --- a/sdk/README.md +++ b/sdk/README.md @@ -22,6 +22,11 @@ Class | Method | HTTP request | Description *IdentityProviderApi* | [**remove_scim**](docs/IdentityProviderApi.md#remove_scim) | **DELETE** /api/identityprovider/scim | RemoveScim: Remove SCIM *MeApi* | [**get_user_info**](docs/MeApi.md#get_user_info) | **GET** /api/me | GetUserInfo: Get User Info *MeApi* | [**set_password**](docs/MeApi.md#set_password) | **PUT** /api/me/password | SetPassword: Set password of current user +*NetworkZonesApi* | [**create_network_zone**](docs/NetworkZonesApi.md#create_network_zone) | **POST** /api/networkzones | [BETA] CreateNetworkZone: Creates a network zone +*NetworkZonesApi* | [**delete_network_zone**](docs/NetworkZonesApi.md#delete_network_zone) | **DELETE** /api/networkzones/{code} | [BETA] DeleteNetworkZone: Deletes a network zone +*NetworkZonesApi* | [**get_network_zone**](docs/NetworkZonesApi.md#get_network_zone) | **GET** /api/networkzones/{code} | [BETA] GetNetworkZone: Retrieve a Network Zone +*NetworkZonesApi* | [**list_network_zones**](docs/NetworkZonesApi.md#list_network_zones) | **GET** /api/networkzones | [BETA] ListNetworkZones: Lists all network zones for a domain +*NetworkZonesApi* | [**update_network_zone**](docs/NetworkZonesApi.md#update_network_zone) | **PUT** /api/networkzones/{code} | [BETA] UpdateNetworkZone: Updates an existing network zone *PersonalAuthenticationTokensApi* | [**create_api_key**](docs/PersonalAuthenticationTokensApi.md#create_api_key) | **POST** /api/keys | CreateApiKey: Create a Personal Access Token *PersonalAuthenticationTokensApi* | [**delete_api_key**](docs/PersonalAuthenticationTokensApi.md#delete_api_key) | **DELETE** /api/keys/{id} | DeleteApiKey: Invalidate a Personal Access Token *PersonalAuthenticationTokensApi* | [**list_own_api_keys**](docs/PersonalAuthenticationTokensApi.md#list_own_api_keys) | **GET** /api/keys | ListOwnApiKeys: Gets the meta data for all of the user's existing Personal Access Tokens. @@ -62,6 +67,7 @@ Class | Method | HTTP request | Description - [AuthenticationInformation](docs/AuthenticationInformation.md) - [CreateApiKey](docs/CreateApiKey.md) - [CreateApplicationRequest](docs/CreateApplicationRequest.md) + - [CreateNetworkZoneRequest](docs/CreateNetworkZoneRequest.md) - [CreateRoleRequest](docs/CreateRoleRequest.md) - [CreateUserRequest](docs/CreateUserRequest.md) - [CreatedApiKey](docs/CreatedApiKey.md) @@ -69,10 +75,13 @@ Class | Method | HTTP request | Description - [ErrorDetail](docs/ErrorDetail.md) - [IdSelectorDefinition](docs/IdSelectorDefinition.md) - [IdentifierPartSchema](docs/IdentifierPartSchema.md) + - [IpAddressDefinition](docs/IpAddressDefinition.md) - [Link](docs/Link.md) - [ListUsersResponse](docs/ListUsersResponse.md) - [LusidProblemDetails](docs/LusidProblemDetails.md) - [LusidValidationProblemDetails](docs/LusidValidationProblemDetails.md) + - [NetworkZoneDefinitionResponse](docs/NetworkZoneDefinitionResponse.md) + - [NetworkZonesApplyRules](docs/NetworkZonesApplyRules.md) - [OAuthApplication](docs/OAuthApplication.md) - [PasswordPolicyResponse](docs/PasswordPolicyResponse.md) - [PasswordPolicyResponseAge](docs/PasswordPolicyResponseAge.md) @@ -91,6 +100,7 @@ Class | Method | HTTP request | Description - [SupportRole](docs/SupportRole.md) - [SupportRolesResponse](docs/SupportRolesResponse.md) - [TemporaryPassword](docs/TemporaryPassword.md) + - [UpdateNetworkZoneRequest](docs/UpdateNetworkZoneRequest.md) - [UpdatePasswordPolicyRequest](docs/UpdatePasswordPolicyRequest.md) - [UpdatePasswordPolicyRequestAge](docs/UpdatePasswordPolicyRequestAge.md) - [UpdatePasswordPolicyRequestComplexity](docs/UpdatePasswordPolicyRequestComplexity.md) diff --git a/sdk/docs/ApplicationMetadataApi.md b/sdk/docs/ApplicationMetadataApi.md index b11a188e..0fc4c25e 100644 --- a/sdk/docs/ApplicationMetadataApi.md +++ b/sdk/docs/ApplicationMetadataApi.md @@ -17,33 +17,32 @@ Get the comprehensive set of resources that are available for access control ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, ApplicationMetadataApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -52,26 +51,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(ApplicationMetadataApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(ApplicationMetadataApi) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_access_controlled_resources(opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_access_controlled_resources(opts=opts) - # ListAccessControlledResources: Get resources available for access control - api_response = await api_instance.list_access_controlled_resources() - pprint(api_response) - except ApiException as e: - print("Exception when calling ApplicationMetadataApi->list_access_controlled_resources: %s\n" % e) + # ListAccessControlledResources: Get resources available for access control + api_response = api_instance.list_access_controlled_resources() + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling ApplicationMetadataApi->list_access_controlled_resources: %s\n" % e) + +main() ``` ### Parameters diff --git a/sdk/docs/ApplicationsApi.md b/sdk/docs/ApplicationsApi.md index 815e4a93..dfb007b4 100644 --- a/sdk/docs/ApplicationsApi.md +++ b/sdk/docs/ApplicationsApi.md @@ -21,33 +21,32 @@ Create a new Application ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, ApplicationsApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -56,32 +55,33 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(ApplicationsApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(ApplicationsApi) - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # create_application_request = CreateApplicationRequest.from_json("") - # create_application_request = CreateApplicationRequest.from_dict({}) - create_application_request = CreateApplicationRequest() + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # create_application_request = CreateApplicationRequest.from_json("") + # create_application_request = CreateApplicationRequest.from_dict({}) + create_application_request = CreateApplicationRequest() - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.create_application(create_application_request=create_application_request, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.create_application(create_application_request=create_application_request, opts=opts) - # [EARLY ACCESS] CreateApplication: Create Application - api_response = await api_instance.create_application(create_application_request=create_application_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling ApplicationsApi->create_application: %s\n" % e) + # [EARLY ACCESS] CreateApplication: Create Application + api_response = api_instance.create_application(create_application_request=create_application_request) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling ApplicationsApi->create_application: %s\n" % e) + +main() ``` ### Parameters @@ -118,33 +118,32 @@ Delete the specified application ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, ApplicationsApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -153,25 +152,26 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(ApplicationsApi) - id = 'id_example' # str | The unique identifier for the application + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(ApplicationsApi) + id = 'id_example' # str | The unique identifier for the application - try: - # uncomment the below to set overrides at the request level - # await api_instance.delete_application(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.delete_application(id, opts=opts) - # [EARLY ACCESS] DeleteApplication: Delete Application - await api_instance.delete_application(id) except ApiException as e: - print("Exception when calling ApplicationsApi->delete_application: %s\n" % e) + # [EARLY ACCESS] DeleteApplication: Delete Application + api_instance.delete_application(id) + except ApiException as e: + print("Exception when calling ApplicationsApi->delete_application: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -208,33 +208,32 @@ get the specified application, and optionally the OIDC secret ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, ApplicationsApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -243,28 +242,29 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(ApplicationsApi) + id = 'id_example' # str | The unique identifier for the application + include_secret = True # bool | Optional. If set to true, the application secrets will be returned in plain text (optional) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(ApplicationsApi) - id = 'id_example' # str | The unique identifier for the application - include_secret = True # bool | Optional. If set to true, the application secrets will be returned in plain text (optional) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_application(id, include_secret=include_secret, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_application(id, include_secret=include_secret, opts=opts) + # GetApplication: Get Application + api_response = api_instance.get_application(id, include_secret=include_secret) + pprint(api_response) - # GetApplication: Get Application - api_response = await api_instance.get_application(id, include_secret=include_secret) - pprint(api_response) - except ApiException as e: - print("Exception when calling ApplicationsApi->get_application: %s\n" % e) + except ApiException as e: + print("Exception when calling ApplicationsApi->get_application: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -303,33 +303,32 @@ List the available applications ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, ApplicationsApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -338,26 +337,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(ApplicationsApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(ApplicationsApi) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_applications(opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_applications(opts=opts) - # ListApplications: List Applications - api_response = await api_instance.list_applications() - pprint(api_response) - except ApiException as e: - print("Exception when calling ApplicationsApi->list_applications: %s\n" % e) + # ListApplications: List Applications + api_response = api_instance.list_applications() + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling ApplicationsApi->list_applications: %s\n" % e) + +main() ``` ### Parameters @@ -390,33 +390,32 @@ Rotate the secrets for the specified application ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, ApplicationsApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -425,27 +424,28 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(ApplicationsApi) + id = 'id_example' # str | The unique identifier for the application - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(ApplicationsApi) - id = 'id_example' # str | The unique identifier for the application + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.rotate_application_secrets(id, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.rotate_application_secrets(id, opts=opts) + # [EARLY ACCESS] RotateApplicationSecrets: Rotate Application Secrets + api_response = api_instance.rotate_application_secrets(id) + pprint(api_response) - # [EARLY ACCESS] RotateApplicationSecrets: Rotate Application Secrets - api_response = await api_instance.rotate_application_secrets(id) - pprint(api_response) - except ApiException as e: - print("Exception when calling ApplicationsApi->rotate_application_secrets: %s\n" % e) + except ApiException as e: + print("Exception when calling ApplicationsApi->rotate_application_secrets: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/docs/AuthenticationApi.md b/sdk/docs/AuthenticationApi.md index 1ddcddba..a1e4711a 100644 --- a/sdk/docs/AuthenticationApi.md +++ b/sdk/docs/AuthenticationApi.md @@ -23,33 +23,32 @@ Get the AuthenticationInformation associated with the current domain. This inclu ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, AuthenticationApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -58,26 +57,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(AuthenticationApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(AuthenticationApi) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_authentication_information(opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_authentication_information(opts=opts) - # GetAuthenticationInformation: Gets AuthenticationInformation - api_response = await api_instance.get_authentication_information() - pprint(api_response) - except ApiException as e: - print("Exception when calling AuthenticationApi->get_authentication_information: %s\n" % e) + # GetAuthenticationInformation: Gets AuthenticationInformation + api_response = api_instance.get_authentication_information() + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling AuthenticationApi->get_authentication_information: %s\n" % e) + +main() ``` ### Parameters @@ -110,33 +110,32 @@ Get the password policy for a given user type ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, AuthenticationApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -145,27 +144,28 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(AuthenticationApi) + user_type = 'user_type_example' # str | The type of user (should only be personal or service) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(AuthenticationApi) - user_type = 'user_type_example' # str | The type of user (should only be personal or service) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_password_policy(user_type, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_password_policy(user_type, opts=opts) + # [EXPERIMENTAL] GetPasswordPolicy: Gets password policy for a user type + api_response = api_instance.get_password_policy(user_type) + pprint(api_response) - # [EXPERIMENTAL] GetPasswordPolicy: Gets password policy for a user type - api_response = await api_instance.get_password_policy(user_type) - pprint(api_response) - except ApiException as e: - print("Exception when calling AuthenticationApi->get_password_policy: %s\n" % e) + except ApiException as e: + print("Exception when calling AuthenticationApi->get_password_policy: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -202,33 +202,32 @@ The active and inactive support requests will be returned, inactive support requ ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, AuthenticationApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -237,28 +236,29 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(AuthenticationApi) - start = '2013-10-20T19:20:30+01:00' # datetime | The start expiry date to query support access requests from (optional) - end = '2013-10-20T19:20:30+01:00' # datetime | The end expiry date to query support access requests to (optional) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(AuthenticationApi) + start = '2013-10-20T19:20:30+01:00' # datetime | The start expiry date to query support access requests from (optional) + end = '2013-10-20T19:20:30+01:00' # datetime | The end expiry date to query support access requests to (optional) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_support_access_history(start=start, end=end, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_support_access_history(start=start, end=end, opts=opts) - # GetSupportAccessHistory: Get the history of all support access granted and any information pertaining to their termination - api_response = await api_instance.get_support_access_history(start=start, end=end) - pprint(api_response) - except ApiException as e: - print("Exception when calling AuthenticationApi->get_support_access_history: %s\n" % e) + # GetSupportAccessHistory: Get the history of all support access granted and any information pertaining to their termination + api_response = api_instance.get_support_access_history(start=start, end=end) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling AuthenticationApi->get_support_access_history: %s\n" % e) + +main() ``` ### Parameters @@ -296,33 +296,32 @@ Get mapping of support roles, the internal representation to a human friendly re ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, AuthenticationApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -331,26 +330,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(AuthenticationApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(AuthenticationApi) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_support_roles(opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_support_roles(opts=opts) + # GetSupportRoles: Get mapping of support roles, the internal representation to a human friendly representation + api_response = api_instance.get_support_roles() + pprint(api_response) - # GetSupportRoles: Get mapping of support roles, the internal representation to a human friendly representation - api_response = await api_instance.get_support_roles() - pprint(api_response) - except ApiException as e: - print("Exception when calling AuthenticationApi->get_support_roles: %s\n" % e) + except ApiException as e: + print("Exception when calling AuthenticationApi->get_support_roles: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -383,33 +383,32 @@ Granting support access will allow FINBOURNE employees full access to your data ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, AuthenticationApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -418,32 +417,33 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(AuthenticationApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(AuthenticationApi) - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # support_access_request = SupportAccessRequest.from_json("") - # support_access_request = SupportAccessRequest.from_dict({}) - support_access_request = SupportAccessRequest() + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # support_access_request = SupportAccessRequest.from_json("") + # support_access_request = SupportAccessRequest.from_dict({}) + support_access_request = SupportAccessRequest() - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.grant_support_access(support_access_request, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.grant_support_access(support_access_request, opts=opts) - # GrantSupportAccess: Grants FINBOURNE support access to your account - api_response = await api_instance.grant_support_access(support_access_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling AuthenticationApi->grant_support_access: %s\n" % e) + # GrantSupportAccess: Grants FINBOURNE support access to your account + api_response = api_instance.grant_support_access(support_access_request) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling AuthenticationApi->grant_support_access: %s\n" % e) + +main() ``` ### Parameters @@ -480,33 +480,32 @@ This will result in a loss of access to your data for all FINBOURNE support agen ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, AuthenticationApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -515,26 +514,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(AuthenticationApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(AuthenticationApi) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.invalidate_support_access(opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.invalidate_support_access(opts=opts) + # InvalidateSupportAccess: Revoke any FINBOURNE support access to your account + api_response = api_instance.invalidate_support_access() + pprint(api_response) - # InvalidateSupportAccess: Revoke any FINBOURNE support access to your account - api_response = await api_instance.invalidate_support_access() - pprint(api_response) - except ApiException as e: - print("Exception when calling AuthenticationApi->invalidate_support_access: %s\n" % e) + except ApiException as e: + print("Exception when calling AuthenticationApi->invalidate_support_access: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -567,33 +567,32 @@ Update the password policy for a given user type ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, AuthenticationApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -602,33 +601,34 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(AuthenticationApi) + user_type = 'user_type_example' # str | The type of user (should only be personal or service) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(AuthenticationApi) - user_type = 'user_type_example' # str | The type of user (should only be personal or service) + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # update_password_policy_request = UpdatePasswordPolicyRequest.from_json("") + # update_password_policy_request = UpdatePasswordPolicyRequest.from_dict({}) + update_password_policy_request = UpdatePasswordPolicyRequest() - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # update_password_policy_request = UpdatePasswordPolicyRequest.from_json("") - # update_password_policy_request = UpdatePasswordPolicyRequest.from_dict({}) - update_password_policy_request = UpdatePasswordPolicyRequest() + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.update_password_policy(user_type, update_password_policy_request=update_password_policy_request, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.update_password_policy(user_type, update_password_policy_request=update_password_policy_request, opts=opts) + # [EXPERIMENTAL] UpdatePasswordPolicy: Updates password policy for a user type + api_response = api_instance.update_password_policy(user_type, update_password_policy_request=update_password_policy_request) + pprint(api_response) - # [EXPERIMENTAL] UpdatePasswordPolicy: Updates password policy for a user type - api_response = await api_instance.update_password_policy(user_type, update_password_policy_request=update_password_policy_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling AuthenticationApi->update_password_policy: %s\n" % e) + except ApiException as e: + print("Exception when calling AuthenticationApi->update_password_policy: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/docs/CreateNetworkZoneRequest.md b/sdk/docs/CreateNetworkZoneRequest.md new file mode 100644 index 00000000..7312741c --- /dev/null +++ b/sdk/docs/CreateNetworkZoneRequest.md @@ -0,0 +1,33 @@ +# CreateNetworkZoneRequest + +The Create Network Zone Request information + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | | +**description** | **str** | | [optional] +**network_zone_ips** | [**List[IpAddressDefinition]**](IpAddressDefinition.md) | | +**action** | **str** | | [optional] +**apply_rules** | [**NetworkZonesApplyRules**](NetworkZonesApplyRules.md) | | + +## Example + +```python +from finbourne_identity.models.create_network_zone_request import CreateNetworkZoneRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of CreateNetworkZoneRequest from a JSON string +create_network_zone_request_instance = CreateNetworkZoneRequest.from_json(json) +# print the JSON string representation of the object +print CreateNetworkZoneRequest.to_json() + +# convert the object into a dict +create_network_zone_request_dict = create_network_zone_request_instance.to_dict() +# create an instance of CreateNetworkZoneRequest from a dict +create_network_zone_request_form_dict = create_network_zone_request.from_dict(create_network_zone_request_dict) +``` +[Back to Model list](../README.md#documentation-for-models) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to README](../README.md) + + diff --git a/sdk/docs/IdentityProviderApi.md b/sdk/docs/IdentityProviderApi.md index 383d1e29..0b55fe69 100644 --- a/sdk/docs/IdentityProviderApi.md +++ b/sdk/docs/IdentityProviderApi.md @@ -18,33 +18,32 @@ Generates an API token to be used for SCIM ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, IdentityProviderApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -53,28 +52,29 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(IdentityProviderApi) - api_token_action = 'api_token_action_example' # str | The action to take. For the API token. Defaults to \"ensure\" (optional) - old_api_token_deactivation = '2013-10-20T19:20:30+01:00' # datetime | Optional deactivation date for the old API token. Only used if apiTokenAction is \"regenerate\" (optional) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(IdentityProviderApi) + api_token_action = 'api_token_action_example' # str | The action to take. For the API token. Defaults to \"ensure\" (optional) + old_api_token_deactivation = '2013-10-20T19:20:30+01:00' # datetime | Optional deactivation date for the old API token. Only used if apiTokenAction is \"regenerate\" (optional) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.add_scim(api_token_action=api_token_action, old_api_token_deactivation=old_api_token_deactivation, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.add_scim(api_token_action=api_token_action, old_api_token_deactivation=old_api_token_deactivation, opts=opts) - # AddScim: Add SCIM - api_response = await api_instance.add_scim(api_token_action=api_token_action, old_api_token_deactivation=old_api_token_deactivation) - pprint(api_response) - except ApiException as e: - print("Exception when calling IdentityProviderApi->add_scim: %s\n" % e) + # AddScim: Add SCIM + api_response = api_instance.add_scim(api_token_action=api_token_action, old_api_token_deactivation=old_api_token_deactivation) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling IdentityProviderApi->add_scim: %s\n" % e) + +main() ``` ### Parameters @@ -112,33 +112,32 @@ Deactivates any existing SCIM API token ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, IdentityProviderApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -147,24 +146,25 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(IdentityProviderApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(IdentityProviderApi) - try: - # uncomment the below to set overrides at the request level - # await api_instance.remove_scim(opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.remove_scim(opts=opts) - # RemoveScim: Remove SCIM - await api_instance.remove_scim() except ApiException as e: - print("Exception when calling IdentityProviderApi->remove_scim: %s\n" % e) + # RemoveScim: Remove SCIM + api_instance.remove_scim() + except ApiException as e: + print("Exception when calling IdentityProviderApi->remove_scim: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/docs/IpAddressDefinition.md b/sdk/docs/IpAddressDefinition.md new file mode 100644 index 00000000..34bba284 --- /dev/null +++ b/sdk/docs/IpAddressDefinition.md @@ -0,0 +1,30 @@ +# IpAddressDefinition + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **str** | | [optional] +**description** | **str** | | [optional] +**value** | **str** | | + +## Example + +```python +from finbourne_identity.models.ip_address_definition import IpAddressDefinition + +# TODO update the JSON string below +json = "{}" +# create an instance of IpAddressDefinition from a JSON string +ip_address_definition_instance = IpAddressDefinition.from_json(json) +# print the JSON string representation of the object +print IpAddressDefinition.to_json() + +# convert the object into a dict +ip_address_definition_dict = ip_address_definition_instance.to_dict() +# create an instance of IpAddressDefinition from a dict +ip_address_definition_form_dict = ip_address_definition.from_dict(ip_address_definition_dict) +``` +[Back to Model list](../README.md#documentation-for-models) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to README](../README.md) + + diff --git a/sdk/docs/MeApi.md b/sdk/docs/MeApi.md index 8b22cf8c..7be7d244 100644 --- a/sdk/docs/MeApi.md +++ b/sdk/docs/MeApi.md @@ -18,33 +18,32 @@ Get the requesting user's basic info ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, MeApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -53,26 +52,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(MeApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(MeApi) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_user_info(opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_user_info(opts=opts) - # GetUserInfo: Get User Info - api_response = await api_instance.get_user_info() - pprint(api_response) - except ApiException as e: - print("Exception when calling MeApi->get_user_info: %s\n" % e) + # GetUserInfo: Get User Info + api_response = api_instance.get_user_info() + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling MeApi->get_user_info: %s\n" % e) + +main() ``` ### Parameters @@ -105,33 +105,32 @@ Set the password of the current user to the specified value. Note ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, MeApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -140,32 +139,33 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(MeApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(MeApi) + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # set_password = SetPassword.from_json("") + # set_password = SetPassword.from_dict({}) + set_password = SetPassword() - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # set_password = SetPassword.from_json("") - # set_password = SetPassword.from_dict({}) - set_password = SetPassword() + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.set_password(set_password, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.set_password(set_password, opts=opts) + # SetPassword: Set password of current user + api_response = api_instance.set_password(set_password) + pprint(api_response) - # SetPassword: Set password of current user - api_response = await api_instance.set_password(set_password) - pprint(api_response) - except ApiException as e: - print("Exception when calling MeApi->set_password: %s\n" % e) + except ApiException as e: + print("Exception when calling MeApi->set_password: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/docs/NetworkZoneDefinitionResponse.md b/sdk/docs/NetworkZoneDefinitionResponse.md new file mode 100644 index 00000000..47893fad --- /dev/null +++ b/sdk/docs/NetworkZoneDefinitionResponse.md @@ -0,0 +1,38 @@ +# NetworkZoneDefinitionResponse + +The Client facing representation of a NetworkZone + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **str** | The Network Zone Code | [optional] +**hierarchy** | **int** | Hierarchy of the Network Zone | [optional] +**description** | **str** | The Description of the Network Zone | [optional] +**created_at** | **datetime** | Network Zone Creation timestamp | [optional] +**updated_at** | **datetime** | Timestamp of the last update | [optional] +**network_zone_ips** | [**List[IpAddressDefinition]**](IpAddressDefinition.md) | Network zone IP information (IPs and CIDR ranges) | [optional] +**action** | **str** | Kind of action to apply when a request matches this Network Zone (Block/Allow/NoOp) | [optional] +**apply_rules** | [**NetworkZonesApplyRules**](NetworkZonesApplyRules.md) | | [optional] +**created_by** | **str** | User Id that created the Network Zone | [optional] +**updated_by** | **str** | User Id of the last update on the Network Zone | [optional] + +## Example + +```python +from finbourne_identity.models.network_zone_definition_response import NetworkZoneDefinitionResponse + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkZoneDefinitionResponse from a JSON string +network_zone_definition_response_instance = NetworkZoneDefinitionResponse.from_json(json) +# print the JSON string representation of the object +print NetworkZoneDefinitionResponse.to_json() + +# convert the object into a dict +network_zone_definition_response_dict = network_zone_definition_response_instance.to_dict() +# create an instance of NetworkZoneDefinitionResponse from a dict +network_zone_definition_response_form_dict = network_zone_definition_response.from_dict(network_zone_definition_response_dict) +``` +[Back to Model list](../README.md#documentation-for-models) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to README](../README.md) + + diff --git a/sdk/docs/NetworkZonesApi.md b/sdk/docs/NetworkZonesApi.md new file mode 100644 index 00000000..cc68a927 --- /dev/null +++ b/sdk/docs/NetworkZonesApi.md @@ -0,0 +1,478 @@ +# finbourne_identity.NetworkZonesApi + +All URIs are relative to *https://fbn-prd.lusid.com/identity* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**create_network_zone**](NetworkZonesApi.md#create_network_zone) | **POST** /api/networkzones | [BETA] CreateNetworkZone: Creates a network zone +[**delete_network_zone**](NetworkZonesApi.md#delete_network_zone) | **DELETE** /api/networkzones/{code} | [BETA] DeleteNetworkZone: Deletes a network zone +[**get_network_zone**](NetworkZonesApi.md#get_network_zone) | **GET** /api/networkzones/{code} | [BETA] GetNetworkZone: Retrieve a Network Zone +[**list_network_zones**](NetworkZonesApi.md#list_network_zones) | **GET** /api/networkzones | [BETA] ListNetworkZones: Lists all network zones for a domain +[**update_network_zone**](NetworkZonesApi.md#update_network_zone) | **PUT** /api/networkzones/{code} | [BETA] UpdateNetworkZone: Updates an existing network zone + + +# **create_network_zone** +> NetworkZoneDefinitionResponse create_network_zone(create_network_zone_request) + +[BETA] CreateNetworkZone: Creates a network zone + +By default, the network zone will have its hierarchy set to last on creation. + +### Example + +```python +from finbourne_identity.exceptions import ApiException +from finbourne_identity.extensions.configuration_options import ConfigurationOptions +from finbourne_identity.models import * +from pprint import pprint +from finbourne_identity import ( + SyncApiClientFactory, + NetworkZonesApi +) + +def main(): + + with open("secrets.json", "w") as file: + file.write(''' + { + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client + # By default this will read config from environment variables + # Then from a secrets.json file found in the current working directory + + # uncomment the below to use configuration overrides + # opts = ConfigurationOptions(); + # opts.total_timeout_ms = 30_000 + + # uncomment the below to use an api client factory with overrides + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() + + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(NetworkZonesApi) + + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # create_network_zone_request = CreateNetworkZoneRequest.from_json("") + # create_network_zone_request = CreateNetworkZoneRequest.from_dict({}) + create_network_zone_request = CreateNetworkZoneRequest() + + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.create_network_zone(create_network_zone_request, opts=opts) + + # [BETA] CreateNetworkZone: Creates a network zone + api_response = api_instance.create_network_zone(create_network_zone_request) + pprint(api_response) + + except ApiException as e: + print("Exception when calling NetworkZonesApi->create_network_zone: %s\n" % e) + +main() +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **create_network_zone_request** | [**CreateNetworkZoneRequest**](CreateNetworkZoneRequest.md)| The details of the network zone to define | + +### Return type + +[**NetworkZoneDefinitionResponse**](NetworkZoneDefinitionResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**201** | Create Network Zone | - | +**400** | The details of the input related failure | - | +**0** | Error response | - | + +[Back to top](#) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to Model list](../README.md#documentation-for-models) • [Back to README](../README.md) + +# **delete_network_zone** +> delete_network_zone(code) + +[BETA] DeleteNetworkZone: Deletes a network zone + +Will return a success if network zone already deleted + +### Example + +```python +from finbourne_identity.exceptions import ApiException +from finbourne_identity.extensions.configuration_options import ConfigurationOptions +from finbourne_identity.models import * +from pprint import pprint +from finbourne_identity import ( + SyncApiClientFactory, + NetworkZonesApi +) + +def main(): + + with open("secrets.json", "w") as file: + file.write(''' + { + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client + # By default this will read config from environment variables + # Then from a secrets.json file found in the current working directory + + # uncomment the below to use configuration overrides + # opts = ConfigurationOptions(); + # opts.total_timeout_ms = 30_000 + + # uncomment the below to use an api client factory with overrides + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() + + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(NetworkZonesApi) + code = 'code_example' # str | The unique identifier of the network zone to delete + + try: + # uncomment the below to set overrides at the request level + # api_instance.delete_network_zone(code, opts=opts) + + # [BETA] DeleteNetworkZone: Deletes a network zone + api_instance.delete_network_zone(code) + except ApiException as e: + print("Exception when calling NetworkZonesApi->delete_network_zone: %s\n" % e) + +main() +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **code** | **str**| The unique identifier of the network zone to delete | + +### Return type + +void (empty response body) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**204** | No Content | - | +**400** | The details of the input related failure | - | +**0** | Error response | - | + +[Back to top](#) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to Model list](../README.md#documentation-for-models) • [Back to README](../README.md) + +# **get_network_zone** +> NetworkZoneDefinitionResponse get_network_zone(code) + +[BETA] GetNetworkZone: Retrieve a Network Zone + +Retrieves a Network Zone + +### Example + +```python +from finbourne_identity.exceptions import ApiException +from finbourne_identity.extensions.configuration_options import ConfigurationOptions +from finbourne_identity.models import * +from pprint import pprint +from finbourne_identity import ( + SyncApiClientFactory, + NetworkZonesApi +) + +def main(): + + with open("secrets.json", "w") as file: + file.write(''' + { + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client + # By default this will read config from environment variables + # Then from a secrets.json file found in the current working directory + + # uncomment the below to use configuration overrides + # opts = ConfigurationOptions(); + # opts.total_timeout_ms = 30_000 + + # uncomment the below to use an api client factory with overrides + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() + + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(NetworkZonesApi) + code = 'code_example' # str | The unique identifier of the network zone + + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_network_zone(code, opts=opts) + + # [BETA] GetNetworkZone: Retrieve a Network Zone + api_response = api_instance.get_network_zone(code) + pprint(api_response) + + except ApiException as e: + print("Exception when calling NetworkZonesApi->get_network_zone: %s\n" % e) + +main() +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **code** | **str**| The unique identifier of the network zone | + +### Return type + +[**NetworkZoneDefinitionResponse**](NetworkZoneDefinitionResponse.md) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Get Network Zone | - | +**400** | The details of the input related failure | - | +**0** | Error response | - | + +[Back to top](#) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to Model list](../README.md#documentation-for-models) • [Back to README](../README.md) + +# **list_network_zones** +> List[NetworkZoneDefinitionResponse] list_network_zones() + +[BETA] ListNetworkZones: Lists all network zones for a domain + +Lists all network zones for a domain + +### Example + +```python +from finbourne_identity.exceptions import ApiException +from finbourne_identity.extensions.configuration_options import ConfigurationOptions +from finbourne_identity.models import * +from pprint import pprint +from finbourne_identity import ( + SyncApiClientFactory, + NetworkZonesApi +) + +def main(): + + with open("secrets.json", "w") as file: + file.write(''' + { + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client + # By default this will read config from environment variables + # Then from a secrets.json file found in the current working directory + + # uncomment the below to use configuration overrides + # opts = ConfigurationOptions(); + # opts.total_timeout_ms = 30_000 + + # uncomment the below to use an api client factory with overrides + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() + + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(NetworkZonesApi) + + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_network_zones(opts=opts) + + # [BETA] ListNetworkZones: Lists all network zones for a domain + api_response = api_instance.list_network_zones() + pprint(api_response) + + except ApiException as e: + print("Exception when calling NetworkZonesApi->list_network_zones: %s\n" % e) + +main() +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**List[NetworkZoneDefinitionResponse]**](NetworkZoneDefinitionResponse.md) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | List Network Zones | - | +**0** | Error response | - | + +[Back to top](#) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to Model list](../README.md#documentation-for-models) • [Back to README](../README.md) + +# **update_network_zone** +> NetworkZoneDefinitionResponse update_network_zone(code, update_network_zone_request) + +[BETA] UpdateNetworkZone: Updates an existing network zone + +Updates an existing network zone + +### Example + +```python +from finbourne_identity.exceptions import ApiException +from finbourne_identity.extensions.configuration_options import ConfigurationOptions +from finbourne_identity.models import * +from pprint import pprint +from finbourne_identity import ( + SyncApiClientFactory, + NetworkZonesApi +) + +def main(): + + with open("secrets.json", "w") as file: + file.write(''' + { + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client + # By default this will read config from environment variables + # Then from a secrets.json file found in the current working directory + + # uncomment the below to use configuration overrides + # opts = ConfigurationOptions(); + # opts.total_timeout_ms = 30_000 + + # uncomment the below to use an api client factory with overrides + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() + + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(NetworkZonesApi) + code = 'code_example' # str | The unique identifier of the network zone + + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # update_network_zone_request = UpdateNetworkZoneRequest.from_json("") + # update_network_zone_request = UpdateNetworkZoneRequest.from_dict({}) + update_network_zone_request = UpdateNetworkZoneRequest() + + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.update_network_zone(code, update_network_zone_request, opts=opts) + + # [BETA] UpdateNetworkZone: Updates an existing network zone + api_response = api_instance.update_network_zone(code, update_network_zone_request) + pprint(api_response) + + except ApiException as e: + print("Exception when calling NetworkZonesApi->update_network_zone: %s\n" % e) + +main() +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **code** | **str**| The unique identifier of the network zone | + **update_network_zone_request** | [**UpdateNetworkZoneRequest**](UpdateNetworkZoneRequest.md)| The updated definition of the network zone | + +### Return type + +[**NetworkZoneDefinitionResponse**](NetworkZoneDefinitionResponse.md) + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/json, text/json, application/*+json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +**200** | Update Network Zone | - | +**400** | The details of the input related failure | - | +**0** | Error response | - | + +[Back to top](#) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to Model list](../README.md#documentation-for-models) • [Back to README](../README.md) + diff --git a/sdk/docs/NetworkZonesApplyRules.md b/sdk/docs/NetworkZonesApplyRules.md new file mode 100644 index 00000000..b084845f --- /dev/null +++ b/sdk/docs/NetworkZonesApplyRules.md @@ -0,0 +1,29 @@ +# NetworkZonesApplyRules + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**session_type** | **List[str]** | | +**user_roles** | **List[str]** | | + +## Example + +```python +from finbourne_identity.models.network_zones_apply_rules import NetworkZonesApplyRules + +# TODO update the JSON string below +json = "{}" +# create an instance of NetworkZonesApplyRules from a JSON string +network_zones_apply_rules_instance = NetworkZonesApplyRules.from_json(json) +# print the JSON string representation of the object +print NetworkZonesApplyRules.to_json() + +# convert the object into a dict +network_zones_apply_rules_dict = network_zones_apply_rules_instance.to_dict() +# create an instance of NetworkZonesApplyRules from a dict +network_zones_apply_rules_form_dict = network_zones_apply_rules.from_dict(network_zones_apply_rules_dict) +``` +[Back to Model list](../README.md#documentation-for-models) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to README](../README.md) + + diff --git a/sdk/docs/PersonalAuthenticationTokensApi.md b/sdk/docs/PersonalAuthenticationTokensApi.md index 2520b42a..88bde031 100644 --- a/sdk/docs/PersonalAuthenticationTokensApi.md +++ b/sdk/docs/PersonalAuthenticationTokensApi.md @@ -19,33 +19,32 @@ Generates a Personal Access Token and returns the new key and its associated met ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, PersonalAuthenticationTokensApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -54,32 +53,33 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(PersonalAuthenticationTokensApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(PersonalAuthenticationTokensApi) - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # create_api_key = CreateApiKey.from_json("") - # create_api_key = CreateApiKey.from_dict({}) - create_api_key = CreateApiKey() + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # create_api_key = CreateApiKey.from_json("") + # create_api_key = CreateApiKey.from_dict({}) + create_api_key = CreateApiKey() - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.create_api_key(create_api_key, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.create_api_key(create_api_key, opts=opts) - # CreateApiKey: Create a Personal Access Token - api_response = await api_instance.create_api_key(create_api_key) - pprint(api_response) - except ApiException as e: - print("Exception when calling PersonalAuthenticationTokensApi->create_api_key: %s\n" % e) + # CreateApiKey: Create a Personal Access Token + api_response = api_instance.create_api_key(create_api_key) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling PersonalAuthenticationTokensApi->create_api_key: %s\n" % e) + +main() ``` ### Parameters @@ -116,33 +116,32 @@ Immediately invalidates the specified Personal Access Token ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, PersonalAuthenticationTokensApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -151,27 +150,28 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(PersonalAuthenticationTokensApi) + id = 'id_example' # str | The id of the Personal Access Token to delete - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(PersonalAuthenticationTokensApi) - id = 'id_example' # str | The id of the Personal Access Token to delete + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.delete_api_key(id, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.delete_api_key(id, opts=opts) + # DeleteApiKey: Invalidate a Personal Access Token + api_response = api_instance.delete_api_key(id) + pprint(api_response) - # DeleteApiKey: Invalidate a Personal Access Token - api_response = await api_instance.delete_api_key(id) - pprint(api_response) - except ApiException as e: - print("Exception when calling PersonalAuthenticationTokensApi->delete_api_key: %s\n" % e) + except ApiException as e: + print("Exception when calling PersonalAuthenticationTokensApi->delete_api_key: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -208,33 +208,32 @@ Gets the meta data for all of the user's Personal Access Tokens that have not be ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, PersonalAuthenticationTokensApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -243,26 +242,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(PersonalAuthenticationTokensApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(PersonalAuthenticationTokensApi) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_own_api_keys(opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_own_api_keys(opts=opts) + # ListOwnApiKeys: Gets the meta data for all of the user's existing Personal Access Tokens. + api_response = api_instance.list_own_api_keys() + pprint(api_response) - # ListOwnApiKeys: Gets the meta data for all of the user's existing Personal Access Tokens. - api_response = await api_instance.list_own_api_keys() - pprint(api_response) - except ApiException as e: - print("Exception when calling PersonalAuthenticationTokensApi->list_own_api_keys: %s\n" % e) + except ApiException as e: + print("Exception when calling PersonalAuthenticationTokensApi->list_own_api_keys: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/docs/RolesApi.md b/sdk/docs/RolesApi.md index 0f4da1b9..8d1bf8fb 100644 --- a/sdk/docs/RolesApi.md +++ b/sdk/docs/RolesApi.md @@ -24,33 +24,32 @@ Adds the User to the specified Role ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -59,26 +58,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) - id = 'id_example' # str | The unique identifier for the Role - user_id = 'user_id_example' # str | The unique identifier for the User + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) + id = 'id_example' # str | The unique identifier for the Role + user_id = 'user_id_example' # str | The unique identifier for the User - try: - # uncomment the below to set overrides at the request level - # await api_instance.add_user_to_role(id, user_id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.add_user_to_role(id, user_id, opts=opts) - # AddUserToRole: Add User to Role - await api_instance.add_user_to_role(id, user_id) except ApiException as e: - print("Exception when calling RolesApi->add_user_to_role: %s\n" % e) + # AddUserToRole: Add User to Role + api_instance.add_user_to_role(id, user_id) + except ApiException as e: + print("Exception when calling RolesApi->add_user_to_role: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -117,33 +117,32 @@ Creates a new Role ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -152,32 +151,33 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # create_role_request = CreateRoleRequest.from_json("") - # create_role_request = CreateRoleRequest.from_dict({}) - create_role_request = CreateRoleRequest() + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # create_role_request = CreateRoleRequest.from_json("") + # create_role_request = CreateRoleRequest.from_dict({}) + create_role_request = CreateRoleRequest() - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.create_role(create_role_request, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.create_role(create_role_request, opts=opts) - # CreateRole: Create Role - api_response = await api_instance.create_role(create_role_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling RolesApi->create_role: %s\n" % e) + # CreateRole: Create Role + api_response = api_instance.create_role(create_role_request) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling RolesApi->create_role: %s\n" % e) + +main() ``` ### Parameters @@ -215,33 +215,32 @@ Delete the specified role ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -250,25 +249,26 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) - id = 'id_example' # str | The unique identifier for the role + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) + id = 'id_example' # str | The unique identifier for the role - try: - # uncomment the below to set overrides at the request level - # await api_instance.delete_role(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.delete_role(id, opts=opts) - # DeleteRole: Delete Role - await api_instance.delete_role(id) except ApiException as e: - print("Exception when calling RolesApi->delete_role: %s\n" % e) + # DeleteRole: Delete Role + api_instance.delete_role(id) + except ApiException as e: + print("Exception when calling RolesApi->delete_role: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -305,33 +305,32 @@ Get the specified role ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -340,27 +339,28 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) + id = 'id_example' # str | The unique identifier for the role - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) - id = 'id_example' # str | The unique identifier for the role + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_role(id, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_role(id, opts=opts) + # GetRole: Get Role + api_response = api_instance.get_role(id) + pprint(api_response) - # GetRole: Get Role - api_response = await api_instance.get_role(id) - pprint(api_response) - except ApiException as e: - print("Exception when calling RolesApi->get_role: %s\n" % e) + except ApiException as e: + print("Exception when calling RolesApi->get_role: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -398,33 +398,32 @@ List the available Roles ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -433,26 +432,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_roles(opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_roles(opts=opts) + # ListRoles: List Roles + api_response = api_instance.list_roles() + pprint(api_response) - # ListRoles: List Roles - api_response = await api_instance.list_roles() - pprint(api_response) - except ApiException as e: - print("Exception when calling RolesApi->list_roles: %s\n" % e) + except ApiException as e: + print("Exception when calling RolesApi->list_roles: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -485,33 +485,32 @@ List all Users in the specified Role ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -520,27 +519,28 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) - id = 'id_example' # str | The unique identifier for the Role + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) + id = 'id_example' # str | The unique identifier for the Role - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_users_in_role(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_users_in_role(id, opts=opts) - # ListUsersInRole: Get the users in the specified role. - api_response = await api_instance.list_users_in_role(id) - pprint(api_response) - except ApiException as e: - print("Exception when calling RolesApi->list_users_in_role: %s\n" % e) + # ListUsersInRole: Get the users in the specified role. + api_response = api_instance.list_users_in_role(id) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling RolesApi->list_users_in_role: %s\n" % e) + +main() ``` ### Parameters @@ -577,33 +577,32 @@ Removes the User from the specified Role ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -612,26 +611,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) - id = 'id_example' # str | The unique identifier for the Role - user_id = 'user_id_example' # str | The unique identifier for the User + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) + id = 'id_example' # str | The unique identifier for the Role + user_id = 'user_id_example' # str | The unique identifier for the User - try: - # uncomment the below to set overrides at the request level - # await api_instance.remove_user_from_role(id, user_id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.remove_user_from_role(id, user_id, opts=opts) - # RemoveUserFromRole: Remove User from Role - await api_instance.remove_user_from_role(id, user_id) except ApiException as e: - print("Exception when calling RolesApi->remove_user_from_role: %s\n" % e) + # RemoveUserFromRole: Remove User from Role + api_instance.remove_user_from_role(id, user_id) + except ApiException as e: + print("Exception when calling RolesApi->remove_user_from_role: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -670,33 +670,32 @@ Update the specified Role ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, RolesApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -705,33 +704,34 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(RolesApi) + id = 'id_example' # str | The unique identifier for the role to be updated - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(RolesApi) - id = 'id_example' # str | The unique identifier for the role to be updated + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # update_role_request = UpdateRoleRequest.from_json("") + # update_role_request = UpdateRoleRequest.from_dict({}) + update_role_request = UpdateRoleRequest() - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # update_role_request = UpdateRoleRequest.from_json("") - # update_role_request = UpdateRoleRequest.from_dict({}) - update_role_request = UpdateRoleRequest() + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.update_role(id, update_role_request=update_role_request, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.update_role(id, update_role_request=update_role_request, opts=opts) + # UpdateRole: Update Role + api_response = api_instance.update_role(id, update_role_request=update_role_request) + pprint(api_response) - # UpdateRole: Update Role - api_response = await api_instance.update_role(id, update_role_request=update_role_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling RolesApi->update_role: %s\n" % e) + except ApiException as e: + print("Exception when calling RolesApi->update_role: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/docs/TokensApi.md b/sdk/docs/TokensApi.md index dcf916e8..4909171c 100644 --- a/sdk/docs/TokensApi.md +++ b/sdk/docs/TokensApi.md @@ -17,33 +17,32 @@ Log the current user out of all Finbourne platforms by invalidating the current ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, TokensApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -52,24 +51,25 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(TokensApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(TokensApi) - try: - # uncomment the below to set overrides at the request level - # await api_instance.invalidate_token(opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.invalidate_token(opts=opts) - # InvalidateToken: Invalidate current JWT token (sign out) - await api_instance.invalidate_token() except ApiException as e: - print("Exception when calling TokensApi->invalidate_token: %s\n" % e) + # InvalidateToken: Invalidate current JWT token (sign out) + api_instance.invalidate_token() + except ApiException as e: + print("Exception when calling TokensApi->invalidate_token: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/docs/UpdateNetworkZoneRequest.md b/sdk/docs/UpdateNetworkZoneRequest.md new file mode 100644 index 00000000..8a1e7a45 --- /dev/null +++ b/sdk/docs/UpdateNetworkZoneRequest.md @@ -0,0 +1,32 @@ +# UpdateNetworkZoneRequest + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**description** | **str** | | [optional] +**network_zone_ips** | [**List[IpAddressDefinition]**](IpAddressDefinition.md) | | +**action** | **str** | | [optional] +**apply_rules** | [**NetworkZonesApplyRules**](NetworkZonesApplyRules.md) | | +**hierarchy** | **int** | | + +## Example + +```python +from finbourne_identity.models.update_network_zone_request import UpdateNetworkZoneRequest + +# TODO update the JSON string below +json = "{}" +# create an instance of UpdateNetworkZoneRequest from a JSON string +update_network_zone_request_instance = UpdateNetworkZoneRequest.from_json(json) +# print the JSON string representation of the object +print UpdateNetworkZoneRequest.to_json() + +# convert the object into a dict +update_network_zone_request_dict = update_network_zone_request_instance.to_dict() +# create an instance of UpdateNetworkZoneRequest from a dict +update_network_zone_request_form_dict = update_network_zone_request.from_dict(update_network_zone_request_dict) +``` +[Back to Model list](../README.md#documentation-for-models) • [Back to API list](../README.md#documentation-for-api-endpoints) • [Back to README](../README.md) + + diff --git a/sdk/docs/UsersApi.md b/sdk/docs/UsersApi.md index e0c3c6ea..bfcefbbb 100644 --- a/sdk/docs/UsersApi.md +++ b/sdk/docs/UsersApi.md @@ -31,33 +31,32 @@ Create a new User ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -66,33 +65,34 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # create_user_request = CreateUserRequest.from_json("") - # create_user_request = CreateUserRequest.from_dict({}) - create_user_request = CreateUserRequest() - wait_for_reindex = False # bool | Should the request wait until the newly created User is indexed (available in List) before returning (optional) (default to False) + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # create_user_request = CreateUserRequest.from_json("") + # create_user_request = CreateUserRequest.from_dict({}) + create_user_request = CreateUserRequest() + wait_for_reindex = False # bool | Should the request wait until the newly created User is indexed (available in List) before returning (optional) (default to False) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.create_user(create_user_request, wait_for_reindex=wait_for_reindex, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.create_user(create_user_request, wait_for_reindex=wait_for_reindex, opts=opts) - # CreateUser: Create User - api_response = await api_instance.create_user(create_user_request, wait_for_reindex=wait_for_reindex) - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->create_user: %s\n" % e) + # CreateUser: Create User + api_response = api_instance.create_user(create_user_request, wait_for_reindex=wait_for_reindex) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling UsersApi->create_user: %s\n" % e) + +main() ``` ### Parameters @@ -130,33 +130,32 @@ By default the user will be de-provisioned and inactive, however their record wi ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -165,26 +164,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the user - purge = True # bool | Whether to purge any trace of the user from the identity provider (will affect audit) (optional) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the user + purge = True # bool | Whether to purge any trace of the user from the identity provider (will affect audit) (optional) - try: - # uncomment the below to set overrides at the request level - # await api_instance.delete_user(id, purge=purge, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.delete_user(id, purge=purge, opts=opts) - # DeleteUser: Delete User - await api_instance.delete_user(id, purge=purge) except ApiException as e: - print("Exception when calling UsersApi->delete_user: %s\n" % e) + # DeleteUser: Delete User + api_instance.delete_user(id, purge=purge) + except ApiException as e: + print("Exception when calling UsersApi->delete_user: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -222,33 +222,32 @@ Resets the user's password to a temporary one which is then expired ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -257,27 +256,28 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User having its password reset - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User having its password reset + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.expire_password(id, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.expire_password(id, opts=opts) + # ExpirePassword: Reset the user's password to a temporary one + api_response = api_instance.expire_password(id) + pprint(api_response) - # ExpirePassword: Reset the user's password to a temporary one - api_response = await api_instance.expire_password(id) - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->expire_password: %s\n" % e) + except ApiException as e: + print("Exception when calling UsersApi->expire_password: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -314,33 +314,32 @@ Finds a maximum of 50 users by ID ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -349,27 +348,28 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = ['id_example'] # List[str] | A list of unique identifiers for the users - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = ['id_example'] # List[str] | A list of unique identifiers for the users + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.find_users_by_id(id, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.find_users_by_id(id, opts=opts) + # FindUsersById: Find users by id endpoint + api_response = api_instance.find_users_by_id(id) + pprint(api_response) - # FindUsersById: Find users by id endpoint - api_response = await api_instance.find_users_by_id(id) - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->find_users_by_id: %s\n" % e) + except ApiException as e: + print("Exception when calling UsersApi->find_users_by_id: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -406,33 +406,32 @@ Get the specified User ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -441,28 +440,29 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User - include_roles = True # bool | Flag indicating that the users roles should be included in the response (optional) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User + include_roles = True # bool | Flag indicating that the users roles should be included in the response (optional) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_user(id, include_roles=include_roles, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_user(id, include_roles=include_roles, opts=opts) - # GetUser: Get User - api_response = await api_instance.get_user(id, include_roles=include_roles) - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->get_user: %s\n" % e) + # GetUser: Get User + api_response = api_instance.get_user(id, include_roles=include_roles) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling UsersApi->get_user: %s\n" % e) + +main() ``` ### Parameters @@ -500,33 +500,32 @@ Get the User Schema ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -535,26 +534,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.get_user_schema(opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.get_user_schema(opts=opts) + # [EXPERIMENTAL] GetUserSchema: Get User Schema + api_response = api_instance.get_user_schema() + pprint(api_response) - # [EXPERIMENTAL] GetUserSchema: Get User Schema - api_response = await api_instance.get_user_schema() - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->get_user_schema: %s\n" % e) + except ApiException as e: + print("Exception when calling UsersApi->get_user_schema: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -587,33 +587,32 @@ List the available runnable Users ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -622,26 +621,27 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_runnable_users(opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_runnable_users(opts=opts) - # [EARLY ACCESS] ListRunnableUsers: List Runable Users - api_response = await api_instance.list_runnable_users() - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->list_runnable_users: %s\n" % e) + # [EARLY ACCESS] ListRunnableUsers: List Runable Users + api_response = api_instance.list_runnable_users() + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling UsersApi->list_runnable_users: %s\n" % e) + +main() ``` ### Parameters @@ -674,33 +674,32 @@ List the available Users ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -709,28 +708,29 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + include_roles = False # bool | Flag indicating that the users roles should be included in the response (optional) (default to False) + include_deactivated = False # bool | Include previously deleted (not purged) users (optional) (default to False) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - include_roles = False # bool | Flag indicating that the users roles should be included in the response (optional) (default to False) - include_deactivated = False # bool | Include previously deleted (not purged) users (optional) (default to False) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.list_users(include_roles=include_roles, include_deactivated=include_deactivated, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.list_users(include_roles=include_roles, include_deactivated=include_deactivated, opts=opts) + # ListUsers: List Users + api_response = api_instance.list_users(include_roles=include_roles, include_deactivated=include_deactivated) + pprint(api_response) - # ListUsers: List Users - api_response = await api_instance.list_users(include_roles=include_roles, include_deactivated=include_deactivated) - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->list_users: %s\n" % e) + except ApiException as e: + print("Exception when calling UsersApi->list_users: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -768,33 +768,32 @@ Resets the MFA factors of the specified User ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -803,25 +802,26 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User having their MFA factors reset + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User having their MFA factors reset - try: - # uncomment the below to set overrides at the request level - # await api_instance.reset_factors(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.reset_factors(id, opts=opts) - # ResetFactors: Reset MFA factors - await api_instance.reset_factors(id) except ApiException as e: - print("Exception when calling UsersApi->reset_factors: %s\n" % e) + # ResetFactors: Reset MFA factors + api_instance.reset_factors(id) + except ApiException as e: + print("Exception when calling UsersApi->reset_factors: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -858,33 +858,32 @@ Resets the password of the specified User ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -893,25 +892,26 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User having their password reset + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User having their password reset - try: - # uncomment the below to set overrides at the request level - # await api_instance.reset_password(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.reset_password(id, opts=opts) - # ResetPassword: Reset Password - await api_instance.reset_password(id) except ApiException as e: - print("Exception when calling UsersApi->reset_password: %s\n" % e) + # ResetPassword: Reset Password + api_instance.reset_password(id) + except ApiException as e: + print("Exception when calling UsersApi->reset_password: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -948,33 +948,32 @@ Sends an activation email to the specified User ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -983,25 +982,26 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User to be activated + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User to be activated - try: - # uncomment the below to set overrides at the request level - # await api_instance.send_activation_email(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.send_activation_email(id, opts=opts) - # SendActivationEmail: Sends an activation email to the User - await api_instance.send_activation_email(id) except ApiException as e: - print("Exception when calling UsersApi->send_activation_email: %s\n" % e) + # SendActivationEmail: Sends an activation email to the User + api_instance.send_activation_email(id) + except ApiException as e: + print("Exception when calling UsersApi->send_activation_email: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -1038,33 +1038,32 @@ Unlocks the specified User ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -1073,25 +1072,26 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User to be unlocked + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User to be unlocked - try: - # uncomment the below to set overrides at the request level - # await api_instance.unlock_user(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.unlock_user(id, opts=opts) - # UnlockUser: Unlock User - await api_instance.unlock_user(id) except ApiException as e: - print("Exception when calling UsersApi->unlock_user: %s\n" % e) + # UnlockUser: Unlock User + api_instance.unlock_user(id) + except ApiException as e: + print("Exception when calling UsersApi->unlock_user: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -1128,33 +1128,32 @@ Unsuspend the user ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -1163,25 +1162,26 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User to Unsuspend + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User to Unsuspend - try: - # uncomment the below to set overrides at the request level - # await api_instance.unsuspend_user(id, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_instance.unsuspend_user(id, opts=opts) - # [EXPERIMENTAL] UnsuspendUser: Unsuspend user - await api_instance.unsuspend_user(id) except ApiException as e: - print("Exception when calling UsersApi->unsuspend_user: %s\n" % e) + # [EXPERIMENTAL] UnsuspendUser: Unsuspend user + api_instance.unsuspend_user(id) + except ApiException as e: + print("Exception when calling UsersApi->unsuspend_user: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters @@ -1218,33 +1218,32 @@ Updates the specified User ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -1253,33 +1252,34 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) - api_client_factory = ApiClientFactory() + api_client_factory = SyncApiClientFactory() - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) - id = 'id_example' # str | The unique identifier for the User to be updated + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) + id = 'id_example' # str | The unique identifier for the User to be updated - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # update_user_request = UpdateUserRequest.from_json("") - # update_user_request = UpdateUserRequest.from_dict({}) - update_user_request = UpdateUserRequest() + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # update_user_request = UpdateUserRequest.from_json("") + # update_user_request = UpdateUserRequest.from_dict({}) + update_user_request = UpdateUserRequest() - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.update_user(id, update_user_request, opts=opts) + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.update_user(id, update_user_request, opts=opts) - # UpdateUser: Update User - api_response = await api_instance.update_user(id, update_user_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->update_user: %s\n" % e) + # UpdateUser: Update User + api_response = api_instance.update_user(id, update_user_request) + pprint(api_response) -asyncio.run(main()) + except ApiException as e: + print("Exception when calling UsersApi->update_user: %s\n" % e) + +main() ``` ### Parameters @@ -1317,33 +1317,32 @@ Update the User Schema ### Example ```python -import asyncio from finbourne_identity.exceptions import ApiException from finbourne_identity.extensions.configuration_options import ConfigurationOptions from finbourne_identity.models import * from pprint import pprint from finbourne_identity import ( - ApiClientFactory, + SyncApiClientFactory, UsersApi ) -async def main(): +def main(): with open("secrets.json", "w") as file: file.write(''' -{ - "api": { - "tokenUrl":"", - "identityUrl":"https://.lusid.com/identity", - "username":"", - "password":"", - "clientId":"", - "clientSecret":"" - } -}''') - - # Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client + "api": + { + "tokenUrl":"", + "identityUrl":"https://.lusid.com/identity", + "username":"", + "password":"", + "clientId":"", + "clientSecret":"" + } + }''') + + # Use the finbourne_identity SyncApiClientFactory to build Api instances with a configured api client # By default this will read config from environment variables # Then from a secrets.json file found in the current working directory @@ -1352,32 +1351,33 @@ async def main(): # opts.total_timeout_ms = 30_000 # uncomment the below to use an api client factory with overrides - # api_client_factory = ApiClientFactory(opts=opts) + # api_client_factory = SyncApiClientFactory(opts=opts) + + api_client_factory = SyncApiClientFactory() - api_client_factory = ApiClientFactory() + # Enter a context with an instance of the SyncApiClientFactory to ensure the connection pool is closed after use + + # Create an instance of the API class + api_instance = api_client_factory.build(UsersApi) - # Enter a context with an instance of the ApiClientFactory to ensure the connection pool is closed after use - async with api_client_factory: - # Create an instance of the API class - api_instance = api_client_factory.build(UsersApi) + # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods + # Change the lines below to switch approach + # update_user_schema_request = UpdateUserSchemaRequest.from_json("") + # update_user_schema_request = UpdateUserSchemaRequest.from_dict({}) + update_user_schema_request = UpdateUserSchemaRequest() - # Objects can be created either via the class constructor, or using the 'from_dict' or 'from_json' methods - # Change the lines below to switch approach - # update_user_schema_request = UpdateUserSchemaRequest.from_json("") - # update_user_schema_request = UpdateUserSchemaRequest.from_dict({}) - update_user_schema_request = UpdateUserSchemaRequest() + try: + # uncomment the below to set overrides at the request level + # api_response = api_instance.update_user_schema(update_user_schema_request, opts=opts) - try: - # uncomment the below to set overrides at the request level - # api_response = await api_instance.update_user_schema(update_user_schema_request, opts=opts) + # [EXPERIMENTAL] UpdateUserSchema: Update User Schema + api_response = api_instance.update_user_schema(update_user_schema_request) + pprint(api_response) - # [EXPERIMENTAL] UpdateUserSchema: Update User Schema - api_response = await api_instance.update_user_schema(update_user_schema_request) - pprint(api_response) - except ApiException as e: - print("Exception when calling UsersApi->update_user_schema: %s\n" % e) + except ApiException as e: + print("Exception when calling UsersApi->update_user_schema: %s\n" % e) -asyncio.run(main()) +main() ``` ### Parameters diff --git a/sdk/finbourne_identity/__init__.py b/sdk/finbourne_identity/__init__.py index 04f938c0..f43072ec 100644 --- a/sdk/finbourne_identity/__init__.py +++ b/sdk/finbourne_identity/__init__.py @@ -22,6 +22,7 @@ from finbourne_identity.api.authentication_api import AuthenticationApi from finbourne_identity.api.identity_provider_api import IdentityProviderApi from finbourne_identity.api.me_api import MeApi +from finbourne_identity.api.network_zones_api import NetworkZonesApi from finbourne_identity.api.personal_authentication_tokens_api import PersonalAuthenticationTokensApi from finbourne_identity.api.roles_api import RolesApi from finbourne_identity.api.tokens_api import TokensApi @@ -44,6 +45,7 @@ from finbourne_identity.models.authentication_information import AuthenticationInformation from finbourne_identity.models.create_api_key import CreateApiKey from finbourne_identity.models.create_application_request import CreateApplicationRequest +from finbourne_identity.models.create_network_zone_request import CreateNetworkZoneRequest from finbourne_identity.models.create_role_request import CreateRoleRequest from finbourne_identity.models.create_user_request import CreateUserRequest from finbourne_identity.models.created_api_key import CreatedApiKey @@ -51,10 +53,13 @@ from finbourne_identity.models.error_detail import ErrorDetail from finbourne_identity.models.id_selector_definition import IdSelectorDefinition from finbourne_identity.models.identifier_part_schema import IdentifierPartSchema +from finbourne_identity.models.ip_address_definition import IpAddressDefinition from finbourne_identity.models.link import Link from finbourne_identity.models.list_users_response import ListUsersResponse from finbourne_identity.models.lusid_problem_details import LusidProblemDetails from finbourne_identity.models.lusid_validation_problem_details import LusidValidationProblemDetails +from finbourne_identity.models.network_zone_definition_response import NetworkZoneDefinitionResponse +from finbourne_identity.models.network_zones_apply_rules import NetworkZonesApplyRules from finbourne_identity.models.o_auth_application import OAuthApplication from finbourne_identity.models.password_policy_response import PasswordPolicyResponse from finbourne_identity.models.password_policy_response_age import PasswordPolicyResponseAge @@ -73,6 +78,7 @@ from finbourne_identity.models.support_role import SupportRole from finbourne_identity.models.support_roles_response import SupportRolesResponse from finbourne_identity.models.temporary_password import TemporaryPassword +from finbourne_identity.models.update_network_zone_request import UpdateNetworkZoneRequest from finbourne_identity.models.update_password_policy_request import UpdatePasswordPolicyRequest from finbourne_identity.models.update_password_policy_request_age import UpdatePasswordPolicyRequestAge from finbourne_identity.models.update_password_policy_request_complexity import UpdatePasswordPolicyRequestComplexity @@ -105,6 +111,7 @@ "AuthenticationApi", "IdentityProviderApi", "MeApi", + "NetworkZonesApi", "PersonalAuthenticationTokensApi", "RolesApi", "TokensApi", @@ -117,6 +124,7 @@ "AuthenticationInformation", "CreateApiKey", "CreateApplicationRequest", + "CreateNetworkZoneRequest", "CreateRoleRequest", "CreateUserRequest", "CreatedApiKey", @@ -124,10 +132,13 @@ "ErrorDetail", "IdSelectorDefinition", "IdentifierPartSchema", + "IpAddressDefinition", "Link", "ListUsersResponse", "LusidProblemDetails", "LusidValidationProblemDetails", + "NetworkZoneDefinitionResponse", + "NetworkZonesApplyRules", "OAuthApplication", "PasswordPolicyResponse", "PasswordPolicyResponseAge", @@ -146,6 +157,7 @@ "SupportRole", "SupportRolesResponse", "TemporaryPassword", + "UpdateNetworkZoneRequest", "UpdatePasswordPolicyRequest", "UpdatePasswordPolicyRequestAge", "UpdatePasswordPolicyRequestComplexity", diff --git a/sdk/finbourne_identity/api/__init__.py b/sdk/finbourne_identity/api/__init__.py index be7d17ee..5a5cfae1 100644 --- a/sdk/finbourne_identity/api/__init__.py +++ b/sdk/finbourne_identity/api/__init__.py @@ -6,6 +6,7 @@ from finbourne_identity.api.authentication_api import AuthenticationApi from finbourne_identity.api.identity_provider_api import IdentityProviderApi from finbourne_identity.api.me_api import MeApi +from finbourne_identity.api.network_zones_api import NetworkZonesApi from finbourne_identity.api.personal_authentication_tokens_api import PersonalAuthenticationTokensApi from finbourne_identity.api.roles_api import RolesApi from finbourne_identity.api.tokens_api import TokensApi @@ -18,6 +19,7 @@ "AuthenticationApi", "IdentityProviderApi", "MeApi", + "NetworkZonesApi", "PersonalAuthenticationTokensApi", "RolesApi", "TokensApi", diff --git a/sdk/finbourne_identity/api/network_zones_api.py b/sdk/finbourne_identity/api/network_zones_api.py new file mode 100644 index 00000000..2511820f --- /dev/null +++ b/sdk/finbourne_identity/api/network_zones_api.py @@ -0,0 +1,815 @@ +# coding: utf-8 + +""" + FINBOURNE Identity Service API + + FINBOURNE Technology # noqa: E501 + + Contact: info@finbourne.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +import re # noqa: F401 +import io +import warnings + +from pydantic.v1 import validate_arguments, ValidationError +from typing import overload, Optional, Union, Awaitable + +from typing_extensions import Annotated +from pydantic.v1 import Field, constr, validator + +from typing import List + +from finbourne_identity.models.create_network_zone_request import CreateNetworkZoneRequest +from finbourne_identity.models.network_zone_definition_response import NetworkZoneDefinitionResponse +from finbourne_identity.models.update_network_zone_request import UpdateNetworkZoneRequest + +from finbourne_identity.api_client import ApiClient +from finbourne_identity.api_response import ApiResponse +from finbourne_identity.exceptions import ( # noqa: F401 + ApiTypeError, + ApiValueError +) +from finbourne_identity.extensions.configuration_options import ConfigurationOptions + + +class NetworkZonesApi: + """NOTE: This class is auto generated by OpenAPI Generator + Ref: https://openapi-generator.tech + + Do not edit the class manually. + """ + + def __init__(self, api_client=None) -> None: + if api_client is None: + api_client = ApiClient.get_default() + self.api_client = api_client + + @overload + async def create_network_zone(self, create_network_zone_request : Annotated[CreateNetworkZoneRequest, Field(..., description="The details of the network zone to define")], **kwargs) -> NetworkZoneDefinitionResponse: # noqa: E501 + ... + + @overload + def create_network_zone(self, create_network_zone_request : Annotated[CreateNetworkZoneRequest, Field(..., description="The details of the network zone to define")], async_req: Optional[bool]=True, **kwargs) -> NetworkZoneDefinitionResponse: # noqa: E501 + ... + + @validate_arguments + def create_network_zone(self, create_network_zone_request : Annotated[CreateNetworkZoneRequest, Field(..., description="The details of the network zone to define")], async_req: Optional[bool]=None, **kwargs) -> Union[NetworkZoneDefinitionResponse, Awaitable[NetworkZoneDefinitionResponse]]: # noqa: E501 + """[BETA] CreateNetworkZone: Creates a network zone # noqa: E501 + + By default, the network zone will have its hierarchy set to last on creation. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_network_zone(create_network_zone_request, async_req=True) + >>> result = thread.get() + + :param create_network_zone_request: The details of the network zone to define (required) + :type create_network_zone_request: CreateNetworkZoneRequest + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NetworkZoneDefinitionResponse + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the create_network_zone_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + if async_req is not None: + kwargs['async_req'] = async_req + return self.create_network_zone_with_http_info(create_network_zone_request, **kwargs) # noqa: E501 + + @validate_arguments + def create_network_zone_with_http_info(self, create_network_zone_request : Annotated[CreateNetworkZoneRequest, Field(..., description="The details of the network zone to define")], **kwargs) -> ApiResponse: # noqa: E501 + """[BETA] CreateNetworkZone: Creates a network zone # noqa: E501 + + By default, the network zone will have its hierarchy set to last on creation. # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.create_network_zone_with_http_info(create_network_zone_request, async_req=True) + >>> result = thread.get() + + :param create_network_zone_request: The details of the network zone to define (required) + :type create_network_zone_request: CreateNetworkZoneRequest + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NetworkZoneDefinitionResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'create_network_zone_request' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers', + 'opts' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method create_network_zone" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['create_network_zone_request'] is not None: + _body_params = _params['create_network_zone_request'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['oauth2'] # noqa: E501 + + _response_types_map = { + '201': "NetworkZoneDefinitionResponse", + '400': "LusidValidationProblemDetails", + } + + return self.api_client.call_api( + '/api/networkzones', 'POST', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + opts=_params.get('opts'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @overload + async def delete_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone to delete")], **kwargs) -> None: # noqa: E501 + ... + + @overload + def delete_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone to delete")], async_req: Optional[bool]=True, **kwargs) -> None: # noqa: E501 + ... + + @validate_arguments + def delete_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone to delete")], async_req: Optional[bool]=None, **kwargs) -> Union[None, Awaitable[None]]: # noqa: E501 + """[BETA] DeleteNetworkZone: Deletes a network zone # noqa: E501 + + Will return a success if network zone already deleted # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_network_zone(code, async_req=True) + >>> result = thread.get() + + :param code: The unique identifier of the network zone to delete (required) + :type code: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the delete_network_zone_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + if async_req is not None: + kwargs['async_req'] = async_req + return self.delete_network_zone_with_http_info(code, **kwargs) # noqa: E501 + + @validate_arguments + def delete_network_zone_with_http_info(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone to delete")], **kwargs) -> ApiResponse: # noqa: E501 + """[BETA] DeleteNetworkZone: Deletes a network zone # noqa: E501 + + Will return a success if network zone already deleted # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.delete_network_zone_with_http_info(code, async_req=True) + >>> result = thread.get() + + :param code: The unique identifier of the network zone to delete (required) + :type code: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: None + """ + + _params = locals() + + _all_params = [ + 'code' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers', + 'opts' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_network_zone" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + if _params['code']: + _path_params['code'] = _params['code'] + + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['oauth2'] # noqa: E501 + + _response_types_map = {} + + return self.api_client.call_api( + '/api/networkzones/{code}', 'DELETE', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + opts=_params.get('opts'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @overload + async def get_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], **kwargs) -> NetworkZoneDefinitionResponse: # noqa: E501 + ... + + @overload + def get_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], async_req: Optional[bool]=True, **kwargs) -> NetworkZoneDefinitionResponse: # noqa: E501 + ... + + @validate_arguments + def get_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], async_req: Optional[bool]=None, **kwargs) -> Union[NetworkZoneDefinitionResponse, Awaitable[NetworkZoneDefinitionResponse]]: # noqa: E501 + """[BETA] GetNetworkZone: Retrieve a Network Zone # noqa: E501 + + Retrieves a Network Zone # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_network_zone(code, async_req=True) + >>> result = thread.get() + + :param code: The unique identifier of the network zone (required) + :type code: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NetworkZoneDefinitionResponse + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the get_network_zone_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + if async_req is not None: + kwargs['async_req'] = async_req + return self.get_network_zone_with_http_info(code, **kwargs) # noqa: E501 + + @validate_arguments + def get_network_zone_with_http_info(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], **kwargs) -> ApiResponse: # noqa: E501 + """[BETA] GetNetworkZone: Retrieve a Network Zone # noqa: E501 + + Retrieves a Network Zone # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.get_network_zone_with_http_info(code, async_req=True) + >>> result = thread.get() + + :param code: The unique identifier of the network zone (required) + :type code: str + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NetworkZoneDefinitionResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'code' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers', + 'opts' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method get_network_zone" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + if _params['code']: + _path_params['code'] = _params['code'] + + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['oauth2'] # noqa: E501 + + _response_types_map = { + '200': "NetworkZoneDefinitionResponse", + '400': "LusidValidationProblemDetails", + } + + return self.api_client.call_api( + '/api/networkzones/{code}', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + opts=_params.get('opts'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @overload + async def list_network_zones(self, **kwargs) -> List[NetworkZoneDefinitionResponse]: # noqa: E501 + ... + + @overload + def list_network_zones(self, async_req: Optional[bool]=True, **kwargs) -> List[NetworkZoneDefinitionResponse]: # noqa: E501 + ... + + @validate_arguments + def list_network_zones(self, async_req: Optional[bool]=None, **kwargs) -> Union[List[NetworkZoneDefinitionResponse], Awaitable[List[NetworkZoneDefinitionResponse]]]: # noqa: E501 + """[BETA] ListNetworkZones: Lists all network zones for a domain # noqa: E501 + + Lists all network zones for a domain # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_network_zones(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: List[NetworkZoneDefinitionResponse] + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the list_network_zones_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + if async_req is not None: + kwargs['async_req'] = async_req + return self.list_network_zones_with_http_info(**kwargs) # noqa: E501 + + @validate_arguments + def list_network_zones_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 + """[BETA] ListNetworkZones: Lists all network zones for a domain # noqa: E501 + + Lists all network zones for a domain # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.list_network_zones_with_http_info(async_req=True) + >>> result = thread.get() + + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(List[NetworkZoneDefinitionResponse], status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers', + 'opts' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method list_network_zones" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # authentication setting + _auth_settings = ['oauth2'] # noqa: E501 + + _response_types_map = { + '200': "List[NetworkZoneDefinitionResponse]", + } + + return self.api_client.call_api( + '/api/networkzones', 'GET', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + opts=_params.get('opts'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) + + @overload + async def update_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], update_network_zone_request : Annotated[UpdateNetworkZoneRequest, Field(..., description="The updated definition of the network zone")], **kwargs) -> NetworkZoneDefinitionResponse: # noqa: E501 + ... + + @overload + def update_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], update_network_zone_request : Annotated[UpdateNetworkZoneRequest, Field(..., description="The updated definition of the network zone")], async_req: Optional[bool]=True, **kwargs) -> NetworkZoneDefinitionResponse: # noqa: E501 + ... + + @validate_arguments + def update_network_zone(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], update_network_zone_request : Annotated[UpdateNetworkZoneRequest, Field(..., description="The updated definition of the network zone")], async_req: Optional[bool]=None, **kwargs) -> Union[NetworkZoneDefinitionResponse, Awaitable[NetworkZoneDefinitionResponse]]: # noqa: E501 + """[BETA] UpdateNetworkZone: Updates an existing network zone # noqa: E501 + + Updates an existing network zone # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_network_zone(code, update_network_zone_request, async_req=True) + >>> result = thread.get() + + :param code: The unique identifier of the network zone (required) + :type code: str + :param update_network_zone_request: The updated definition of the network zone (required) + :type update_network_zone_request: UpdateNetworkZoneRequest + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: NetworkZoneDefinitionResponse + """ + kwargs['_return_http_data_only'] = True + if '_preload_content' in kwargs: + message = "Error! Please call the update_network_zone_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data" # noqa: E501 + raise ValueError(message) + if async_req is not None: + kwargs['async_req'] = async_req + return self.update_network_zone_with_http_info(code, update_network_zone_request, **kwargs) # noqa: E501 + + @validate_arguments + def update_network_zone_with_http_info(self, code : Annotated[constr(strict=True, max_length=64, min_length=1), Field(..., description="The unique identifier of the network zone")], update_network_zone_request : Annotated[UpdateNetworkZoneRequest, Field(..., description="The updated definition of the network zone")], **kwargs) -> ApiResponse: # noqa: E501 + """[BETA] UpdateNetworkZone: Updates an existing network zone # noqa: E501 + + Updates an existing network zone # noqa: E501 + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please pass async_req=True + + >>> thread = api.update_network_zone_with_http_info(code, update_network_zone_request, async_req=True) + >>> result = thread.get() + + :param code: The unique identifier of the network zone (required) + :type code: str + :param update_network_zone_request: The updated definition of the network zone (required) + :type update_network_zone_request: UpdateNetworkZoneRequest + :param async_req: Whether to execute the request asynchronously. + :type async_req: bool, optional + :param _preload_content: if False, the ApiResponse.data will + be set to none and raw_data will store the + HTTP response body without reading/decoding. + Default is True. + :type _preload_content: bool, optional + :param _return_http_data_only: response data instead of ApiResponse + object with status code, headers, etc + :type _return_http_data_only: bool, optional + :param _request_timeout: Timeout setting. Do not use - use the opts parameter instead + :param opts: Configuration options for this request + :type opts: ConfigurationOptions, optional + :param _request_auth: set to override the auth_settings for an a single + request; this effectively ignores the authentication + in the spec for a single request. + :type _request_auth: dict, optional + :type _content_type: string, optional: force content-type for the request + :return: Returns the result object. + If the method is called asynchronously, + returns the request thread. + :rtype: tuple(NetworkZoneDefinitionResponse, status_code(int), headers(HTTPHeaderDict)) + """ + + _params = locals() + + _all_params = [ + 'code', + 'update_network_zone_request' + ] + _all_params.extend( + [ + 'async_req', + '_return_http_data_only', + '_preload_content', + '_request_timeout', + '_request_auth', + '_content_type', + '_headers', + 'opts' + ] + ) + + # validate the arguments + for _key, _val in _params['kwargs'].items(): + if _key not in _all_params: + raise ApiTypeError( + "Got an unexpected keyword argument '%s'" + " to method update_network_zone" % _key + ) + _params[_key] = _val + del _params['kwargs'] + + _collection_formats = {} + + # process the path parameters + _path_params = {} + if _params['code']: + _path_params['code'] = _params['code'] + + + # process the query parameters + _query_params = [] + # process the header parameters + _header_params = dict(_params.get('_headers', {})) + # process the form parameters + _form_params = [] + _files = {} + # process the body parameter + _body_params = None + if _params['update_network_zone_request'] is not None: + _body_params = _params['update_network_zone_request'] + + # set the HTTP header `Accept` + _header_params['Accept'] = self.api_client.select_header_accept( + ['application/json']) # noqa: E501 + + # set the HTTP header `Content-Type` + _content_types_list = _params.get('_content_type', + self.api_client.select_header_content_type( + ['application/json-patch+json', 'application/json', 'text/json', 'application/*+json'])) + if _content_types_list: + _header_params['Content-Type'] = _content_types_list + + # authentication setting + _auth_settings = ['oauth2'] # noqa: E501 + + _response_types_map = { + '200': "NetworkZoneDefinitionResponse", + '400': "LusidValidationProblemDetails", + } + + return self.api_client.call_api( + '/api/networkzones/{code}', 'PUT', + _path_params, + _query_params, + _header_params, + body=_body_params, + post_params=_form_params, + files=_files, + response_types_map=_response_types_map, + auth_settings=_auth_settings, + async_req=_params.get('async_req'), + _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 + _preload_content=_params.get('_preload_content', True), + _request_timeout=_params.get('_request_timeout'), + opts=_params.get('opts'), + collection_formats=_collection_formats, + _request_auth=_params.get('_request_auth')) diff --git a/sdk/finbourne_identity/configuration.py b/sdk/finbourne_identity/configuration.py index 2e7c5430..d8c8fc72 100644 --- a/sdk/finbourne_identity/configuration.py +++ b/sdk/finbourne_identity/configuration.py @@ -445,7 +445,7 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: 0.0.3088\n"\ + "Version of the API: 0.0.3094\n"\ "SDK Package Version: {package_version}".\ format(env=sys.platform, pyversion=sys.version, package_version=package_version) diff --git a/sdk/finbourne_identity/models/__init__.py b/sdk/finbourne_identity/models/__init__.py index 01062bf8..ce05a4c4 100644 --- a/sdk/finbourne_identity/models/__init__.py +++ b/sdk/finbourne_identity/models/__init__.py @@ -22,6 +22,7 @@ from finbourne_identity.models.authentication_information import AuthenticationInformation from finbourne_identity.models.create_api_key import CreateApiKey from finbourne_identity.models.create_application_request import CreateApplicationRequest +from finbourne_identity.models.create_network_zone_request import CreateNetworkZoneRequest from finbourne_identity.models.create_role_request import CreateRoleRequest from finbourne_identity.models.create_user_request import CreateUserRequest from finbourne_identity.models.created_api_key import CreatedApiKey @@ -29,10 +30,13 @@ from finbourne_identity.models.error_detail import ErrorDetail from finbourne_identity.models.id_selector_definition import IdSelectorDefinition from finbourne_identity.models.identifier_part_schema import IdentifierPartSchema +from finbourne_identity.models.ip_address_definition import IpAddressDefinition from finbourne_identity.models.link import Link from finbourne_identity.models.list_users_response import ListUsersResponse from finbourne_identity.models.lusid_problem_details import LusidProblemDetails from finbourne_identity.models.lusid_validation_problem_details import LusidValidationProblemDetails +from finbourne_identity.models.network_zone_definition_response import NetworkZoneDefinitionResponse +from finbourne_identity.models.network_zones_apply_rules import NetworkZonesApplyRules from finbourne_identity.models.o_auth_application import OAuthApplication from finbourne_identity.models.password_policy_response import PasswordPolicyResponse from finbourne_identity.models.password_policy_response_age import PasswordPolicyResponseAge @@ -51,6 +55,7 @@ from finbourne_identity.models.support_role import SupportRole from finbourne_identity.models.support_roles_response import SupportRolesResponse from finbourne_identity.models.temporary_password import TemporaryPassword +from finbourne_identity.models.update_network_zone_request import UpdateNetworkZoneRequest from finbourne_identity.models.update_password_policy_request import UpdatePasswordPolicyRequest from finbourne_identity.models.update_password_policy_request_age import UpdatePasswordPolicyRequestAge from finbourne_identity.models.update_password_policy_request_complexity import UpdatePasswordPolicyRequestComplexity @@ -74,6 +79,7 @@ "AuthenticationInformation", "CreateApiKey", "CreateApplicationRequest", + "CreateNetworkZoneRequest", "CreateRoleRequest", "CreateUserRequest", "CreatedApiKey", @@ -81,10 +87,13 @@ "ErrorDetail", "IdSelectorDefinition", "IdentifierPartSchema", + "IpAddressDefinition", "Link", "ListUsersResponse", "LusidProblemDetails", "LusidValidationProblemDetails", + "NetworkZoneDefinitionResponse", + "NetworkZonesApplyRules", "OAuthApplication", "PasswordPolicyResponse", "PasswordPolicyResponseAge", @@ -103,6 +112,7 @@ "SupportRole", "SupportRolesResponse", "TemporaryPassword", + "UpdateNetworkZoneRequest", "UpdatePasswordPolicyRequest", "UpdatePasswordPolicyRequestAge", "UpdatePasswordPolicyRequestComplexity", diff --git a/sdk/finbourne_identity/models/create_network_zone_request.py b/sdk/finbourne_identity/models/create_network_zone_request.py new file mode 100644 index 00000000..a70f0440 --- /dev/null +++ b/sdk/finbourne_identity/models/create_network_zone_request.py @@ -0,0 +1,106 @@ +# coding: utf-8 + +""" + FINBOURNE Identity Service API + + FINBOURNE Technology # noqa: E501 + + Contact: info@finbourne.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, Dict, List, Optional +from pydantic.v1 import BaseModel, Field, StrictStr, conlist, constr, validator +from finbourne_identity.models.ip_address_definition import IpAddressDefinition +from finbourne_identity.models.network_zones_apply_rules import NetworkZonesApplyRules + +class CreateNetworkZoneRequest(BaseModel): + """ + The Create Network Zone Request information # noqa: E501 + """ + code: constr(strict=True, max_length=64, min_length=1) = Field(...) + description: Optional[StrictStr] = None + network_zone_ips: conlist(IpAddressDefinition) = Field(..., alias="networkZoneIPs") + action: Optional[StrictStr] = None + apply_rules: NetworkZonesApplyRules = Field(..., alias="applyRules") + __properties = ["code", "description", "networkZoneIPs", "action", "applyRules"] + + @validator('code') + def code_validate_regular_expression(cls, value): + """Validates the regular expression""" + 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 + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> CreateNetworkZoneRequest: + """Create an instance of CreateNetworkZoneRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of each item in network_zone_ips (list) + _items = [] + if self.network_zone_ips: + for _item in self.network_zone_ips: + if _item: + _items.append(_item.to_dict()) + _dict['networkZoneIPs'] = _items + # override the default output from pydantic by calling `to_dict()` of apply_rules + if self.apply_rules: + _dict['applyRules'] = self.apply_rules.to_dict() + # set to None if description (nullable) is None + # and __fields_set__ contains the field + if self.description is None and "description" in self.__fields_set__: + _dict['description'] = None + + # set to None if action (nullable) is None + # and __fields_set__ contains the field + if self.action is None and "action" in self.__fields_set__: + _dict['action'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> CreateNetworkZoneRequest: + """Create an instance of CreateNetworkZoneRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return CreateNetworkZoneRequest.parse_obj(obj) + + _obj = CreateNetworkZoneRequest.parse_obj({ + "code": obj.get("code"), + "description": obj.get("description"), + "network_zone_ips": [IpAddressDefinition.from_dict(_item) for _item in obj.get("networkZoneIPs")] if obj.get("networkZoneIPs") is not None else None, + "action": obj.get("action"), + "apply_rules": NetworkZonesApplyRules.from_dict(obj.get("applyRules")) if obj.get("applyRules") is not None else None + }) + return _obj diff --git a/sdk/finbourne_identity/models/ip_address_definition.py b/sdk/finbourne_identity/models/ip_address_definition.py new file mode 100644 index 00000000..5dae47ca --- /dev/null +++ b/sdk/finbourne_identity/models/ip_address_definition.py @@ -0,0 +1,83 @@ +# coding: utf-8 + +""" + FINBOURNE Identity Service API + + FINBOURNE Technology # noqa: E501 + + Contact: info@finbourne.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, Dict, Optional +from pydantic.v1 import BaseModel, Field, StrictStr, constr + +class IpAddressDefinition(BaseModel): + """ + IpAddressDefinition + """ + type: Optional[StrictStr] = None + description: Optional[StrictStr] = None + value: constr(strict=True, min_length=1) = Field(...) + __properties = ["type", "description", "value"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> IpAddressDefinition: + """Create an instance of IpAddressDefinition from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # set to None if type (nullable) is None + # and __fields_set__ contains the field + if self.type is None and "type" in self.__fields_set__: + _dict['type'] = None + + # set to None if description (nullable) is None + # and __fields_set__ contains the field + if self.description is None and "description" in self.__fields_set__: + _dict['description'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> IpAddressDefinition: + """Create an instance of IpAddressDefinition from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return IpAddressDefinition.parse_obj(obj) + + _obj = IpAddressDefinition.parse_obj({ + "type": obj.get("type"), + "description": obj.get("description"), + "value": obj.get("value") + }) + return _obj diff --git a/sdk/finbourne_identity/models/network_zone_definition_response.py b/sdk/finbourne_identity/models/network_zone_definition_response.py new file mode 100644 index 00000000..7bb2bd7c --- /dev/null +++ b/sdk/finbourne_identity/models/network_zone_definition_response.py @@ -0,0 +1,129 @@ +# coding: utf-8 + +""" + FINBOURNE Identity Service API + + FINBOURNE Technology # noqa: E501 + + Contact: info@finbourne.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + +from datetime import datetime +from typing import Any, Dict, List, Optional +from pydantic.v1 import BaseModel, Field, StrictInt, StrictStr, conlist +from finbourne_identity.models.ip_address_definition import IpAddressDefinition +from finbourne_identity.models.network_zones_apply_rules import NetworkZonesApplyRules + +class NetworkZoneDefinitionResponse(BaseModel): + """ + The Client facing representation of a NetworkZone # noqa: E501 + """ + code: Optional[StrictStr] = Field(None, description="The Network Zone Code") + hierarchy: Optional[StrictInt] = Field(None, description="Hierarchy of the Network Zone") + description: Optional[StrictStr] = Field(None, description="The Description of the Network Zone") + created_at: Optional[datetime] = Field(None, alias="createdAt", description="Network Zone Creation timestamp") + updated_at: Optional[datetime] = Field(None, alias="updatedAt", description="Timestamp of the last update") + network_zone_ips: Optional[conlist(IpAddressDefinition)] = Field(None, alias="networkZoneIPs", description="Network zone IP information (IPs and CIDR ranges)") + action: Optional[StrictStr] = Field(None, description="Kind of action to apply when a request matches this Network Zone (Block/Allow/NoOp)") + apply_rules: Optional[NetworkZonesApplyRules] = Field(None, alias="applyRules") + created_by: Optional[StrictStr] = Field(None, alias="createdBy", description="User Id that created the Network Zone") + updated_by: Optional[StrictStr] = Field(None, alias="updatedBy", description="User Id of the last update on the Network Zone") + __properties = ["code", "hierarchy", "description", "createdAt", "updatedAt", "networkZoneIPs", "action", "applyRules", "createdBy", "updatedBy"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> NetworkZoneDefinitionResponse: + """Create an instance of NetworkZoneDefinitionResponse from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of each item in network_zone_ips (list) + _items = [] + if self.network_zone_ips: + for _item in self.network_zone_ips: + if _item: + _items.append(_item.to_dict()) + _dict['networkZoneIPs'] = _items + # override the default output from pydantic by calling `to_dict()` of apply_rules + if self.apply_rules: + _dict['applyRules'] = self.apply_rules.to_dict() + # set to None if code (nullable) is None + # and __fields_set__ contains the field + if self.code is None and "code" in self.__fields_set__: + _dict['code'] = None + + # set to None if description (nullable) is None + # and __fields_set__ contains the field + if self.description is None and "description" in self.__fields_set__: + _dict['description'] = None + + # set to None if network_zone_ips (nullable) is None + # and __fields_set__ contains the field + if self.network_zone_ips is None and "network_zone_ips" in self.__fields_set__: + _dict['networkZoneIPs'] = None + + # set to None if action (nullable) is None + # and __fields_set__ contains the field + if self.action is None and "action" in self.__fields_set__: + _dict['action'] = None + + # set to None if created_by (nullable) is None + # and __fields_set__ contains the field + if self.created_by is None and "created_by" in self.__fields_set__: + _dict['createdBy'] = None + + # set to None if updated_by (nullable) is None + # and __fields_set__ contains the field + if self.updated_by is None and "updated_by" in self.__fields_set__: + _dict['updatedBy'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> NetworkZoneDefinitionResponse: + """Create an instance of NetworkZoneDefinitionResponse from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return NetworkZoneDefinitionResponse.parse_obj(obj) + + _obj = NetworkZoneDefinitionResponse.parse_obj({ + "code": obj.get("code"), + "hierarchy": obj.get("hierarchy"), + "description": obj.get("description"), + "created_at": obj.get("createdAt"), + "updated_at": obj.get("updatedAt"), + "network_zone_ips": [IpAddressDefinition.from_dict(_item) for _item in obj.get("networkZoneIPs")] if obj.get("networkZoneIPs") is not None else None, + "action": obj.get("action"), + "apply_rules": NetworkZonesApplyRules.from_dict(obj.get("applyRules")) if obj.get("applyRules") is not None else None, + "created_by": obj.get("createdBy"), + "updated_by": obj.get("updatedBy") + }) + return _obj diff --git a/sdk/finbourne_identity/models/network_zones_apply_rules.py b/sdk/finbourne_identity/models/network_zones_apply_rules.py new file mode 100644 index 00000000..57731cf3 --- /dev/null +++ b/sdk/finbourne_identity/models/network_zones_apply_rules.py @@ -0,0 +1,71 @@ +# coding: utf-8 + +""" + FINBOURNE Identity Service API + + FINBOURNE Technology # noqa: E501 + + Contact: info@finbourne.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, Dict, List +from pydantic.v1 import BaseModel, Field, StrictStr, conlist + +class NetworkZonesApplyRules(BaseModel): + """ + NetworkZonesApplyRules + """ + session_type: conlist(StrictStr) = Field(..., alias="sessionType") + user_roles: conlist(StrictStr) = Field(..., alias="userRoles") + __properties = ["sessionType", "userRoles"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> NetworkZonesApplyRules: + """Create an instance of NetworkZonesApplyRules from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> NetworkZonesApplyRules: + """Create an instance of NetworkZonesApplyRules from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return NetworkZonesApplyRules.parse_obj(obj) + + _obj = NetworkZonesApplyRules.parse_obj({ + "session_type": obj.get("sessionType"), + "user_roles": obj.get("userRoles") + }) + return _obj diff --git a/sdk/finbourne_identity/models/update_network_zone_request.py b/sdk/finbourne_identity/models/update_network_zone_request.py new file mode 100644 index 00000000..b1613209 --- /dev/null +++ b/sdk/finbourne_identity/models/update_network_zone_request.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + FINBOURNE Identity Service API + + FINBOURNE Technology # noqa: E501 + + Contact: info@finbourne.com + Generated by OpenAPI Generator (https://openapi-generator.tech) + + Do not edit the class manually. +""" + + +from __future__ import annotations +import pprint +import re # noqa: F401 +import json + + +from typing import Any, Dict, List, Optional +from pydantic.v1 import BaseModel, Field, StrictInt, StrictStr, conlist +from finbourne_identity.models.ip_address_definition import IpAddressDefinition +from finbourne_identity.models.network_zones_apply_rules import NetworkZonesApplyRules + +class UpdateNetworkZoneRequest(BaseModel): + """ + UpdateNetworkZoneRequest + """ + description: Optional[StrictStr] = None + network_zone_ips: conlist(IpAddressDefinition) = Field(..., alias="networkZoneIPs") + action: Optional[StrictStr] = None + apply_rules: NetworkZonesApplyRules = Field(..., alias="applyRules") + hierarchy: StrictInt = Field(...) + __properties = ["description", "networkZoneIPs", "action", "applyRules", "hierarchy"] + + class Config: + """Pydantic configuration""" + allow_population_by_field_name = True + validate_assignment = True + + def to_str(self) -> str: + """Returns the string representation of the model using alias""" + return pprint.pformat(self.dict(by_alias=True)) + + def to_json(self) -> str: + """Returns the JSON representation of the model using alias""" + return json.dumps(self.to_dict()) + + @classmethod + def from_json(cls, json_str: str) -> UpdateNetworkZoneRequest: + """Create an instance of UpdateNetworkZoneRequest from a JSON string""" + return cls.from_dict(json.loads(json_str)) + + def to_dict(self): + """Returns the dictionary representation of the model using alias""" + _dict = self.dict(by_alias=True, + exclude={ + }, + exclude_none=True) + # override the default output from pydantic by calling `to_dict()` of each item in network_zone_ips (list) + _items = [] + if self.network_zone_ips: + for _item in self.network_zone_ips: + if _item: + _items.append(_item.to_dict()) + _dict['networkZoneIPs'] = _items + # override the default output from pydantic by calling `to_dict()` of apply_rules + if self.apply_rules: + _dict['applyRules'] = self.apply_rules.to_dict() + # set to None if description (nullable) is None + # and __fields_set__ contains the field + if self.description is None and "description" in self.__fields_set__: + _dict['description'] = None + + # set to None if action (nullable) is None + # and __fields_set__ contains the field + if self.action is None and "action" in self.__fields_set__: + _dict['action'] = None + + return _dict + + @classmethod + def from_dict(cls, obj: dict) -> UpdateNetworkZoneRequest: + """Create an instance of UpdateNetworkZoneRequest from a dict""" + if obj is None: + return None + + if not isinstance(obj, dict): + return UpdateNetworkZoneRequest.parse_obj(obj) + + _obj = UpdateNetworkZoneRequest.parse_obj({ + "description": obj.get("description"), + "network_zone_ips": [IpAddressDefinition.from_dict(_item) for _item in obj.get("networkZoneIPs")] if obj.get("networkZoneIPs") is not None else None, + "action": obj.get("action"), + "apply_rules": NetworkZonesApplyRules.from_dict(obj.get("applyRules")) if obj.get("applyRules") is not None else None, + "hierarchy": obj.get("hierarchy") + }) + return _obj diff --git a/sdk/poetry.lock b/sdk/poetry.lock index 83b736ef..277d264b 100644 --- a/sdk/poetry.lock +++ b/sdk/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 1.8.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 1.8.4 and should not be changed by hand. [[package]] name = "aenum" @@ -844,22 +844,19 @@ files = [ [[package]] name = "pydantic" -version = "2.9.2" +version = "2.10.2" description = "Data validation using Python type hints" optional = false python-versions = ">=3.8" files = [ - {file = "pydantic-2.9.2-py3-none-any.whl", hash = "sha256:f048cec7b26778210e28a0459867920654d48e5e62db0958433636cde4254f12"}, - {file = "pydantic-2.9.2.tar.gz", hash = "sha256:d155cef71265d1e9807ed1c32b4c8deec042a44a50a4188b25ac67ecd81a9c0f"}, + {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.23.4" -typing-extensions = [ - {version = ">=4.12.2", markers = "python_version >= \"3.13\""}, - {version = ">=4.6.1", markers = "python_version < \"3.13\""}, -] +pydantic-core = "2.27.1" +typing-extensions = ">=4.12.2" [package.extras] email = ["email-validator (>=2.0.0)"] @@ -867,100 +864,111 @@ timezone = ["tzdata"] [[package]] name = "pydantic-core" -version = "2.23.4" +version = "2.27.1" description = "Core functionality for Pydantic validation and serialization" optional = false python-versions = ">=3.8" files = [ - {file = "pydantic_core-2.23.4-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:b10bd51f823d891193d4717448fab065733958bdb6a6b351967bd349d48d5c9b"}, - {file = "pydantic_core-2.23.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:4fc714bdbfb534f94034efaa6eadd74e5b93c8fa6315565a222f7b6f42ca1166"}, - {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:63e46b3169866bd62849936de036f901a9356e36376079b05efa83caeaa02ceb"}, - {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ed1a53de42fbe34853ba90513cea21673481cd81ed1be739f7f2efb931b24916"}, - {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:cfdd16ab5e59fc31b5e906d1a3f666571abc367598e3e02c83403acabc092e07"}, - {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:255a8ef062cbf6674450e668482456abac99a5583bbafb73f9ad469540a3a232"}, - {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4a7cd62e831afe623fbb7aabbb4fe583212115b3ef38a9f6b71869ba644624a2"}, - {file = "pydantic_core-2.23.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f09e2ff1f17c2b51f2bc76d1cc33da96298f0a036a137f5440ab3ec5360b624f"}, - {file = "pydantic_core-2.23.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e38e63e6f3d1cec5a27e0afe90a085af8b6806ee208b33030e65b6516353f1a3"}, - {file = "pydantic_core-2.23.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:0dbd8dbed2085ed23b5c04afa29d8fd2771674223135dc9bc937f3c09284d071"}, - {file = "pydantic_core-2.23.4-cp310-none-win32.whl", hash = "sha256:6531b7ca5f951d663c339002e91aaebda765ec7d61b7d1e3991051906ddde119"}, - {file = "pydantic_core-2.23.4-cp310-none-win_amd64.whl", hash = "sha256:7c9129eb40958b3d4500fa2467e6a83356b3b61bfff1b414c7361d9220f9ae8f"}, - {file = "pydantic_core-2.23.4-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:77733e3892bb0a7fa797826361ce8a9184d25c8dffaec60b7ffe928153680ba8"}, - {file = "pydantic_core-2.23.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:1b84d168f6c48fabd1f2027a3d1bdfe62f92cade1fb273a5d68e621da0e44e6d"}, - {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df49e7a0861a8c36d089c1ed57d308623d60416dab2647a4a17fe050ba85de0e"}, - {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:ff02b6d461a6de369f07ec15e465a88895f3223eb75073ffea56b84d9331f607"}, - {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:996a38a83508c54c78a5f41456b0103c30508fed9abcad0a59b876d7398f25fd"}, - {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d97683ddee4723ae8c95d1eddac7c192e8c552da0c73a925a89fa8649bf13eea"}, - {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:216f9b2d7713eb98cb83c80b9c794de1f6b7e3145eef40400c62e86cee5f4e1e"}, - {file = "pydantic_core-2.23.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:6f783e0ec4803c787bcea93e13e9932edab72068f68ecffdf86a99fd5918878b"}, - {file = "pydantic_core-2.23.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:d0776dea117cf5272382634bd2a5c1b6eb16767c223c6a5317cd3e2a757c61a0"}, - {file = "pydantic_core-2.23.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:d5f7a395a8cf1621939692dba2a6b6a830efa6b3cee787d82c7de1ad2930de64"}, - {file = "pydantic_core-2.23.4-cp311-none-win32.whl", hash = "sha256:74b9127ffea03643e998e0c5ad9bd3811d3dac8c676e47db17b0ee7c3c3bf35f"}, - {file = "pydantic_core-2.23.4-cp311-none-win_amd64.whl", hash = "sha256:98d134c954828488b153d88ba1f34e14259284f256180ce659e8d83e9c05eaa3"}, - {file = "pydantic_core-2.23.4-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:f3e0da4ebaef65158d4dfd7d3678aad692f7666877df0002b8a522cdf088f231"}, - {file = "pydantic_core-2.23.4-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:f69a8e0b033b747bb3e36a44e7732f0c99f7edd5cea723d45bc0d6e95377ffee"}, - {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:723314c1d51722ab28bfcd5240d858512ffd3116449c557a1336cbe3919beb87"}, - {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:bb2802e667b7051a1bebbfe93684841cc9351004e2badbd6411bf357ab8d5ac8"}, - {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d18ca8148bebe1b0a382a27a8ee60350091a6ddaf475fa05ef50dc35b5df6327"}, - {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:33e3d65a85a2a4a0dc3b092b938a4062b1a05f3a9abde65ea93b233bca0e03f2"}, - {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:128585782e5bfa515c590ccee4b727fb76925dd04a98864182b22e89a4e6ed36"}, - {file = "pydantic_core-2.23.4-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:68665f4c17edcceecc112dfed5dbe6f92261fb9d6054b47d01bf6371a6196126"}, - {file = "pydantic_core-2.23.4-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:20152074317d9bed6b7a95ade3b7d6054845d70584216160860425f4fbd5ee9e"}, - {file = "pydantic_core-2.23.4-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:9261d3ce84fa1d38ed649c3638feefeae23d32ba9182963e465d58d62203bd24"}, - {file = "pydantic_core-2.23.4-cp312-none-win32.whl", hash = "sha256:4ba762ed58e8d68657fc1281e9bb72e1c3e79cc5d464be146e260c541ec12d84"}, - {file = "pydantic_core-2.23.4-cp312-none-win_amd64.whl", hash = "sha256:97df63000f4fea395b2824da80e169731088656d1818a11b95f3b173747b6cd9"}, - {file = "pydantic_core-2.23.4-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7530e201d10d7d14abce4fb54cfe5b94a0aefc87da539d0346a484ead376c3cc"}, - {file = "pydantic_core-2.23.4-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:df933278128ea1cd77772673c73954e53a1c95a4fdf41eef97c2b779271bd0bd"}, - {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:0cb3da3fd1b6a5d0279a01877713dbda118a2a4fc6f0d821a57da2e464793f05"}, - {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:42c6dcb030aefb668a2b7009c85b27f90e51e6a3b4d5c9bc4c57631292015b0d"}, - {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:696dd8d674d6ce621ab9d45b205df149399e4bb9aa34102c970b721554828510"}, - {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2971bb5ffe72cc0f555c13e19b23c85b654dd2a8f7ab493c262071377bfce9f6"}, - {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8394d940e5d400d04cad4f75c0598665cbb81aecefaca82ca85bd28264af7f9b"}, - {file = "pydantic_core-2.23.4-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:0dff76e0602ca7d4cdaacc1ac4c005e0ce0dcfe095d5b5259163a80d3a10d327"}, - {file = "pydantic_core-2.23.4-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7d32706badfe136888bdea71c0def994644e09fff0bfe47441deaed8e96fdbc6"}, - {file = "pydantic_core-2.23.4-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ed541d70698978a20eb63d8c5d72f2cc6d7079d9d90f6b50bad07826f1320f5f"}, - {file = "pydantic_core-2.23.4-cp313-none-win32.whl", hash = "sha256:3d5639516376dce1940ea36edf408c554475369f5da2abd45d44621cb616f769"}, - {file = "pydantic_core-2.23.4-cp313-none-win_amd64.whl", hash = "sha256:5a1504ad17ba4210df3a045132a7baeeba5a200e930f57512ee02909fc5c4cb5"}, - {file = "pydantic_core-2.23.4-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:d4488a93b071c04dc20f5cecc3631fc78b9789dd72483ba15d423b5b3689b555"}, - {file = "pydantic_core-2.23.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:81965a16b675b35e1d09dd14df53f190f9129c0202356ed44ab2728b1c905658"}, - {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4ffa2ebd4c8530079140dd2d7f794a9d9a73cbb8e9d59ffe24c63436efa8f271"}, - {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:61817945f2fe7d166e75fbfb28004034b48e44878177fc54d81688e7b85a3665"}, - {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:29d2c342c4bc01b88402d60189f3df065fb0dda3654744d5a165a5288a657368"}, - {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:5e11661ce0fd30a6790e8bcdf263b9ec5988e95e63cf901972107efc49218b13"}, - {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d18368b137c6295db49ce7218b1a9ba15c5bc254c96d7c9f9e924a9bc7825ad"}, - {file = "pydantic_core-2.23.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ec4e55f79b1c4ffb2eecd8a0cfba9955a2588497d96851f4c8f99aa4a1d39b12"}, - {file = "pydantic_core-2.23.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:374a5e5049eda9e0a44c696c7ade3ff355f06b1fe0bb945ea3cac2bc336478a2"}, - {file = "pydantic_core-2.23.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5c364564d17da23db1106787675fc7af45f2f7b58b4173bfdd105564e132e6fb"}, - {file = "pydantic_core-2.23.4-cp38-none-win32.whl", hash = "sha256:d7a80d21d613eec45e3d41eb22f8f94ddc758a6c4720842dc74c0581f54993d6"}, - {file = "pydantic_core-2.23.4-cp38-none-win_amd64.whl", hash = "sha256:5f5ff8d839f4566a474a969508fe1c5e59c31c80d9e140566f9a37bba7b8d556"}, - {file = "pydantic_core-2.23.4-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:a4fa4fc04dff799089689f4fd502ce7d59de529fc2f40a2c8836886c03e0175a"}, - {file = "pydantic_core-2.23.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:0a7df63886be5e270da67e0966cf4afbae86069501d35c8c1b3b6c168f42cb36"}, - {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:dcedcd19a557e182628afa1d553c3895a9f825b936415d0dbd3cd0bbcfd29b4b"}, - {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f54b118ce5de9ac21c363d9b3caa6c800341e8c47a508787e5868c6b79c9323"}, - {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:86d2f57d3e1379a9525c5ab067b27dbb8a0642fb5d454e17a9ac434f9ce523e3"}, - {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:de6d1d1b9e5101508cb37ab0d972357cac5235f5c6533d1071964c47139257df"}, - {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1278e0d324f6908e872730c9102b0112477a7f7cf88b308e4fc36ce1bdb6d58c"}, - {file = "pydantic_core-2.23.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:9a6b5099eeec78827553827f4c6b8615978bb4b6a88e5d9b93eddf8bb6790f55"}, - {file = "pydantic_core-2.23.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:e55541f756f9b3ee346b840103f32779c695a19826a4c442b7954550a0972040"}, - {file = "pydantic_core-2.23.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:a5c7ba8ffb6d6f8f2ab08743be203654bb1aaa8c9dcb09f82ddd34eadb695605"}, - {file = "pydantic_core-2.23.4-cp39-none-win32.whl", hash = "sha256:37b0fe330e4a58d3c58b24d91d1eb102aeec675a3db4c292ec3928ecd892a9a6"}, - {file = "pydantic_core-2.23.4-cp39-none-win_amd64.whl", hash = "sha256:1498bec4c05c9c787bde9125cfdcc63a41004ff167f495063191b863399b1a29"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:f455ee30a9d61d3e1a15abd5068827773d6e4dc513e795f380cdd59932c782d5"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:1e90d2e3bd2c3863d48525d297cd143fe541be8bbf6f579504b9712cb6b643ec"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2e203fdf807ac7e12ab59ca2bfcabb38c7cf0b33c41efeb00f8e5da1d86af480"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e08277a400de01bc72436a0ccd02bdf596631411f592ad985dcee21445bd0068"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:f220b0eea5965dec25480b6333c788fb72ce5f9129e8759ef876a1d805d00801"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:d06b0c8da4f16d1d1e352134427cb194a0a6e19ad5db9161bf32b2113409e728"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:ba1a0996f6c2773bd83e63f18914c1de3c9dd26d55f4ac302a7efe93fb8e7433"}, - {file = "pydantic_core-2.23.4-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:9a5bce9d23aac8f0cf0836ecfc033896aa8443b501c58d0602dbfd5bd5b37753"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:78ddaaa81421a29574a682b3179d4cf9e6d405a09b99d93ddcf7e5239c742e21"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:883a91b5dd7d26492ff2f04f40fbb652de40fcc0afe07e8129e8ae779c2110eb"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:88ad334a15b32a791ea935af224b9de1bf99bcd62fabf745d5f3442199d86d59"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:233710f069d251feb12a56da21e14cca67994eab08362207785cf8c598e74577"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:19442362866a753485ba5e4be408964644dd6a09123d9416c54cd49171f50744"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:624e278a7d29b6445e4e813af92af37820fafb6dcc55c012c834f9e26f9aaaef"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f5ef8f42bec47f21d07668a043f077d507e5bf4e668d5c6dfe6aaba89de1a5b8"}, - {file = "pydantic_core-2.23.4-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:aea443fffa9fbe3af1a9ba721a87f926fe548d32cab71d188a6ede77d0ff244e"}, - {file = "pydantic_core-2.23.4.tar.gz", hash = "sha256:2584f7cf844ac4d970fba483a717dbe10c1c1c96a969bf65d61ffe94df1b2863"}, + {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] @@ -1065,13 +1073,43 @@ files = [ [[package]] name = "tomli" -version = "2.1.0" +version = "2.2.1" 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"}, + {file = "tomli-2.2.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:678e4fa69e4575eb77d103de3df8a895e1591b48e740211bd1067378c69e8249"}, + {file = "tomli-2.2.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:023aa114dd824ade0100497eb2318602af309e5a55595f76b626d6d9f3b7b0a6"}, + {file = "tomli-2.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ece47d672db52ac607a3d9599a9d48dcb2f2f735c6c2d1f34130085bb12b112a"}, + {file = "tomli-2.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6972ca9c9cc9f0acaa56a8ca1ff51e7af152a9f87fb64623e31d5c83700080ee"}, + {file = "tomli-2.2.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c954d2250168d28797dd4e3ac5cf812a406cd5a92674ee4c8f123c889786aa8e"}, + {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:8dd28b3e155b80f4d54beb40a441d366adcfe740969820caf156c019fb5c7ec4"}, + {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:e59e304978767a54663af13c07b3d1af22ddee3bb2fb0618ca1593e4f593a106"}, + {file = "tomli-2.2.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:33580bccab0338d00994d7f16f4c4ec25b776af3ffaac1ed74e0b3fc95e885a8"}, + {file = "tomli-2.2.1-cp311-cp311-win32.whl", hash = "sha256:465af0e0875402f1d226519c9904f37254b3045fc5084697cefb9bdde1ff99ff"}, + {file = "tomli-2.2.1-cp311-cp311-win_amd64.whl", hash = "sha256:2d0f2fdd22b02c6d81637a3c95f8cd77f995846af7414c5c4b8d0545afa1bc4b"}, + {file = "tomli-2.2.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:4a8f6e44de52d5e6c657c9fe83b562f5f4256d8ebbfe4ff922c495620a7f6cea"}, + {file = "tomli-2.2.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:8d57ca8095a641b8237d5b079147646153d22552f1c637fd3ba7f4b0b29167a8"}, + {file = "tomli-2.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4e340144ad7ae1533cb897d406382b4b6fede8890a03738ff1683af800d54192"}, + {file = "tomli-2.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:db2b95f9de79181805df90bedc5a5ab4c165e6ec3fe99f970d0e302f384ad222"}, + {file = "tomli-2.2.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:40741994320b232529c802f8bc86da4e1aa9f413db394617b9a256ae0f9a7f77"}, + {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:400e720fe168c0f8521520190686ef8ef033fb19fc493da09779e592861b78c6"}, + {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:02abe224de6ae62c19f090f68da4e27b10af2b93213d36cf44e6e1c5abd19fdd"}, + {file = "tomli-2.2.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:b82ebccc8c8a36f2094e969560a1b836758481f3dc360ce9a3277c65f374285e"}, + {file = "tomli-2.2.1-cp312-cp312-win32.whl", hash = "sha256:889f80ef92701b9dbb224e49ec87c645ce5df3fa2cc548664eb8a25e03127a98"}, + {file = "tomli-2.2.1-cp312-cp312-win_amd64.whl", hash = "sha256:7fc04e92e1d624a4a63c76474610238576942d6b8950a2d7f908a340494e67e4"}, + {file = "tomli-2.2.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:f4039b9cbc3048b2416cc57ab3bda989a6fcf9b36cf8937f01a6e731b64f80d7"}, + {file = "tomli-2.2.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:286f0ca2ffeeb5b9bd4fcc8d6c330534323ec51b2f52da063b11c502da16f30c"}, + {file = "tomli-2.2.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a92ef1a44547e894e2a17d24e7557a5e85a9e1d0048b0b5e7541f76c5032cb13"}, + {file = "tomli-2.2.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9316dc65bed1684c9a98ee68759ceaed29d229e985297003e494aa825ebb0281"}, + {file = "tomli-2.2.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e85e99945e688e32d5a35c1ff38ed0b3f41f43fad8df0bdf79f72b2ba7bc5272"}, + {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:ac065718db92ca818f8d6141b5f66369833d4a80a9d74435a268c52bdfa73140"}, + {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:d920f33822747519673ee656a4b6ac33e382eca9d331c87770faa3eef562aeb2"}, + {file = "tomli-2.2.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a198f10c4d1b1375d7687bc25294306e551bf1abfa4eace6650070a5c1ae2744"}, + {file = "tomli-2.2.1-cp313-cp313-win32.whl", hash = "sha256:d3f5614314d758649ab2ab3a62d4f2004c825922f9e370b29416484086b264ec"}, + {file = "tomli-2.2.1-cp313-cp313-win_amd64.whl", hash = "sha256:a38aa0308e754b0e3c67e344754dff64999ff9b513e691d0e786265c93583c69"}, + {file = "tomli-2.2.1-py3-none-any.whl", hash = "sha256:cb55c73c5f4408779d0cf3eef9f762b9c9f147a77de7b258bef0a5628adc85cc"}, + {file = "tomli-2.2.1.tar.gz", hash = "sha256:cd45e1dc79c835ce60f7404ec8119f2eb06d38b1deba146f07ced3bbc44505ff"}, ] [[package]] diff --git a/sdk/pyproject.toml b/sdk/pyproject.toml index 2c103004..c12f6ebc 100644 --- a/sdk/pyproject.toml +++ b/sdk/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "finbourne-identity-sdk" -version = "2.1.91" +version = "2.1.92" description = "FINBOURNE Identity Service API" authors = ["FINBOURNE Technology "] license = "MIT"