Skip to content

Commit d8f1a57

Browse files
Merge pull request #22 from mxenabled/openapi-generator-0.5.2
Generated version 0.5.2
2 parents fb07b21 + c15a339 commit d8f1a57

File tree

8 files changed

+35
-55
lines changed

8 files changed

+35
-55
lines changed

README.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -34,36 +34,33 @@ import mx_platform_python
3434
Please follow the [installation procedure](#installation) and then run the following:
3535

3636
```python
37-
import time
3837
import mx_platform_python
3938
from mx_platform_python.api import mx_platform_api
40-
from mx_platform_python.model.user_response_body import UserResponseBody
41-
from mx_platform_python.model.user_create_request_body import UserCreateRequestBody
42-
from mx_platform_python.model.user_create_request import UserCreateRequest
39+
from mx_platform_python.models import *
4340
from pprint import pprint
4441

4542
configuration = mx_platform_python.Configuration(
46-
# Configure with your Client ID/API Key from https://dashboard.mx.com
47-
username = 'Your Client ID',
48-
password = 'Your API Key',
43+
# Configure with your Client ID/API Key from https://dashboard.mx.com
44+
username = 'Your Client ID',
45+
password = 'Your API Key',
4946

50-
# Configure environment. https://int-api.mx.com for development, https://api.mx.com for production
51-
host = 'https://int-api.mx.com'
47+
# Configure environment. https://int-api.mx.com for development, https://api.mx.com for production
48+
host = 'https://int-api.mx.com'
5249
)
5350

54-
with mx_platform_python.ApiClient(configuration, "Accept", "application/vnd.mx.api.v1+json") as api_client:
55-
api_instance = mx_platform_api.MxPlatformApi(api_client)
56-
user_create_request_body = UserCreateRequestBody(
57-
user = UserCreateRequest(
58-
metadata = "Creating a user!"
59-
)
51+
with mx_platform_python.ApiClient(configuration, 'Accept', 'application/vnd.mx.api.v1+json') as api_client:
52+
api_instance = mx_platform_api.MxPlatformApi(api_client)
53+
request_body = UserCreateRequestBody(
54+
user = UserCreateRequest(
55+
metadata = 'Creating a user!'
6056
)
57+
)
6158

62-
try:
63-
api_response = api_instance.create_user(user_create_request_body)
64-
pprint(api_response)
65-
except mx_platform_python.ApiException as e:
66-
print("Exception when calling MxPlatformApi->create_user: %s\n" % e)
59+
try:
60+
api_response = api_instance.create_user(request_body)
61+
pprint(api_response)
62+
except mx_platform_python.ApiException as e:
63+
print("Exception when calling MxPlatformApi->create_user: %s\n" % e)
6764
```
6865

6966
## Development

docs/MxPlatformApi.md

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -5106,7 +5106,7 @@ Name | Type | Description | Notes
51065106
[[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)
51075107

51085108
# **read_default_category**
5109-
> CategoryResponseBody read_default_category(category_guid, user_guid)
5109+
> CategoryResponseBody read_default_category(category_guid)
51105110
51115111
Read a default category
51125112

@@ -5144,12 +5144,11 @@ with mx_platform_python.ApiClient(configuration) as api_client:
51445144
# Create an instance of the API class
51455145
api_instance = mx_platform_api.MxPlatformApi(api_client)
51465146
category_guid = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874" # str | The unique id for a `category`.
5147-
user_guid = "USR-fa7537f3-48aa-a683-a02a-b18940482f54" # str | The unique id for a `user`.
51485147

51495148
# example passing only required values which don't have defaults set
51505149
try:
51515150
# Read a default category
5152-
api_response = api_instance.read_default_category(category_guid, user_guid)
5151+
api_response = api_instance.read_default_category(category_guid)
51535152
pprint(api_response)
51545153
except mx_platform_python.ApiException as e:
51555154
print("Exception when calling MxPlatformApi->read_default_category: %s\n" % e)
@@ -5161,7 +5160,6 @@ with mx_platform_python.ApiClient(configuration) as api_client:
51615160
Name | Type | Description | Notes
51625161
------------- | ------------- | ------------- | -------------
51635162
**category_guid** | **str**| The unique id for a `category`. |
5164-
**user_guid** | **str**| The unique id for a `user`. |
51655163

51665164
### Return type
51675165

@@ -6384,7 +6382,7 @@ Name | Type | Description | Notes
63846382
[[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)
63856383

63866384
# **request_connect_widget_url**
6387-
> ConnectWidgetResponseBody request_connect_widget_url(user_guid)
6385+
> ConnectWidgetResponseBody request_connect_widget_url(user_guid, connect_widget_request_body)
63886386
63896387
Request connect widget url
63906388

@@ -6437,21 +6435,12 @@ with mx_platform_python.ApiClient(configuration) as api_client:
64376435
update_credentials=False,
64386436
wait_for_full_aggregation=False,
64396437
),
6440-
) # ConnectWidgetRequestBody | Optional config options for WebView (is_mobile_webview, current_institution_code, current_member_guid, update_credentials) (optional)
6441-
6442-
# example passing only required values which don't have defaults set
6443-
try:
6444-
# Request connect widget url
6445-
api_response = api_instance.request_connect_widget_url(user_guid)
6446-
pprint(api_response)
6447-
except mx_platform_python.ApiException as e:
6448-
print("Exception when calling MxPlatformApi->request_connect_widget_url: %s\n" % e)
6438+
) # ConnectWidgetRequestBody | Optional config options for WebView (is_mobile_webview, current_institution_code, current_member_guid, update_credentials)
64496439

