- create_unified_environment - Create new environments
- list_unified_environments - Returns all environments
- remove_unified_environment - Remove an environment
Create new environments
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.environment.create_unified_environment(request=[])
assert res.environments is not None
# Handle response
print(res.environments)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
List[str] | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.CreateUnifiedEnvironmentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Returns all environments
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.environment.list_unified_environments()
assert res.environments is not None
# Handle response
print(res.environments)| Parameter | Type | Required | Description |
|---|---|---|---|
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.ListUnifiedEnvironmentsResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |
Remove an environment
from unified_python_sdk import UnifiedTo
from unified_python_sdk.models import shared
with UnifiedTo(
security=shared.Security(
jwt="<YOUR_API_KEY_HERE>",
),
) as unified_to:
res = unified_to.environment.remove_unified_environment(request={
"env": "<value>",
})
assert res.environments is not None
# Handle response
print(res.environments)| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.RemoveUnifiedEnvironmentRequest | ✔️ | The request object to use for the request. |
retries |
Optional[utils.RetryConfig] | ➖ | Configuration to override the default retry behavior of the client. |
operations.RemoveUnifiedEnvironmentResponse
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.SDKError | 4XX, 5XX | */* |