wds-client 0.2.87__py3-none-any.whl → 0.2.88__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- wds_client/__init__.py +3 -1
- wds_client/api/__init__.py +1 -0
- wds_client/api/cloning_api.py +149 -0
- wds_client/api_client.py +1 -1
- wds_client/configuration.py +1 -1
- wds_client/models/__init__.py +1 -0
- wds_client/models/backup_response.py +150 -0
- {wds_client-0.2.87.dist-info → wds_client-0.2.88.dist-info}/METADATA +1 -1
- {wds_client-0.2.87.dist-info → wds_client-0.2.88.dist-info}/RECORD +11 -9
- {wds_client-0.2.87.dist-info → wds_client-0.2.88.dist-info}/WHEEL +0 -0
- {wds_client-0.2.87.dist-info → wds_client-0.2.88.dist-info}/top_level.txt +0 -0
wds_client/__init__.py
CHANGED
@@ -14,9 +14,10 @@
|
|
14
14
|
|
15
15
|
from __future__ import absolute_import
|
16
16
|
|
17
|
-
__version__ = "0.2.
|
17
|
+
__version__ = "0.2.88"
|
18
18
|
|
19
19
|
# import apis into sdk package
|
20
|
+
from wds_client.api.cloning_api import CloningApi
|
20
21
|
from wds_client.api.general_wds_information_api import GeneralWDSInformationApi
|
21
22
|
from wds_client.api.instances_api import InstancesApi
|
22
23
|
from wds_client.api.records_api import RecordsApi
|
@@ -33,6 +34,7 @@ from wds_client.exceptions import ApiKeyError
|
|
33
34
|
from wds_client.exceptions import ApiException
|
34
35
|
# import models into sdk package
|
35
36
|
from wds_client.models.attribute_schema import AttributeSchema
|
37
|
+
from wds_client.models.backup_response import BackupResponse
|
36
38
|
from wds_client.models.batch_operation import BatchOperation
|
37
39
|
from wds_client.models.batch_record_request import BatchRecordRequest
|
38
40
|
from wds_client.models.batch_response import BatchResponse
|
wds_client/api/__init__.py
CHANGED
@@ -3,6 +3,7 @@ from __future__ import absolute_import
|
|
3
3
|
# flake8: noqa
|
4
4
|
|
5
5
|
# import apis into api package
|
6
|
+
from wds_client.api.cloning_api import CloningApi
|
6
7
|
from wds_client.api.general_wds_information_api import GeneralWDSInformationApi
|
7
8
|
from wds_client.api.instances_api import InstancesApi
|
8
9
|
from wds_client.api.records_api import RecordsApi
|
@@ -0,0 +1,149 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Workspace Data Service
|
5
|
+
|
6
|
+
This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v0.2
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
from __future__ import absolute_import
|
14
|
+
|
15
|
+
import re # noqa: F401
|
16
|
+
|
17
|
+
# python 2 and python 3 compatibility library
|
18
|
+
import six
|
19
|
+
|
20
|
+
from wds_client.api_client import ApiClient
|
21
|
+
from wds_client.exceptions import ( # noqa: F401
|
22
|
+
ApiTypeError,
|
23
|
+
ApiValueError
|
24
|
+
)
|
25
|
+
|
26
|
+
|
27
|
+
class CloningApi(object):
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
29
|
+
Ref: https://openapi-generator.tech
|
30
|
+
|
31
|
+
Do not edit the class manually.
|
32
|
+
"""
|
33
|
+
|
34
|
+
def __init__(self, api_client=None):
|
35
|
+
if api_client is None:
|
36
|
+
api_client = ApiClient()
|
37
|
+
self.api_client = api_client
|
38
|
+
|
39
|
+
def create_backup(self, v, **kwargs): # noqa: E501
|
40
|
+
"""Create a backup of a PostgreSQL instance and upload it to Azure Blob Storage # noqa: E501
|
41
|
+
|
42
|
+
This method makes a synchronous HTTP request by default. To make an
|
43
|
+
asynchronous HTTP request, please pass async_req=True
|
44
|
+
>>> thread = api.create_backup(v, async_req=True)
|
45
|
+
>>> result = thread.get()
|
46
|
+
|
47
|
+
:param async_req bool: execute request asynchronously
|
48
|
+
:param str v: API version (required)
|
49
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
50
|
+
be returned without reading/decoding response
|
51
|
+
data. Default is True.
|
52
|
+
:param _request_timeout: timeout setting for this request. If one
|
53
|
+
number provided, it will be total request
|
54
|
+
timeout. It can also be a pair (tuple) of
|
55
|
+
(connection, read) timeouts.
|
56
|
+
:return: BackupResponse
|
57
|
+
If the method is called asynchronously,
|
58
|
+
returns the request thread.
|
59
|
+
"""
|
60
|
+
kwargs['_return_http_data_only'] = True
|
61
|
+
return self.create_backup_with_http_info(v, **kwargs) # noqa: E501
|
62
|
+
|
63
|
+
def create_backup_with_http_info(self, v, **kwargs): # noqa: E501
|
64
|
+
"""Create a backup of a PostgreSQL instance and upload it to Azure Blob Storage # noqa: E501
|
65
|
+
|
66
|
+
This method makes a synchronous HTTP request by default. To make an
|
67
|
+
asynchronous HTTP request, please pass async_req=True
|
68
|
+
>>> thread = api.create_backup_with_http_info(v, async_req=True)
|
69
|
+
>>> result = thread.get()
|
70
|
+
|
71
|
+
:param async_req bool: execute request asynchronously
|
72
|
+
:param str v: API version (required)
|
73
|
+
:param _return_http_data_only: response data without head status code
|
74
|
+
and headers
|
75
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
76
|
+
be returned without reading/decoding response
|
77
|
+
data. Default is True.
|
78
|
+
:param _request_timeout: timeout setting for this request. If one
|
79
|
+
number provided, it will be total request
|
80
|
+
timeout. It can also be a pair (tuple) of
|
81
|
+
(connection, read) timeouts.
|
82
|
+
:return: tuple(BackupResponse, status_code(int), headers(HTTPHeaderDict))
|
83
|
+
If the method is called asynchronously,
|
84
|
+
returns the request thread.
|
85
|
+
"""
|
86
|
+
|
87
|
+
local_var_params = locals()
|
88
|
+
|
89
|
+
all_params = [
|
90
|
+
'v'
|
91
|
+
]
|
92
|
+
all_params.extend(
|
93
|
+
[
|
94
|
+
'async_req',
|
95
|
+
'_return_http_data_only',
|
96
|
+
'_preload_content',
|
97
|
+
'_request_timeout'
|
98
|
+
]
|
99
|
+
)
|
100
|
+
|
101
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
102
|
+
if key not in all_params:
|
103
|
+
raise ApiTypeError(
|
104
|
+
"Got an unexpected keyword argument '%s'"
|
105
|
+
" to method create_backup" % key
|
106
|
+
)
|
107
|
+
local_var_params[key] = val
|
108
|
+
del local_var_params['kwargs']
|
109
|
+
# verify the required parameter 'v' is set
|
110
|
+
if self.api_client.client_side_validation and ('v' not in local_var_params or # noqa: E501
|
111
|
+
local_var_params['v'] is None): # noqa: E501
|
112
|
+
raise ApiValueError("Missing the required parameter `v` when calling `create_backup`") # noqa: E501
|
113
|
+
|
114
|
+
collection_formats = {}
|
115
|
+
|
116
|
+
path_params = {}
|
117
|
+
if 'v' in local_var_params:
|
118
|
+
path_params['v'] = local_var_params['v'] # noqa: E501
|
119
|
+
|
120
|
+
query_params = []
|
121
|
+
|
122
|
+
header_params = {}
|
123
|
+
|
124
|
+
form_params = []
|
125
|
+
local_var_files = {}
|
126
|
+
|
127
|
+
body_params = None
|
128
|
+
# HTTP header `Accept`
|
129
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
130
|
+
['application/json']) # noqa: E501
|
131
|
+
|
132
|
+
# Authentication setting
|
133
|
+
auth_settings = [] # noqa: E501
|
134
|
+
|
135
|
+
return self.api_client.call_api(
|
136
|
+
'/backup/{v}', 'POST',
|
137
|
+
path_params,
|
138
|
+
query_params,
|
139
|
+
header_params,
|
140
|
+
body=body_params,
|
141
|
+
post_params=form_params,
|
142
|
+
files=local_var_files,
|
143
|
+
response_type='BackupResponse', # noqa: E501
|
144
|
+
auth_settings=auth_settings,
|
145
|
+
async_req=local_var_params.get('async_req'),
|
146
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
147
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
148
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
149
|
+
collection_formats=collection_formats)
|
wds_client/api_client.py
CHANGED
@@ -78,7 +78,7 @@ class ApiClient(object):
|
|
78
78
|
self.default_headers[header_name] = header_value
|
79
79
|
self.cookie = cookie
|
80
80
|
# Set default User-Agent.
|
81
|
-
self.user_agent = 'OpenAPI-Generator/0.2.
|
81
|
+
self.user_agent = 'OpenAPI-Generator/0.2.88/python'
|
82
82
|
self.client_side_validation = configuration.client_side_validation
|
83
83
|
|
84
84
|
def __enter__(self):
|
wds_client/configuration.py
CHANGED
@@ -336,7 +336,7 @@ class Configuration(object):
|
|
336
336
|
"OS: {env}\n"\
|
337
337
|
"Python Version: {pyversion}\n"\
|
338
338
|
"Version of the API: v0.2\n"\
|
339
|
-
"SDK Package Version: 0.2.
|
339
|
+
"SDK Package Version: 0.2.88".\
|
340
340
|
format(env=sys.platform, pyversion=sys.version)
|
341
341
|
|
342
342
|
def get_host_settings(self):
|
wds_client/models/__init__.py
CHANGED
@@ -15,6 +15,7 @@ from __future__ import absolute_import
|
|
15
15
|
|
16
16
|
# import models into model package
|
17
17
|
from wds_client.models.attribute_schema import AttributeSchema
|
18
|
+
from wds_client.models.backup_response import BackupResponse
|
18
19
|
from wds_client.models.batch_operation import BatchOperation
|
19
20
|
from wds_client.models.batch_record_request import BatchRecordRequest
|
20
21
|
from wds_client.models.batch_response import BatchResponse
|
@@ -0,0 +1,150 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
"""
|
4
|
+
Workspace Data Service
|
5
|
+
|
6
|
+
This page lists current APIs. As of v0.2, all APIs are subject to change without notice. # noqa: E501
|
7
|
+
|
8
|
+
The version of the OpenAPI document: v0.2
|
9
|
+
Generated by: https://openapi-generator.tech
|
10
|
+
"""
|
11
|
+
|
12
|
+
|
13
|
+
import pprint
|
14
|
+
import re # noqa: F401
|
15
|
+
|
16
|
+
import six
|
17
|
+
|
18
|
+
from wds_client.configuration import Configuration
|
19
|
+
|
20
|
+
|
21
|
+
class BackupResponse(object):
|
22
|
+
"""NOTE: This class is auto generated by OpenAPI Generator.
|
23
|
+
Ref: https://openapi-generator.tech
|
24
|
+
|
25
|
+
Do not edit the class manually.
|
26
|
+
"""
|
27
|
+
|
28
|
+
"""
|
29
|
+
Attributes:
|
30
|
+
openapi_types (dict): The key is attribute name
|
31
|
+
and the value is attribute type.
|
32
|
+
attribute_map (dict): The key is attribute name
|
33
|
+
and the value is json key in definition.
|
34
|
+
"""
|
35
|
+
openapi_types = {
|
36
|
+
'backup_status': 'bool',
|
37
|
+
'message': 'str'
|
38
|
+
}
|
39
|
+
|
40
|
+
attribute_map = {
|
41
|
+
'backup_status': 'backupStatus',
|
42
|
+
'message': 'message'
|
43
|
+
}
|
44
|
+
|
45
|
+
def __init__(self, backup_status=None, message=None, local_vars_configuration=None): # noqa: E501
|
46
|
+
"""BackupResponse - a model defined in OpenAPI""" # noqa: E501
|
47
|
+
if local_vars_configuration is None:
|
48
|
+
local_vars_configuration = Configuration()
|
49
|
+
self.local_vars_configuration = local_vars_configuration
|
50
|
+
|
51
|
+
self._backup_status = None
|
52
|
+
self._message = None
|
53
|
+
self.discriminator = None
|
54
|
+
|
55
|
+
if backup_status is not None:
|
56
|
+
self.backup_status = backup_status
|
57
|
+
if message is not None:
|
58
|
+
self.message = message
|
59
|
+
|
60
|
+
@property
|
61
|
+
def backup_status(self):
|
62
|
+
"""Gets the backup_status of this BackupResponse. # noqa: E501
|
63
|
+
|
64
|
+
status of backup # noqa: E501
|
65
|
+
|
66
|
+
:return: The backup_status of this BackupResponse. # noqa: E501
|
67
|
+
:rtype: bool
|
68
|
+
"""
|
69
|
+
return self._backup_status
|
70
|
+
|
71
|
+
@backup_status.setter
|
72
|
+
def backup_status(self, backup_status):
|
73
|
+
"""Sets the backup_status of this BackupResponse.
|
74
|
+
|
75
|
+
status of backup # noqa: E501
|
76
|
+
|
77
|
+
:param backup_status: The backup_status of this BackupResponse. # noqa: E501
|
78
|
+
:type: bool
|
79
|
+
"""
|
80
|
+
|
81
|
+
self._backup_status = backup_status
|
82
|
+
|
83
|
+
@property
|
84
|
+
def message(self):
|
85
|
+
"""Gets the message of this BackupResponse. # noqa: E501
|
86
|
+
|
87
|
+
message regarding backup status # noqa: E501
|
88
|
+
|
89
|
+
:return: The message of this BackupResponse. # noqa: E501
|
90
|
+
:rtype: str
|
91
|
+
"""
|
92
|
+
return self._message
|
93
|
+
|
94
|
+
@message.setter
|
95
|
+
def message(self, message):
|
96
|
+
"""Sets the message of this BackupResponse.
|
97
|
+
|
98
|
+
message regarding backup status # noqa: E501
|
99
|
+
|
100
|
+
:param message: The message of this BackupResponse. # noqa: E501
|
101
|
+
:type: str
|
102
|
+
"""
|
103
|
+
|
104
|
+
self._message = message
|
105
|
+
|
106
|
+
def to_dict(self):
|
107
|
+
"""Returns the model properties as a dict"""
|
108
|
+
result = {}
|
109
|
+
|
110
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
111
|
+
value = getattr(self, attr)
|
112
|
+
if isinstance(value, list):
|
113
|
+
result[attr] = list(map(
|
114
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
115
|
+
value
|
116
|
+
))
|
117
|
+
elif hasattr(value, "to_dict"):
|
118
|
+
result[attr] = value.to_dict()
|
119
|
+
elif isinstance(value, dict):
|
120
|
+
result[attr] = dict(map(
|
121
|
+
lambda item: (item[0], item[1].to_dict())
|
122
|
+
if hasattr(item[1], "to_dict") else item,
|
123
|
+
value.items()
|
124
|
+
))
|
125
|
+
else:
|
126
|
+
result[attr] = value
|
127
|
+
|
128
|
+
return result
|
129
|
+
|
130
|
+
def to_str(self):
|
131
|
+
"""Returns the string representation of the model"""
|
132
|
+
return pprint.pformat(self.to_dict())
|
133
|
+
|
134
|
+
def __repr__(self):
|
135
|
+
"""For `print` and `pprint`"""
|
136
|
+
return self.to_str()
|
137
|
+
|
138
|
+
def __eq__(self, other):
|
139
|
+
"""Returns true if both objects are equal"""
|
140
|
+
if not isinstance(other, BackupResponse):
|
141
|
+
return False
|
142
|
+
|
143
|
+
return self.to_dict() == other.to_dict()
|
144
|
+
|
145
|
+
def __ne__(self, other):
|
146
|
+
"""Returns true if both objects are not equal"""
|
147
|
+
if not isinstance(other, BackupResponse):
|
148
|
+
return True
|
149
|
+
|
150
|
+
return self.to_dict() != other.to_dict()
|
@@ -1,16 +1,18 @@
|
|
1
|
-
wds_client/__init__.py,sha256=
|
2
|
-
wds_client/api_client.py,sha256=
|
3
|
-
wds_client/configuration.py,sha256=
|
1
|
+
wds_client/__init__.py,sha256=R7ZidKjIqNX5U5_q1kEsJWmrc6uBicDsSBaQ9GtKJ_Q,2987
|
2
|
+
wds_client/api_client.py,sha256=a0Zx0J23VDCIKWIkHN-wn5Vc28md-xLx0y-MG3vpGMI,26217
|
3
|
+
wds_client/configuration.py,sha256=wi2CLjZFcQQ_aGtqV-SGXU34y1_fHqxJpo2kn8jgN6c,12795
|
4
4
|
wds_client/exceptions.py,sha256=0mEseFMbvxS5JfgkbPg14sxBI7bW0Gt0Ftxs96_LCyg,3781
|
5
5
|
wds_client/rest.py,sha256=v-8FIxQfUQ7bkeKfe9qsi9en8uQa5Zf5uSqhrui_cRw,12309
|
6
|
-
wds_client/api/__init__.py,sha256=
|
6
|
+
wds_client/api/__init__.py,sha256=WZ5Q4IeA9GuLOwVnj0B3AuGXN2kg9aV7MsHhXRgITbI,423
|
7
|
+
wds_client/api/cloning_api.py,sha256=XGzLTrl-fGeJ4kuPfm_-VnYufrBL01Ao8cRePhrOKlM,5709
|
7
8
|
wds_client/api/general_wds_information_api.py,sha256=NKNVnkKlOryGkxdVklYpBUh2-JlmwmbzgHQS0bD2bzA,9761
|
8
9
|
wds_client/api/instances_api.py,sha256=EtBqCzB6HETQ5GDh7_LHNeoPR4vqR4ScP-uyNDAxmUI,17329
|
9
10
|
wds_client/api/records_api.py,sha256=kH_DklhEdBFbyCAOBfsy82J_kD7t-dfhJDTeI9PmeZ8,61562
|
10
11
|
wds_client/api/schema_api.py,sha256=Q5F0-x6YSXkuvkCkJ08urPKBXjz4K0K0giNB_zL5d5A,19354
|
11
12
|
wds_client/api/snapshots_api.py,sha256=sz9q3K71bhEzQ2yZshli6xrXmrGAIu2HRj7mBG4nk9Y,6994
|
12
|
-
wds_client/models/__init__.py,sha256=
|
13
|
+
wds_client/models/__init__.py,sha256=FSPEI4sVsexe3T6eUU3fGnCWN745qBuAvAE1mpTaKqQ,2242
|
13
14
|
wds_client/models/attribute_schema.py,sha256=ZrJZ1ow_F5O7cT0aKAawY3SJ-c-PxYo3bWA_p6aZ5RI,6287
|
15
|
+
wds_client/models/backup_response.py,sha256=PWGMXK8zqUmAdd6VkU9OB978b_u8dtKbS2Sobpjupnw,4277
|
14
16
|
wds_client/models/batch_operation.py,sha256=VSfr1mQL4OGr--kuM4shxhh30pBgMSxl1Fx1k78iZKQ,4707
|
15
17
|
wds_client/models/batch_record_request.py,sha256=QUIdwLGzc5kD-Svw8CLwWmYiGPmcCR66chIYJicSEKY,5522
|
16
18
|
wds_client/models/batch_response.py,sha256=-G4BU3yzk_CaRioaTWrcK6xRFz_u3Brq-9eh-_lqEgU,4459
|
@@ -39,7 +41,7 @@ wds_client/models/stack_trace_element.py,sha256=9KbWCs54HXKOIW69K8q9wqGoA_5wSHwU
|
|
39
41
|
wds_client/models/status_response.py,sha256=TjCfqrE5KFZ-3DmEePndQUOD-GWGVtdpAzOw-d8QEPk,4030
|
40
42
|
wds_client/models/tsv_upload_response.py,sha256=JdEs9hwyH264eLhQYj9d7p9B4cCP5-wkpgMg6qk8GNI,4507
|
41
43
|
wds_client/models/version_response.py,sha256=YSb0mz0-H0Mfy_o9VQMR_0DG2drhgPPf_r47WXSPjtw,3867
|
42
|
-
wds_client-0.2.
|
43
|
-
wds_client-0.2.
|
44
|
-
wds_client-0.2.
|
45
|
-
wds_client-0.2.
|
44
|
+
wds_client-0.2.88.dist-info/METADATA,sha256=2lj2I0EHiSYbMgbxdYxocGCcl18g4oLE_FsPLVMcc3I,471
|
45
|
+
wds_client-0.2.88.dist-info/WHEEL,sha256=pkctZYzUS4AYVn6dJ-7367OJZivF2e8RA9b_ZBjif18,92
|
46
|
+
wds_client-0.2.88.dist-info/top_level.txt,sha256=hU2h533r5-3FzApV8ps3zXmQJKy74SPT3sYR8-uZhp8,11
|
47
|
+
wds_client-0.2.88.dist-info/RECORD,,
|
File without changes
|
File without changes
|