Skip to content

Commit

Permalink
Update SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
Concourse committed Jun 21, 2023
1 parent f4618f3 commit 438704f
Show file tree
Hide file tree
Showing 55 changed files with 378 additions and 98 deletions.
57 changes: 56 additions & 1 deletion lydia.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"url": "https://www.finbourne.com",
"email": "[email protected]"
},
"version": "0.0.2454",
"version": "0.0.2456",
"x-logo": {
"url": "https://www.lusid.com/app/assets/logo_white.png",
"backgroundColor": "#415464"
Expand Down Expand Up @@ -2825,6 +2825,61 @@
"x-fbn-apistatus": "EarlyAccess"
}
},
"/api/users/{id}/lifecycle/$suspend": {
"post": {
"tags": [
"Users"
],
"summary": "[EXPERIMENTAL] SuspendUser: Suspend user",
"description": "suspend the user",
"operationId": "SuspendUser",
"parameters": [
{
"name": "id",
"in": "path",
"description": "The unique identifier for the User to suspend",
"required": true,
"schema": {
"maxLength": 64,
"minLength": 1,
"pattern": "^[a-zA-Z0-9\\-_]+$",
"type": "string"
}
}
],
"responses": {
"204": {
"description": "No Content"
},
"400": {
"description": "The details of the input related failure",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LusidValidationProblemDetails"
}
}
}
},
"default": {
"description": "Error response",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LusidProblemDetails"
}
}
}
}
},
"security": [
{
"oauth2": []
}
],
"x-fbn-apistatus": "Experimental"
}
},
"/api/users/{id}/lifecycle/$unlock": {
"post": {
"tags": [
Expand Down
5 changes: 3 additions & 2 deletions sdk/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FINBOURNE Technology

This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 0.0.2454
- Package version: 0.0.2454
- API version: 0.0.2456
- Package version: 0.0.2456
- Build package: org.openapitools.codegen.languages.PythonLegacyClientCodegen
For more information, please visit [https://www.finbourne.com](https://www.finbourne.com)

Expand Down Expand Up @@ -128,6 +128,7 @@ Class | Method | HTTP request | Description
*UsersApi* | [**reset_factors**](docs/UsersApi.md#reset_factors) | **POST** /api/users/{id}/lifecycle/$resetfactors | [EARLY ACCESS] ResetFactors: Reset MFA factors
*UsersApi* | [**reset_password**](docs/UsersApi.md#reset_password) | **POST** /api/users/{id}/lifecycle/$resetpassword | [EARLY ACCESS] ResetPassword: Reset Password
*UsersApi* | [**send_activation_email**](docs/UsersApi.md#send_activation_email) | **POST** /api/users/{id}/lifecycle/$activate | [EARLY ACCESS] SendActivationEmail: Sends an activation email to the User
*UsersApi* | [**suspend_user**](docs/UsersApi.md#suspend_user) | **POST** /api/users/{id}/lifecycle/$suspend | [EXPERIMENTAL] SuspendUser: Suspend user
*UsersApi* | [**unlock_user**](docs/UsersApi.md#unlock_user) | **POST** /api/users/{id}/lifecycle/$unlock | [EARLY ACCESS] UnlockUser: Unlock User
*UsersApi* | [**update_user**](docs/UsersApi.md#update_user) | **PUT** /api/users/{id} | [EARLY ACCESS] UpdateUser: Update User

Expand Down
75 changes: 75 additions & 0 deletions sdk/docs/UsersApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Method | HTTP request | Description
[**reset_factors**](UsersApi.md#reset_factors) | **POST** /api/users/{id}/lifecycle/$resetfactors | [EARLY ACCESS] ResetFactors: Reset MFA factors
[**reset_password**](UsersApi.md#reset_password) | **POST** /api/users/{id}/lifecycle/$resetpassword | [EARLY ACCESS] ResetPassword: Reset Password
[**send_activation_email**](UsersApi.md#send_activation_email) | **POST** /api/users/{id}/lifecycle/$activate | [EARLY ACCESS] SendActivationEmail: Sends an activation email to the User
[**suspend_user**](UsersApi.md#suspend_user) | **POST** /api/users/{id}/lifecycle/$suspend | [EXPERIMENTAL] SuspendUser: Suspend user
[**unlock_user**](UsersApi.md#unlock_user) | **POST** /api/users/{id}/lifecycle/$unlock | [EARLY ACCESS] UnlockUser: Unlock User
[**update_user**](UsersApi.md#update_user) | **PUT** /api/users/{id} | [EARLY ACCESS] UpdateUser: Update User

Expand Down Expand Up @@ -767,6 +768,80 @@ void (empty response body)

[[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)

# **suspend_user**
> suspend_user(id)
[EXPERIMENTAL] SuspendUser: Suspend user

suspend the user

### Example

* OAuth Authentication (oauth2):
```python
from __future__ import print_function
import time
import finbourne_identity
from finbourne_identity.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to https://fbn-ci.lusid.com/identity
# See configuration.py for a list of all supported configuration parameters.
configuration = finbourne_identity.Configuration(
host = "https://fbn-ci.lusid.com/identity"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure OAuth2 access token for authorization: oauth2
configuration = finbourne_identity.Configuration(
host = "https://fbn-ci.lusid.com/identity"
)
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# Enter a context with an instance of the API client
with finbourne_identity.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = finbourne_identity.UsersApi(api_client)
id = 'id_example' # str | The unique identifier for the User to suspend

try:
# [EXPERIMENTAL] SuspendUser: Suspend user
api_instance.suspend_user(id)
except ApiException as e:
print("Exception when calling UsersApi->suspend_user: %s\n" % e)
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **str**| The unique identifier for the User to suspend |

### Return type

void (empty response body)

### Authorization

[oauth2](../README.md#oauth2)

### 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)

# **unlock_user**
> unlock_user(id)
Expand Down
4 changes: 2 additions & 2 deletions sdk/finbourne_identity/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.0.2454
The version of the OpenAPI document: 0.0.2456
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""


from __future__ import absolute_import

__version__ = "0.0.2454"
__version__ = "0.0.2456"

# import apis into sdk package
from finbourne_identity.api.application_metadata_api import ApplicationMetadataApi
Expand Down
2 changes: 1 addition & 1 deletion sdk/finbourne_identity/__version__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.0.2454"
__version__ = "0.0.2456"
4 changes: 2 additions & 2 deletions sdk/finbourne_identity/api/application_metadata_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.0.2454
The version of the OpenAPI document: 0.0.2456
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -145,7 +145,7 @@ def list_access_controlled_resources_with_http_info(self, **kwargs): # noqa: E5

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down
12 changes: 6 additions & 6 deletions sdk/finbourne_identity/api/applications_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.0.2454
The version of the OpenAPI document: 0.0.2456
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -157,7 +157,7 @@ def create_application_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -309,7 +309,7 @@ def delete_application_with_http_info(self, id, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -465,7 +465,7 @@ def get_application_with_http_info(self, id, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -599,7 +599,7 @@ def list_applications_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -750,7 +750,7 @@ def rotate_application_secrets_with_http_info(self, id, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down
12 changes: 6 additions & 6 deletions sdk/finbourne_identity/api/authentication_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.0.2454
The version of the OpenAPI document: 0.0.2456
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -149,7 +149,7 @@ def get_authentication_information_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -281,7 +281,7 @@ def get_support_access_history_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -413,7 +413,7 @@ def get_support_roles_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -559,7 +559,7 @@ def grant_support_access_with_http_info(self, support_access_request, **kwargs):

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -692,7 +692,7 @@ def invalidate_support_access_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down
6 changes: 3 additions & 3 deletions sdk/finbourne_identity/api/identity_provider_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.0.2454
The version of the OpenAPI document: 0.0.2456
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -160,7 +160,7 @@ def add_scim_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -293,7 +293,7 @@ def remove_scim_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down
6 changes: 3 additions & 3 deletions sdk/finbourne_identity/api/me_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
FINBOURNE Technology # noqa: E501
The version of the OpenAPI document: 0.0.2454
The version of the OpenAPI document: 0.0.2456
Contact: [email protected]
Generated by: https://openapi-generator.tech
"""
Expand Down Expand Up @@ -148,7 +148,7 @@ def get_user_info_with_http_info(self, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down Expand Up @@ -294,7 +294,7 @@ def set_password_with_http_info(self, set_password, **kwargs): # noqa: E501

# set the LUSID header
header_params['X-LUSID-SDK-Language'] = 'Python'
header_params['X-LUSID-SDK-Version'] = '0.0.2454'
header_params['X-LUSID-SDK-Version'] = '0.0.2456'

# Authentication setting
auth_settings = ['oauth2'] # noqa: E501
Expand Down
Loading

0 comments on commit 438704f

Please sign in to comment.