Skip to content

Commit b4b1c69

Browse files
author
Flexify.IO
committed
v2.12.4-SNAPSHOT build 654
1 parent 06e0b6c commit b4b1c69

19 files changed

+367
-64
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,13 @@ Class | Method | HTTP request | Description
116116
*MigrationsControllerApi* | [**restart_slot**](docs/MigrationsControllerApi.md#restart_slot) | **POST** /backend/rest/migrations/{migration-id}/mappings/{mapping-id}/slots/{slot}/actions/restart | Mark migration as hidden
117117
*MigrationsControllerApi* | [**stop_migration**](docs/MigrationsControllerApi.md#stop_migration) | **POST** /backend/rest/migrations/{migration-id}/actions/stop | Stop (cancel) the migration
118118
*OAuthControllerApi* | [**get_app_info**](docs/OAuthControllerApi.md#get_app_info) | **GET** /backend/rest/oauth/app-info | getAppInfo
119+
*PartnerOrganizationsControllerApi* | [**get_all**](docs/PartnerOrganizationsControllerApi.md#get_all) | **GET** /backend/rest/partner/organizations | getAll
119120
*PartnerSignUpCodesControllerApi* | [**create_code**](docs/PartnerSignUpCodesControllerApi.md#create_code) | **POST** /backend/rest/distributor/codes | createCode
120121
*PartnerSignUpCodesControllerApi* | [**create_code1**](docs/PartnerSignUpCodesControllerApi.md#create_code1) | **POST** /backend/rest/partner/codes | createCode
121122
*PartnerSignUpCodesControllerApi* | [**delete_code**](docs/PartnerSignUpCodesControllerApi.md#delete_code) | **DELETE** /backend/rest/distributor/codes/{code} | deleteCode
122123
*PartnerSignUpCodesControllerApi* | [**delete_code1**](docs/PartnerSignUpCodesControllerApi.md#delete_code1) | **DELETE** /backend/rest/partner/codes/{code} | deleteCode
123-
*PartnerSignUpCodesControllerApi* | [**get_all**](docs/PartnerSignUpCodesControllerApi.md#get_all) | **GET** /backend/rest/distributor/codes | getAll
124-
*PartnerSignUpCodesControllerApi* | [**get_all1**](docs/PartnerSignUpCodesControllerApi.md#get_all1) | **GET** /backend/rest/partner/codes | getAll
124+
*PartnerSignUpCodesControllerApi* | [**get_all1**](docs/PartnerSignUpCodesControllerApi.md#get_all1) | **GET** /backend/rest/distributor/codes | getAll
125+
*PartnerSignUpCodesControllerApi* | [**get_all2**](docs/PartnerSignUpCodesControllerApi.md#get_all2) | **GET** /backend/rest/partner/codes | getAll
125126
*PartnerUsersControllerApi* | [**change_user_state**](docs/PartnerUsersControllerApi.md#change_user_state) | **PUT** /backend/rest/distributor/users/{userId}/state | Change user state
126127
*PartnerUsersControllerApi* | [**change_user_state1**](docs/PartnerUsersControllerApi.md#change_user_state1) | **PUT** /backend/rest/partner/users/{userId}/state | Change user state
127128
*PartnerUsersControllerApi* | [**change_user_state_by_external_id**](docs/PartnerUsersControllerApi.md#change_user_state_by_external_id) | **PUT** /backend/rest/distributor/users/external/{externalId}/state | Change user state by external ID

docs/CreateUserRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**external_id** | **str** | An optional external ID that can be later used to reference this user | [optional]
7+
**org_id** | **int** | ID of the organization to assign the user to (or default otherwise) | [optional]
78
**price_list_id** | **int** | ID of the price list to assign to this user (or default otherwise) | [optional]
89
**profile** | [**UserProfile**](UserProfile.md) | New user's profile containing basic information about the user |
910

docs/Organization.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** | | [optional]
7-
**limits** | [**UserConfig**](UserConfig.md) | Default limits for all users in the organization | [optional]
87
**name** | **str** | | [optional]
98

109
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# flexify_api.PartnerOrganizationsControllerApi
2+
3+
All URIs are relative to *https://api.flexify.io*
4+
5+
Method | HTTP request | Description
6+
------------- | ------------- | -------------
7+
[**get_all**](PartnerOrganizationsControllerApi.md#get_all) | **GET** /backend/rest/partner/organizations | getAll
8+
9+
10+
# **get_all**
11+
> list[Organization] get_all()
12+
13+
getAll
14+
15+
### Example
16+
```python
17+
from __future__ import print_function
18+
import time
19+
import flexify_api
20+
from flexify_api.rest import ApiException
21+
from pprint import pprint
22+
23+
# Configure API key authorization: Bearer
24+
configuration = flexify_api.Configuration()
25+
configuration.api_key['Authorization'] = 'YOUR_API_KEY'
26+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
27+
# configuration.api_key_prefix['Authorization'] = 'Bearer'
28+
29+
# create an instance of the API class
30+
api_instance = flexify_api.PartnerOrganizationsControllerApi(flexify_api.ApiClient(configuration))
31+
32+
try:
33+
# getAll
34+
api_response = api_instance.get_all()
35+
pprint(api_response)
36+
except ApiException as e:
37+
print("Exception when calling PartnerOrganizationsControllerApi->get_all: %s\n" % e)
38+
```
39+
40+
### Parameters
41+
This endpoint does not need any parameter.
42+
43+
### Return type
44+
45+
[**list[Organization]**](Organization.md)
46+
47+
### Authorization
48+
49+
[Bearer](../README.md#Bearer)
50+
51+
### HTTP request headers
52+
53+
- **Content-Type**: Not defined
54+
- **Accept**: application/json;charset=UTF-8
55+
56+
[[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)
57+

docs/PartnerSignUpCodesControllerApi.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ Method | HTTP request | Description
88
[**create_code1**](PartnerSignUpCodesControllerApi.md#create_code1) | **POST** /backend/rest/partner/codes | createCode
99
[**delete_code**](PartnerSignUpCodesControllerApi.md#delete_code) | **DELETE** /backend/rest/distributor/codes/{code} | deleteCode
1010
[**delete_code1**](PartnerSignUpCodesControllerApi.md#delete_code1) | **DELETE** /backend/rest/partner/codes/{code} | deleteCode
11-
[**get_all**](PartnerSignUpCodesControllerApi.md#get_all) | **GET** /backend/rest/distributor/codes | getAll
12-
[**get_all1**](PartnerSignUpCodesControllerApi.md#get_all1) | **GET** /backend/rest/partner/codes | getAll
11+
[**get_all1**](PartnerSignUpCodesControllerApi.md#get_all1) | **GET** /backend/rest/distributor/codes | getAll
12+
[**get_all2**](PartnerSignUpCodesControllerApi.md#get_all2) | **GET** /backend/rest/partner/codes | getAll
1313

1414

1515
# **create_code**
@@ -216,8 +216,8 @@ void (empty response body)
216216

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

219-
# **get_all**
220-
> list[SignupCodeRes] get_all()
219+
# **get_all1**
220+
> list[SignupCodeRes] get_all1()
221221
222222
getAll
223223

@@ -240,10 +240,10 @@ api_instance = flexify_api.PartnerSignUpCodesControllerApi(flexify_api.ApiClient
240240

241241
try:
242242
# getAll
243-
api_response = api_instance.get_all()
243+
api_response = api_instance.get_all1()
244244
pprint(api_response)
245245
except ApiException as e:
246-
print("Exception when calling PartnerSignUpCodesControllerApi->get_all: %s\n" % e)
246+
print("Exception when calling PartnerSignUpCodesControllerApi->get_all1: %s\n" % e)
247247
```
248248

249249
### Parameters
@@ -264,8 +264,8 @@ This endpoint does not need any parameter.
264264

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

267-
# **get_all1**
268-
> list[SignupCodeRes] get_all1()
267+
# **get_all2**
268+
> list[SignupCodeRes] get_all2()
269269
270270
getAll
271271

@@ -288,10 +288,10 @@ api_instance = flexify_api.PartnerSignUpCodesControllerApi(flexify_api.ApiClient
288288

289289
try:
290290
# getAll
291-
api_response = api_instance.get_all1()
291+
api_response = api_instance.get_all2()
292292
pprint(api_response)
293293
except ApiException as e:
294-
print("Exception when calling PartnerSignUpCodesControllerApi->get_all1: %s\n" % e)
294+
print("Exception when calling PartnerSignUpCodesControllerApi->get_all2: %s\n" % e)
295295
```
296296

297297
### Parameters

docs/SignupCodeReq.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**code** | **str** | | [optional]
7+
**org_id** | **int** | | [optional]
78
**price_list_id** | **int** | | [optional]
89
**roles** | **list[str]** | | [optional]
910
**single_use** | **bool** | | [optional]

docs/SignupCodeStat.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**available** | **bool** | | [optional]
77
**billing_account** | [**BillingAccount**](BillingAccount.md) | | [optional]
88
**created** | **datetime** | | [optional]
9+
**org** | [**Organization**](Organization.md) | | [optional]
910
**price_list** | [**PriceList**](PriceList.md) | | [optional]
1011
**used_by** | **list[str]** | | [optional]
1112

docs/UpdateUserRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6+
**org_id** | **int** | ID os user's organization | [optional]
67
**profile** | [**UserProfile**](UserProfile.md) | New user's profile containing basic information about the user |
78

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

flexify_api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
from flexify_api.api.log_controller_api import LogControllerApi
2626
from flexify_api.api.migrations_controller_api import MigrationsControllerApi
2727
from flexify_api.api.o_auth_controller_api import OAuthControllerApi
28+
from flexify_api.api.partner_organizations_controller_api import PartnerOrganizationsControllerApi
2829
from flexify_api.api.partner_sign_up_codes_controller_api import PartnerSignUpCodesControllerApi
2930
from flexify_api.api.partner_users_controller_api import PartnerUsersControllerApi
3031
from flexify_api.api.payments_controller_api import PaymentsControllerApi

flexify_api/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
from flexify_api.api.log_controller_api import LogControllerApi
1313
from flexify_api.api.migrations_controller_api import MigrationsControllerApi
1414
from flexify_api.api.o_auth_controller_api import OAuthControllerApi
15+
from flexify_api.api.partner_organizations_controller_api import PartnerOrganizationsControllerApi
1516
from flexify_api.api.partner_sign_up_codes_controller_api import PartnerSignUpCodesControllerApi
1617
from flexify_api.api.partner_users_controller_api import PartnerUsersControllerApi
1718
from flexify_api.api.payments_controller_api import PaymentsControllerApi
Lines changed: 119 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
# coding: utf-8
2+
3+
"""
4+
Flexify.IO User REST API
5+
6+
+ Get API token + Authorize using `Bearer TOKEN` + Enjoy Flexify.IO REST API # noqa: E501
7+
8+
OpenAPI spec version: 2.12.4-SNAPSHOT
9+
Contact: info@flexify.io
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import re # noqa: F401
17+
18+
# python 2 and python 3 compatibility library
19+
import six
20+
21+
from flexify_api.api_client import ApiClient
22+
23+
24+
class PartnerOrganizationsControllerApi(object):
25+
"""NOTE: This class is auto generated by the swagger code generator program.
26+
27+
Do not edit the class manually.
28+
Ref: https://github.com/swagger-api/swagger-codegen
29+
"""
30+
31+
def __init__(self, api_client=None):
32+
if api_client is None:
33+
api_client = ApiClient()
34+
self.api_client = api_client
35+
36+
def get_all(self, **kwargs): # noqa: E501
37+
"""getAll # 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.get_all(async_req=True)
42+
>>> result = thread.get()
43+
44+
:param async_req bool
45+
:return: list[Organization]
46+
If the method is called asynchronously,
47+
returns the request thread.
48+
"""
49+
kwargs['_return_http_data_only'] = True
50+
if kwargs.get('async_req'):
51+
return self.get_all_with_http_info(**kwargs) # noqa: E501
52+
else:
53+
(data) = self.get_all_with_http_info(**kwargs) # noqa: E501
54+
return data
55+
56+
def get_all_with_http_info(self, **kwargs): # noqa: E501
57+
"""getAll # noqa: E501
58+
59+
This method makes a synchronous HTTP request by default. To make an
60+
asynchronous HTTP request, please pass async_req=True
61+
>>> thread = api.get_all_with_http_info(async_req=True)
62+
>>> result = thread.get()
63+
64+
:param async_req bool
65+
:return: list[Organization]
66+
If the method is called asynchronously,
67+
returns the request thread.
68+
"""
69+
70+
all_params = [] # noqa: E501
71+
all_params.append('async_req')
72+
all_params.append('_return_http_data_only')
73+
all_params.append('_preload_content')
74+
all_params.append('_request_timeout')
75+
76+
params = locals()
77+
for key, val in six.iteritems(params['kwargs']):
78+
if key not in all_params:
79+
raise TypeError(
80+
"Got an unexpected keyword argument '%s'"
81+
" to method get_all" % key
82+
)
83+
params[key] = val
84+
del params['kwargs']
85+
86+
collection_formats = {}
87+
88+
path_params = {}
89+
90+
query_params = []
91+
92+
header_params = {}
93+
94+
form_params = []
95+
local_var_files = {}
96+
97+
body_params = None
98+
# HTTP header `Accept`
99+
header_params['Accept'] = self.api_client.select_header_accept(
100+
['application/json;charset=UTF-8']) # noqa: E501
101+
102+
# Authentication setting
103+
auth_settings = ['Bearer'] # noqa: E501
104+
105+
return self.api_client.call_api(
106+
'/backend/rest/partner/organizations', 'GET',
107+
path_params,
108+
query_params,
109+
header_params,
110+
body=body_params,
111+
post_params=form_params,
112+
files=local_var_files,
113+
response_type='list[Organization]', # noqa: E501
114+
auth_settings=auth_settings,
115+
async_req=params.get('async_req'),
116+
_return_http_data_only=params.get('_return_http_data_only'),
117+
_preload_content=params.get('_preload_content', True),
118+
_request_timeout=params.get('_request_timeout'),
119+
collection_formats=collection_formats)

0 commit comments

Comments
 (0)