Skip to content

Commit 1633cde

Browse files
author
Flexify
committed
v2.12.15-SNAPSHOT build 1156
1 parent a93bba8 commit 1633cde

20 files changed

+609
-54
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ Class | Method | HTTP request | Description
7474
------------ | ------------- | ------------- | -------------
7575
*AuthControllerApi* | [**authenticate**](docs/AuthControllerApi.md#authenticate) | **POST** /backend/rest/auth | Generate new access token for the user
7676
*AuthControllerApi* | [**check_token_and_get_user**](docs/AuthControllerApi.md#check_token_and_get_user) | **GET** /backend/rest/auth/user | Check of given token
77-
*AuthControllerApi* | [**get_config**](docs/AuthControllerApi.md#get_config) | **GET** /backend/rest/auth/config | Logout
77+
*AuthControllerApi* | [**get_config**](docs/AuthControllerApi.md#get_config) | **GET** /backend/rest/auth/config | Get public auth config
7878
*AuthControllerApi* | [**logout**](docs/AuthControllerApi.md#logout) | **POST** /backend/rest/auth/logout | Logout
7979
*BillingAccountControllerApi* | [**get_costs_for_current_user_billing_account**](docs/BillingAccountControllerApi.md#get_costs_for_current_user_billing_account) | **GET** /backend/rest/account/costs | Get costs for current user
8080
*BillingAccountControllerApi* | [**get_current_user_billing_account**](docs/BillingAccountControllerApi.md#get_current_user_billing_account) | **GET** /backend/rest/account | Get billing account for current user
@@ -192,6 +192,7 @@ Class | Method | HTTP request | Description
192192
*StoragesControllerApi* | [**delete_bucket**](docs/StoragesControllerApi.md#delete_bucket) | **DELETE** /backend/rest/storage-accounts/{storage-account-id}/buckets/{bucket-id} | Deletes (hides) a bucket/container
193193
*StoragesControllerApi* | [**get_bucket**](docs/StoragesControllerApi.md#get_bucket) | **GET** /backend/rest/storage-accounts/{storage-account-id}/buckets/{bucket-id} | Get detailed stats for the bucket
194194
*StoragesControllerApi* | [**refresh_bucket**](docs/StoragesControllerApi.md#refresh_bucket) | **POST** /backend/rest/storage-accounts/{storage-account-id}/buckets/{bucket-id}/actions/refresh | Refresh statistics of a single bucket
195+
*UserControllerApi* | [**change_microsoft_sso**](docs/UserControllerApi.md#change_microsoft_sso) | **POST** /backend/rest/user/current/sso-microsoft | changeMicrosoftSso
195196
*UserControllerApi* | [**get_current_user**](docs/UserControllerApi.md#get_current_user) | **GET** /backend/rest/user/current | Get details of user corresponding to provided auth token
196197
*UserControllerApi* | [**request_delete**](docs/UserControllerApi.md#request_delete) | **POST** /backend/rest/user/request-delete | requestDelete
197198
*UserControllerApi* | [**request_reset_password**](docs/UserControllerApi.md#request_reset_password) | **POST** /backend/rest/user/request-reset-password | requestResetPassword
@@ -214,6 +215,7 @@ Class | Method | HTTP request | Description
214215
- [BucketStat](docs/BucketStat.md)
215216
- [BucketsRequest](docs/BucketsRequest.md)
216217
- [ChangePasswordRequest](docs/ChangePasswordRequest.md)
218+
- [ChangeSsoMicrosoftRequest](docs/ChangeSsoMicrosoftRequest.md)
217219
- [CleanupStat](docs/CleanupStat.md)
218220
- [CloudLocation](docs/CloudLocation.md)
219221
- [CloudLocationReq](docs/CloudLocationReq.md)

docs/AuthControllerApi.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**authenticate**](AuthControllerApi.md#authenticate) | **POST** /backend/rest/auth | Generate new access token for the user
88
[**check_token_and_get_user**](AuthControllerApi.md#check_token_and_get_user) | **GET** /backend/rest/auth/user | Check of given token
9-
[**get_config**](AuthControllerApi.md#get_config) | **GET** /backend/rest/auth/config | Logout
9+
[**get_config**](AuthControllerApi.md#get_config) | **GET** /backend/rest/auth/config | Get public auth config
1010
[**logout**](AuthControllerApi.md#logout) | **POST** /backend/rest/auth/logout | Logout
1111

1212

@@ -107,7 +107,7 @@ This endpoint does not need any parameter.
107107
# **get_config**
108108
> PublicAuthenticationConfiguration get_config()
109109
110-
Logout
110+
Get public auth config
111111

112112
### Example
113113
```python
@@ -127,7 +127,7 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'
127127
api_instance = flexify_api.AuthControllerApi(flexify_api.ApiClient(configuration))
128128

129129
try:
130-
# Logout
130+
# Get public auth config
131131
api_response = api_instance.get_config()
132132
pprint(api_response)
133133
except ApiException as e:

docs/ChangeSsoMicrosoftRequest.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ChangeSsoMicrosoftRequest
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**sso_email** | **str** | | [optional]
7+
**sso_id** | **str** | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/PublicAuthenticationConfiguration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**configured** | **bool** | Specifics if credentials are configured on a single user mode | [optional]
7-
**single_user_mode** | **bool** | In the single user mode only one user account is possible | [optional]
6+
**microsoft_client_id** | **str** | Required client Id in Microsoft access token | [optional]
7+
**microsoft_scope** | **str** | Required scope in Microsoft access token | [optional]
88

99
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1010

docs/SignUpRequest.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ Name | Type | Description | Notes
88
**profile** | [**UserProfile**](UserProfile.md) | | [optional]
99
**settings** | [**UserSettings**](UserSettings.md) | | [optional]
1010
**signup_code** | **str** | | [optional]
11+
**sso_email** | **str** | | [optional]
12+
**sso_id** | **str** | | [optional]
13+
**sso_type** | **str** | | [optional]
1114

1215
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1316

docs/SignupResult.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**billing_account_id** | **int** | | [optional]
77
**external_id** | **str** | | [optional]
88
**id** | **int** | | [optional]
9+
**sso_microsoft_email** | **str** | | [optional]
910
**username** | **str** | | [optional]
1011

1112
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

docs/User.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ Name | Type | Description | Notes
99
**delete_requested** | **datetime** | If not null - time when the user requested to delete his or her account | [optional]
1010
**external_id** | **str** | External ID of the user, if specified | [optional]
1111
**id** | **int** | User ID in the system | [optional]
12+
**microsoft_oid** | **str** | Microsoft oid | [optional]
13+
**microsoft_user_name** | **str** | Microsoft user name (email) | [optional]
1214
**org** | [**Organization**](Organization.md) | Organization owning this user | [optional]
15+
**password_is_empty** | **bool** | Indicates that this user does not have a password | [optional]
1316
**profile** | [**UserProfile**](UserProfile.md) | User's profile | [optional]
1417
**registered** | **datetime** | Registration time | [optional]
15-
**require_license_terms** | **bool** | Indicates that this user does not have a password and needs to accept EULA | [optional]
18+
**require_license_terms** | **bool** | Indicates that this user does not have a password or SSO and needs to accept EULA | [optional]
1619
**roles** | **list[str]** | Roles associated with this user | [optional]
1720
**settings** | [**UserSettings**](UserSettings.md) | User's settings | [optional]
1821
**sign_up_code** | **str** | Sign up code that the user used when signing up | [optional]

docs/UserControllerApi.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,63 @@ All URIs are relative to *https://api.flexify.io*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**change_microsoft_sso**](UserControllerApi.md#change_microsoft_sso) | **POST** /backend/rest/user/current/sso-microsoft | changeMicrosoftSso
78
[**get_current_user**](UserControllerApi.md#get_current_user) | **GET** /backend/rest/user/current | Get details of user corresponding to provided auth token
89
[**request_delete**](UserControllerApi.md#request_delete) | **POST** /backend/rest/user/request-delete | requestDelete
910
[**request_reset_password**](UserControllerApi.md#request_reset_password) | **POST** /backend/rest/user/request-reset-password | requestResetPassword
1011

1112

13+
# **change_microsoft_sso**
14+
> change_microsoft_sso(request)
15+
16+
changeMicrosoftSso
17+
18+
### Example
19+
```python
20+
from __future__ import print_function
21+
import time
22+
import flexify_api
23+
from flexify_api.rest import ApiException
24+
from pprint import pprint
25+
26+
# Configure API key authorization: Bearer
27+
configuration = flexify_api.Configuration()
28+
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
29+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
30+
# configuration.api_key_prefix['Authorization'] = 'Bearer'
31+
32+
# create an instance of the API class
33+
api_instance = flexify_api.UserControllerApi(flexify_api.ApiClient(configuration))
34+
request = flexify_api.ChangeSsoMicrosoftRequest() # ChangeSsoMicrosoftRequest | request
35+
36+
try:
37+
# changeMicrosoftSso
38+
api_instance.change_microsoft_sso(request)
39+
except ApiException as e:
40+
print("Exception when calling UserControllerApi->change_microsoft_sso: %s\n" % e)
41+
```
42+
43+
### Parameters
44+
45+
Name | Type | Description | Notes
46+
------------- | ------------- | ------------- | -------------
47+
**request** | [**ChangeSsoMicrosoftRequest**](ChangeSsoMicrosoftRequest.md)| request |
48+
49+
### Return type
50+
51+
void (empty response body)
52+
53+
### Authorization
54+
55+
[Bearer](../README.md#Bearer)
56+
57+
### HTTP request headers
58+
59+
- **Content-Type**: application/json
60+
- **Accept**: application/json;charset=UTF-8
61+
62+
[[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)
63+
1264
# **get_current_user**
1365
> User get_current_user(context_path=context_path, locale_country=locale_country, locale_display_country=locale_display_country, locale_display_language=locale_display_language, locale_display_name=locale_display_name, locale_display_script=locale_display_script, locale_display_variant=locale_display_variant, locale_extension_keys=locale_extension_keys, locale_iso3_country=locale_iso3_country, locale_iso3_language=locale_iso3_language, locale_language=locale_language, locale_script=locale_script, locale_unicode_locale_attributes=locale_unicode_locale_attributes, locale_unicode_locale_keys=locale_unicode_locale_keys, locale_variant=locale_variant, remote_user=remote_user, secure=secure, user_principal_name=user_principal_name)
1466

flexify_api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
from flexify_api.models.bucket_stat import BucketStat
5454
from flexify_api.models.buckets_request import BucketsRequest
5555
from flexify_api.models.change_password_request import ChangePasswordRequest
56+
from flexify_api.models.change_sso_microsoft_request import ChangeSsoMicrosoftRequest
5657
from flexify_api.models.cleanup_stat import CleanupStat
5758
from flexify_api.models.cloud_location import CloudLocation
5859
from flexify_api.models.cloud_location_req import CloudLocationReq

flexify_api/api/auth_controller_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ def check_token_and_get_user_with_http_info(self, **kwargs): # noqa: E501
216216
collection_formats=collection_formats)
217217

218218
def get_config(self, **kwargs): # noqa: E501
219-
"""Logout # noqa: E501
219+
"""Get public auth config # noqa: E501
220220
221221
This method makes a synchronous HTTP request by default. To make an
222222
asynchronous HTTP request, please pass async_req=True
@@ -236,7 +236,7 @@ def get_config(self, **kwargs): # noqa: E501
236236
return data
237237

238238
def get_config_with_http_info(self, **kwargs): # noqa: E501
239-
"""Logout # noqa: E501
239+
"""Get public auth config # noqa: E501
240240
241241
This method makes a synchronous HTTP request by default. To make an
242242
asynchronous HTTP request, please pass async_req=True

flexify_api/api/user_controller_api.py

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,103 @@ def __init__(self, api_client=None):
3333
api_client = ApiClient()
3434
self.api_client = api_client
3535

36+
def change_microsoft_sso(self, request, **kwargs): # noqa: E501
37+
"""changeMicrosoftSso # noqa: E501
38+
39+
This method makes a synchronous HTTP request by default. To make an
40+
asynchronous HTTP request, please pass async_req=True
41+
>>> thread = api.change_microsoft_sso(request, async_req=True)
42+
>>> result = thread.get()
43+
44+
:param async_req bool
45+
:param ChangeSsoMicrosoftRequest request: request (required)
46+
:return: None
47+
If the method is called asynchronously,
48+
returns the request thread.
49+
"""
50+
kwargs['_return_http_data_only'] = True
51+
if kwargs.get('async_req'):
52+
return self.change_microsoft_sso_with_http_info(request, **kwargs) # noqa: E501
53+
else:
54+
(data) = self.change_microsoft_sso_with_http_info(request, **kwargs) # noqa: E501
55+
return data
56+
57+
def change_microsoft_sso_with_http_info(self, request, **kwargs): # noqa: E501
58+
"""changeMicrosoftSso # noqa: E501
59+
60+
This method makes a synchronous HTTP request by default. To make an
61+
asynchronous HTTP request, please pass async_req=True
62+
>>> thread = api.change_microsoft_sso_with_http_info(request, async_req=True)
63+
>>> result = thread.get()
64+
65+
:param async_req bool
66+
:param ChangeSsoMicrosoftRequest request: request (required)
67+
:return: None
68+
If the method is called asynchronously,
69+
returns the request thread.
70+
"""
71+
72+
all_params = ['request'] # noqa: E501
73+
all_params.append('async_req')
74+
all_params.append('_return_http_data_only')
75+
all_params.append('_preload_content')
76+
all_params.append('_request_timeout')
77+
78+
params = locals()
79+
for key, val in six.iteritems(params['kwargs']):
80+
if key not in all_params:
81+
raise TypeError(
82+
"Got an unexpected keyword argument '%s'"
83+
" to method change_microsoft_sso" % key
84+
)
85+
params[key] = val
86+
del params['kwargs']
87+
# verify the required parameter 'request' is set
88+
if self.api_client.client_side_validation and ('request' not in params or
89+
params['request'] is None): # noqa: E501
90+
raise ValueError("Missing the required parameter `request` when calling `change_microsoft_sso`") # noqa: E501
91+
92+
collection_formats = {}
93+
94+
path_params = {}
95+
96+
query_params = []
97+
98+
header_params = {}
99+
100+
form_params = []
101+
local_var_files = {}
102+
103+
body_params = None
104+
if 'request' in params:
105+
body_params = params['request']
106+
# HTTP header `Accept`
107+
header_params['Accept'] = self.api_client.select_header_accept(
108+
['application/json;charset=UTF-8']) # noqa: E501
109+
110+
# HTTP header `Content-Type`
111+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
112+
['application/json']) # noqa: E501
113+
114+
# Authentication setting
115+
auth_settings = ['Bearer'] # noqa: E501
116+
117+
return self.api_client.call_api(
118+
'/backend/rest/user/current/sso-microsoft', 'POST',
119+
path_params,
120+
query_params,
121+
header_params,
122+
body=body_params,
123+
post_params=form_params,
124+
files=local_var_files,
125+
response_type=None, # noqa: E501
126+
auth_settings=auth_settings,
127+
async_req=params.get('async_req'),
128+
_return_http_data_only=params.get('_return_http_data_only'),
129+
_preload_content=params.get('_preload_content', True),
130+
_request_timeout=params.get('_request_timeout'),
131+
collection_formats=collection_formats)
132+
36133
def get_current_user(self, **kwargs): # noqa: E501
37134
"""Get details of user corresponding to provided auth token # noqa: E501
38135

flexify_api/models/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
from flexify_api.models.bucket_stat import BucketStat
3131
from flexify_api.models.buckets_request import BucketsRequest
3232
from flexify_api.models.change_password_request import ChangePasswordRequest
33+
from flexify_api.models.change_sso_microsoft_request import ChangeSsoMicrosoftRequest
3334
from flexify_api.models.cleanup_stat import CleanupStat
3435
from flexify_api.models.cloud_location import CloudLocation
3536
from flexify_api.models.cloud_location_req import CloudLocationReq

0 commit comments

Comments
 (0)