Skip to content

Commit

Permalink
identity python updates for v2.1.92
Browse files Browse the repository at this point in the history
Signed-off-by: Concourse <[email protected]>
  • Loading branch information
Concourse committed Nov 29, 2024
1 parent 0459b50 commit dbb31bd
Show file tree
Hide file tree
Showing 29 changed files with 3,531 additions and 1,516 deletions.
64 changes: 32 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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":"<your-token-url>",
"identityUrl":"https://<your-domain>.lusid.com/identity",
"username":"<your-username>",
"password":"<your-password>",
"clientId":"<your-client-id>",
"clientSecret":"<your-client-secret>"
}
}''')

# Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client
"api":
{
"tokenUrl":"<your-token-url>",
"identityUrl":"https://<your-domain>.lusid.com/identity",
"username":"<your-username>",
"password":"<your-password>",
"clientId":"<your-client-id>",
"clientSecret":"<your-client-secret>"
}
}''')

# 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

Expand All @@ -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()
```


Expand Down
10 changes: 10 additions & 0 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -62,17 +67,21 @@ 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)
- [CurrentUserResponse](docs/CurrentUserResponse.md)
- [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)
Expand All @@ -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)
Expand Down
60 changes: 30 additions & 30 deletions sdk/docs/ApplicationMetadataApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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":"<your-token-url>",
"identityUrl":"https://<your-domain>.lusid.com/identity",
"username":"<your-username>",
"password":"<your-password>",
"clientId":"<your-client-id>",
"clientSecret":"<your-client-secret>"
}
}''')

# Use the finbourne_identity ApiClientFactory to build Api instances with a configured api client
"api":
{
"tokenUrl":"<your-token-url>",
"identityUrl":"https://<your-domain>.lusid.com/identity",
"username":"<your-username>",
"password":"<your-password>",
"clientId":"<your-client-id>",
"clientSecret":"<your-client-secret>"
}
}''')

# 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

Expand All @@ -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
Expand Down
Loading

0 comments on commit dbb31bd

Please sign in to comment.