64506440
# example passing only required values which don't have defaults set
6451-
# and optional values
64526441
try:
64536442
# Request connect widget url
6454-
api_response = api_instance.request_connect_widget_url(user_guid, connect_widget_request_body=connect_widget_request_body)
6443+
api_response = api_instance.request_connect_widget_url(user_guid, connect_widget_request_body)
64556444
pprint(api_response)
64566445
except mx_platform_python.ApiException as e:
64576446
print("Exception when calling MxPlatformApi->request_connect_widget_url: %s\n" % e)
@@ -6463,7 +6452,7 @@ with mx_platform_python.ApiClient(configuration) as api_client:
64636452
Name | Type | Description | Notes
64646453
------------- | ------------- | ------------- | -------------
64656454
**user_guid** | **str**| The unique id for a `user`. |
6466-
**connect_widget_request_body** | [**ConnectWidgetRequestBody**](ConnectWidgetRequestBody.md)| Optional config options for WebView (is_mobile_webview, current_institution_code, current_member_guid, update_credentials) | [optional]
6455+
**connect_widget_request_body** | [**ConnectWidgetRequestBody**](ConnectWidgetRequestBody.md)| Optional config options for WebView (is_mobile_webview, current_institution_code, current_member_guid, update_credentials) |
64676456

64686457
### Return type
64696458

