data-repo-client 2.238.0__py3-none-any.whl → 2.240.0__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.
- data_repo_client/__init__.py +1 -1
- data_repo_client/api/admin_api.py +127 -0
- data_repo_client/api_client.py +1 -1
- data_repo_client/configuration.py +1 -1
- {data_repo_client-2.238.0.dist-info → data_repo_client-2.240.0.dist-info}/METADATA +1 -1
- {data_repo_client-2.238.0.dist-info → data_repo_client-2.240.0.dist-info}/RECORD +8 -8
- {data_repo_client-2.238.0.dist-info → data_repo_client-2.240.0.dist-info}/WHEEL +0 -0
- {data_repo_client-2.238.0.dist-info → data_repo_client-2.240.0.dist-info}/top_level.txt +0 -0
data_repo_client/__init__.py
CHANGED
|
@@ -36,6 +36,133 @@ class AdminApi(object):
|
|
|
36
36
|
api_client = ApiClient()
|
|
37
37
|
self.api_client = api_client
|
|
38
38
|
|
|
39
|
+
def admin_inherit_steward(self, id, body, **kwargs): # noqa: E501
|
|
40
|
+
"""admin_inherit_steward # noqa: E501
|
|
41
|
+
|
|
42
|
+
Administrative Support to allow the dataset custodians to inherit the steward role on all snapshots made from this dataset # noqa: E501
|
|
43
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
44
|
+
asynchronous HTTP request, please pass async_req=True
|
|
45
|
+
>>> thread = api.admin_inherit_steward(id, body, async_req=True)
|
|
46
|
+
>>> result = thread.get()
|
|
47
|
+
|
|
48
|
+
:param async_req bool: execute request asynchronously
|
|
49
|
+
:param str id: A UUID to used to identify an object in the repository (required)
|
|
50
|
+
:param bool body: A boolean value indicating whether the dataset custodians should inherit the steward role on all snapshots made from this dataset. (required)
|
|
51
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
52
|
+
be returned without reading/decoding response
|
|
53
|
+
data. Default is True.
|
|
54
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
55
|
+
number provided, it will be total request
|
|
56
|
+
timeout. It can also be a pair (tuple) of
|
|
57
|
+
(connection, read) timeouts.
|
|
58
|
+
:return: JobModel
|
|
59
|
+
If the method is called asynchronously,
|
|
60
|
+
returns the request thread.
|
|
61
|
+
"""
|
|
62
|
+
kwargs['_return_http_data_only'] = True
|
|
63
|
+
return self.admin_inherit_steward_with_http_info(id, body, **kwargs) # noqa: E501
|
|
64
|
+
|
|
65
|
+
def admin_inherit_steward_with_http_info(self, id, body, **kwargs): # noqa: E501
|
|
66
|
+
"""admin_inherit_steward # noqa: E501
|
|
67
|
+
|
|
68
|
+
Administrative Support to allow the dataset custodians to inherit the steward role on all snapshots made from this dataset # noqa: E501
|
|
69
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
70
|
+
asynchronous HTTP request, please pass async_req=True
|
|
71
|
+
>>> thread = api.admin_inherit_steward_with_http_info(id, body, async_req=True)
|
|
72
|
+
>>> result = thread.get()
|
|
73
|
+
|
|
74
|
+
:param async_req bool: execute request asynchronously
|
|
75
|
+
:param str id: A UUID to used to identify an object in the repository (required)
|
|
76
|
+
:param bool body: A boolean value indicating whether the dataset custodians should inherit the steward role on all snapshots made from this dataset. (required)
|
|
77
|
+
:param _return_http_data_only: response data without head status code
|
|
78
|
+
and headers
|
|
79
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
80
|
+
be returned without reading/decoding response
|
|
81
|
+
data. Default is True.
|
|
82
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
83
|
+
number provided, it will be total request
|
|
84
|
+
timeout. It can also be a pair (tuple) of
|
|
85
|
+
(connection, read) timeouts.
|
|
86
|
+
:return: tuple(JobModel, status_code(int), headers(HTTPHeaderDict))
|
|
87
|
+
If the method is called asynchronously,
|
|
88
|
+
returns the request thread.
|
|
89
|
+
"""
|
|
90
|
+
|
|
91
|
+
local_var_params = locals()
|
|
92
|
+
|
|
93
|
+
all_params = [
|
|
94
|
+
'id',
|
|
95
|
+
'body'
|
|
96
|
+
]
|
|
97
|
+
all_params.extend(
|
|
98
|
+
[
|
|
99
|
+
'async_req',
|
|
100
|
+
'_return_http_data_only',
|
|
101
|
+
'_preload_content',
|
|
102
|
+
'_request_timeout'
|
|
103
|
+
]
|
|
104
|
+
)
|
|
105
|
+
|
|
106
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
107
|
+
if key not in all_params:
|
|
108
|
+
raise ApiTypeError(
|
|
109
|
+
"Got an unexpected keyword argument '%s'"
|
|
110
|
+
" to method admin_inherit_steward" % key
|
|
111
|
+
)
|
|
112
|
+
local_var_params[key] = val
|
|
113
|
+
del local_var_params['kwargs']
|
|
114
|
+
# verify the required parameter 'id' is set
|
|
115
|
+
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
|
|
116
|
+
local_var_params['id'] is None): # noqa: E501
|
|
117
|
+
raise ApiValueError("Missing the required parameter `id` when calling `admin_inherit_steward`") # noqa: E501
|
|
118
|
+
# verify the required parameter 'body' is set
|
|
119
|
+
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
|
120
|
+
local_var_params['body'] is None): # noqa: E501
|
|
121
|
+
raise ApiValueError("Missing the required parameter `body` when calling `admin_inherit_steward`") # noqa: E501
|
|
122
|
+
|
|
123
|
+
collection_formats = {}
|
|
124
|
+
|
|
125
|
+
path_params = {}
|
|
126
|
+
if 'id' in local_var_params:
|
|
127
|
+
path_params['id'] = local_var_params['id'] # noqa: E501
|
|
128
|
+
|
|
129
|
+
query_params = []
|
|
130
|
+
|
|
131
|
+
header_params = {}
|
|
132
|
+
|
|
133
|
+
form_params = []
|
|
134
|
+
local_var_files = {}
|
|
135
|
+
|
|
136
|
+
body_params = None
|
|
137
|
+
if 'body' in local_var_params:
|
|
138
|
+
body_params = local_var_params['body']
|
|
139
|
+
# HTTP header `Accept`
|
|
140
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
141
|
+
['application/json']) # noqa: E501
|
|
142
|
+
|
|
143
|
+
# HTTP header `Content-Type`
|
|
144
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
145
|
+
['application/json']) # noqa: E501
|
|
146
|
+
|
|
147
|
+
# Authentication setting
|
|
148
|
+
auth_settings = ['oidc'] # noqa: E501
|
|
149
|
+
|
|
150
|
+
return self.api_client.call_api(
|
|
151
|
+
'/api/admin/v1/datasets/{id}/inheritSteward', 'PUT',
|
|
152
|
+
path_params,
|
|
153
|
+
query_params,
|
|
154
|
+
header_params,
|
|
155
|
+
body=body_params,
|
|
156
|
+
post_params=form_params,
|
|
157
|
+
files=local_var_files,
|
|
158
|
+
response_type='JobModel', # noqa: E501
|
|
159
|
+
auth_settings=auth_settings,
|
|
160
|
+
async_req=local_var_params.get('async_req'),
|
|
161
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
162
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
163
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
164
|
+
collection_formats=collection_formats)
|
|
165
|
+
|
|
39
166
|
def admin_retrieve_dataset(self, id, **kwargs): # noqa: E501
|
|
40
167
|
"""admin_retrieve_dataset # noqa: E501
|
|
41
168
|
|
data_repo_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/2.
|
|
81
|
+
self.user_agent = 'OpenAPI-Generator/2.240.0/python'
|
|
82
82
|
self.client_side_validation = configuration.client_side_validation
|
|
83
83
|
|
|
84
84
|
def __enter__(self):
|
|
@@ -336,7 +336,7 @@ class Configuration(object):
|
|
|
336
336
|
"OS: {env}\n"\
|
|
337
337
|
"Python Version: {pyversion}\n"\
|
|
338
338
|
"Version of the API: 0.1.0\n"\
|
|
339
|
-
"SDK Package Version: 2.
|
|
339
|
+
"SDK Package Version: 2.240.0".\
|
|
340
340
|
format(env=sys.platform, pyversion=sys.version)
|
|
341
341
|
|
|
342
342
|
def get_host_settings(self):
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
data_repo_client/__init__.py,sha256=
|
|
2
|
-
data_repo_client/api_client.py,sha256=
|
|
3
|
-
data_repo_client/configuration.py,sha256=
|
|
1
|
+
data_repo_client/__init__.py,sha256=vmelJnhJiKvFJPG1xNLfgt3uAanVz6xGaPAaBNEdd1c,18151
|
|
2
|
+
data_repo_client/api_client.py,sha256=1oJ9mWGTBJhCE9Hs9I2r9vUWvJkwJ-a82aDH8Z01DWw,27141
|
|
3
|
+
data_repo_client/configuration.py,sha256=Iz7xpxF8JaUj4k-BJStNwplwl1qV1-uZ7fyHWrauSJ0,13682
|
|
4
4
|
data_repo_client/exceptions.py,sha256=Gx__KU4uPo9oWgPHmHS5Ond_mhm0PbJUcPXuZCYTECM,4674
|
|
5
5
|
data_repo_client/rest.py,sha256=NMuGDkxTl2dpbrQblMjDIACvVEcGeiToUabzcqzonlc,13208
|
|
6
6
|
data_repo_client/api/__init__.py,sha256=tHijhgS2OVIHakvFFMM0sQZj15jIUuaXNGVG9b40sj4,1061
|
|
7
|
-
data_repo_client/api/admin_api.py,sha256=
|
|
7
|
+
data_repo_client/api/admin_api.py,sha256=iZIsO0GI5w_YWKsJYb41stjpm90UUfSlMromIn6wmQs,23124
|
|
8
8
|
data_repo_client/api/configs_api.py,sha256=U1bXazrLJY46j9OE_fBqYbx6ceQRbWftJ2ha5F7IHOU,25124
|
|
9
9
|
data_repo_client/api/data_repository_service_api.py,sha256=fClyd422btjwvFKwAmFV8JVpZmh4bUX3BURgPw_AK9k,41290
|
|
10
10
|
data_repo_client/api/datasets_api.py,sha256=pBQ0qR2IMwuZxDE2-88hnfe-m0WROSDRxfwjgDAcHNY,219509
|
|
@@ -197,7 +197,7 @@ data_repo_client/models/upgrade_model.py,sha256=stze92OGQ-gxke0-bpj9QY9me2ICSzpq
|
|
|
197
197
|
data_repo_client/models/upgrade_response_model.py,sha256=yXIdF7WvxABO6u5iCAC4_5exfcbOw9TkXjRMsESuTuI,6106
|
|
198
198
|
data_repo_client/models/user_status_info.py,sha256=jHBZ8rhO6ZrE_rmRAQMTHrwNvhfaMy8kzYjFNSMFeQ0,6457
|
|
199
199
|
data_repo_client/models/workspace_policy_model.py,sha256=pgLpcUQUcN38IfdGBesOi9cfcF94no2xg6pgzcbTCLE,7966
|
|
200
|
-
data_repo_client-2.
|
|
201
|
-
data_repo_client-2.
|
|
202
|
-
data_repo_client-2.
|
|
203
|
-
data_repo_client-2.
|
|
200
|
+
data_repo_client-2.240.0.dist-info/METADATA,sha256=GVz022vlm5SnaWd0n2ngnrpxsTJs3AdDgHUpN-aKpQ8,1420
|
|
201
|
+
data_repo_client-2.240.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
202
|
+
data_repo_client-2.240.0.dist-info/top_level.txt,sha256=rxRfDoBxOaUhmfMLoiE926w1prfERSr2Qg70w69QsgQ,17
|
|
203
|
+
data_repo_client-2.240.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|