Skip to content

Commit 7e96950

Browse files
author
Flexify.IO
committed
v2.12.10.hf3 build 904
1 parent c18518f commit 7e96950

File tree

233 files changed

+751
-504
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+751
-504
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ By unlocking your application from the specific cloud vendor or protocol, you fi
77
+ Get API token
88
+ Enjoy Flexify.IO REST API
99

10-
- API version: 2.12.11-SNAPSHOT
10+
- API version: 2.12.10.hf3
1111

1212
## Requirements
1313

@@ -73,7 +73,7 @@ All URIs are relative to *https://api.flexify.io*
7373
Class | Method | HTTP request | Description
7474
------------ | ------------- | ------------- | -------------
7575
*AuthControllerApi* | [**authenticate**](docs/AuthControllerApi.md#authenticate) | **POST** /backend/rest/auth | Generate new access token for the user
76-
*AuthControllerApi* | [**check_token_and_get_user**](docs/AuthControllerApi.md#check_token_and_get_user) | **GET** /backend/rest/auth/user | Check of given token
76+
*AuthControllerApi* | [**authorize**](docs/AuthControllerApi.md#authorize) | **POST** /backend/rest/auth/authorize | Authorization check of given token
7777
*AuthControllerApi* | [**get_config**](docs/AuthControllerApi.md#get_config) | **GET** /backend/rest/auth/config | Logout
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
@@ -206,9 +206,9 @@ Class | Method | HTTP request | Description
206206
- [AddMigrationRequestMapping](docs/AddMigrationRequestMapping.md)
207207
- [AddStorageAccountRequest](docs/AddStorageAccountRequest.md)
208208
- [AuthAppInfo](docs/AuthAppInfo.md)
209-
- [AuthCheckTokenAndGetUserResponse](docs/AuthCheckTokenAndGetUserResponse.md)
210209
- [AuthenticationRequest](docs/AuthenticationRequest.md)
211210
- [AuthenticationResponse](docs/AuthenticationResponse.md)
211+
- [AuthorizationResponse](docs/AuthorizationResponse.md)
212212
- [BillingAccount](docs/BillingAccount.md)
213213
- [Bucket](docs/Bucket.md)
214214
- [BucketStat](docs/BucketStat.md)
@@ -231,6 +231,7 @@ Class | Method | HTTP request | Description
231231
- [EndpointStorageAccountReq](docs/EndpointStorageAccountReq.md)
232232
- [EndpointStorageAccountRes](docs/EndpointStorageAccountRes.md)
233233
- [EndpointStorageAccountSettings](docs/EndpointStorageAccountSettings.md)
234+
- [GrantedAuthority](docs/GrantedAuthority.md)
234235
- [IdResponse](docs/IdResponse.md)
235236
- [IdsList](docs/IdsList.md)
236237
- [ImpersonateUser](docs/ImpersonateUser.md)

docs/AuthControllerApi.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ All URIs are relative to *https://api.flexify.io*
55
Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**authenticate**](AuthControllerApi.md#authenticate) | **POST** /backend/rest/auth | Generate new access token for the user
8-
[**check_token_and_get_user**](AuthControllerApi.md#check_token_and_get_user) | **GET** /backend/rest/auth/user | Check of given token
8+
[**authorize**](AuthControllerApi.md#authorize) | **POST** /backend/rest/auth/authorize | Authorization check of given token
99
[**get_config**](AuthControllerApi.md#get_config) | **GET** /backend/rest/auth/config | Logout
1010
[**logout**](AuthControllerApi.md#logout) | **POST** /backend/rest/auth/logout | Logout
1111

1212

1313
# **authenticate**
14-
> AuthenticationResponse authenticate(authentication_request)
14+
> object authenticate(authentication_request)
1515
1616
Generate new access token for the user
1717

@@ -43,7 +43,7 @@ Name | Type | Description | Notes
4343

4444
### Return type
4545

46-
[**AuthenticationResponse**](AuthenticationResponse.md)
46+
**object**
4747

4848
### Authorization
4949

@@ -56,10 +56,10 @@ No authorization required
5656

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

59-
# **check_token_and_get_user**
60-
> AuthCheckTokenAndGetUserResponse check_token_and_get_user()
59+
# **authorize**
60+
> object authorize()
6161
62-
Check of given token
62+
Authorization check of given token
6363

6464
### Example
6565
```python
@@ -79,27 +79,27 @@ configuration.api_key['Authorization'] = 'YOUR_API_KEY'
7979
api_instance = flexify_api.AuthControllerApi(flexify_api.ApiClient(configuration))
8080

8181
try:
82-
# Check of given token
83-
api_response = api_instance.check_token_and_get_user()
82+
# Authorization check of given token
83+
api_response = api_instance.authorize()
8484
pprint(api_response)
8585
except ApiException as e:
86-
print("Exception when calling AuthControllerApi->check_token_and_get_user: %s\n" % e)
86+
print("Exception when calling AuthControllerApi->authorize: %s\n" % e)
8787
```
8888

8989
### Parameters
9090
This endpoint does not need any parameter.
9191

9292
### Return type
9393

94-
[**AuthCheckTokenAndGetUserResponse**](AuthCheckTokenAndGetUserResponse.md)
94+
**object**
9595

9696
### Authorization
9797

9898
[Bearer](../README.md#Bearer)
9999

100100
### HTTP request headers
101101

102-
- **Content-Type**: Not defined
102+
- **Content-Type**: application/json
103103
- **Accept**: */*
104104

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

docs/AuthorizationResponse.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# AuthorizationResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**account_id** | **int** | |
7+
**account_non_expired** | **bool** | | [optional]
8+
**account_non_locked** | **bool** | | [optional]
9+
**authorities** | [**list[GrantedAuthority]**](GrantedAuthority.md) | | [optional]
10+
**credentials_non_expired** | **bool** | | [optional]
11+
**enabled** | **bool** | | [optional]
12+
**user_id** | **int** | |
13+
**username** | **str** | |
14+
15+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
16+
17+

docs/AuthCheckTokenAndGetUserResponse.md renamed to docs/GrantedAuthority.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
# AuthCheckTokenAndGetUserResponse
1+
# GrantedAuthority
22

33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**roles** | **list[str]** | | [optional]
7-
**user_id** | **int** | |
8-
**username** | **str** | |
6+
**authority** | **str** | | [optional]
97

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

docs/StorageAccount.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**id** | **int** | Id of the storage account | [optional]
7-
**is_sas** | **bool** | | [optional]
87
**private_url** | **str** | URL used by engines to access the cloud | [optional]
98
**provider** | [**StorageProvider**](StorageProvider.md) | Link to the storage provider (Amazon, Azure, etc) | [optional]
109
**settings** | [**StorageAccountSettingsRes**](StorageAccountSettingsRes.md) | Configuration of this storage account | [optional]

docs/StorageAccountWithBuckets.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**buckets** | [**list[Bucket]**](Bucket.md) | Buckets that we have cached for this storage account | [optional]
77
**id** | **int** | Id of the storage account | [optional]
8-
**is_sas** | **bool** | | [optional]
98
**private_url** | **str** | URL used by engines to access the cloud | [optional]
109
**provider** | [**StorageProvider**](StorageProvider.md) | Link to the storage provider (Amazon, Azure, etc) | [optional]
1110
**settings** | [**StorageAccountSettingsRes**](StorageAccountSettingsRes.md) | Configuration of this storage account | [optional]

flexify_api/__init__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
99
10-
OpenAPI spec version: 2.12.11-SNAPSHOT
10+
OpenAPI spec version: 2.12.10.hf3
1111
Contact: info@flexify.io
1212
Generated by: https://github.com/swagger-api/swagger-codegen.git
1313
"""
@@ -45,9 +45,9 @@
4545
from flexify_api.models.add_migration_request_mapping import AddMigrationRequestMapping
4646
from flexify_api.models.add_storage_account_request import AddStorageAccountRequest
4747
from flexify_api.models.auth_app_info import AuthAppInfo
48-
from flexify_api.models.auth_check_token_and_get_user_response import AuthCheckTokenAndGetUserResponse
4948
from flexify_api.models.authentication_request import AuthenticationRequest
5049
from flexify_api.models.authentication_response import AuthenticationResponse
50+
from flexify_api.models.authorization_response import AuthorizationResponse
5151
from flexify_api.models.billing_account import BillingAccount
5252
from flexify_api.models.bucket import Bucket
5353
from flexify_api.models.bucket_stat import BucketStat
@@ -70,6 +70,7 @@
7070
from flexify_api.models.endpoint_storage_account_req import EndpointStorageAccountReq
7171
from flexify_api.models.endpoint_storage_account_res import EndpointStorageAccountRes
7272
from flexify_api.models.endpoint_storage_account_settings import EndpointStorageAccountSettings
73+
from flexify_api.models.granted_authority import GrantedAuthority
7374
from flexify_api.models.id_response import IdResponse
7475
from flexify_api.models.ids_list import IdsList
7576
from flexify_api.models.impersonate_user import ImpersonateUser

flexify_api/api/auth_controller_api.py

Lines changed: 21 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -43,7 +43,7 @@ def authenticate(self, authentication_request, **kwargs): # noqa: E501
4343
4444
:param async_req bool
4545
:param AuthenticationRequest authentication_request: authenticationRequest (required)
46-
:return: AuthenticationResponse
46+
:return: object
4747
If the method is called asynchronously,
4848
returns the request thread.
4949
"""
@@ -64,7 +64,7 @@ def authenticate_with_http_info(self, authentication_request, **kwargs): # noqa
6464
6565
:param async_req bool
6666
:param AuthenticationRequest authentication_request: authenticationRequest (required)
67-
:return: AuthenticationResponse
67+
:return: object
6868
If the method is called asynchronously,
6969
returns the request thread.
7070
"""
@@ -122,44 +122,44 @@ def authenticate_with_http_info(self, authentication_request, **kwargs): # noqa
122122
body=body_params,
123123
post_params=form_params,
124124
files=local_var_files,
125-
response_type='AuthenticationResponse', # noqa: E501
125+
response_type='object', # noqa: E501
126126
auth_settings=auth_settings,
127127
async_req=params.get('async_req'),
128128
_return_http_data_only=params.get('_return_http_data_only'),
129129
_preload_content=params.get('_preload_content', True),
130130
_request_timeout=params.get('_request_timeout'),
131131
collection_formats=collection_formats)
132132

133-
def check_token_and_get_user(self, **kwargs): # noqa: E501
134-
"""Check of given token # noqa: E501
133+
def authorize(self, **kwargs): # noqa: E501
134+
"""Authorization check of given token # noqa: E501
135135
136136
This method makes a synchronous HTTP request by default. To make an
137137
asynchronous HTTP request, please pass async_req=True
138-
>>> thread = api.check_token_and_get_user(async_req=True)
138+
>>> thread = api.authorize(async_req=True)
139139
>>> result = thread.get()
140140
141141
:param async_req bool
142-
:return: AuthCheckTokenAndGetUserResponse
142+
:return: object
143143
If the method is called asynchronously,
144144
returns the request thread.
145145
"""
146146
kwargs['_return_http_data_only'] = True
147147
if kwargs.get('async_req'):
148-
return self.check_token_and_get_user_with_http_info(**kwargs) # noqa: E501
148+
return self.authorize_with_http_info(**kwargs) # noqa: E501
149149
else:
150-
(data) = self.check_token_and_get_user_with_http_info(**kwargs) # noqa: E501
150+
(data) = self.authorize_with_http_info(**kwargs) # noqa: E501
151151
return data
152152

153-
def check_token_and_get_user_with_http_info(self, **kwargs): # noqa: E501
154-
"""Check of given token # noqa: E501
153+
def authorize_with_http_info(self, **kwargs): # noqa: E501
154+
"""Authorization check of given token # noqa: E501
155155
156156
This method makes a synchronous HTTP request by default. To make an
157157
asynchronous HTTP request, please pass async_req=True
158-
>>> thread = api.check_token_and_get_user_with_http_info(async_req=True)
158+
>>> thread = api.authorize_with_http_info(async_req=True)
159159
>>> result = thread.get()
160160
161161
:param async_req bool
162-
:return: AuthCheckTokenAndGetUserResponse
162+
:return: object
163163
If the method is called asynchronously,
164164
returns the request thread.
165165
"""
@@ -175,7 +175,7 @@ def check_token_and_get_user_with_http_info(self, **kwargs): # noqa: E501
175175
if key not in all_params:
176176
raise TypeError(
177177
"Got an unexpected keyword argument '%s'"
178-
" to method check_token_and_get_user" % key
178+
" to method authorize" % key
179179
)
180180
params[key] = val
181181
del params['kwargs']
@@ -196,18 +196,22 @@ def check_token_and_get_user_with_http_info(self, **kwargs): # noqa: E501
196196
header_params['Accept'] = self.api_client.select_header_accept(
197197
['*/*']) # noqa: E501
198198

199+
# HTTP header `Content-Type`
200+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
201+
['application/json']) # noqa: E501
202+
199203
# Authentication setting
200204
auth_settings = ['Bearer'] # noqa: E501
201205

202206
return self.api_client.call_api(
203-
'/backend/rest/auth/user', 'GET',
207+
'/backend/rest/auth/authorize', 'POST',
204208
path_params,
205209
query_params,
206210
header_params,
207211
body=body_params,
208212
post_params=form_params,
209213
files=local_var_files,
210-
response_type='AuthCheckTokenAndGetUserResponse', # noqa: E501
214+
response_type='object', # noqa: E501
211215
auth_settings=auth_settings,
212216
async_req=params.get('async_req'),
213217
_return_http_data_only=params.get('_return_http_data_only'),

flexify_api/api/billing_account_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/cloud_locations_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/cost_estimate_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/endpoints_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/impersonation_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/log_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/migrations_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/o_auth_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/partner_organizations_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

flexify_api/api/partner_sign_up_codes_controller_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
77
8-
OpenAPI spec version: 2.12.11-SNAPSHOT
8+
OpenAPI spec version: 2.12.10.hf3
99
Contact: info@flexify.io
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

0 commit comments

Comments
 (0)