mx_platform_python/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"""
1111

1212

13-
__version__ = "0.5.1"
13+
__version__ = "0.5.2"
1414

1515
# import ApiClient
1616
from mx_platform_python.api_client import ApiClient

mx_platform_python/api/mx_platform_api.py

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3610,11 +3610,9 @@ def __init__(self, api_client=None):
36103610
params_map={
36113611
'all': [
36123612
'category_guid',
3613-
'user_guid',
36143613
],
36153614
'required': [
36163615
'category_guid',
3617-
'user_guid',
36183616
],
36193617
'nullable': [
36203618
],
@@ -3631,16 +3629,12 @@ def __init__(self, api_client=None):
36313629
'openapi_types': {
36323630
'category_guid':
36333631
(str,),
3634-
'user_guid':
3635-
(str,),
36363632
},
36373633
'attribute_map': {
36383634
'category_guid': 'category_guid',
3639-
'user_guid': 'user_guid',
36403635
},
36413636
'location_map': {
36423637
'category_guid': 'path',
3643-
'user_guid': 'path',
36443638
},
36453639
'collection_format_map': {
36463640
}
@@ -4520,6 +4514,7 @@ def __init__(self, api_client=None):
45204514
],
45214515
'required': [
45224516
'user_guid',
4517+
'connect_widget_request_body',
45234518
],
45244519
'nullable': [
45254520
],
@@ -10198,7 +10193,6 @@ def read_category(
1019810193
def read_default_category(
1019910194
self,
1020010195
category_guid,
10201-
user_guid,
1020210196
**kwargs
1020310197
):
1020410198
"""Read a default category # noqa: E501
@@ -10207,12 +10201,11 @@ def read_default_category(
1020710201
This method makes a synchronous HTTP request by default. To make an
1020810202
asynchronous HTTP request, please pass async_req=True
1020910203
10210-
>>> thread = api.read_default_category(category_guid, user_guid, async_req=True)
10204+
>>> thread = api.read_default_category(category_guid, async_req=True)
1021110205
>>> result = thread.get()
1021210206
1021310207
Args:
1021410208
category_guid (str): The unique id for a `category`.
10215-
user_guid (str): The unique id for a `user`.
1021610209
1021710210
Keyword Args:
1021810211
_return_http_data_only (bool): response data without head status
@@ -10273,8 +10266,6 @@ def read_default_category(
1027310266
kwargs['_host_index'] = kwargs.get('_host_index')
1027410267
kwargs['category_guid'] = \
1027510268
category_guid
10276-
kwargs['user_guid'] = \
10277-
user_guid
1027810269
return self.read_default_category_endpoint.call_with_http_info(**kwargs)
1027910270

1028010271
def read_holding(
@@ -11506,6 +11497,7 @@ def read_user(
1150611497
def request_connect_widget_url(
1150711498
self,
1150811499
user_guid,
11500+
connect_widget_request_body,
1150911501
**kwargs
1151011502
):
1151111503
"""Request connect widget url # noqa: E501
@@ -11514,14 +11506,14 @@ def request_connect_widget_url(
1151411506
This method makes a synchronous HTTP request by default. To make an
1151511507
asynchronous HTTP request, please pass async_req=True
1151611508
11517-
>>> thread = api.request_connect_widget_url(user_guid, async_req=True)
11509+
>>> thread = api.request_connect_widget_url(user_guid, connect_widget_request_body, async_req=True)
1151811510
>>> result = thread.get()
1151911511
1152011512
Args:
1152111513
user_guid (str): The unique id for a `user`.
11514+
connect_widget_request_body (ConnectWidgetRequestBody): Optional config options for WebView (is_mobile_webview, current_institution_code, current_member_guid, update_credentials)
1152211515
1152311516
Keyword Args:
11524-
connect_widget_request_body (ConnectWidgetRequestBody): Optional config options for WebView (is_mobile_webview, current_institution_code, current_member_guid, update_credentials). [optional]
1152511517
_return_http_data_only (bool): response data without head status
1152611518
code and headers. Default is True.
1152711519
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -11580,6 +11572,8 @@ def request_connect_widget_url(
1158011572
kwargs['_host_index'] = kwargs.get('_host_index')
1158111573
kwargs['user_guid'] = \
1158211574
user_guid
11575+
kwargs['connect_widget_request_body'] = \
11576+
connect_widget_request_body
1158311577
return self.request_connect_widget_url_endpoint.call_with_http_info(**kwargs)
1158411578

1158511579
def request_o_auth_window_uri(

mx_platform_python/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7676
self.default_headers[header_name] = header_value
7777
self.cookie = cookie
7878
# Set default User-Agent.
79-
self.user_agent = 'OpenAPI-Generator/0.5.1/python'
79+
self.user_agent = 'OpenAPI-Generator/0.5.2/python'
8080

8181
def __enter__(self):
8282
return self

mx_platform_python/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ def to_debug_report(self):
404404
"OS: {env}\n"\
405405
"Python Version: {pyversion}\n"\
406406
"Version of the API: 0.1.0\n"\
407-
"SDK Package Version: 0.5.1".\
407+
"SDK Package Version: 0.5.2".\
408408
format(env=sys.platform, pyversion=sys.version)
409409

410410
def get_host_settings(self):

openapi/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
22
packageName: mx_platform_python
33
packageUrl: https://pypi.org/project/mx-platform-python
4-
packageVersion: 0.5.1
4+
packageVersion: 0.5.2
55
projectName: mx-platform-python

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from setuptools import setup, find_packages # noqa: H301
1212

1313
NAME = "mx-platform-python"
14-
VERSION = "0.5.1"
14+
VERSION = "0.5.2"
1515
# To install the library, run the following
1616
#
1717
# python setup.py install

0 commit comments

Comments
 (0)