Skip to content

Commit

Permalink
workflow python updates for v2.1.121
Browse files Browse the repository at this point in the history
Signed-off-by: Concourse <[email protected]>
  • Loading branch information
Concourse committed Nov 25, 2024
1 parent de0fc3f commit 5b3a81a
Show file tree
Hide file tree
Showing 10 changed files with 1,108 additions and 1,100 deletions.
66 changes: 33 additions & 33 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.1.1330
- SDK version: 2.1.120
- API version: 0.1.1339
- SDK version: 2.1.121

## Requirements

Expand Down Expand Up @@ -159,33 +159,32 @@ Other optional configuration

### Example
```python
import asyncio
from lusid_workflow.exceptions import ApiException
from lusid_workflow.extensions.configuration_options import ConfigurationOptions
from lusid_workflow.models import *
from pprint import pprint
from lusid_workflow import (
ApiClientFactory,
SyncApiClientFactory,
ActionLogsApi
)

async def main():
def main():

with open("secrets.json", "w") as file:
file.write('''
{
"api":
{
"tokenUrl":"<your-token-url>",
"workflowUrl":"https://<your-domain>.lusid.com/workflow",
"username":"<your-username>",
"password":"<your-password>",
"clientId":"<your-client-id>",
"clientSecret":"<your-client-secret>"
}
}''')

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

# Use the lusid_workflow 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,27 +193,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(ActionLogsApi)
id = 'id_example' # str | The Action Id

# 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(ActionLogsApi)
id = 'id_example' # str | The Action Id
try:
# uncomment the below to set overrides at the request level
# api_response = api_instance.get_action_logs(id, opts=opts)

try:
# uncomment the below to set overrides at the request level
# api_response = await api_instance.get_action_logs(id, opts=opts)
# [EXPERIMENTAL] GetActionLogs: Get the Action Logs for an Action Id
api_response = api_instance.get_action_logs(id)
pprint(api_response)

# [EXPERIMENTAL] GetActionLogs: Get the Action Logs for an Action Id
api_response = await api_instance.get_action_logs(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActionLogsApi->get_action_logs: %s\n" % e)
except ApiException as e:
print("Exception when calling ActionLogsApi->get_action_logs: %s\n" % e)

asyncio.run(main())
main()
```


Expand Down
62 changes: 31 additions & 31 deletions sdk/docs/ActionLogsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,32 @@ Method | HTTP request | Description
### Example

```python
import asyncio
from lusid_workflow.exceptions import ApiException
from lusid_workflow.extensions.configuration_options import ConfigurationOptions
from lusid_workflow.models import *
from pprint import pprint
from lusid_workflow import (
ApiClientFactory,
SyncApiClientFactory,
ActionLogsApi
)

async def main():
def main():

with open("secrets.json", "w") as file:
file.write('''
{
"api":
{
"tokenUrl":"<your-token-url>",
"workflowUrl":"https://<your-domain>.lusid.com/workflow",
"username":"<your-username>",
"password":"<your-password>",
"clientId":"<your-client-id>",
"clientSecret":"<your-client-secret>"
}
}''')

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

# Use the lusid_workflow 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 @@ -50,27 +49,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(ActionLogsApi)
id = 'id_example' # str | The Action Id
# 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(ActionLogsApi)
id = 'id_example' # str | The Action Id

try:
# uncomment the below to set overrides at the request level
# api_response = await api_instance.get_action_logs(id, opts=opts)
try:
# uncomment the below to set overrides at the request level
# api_response = api_instance.get_action_logs(id, opts=opts)

# [EXPERIMENTAL] GetActionLogs: Get the Action Logs for an Action Id
api_response = await api_instance.get_action_logs(id)
pprint(api_response)
except ApiException as e:
print("Exception when calling ActionLogsApi->get_action_logs: %s\n" % e)
# [EXPERIMENTAL] GetActionLogs: Get the Action Logs for an Action Id
api_response = api_instance.get_action_logs(id)
pprint(api_response)

asyncio.run(main())
except ApiException as e:
print("Exception when calling ActionLogsApi->get_action_logs: %s\n" % e)

main()
```

### Parameters
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 lusid_workflow.exceptions import ApiException
from lusid_workflow.extensions.configuration_options import ConfigurationOptions
from lusid_workflow.models import *
from pprint import pprint
from lusid_workflow import (
ApiClientFactory,
SyncApiClientFactory,
ApplicationMetadataApi
)

async def main():
def main():

with open("secrets.json", "w") as file:
file.write('''
{
"api":
{
"tokenUrl":"<your-token-url>",
"workflowUrl":"https://<your-domain>.lusid.com/workflow",
"username":"<your-username>",
"password":"<your-password>",
"clientId":"<your-client-id>",
"clientSecret":"<your-client-secret>"
}
}''')

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

# Use the lusid_workflow 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)

# [EXPERIMENTAL] 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)
# [EXPERIMENTAL] 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 5b3a81a

Please sign in to comment.