data-repo-client 2.197.0__py3-none-any.whl → 2.360.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.
Potentially problematic release.
This version of data-repo-client might be problematic. Click here for more details.
- data_repo_client/__init__.py +3 -1
- data_repo_client/api/admin_api.py +2 -2
- data_repo_client/api/datasets_api.py +271 -30
- data_repo_client/api/profiles_api.py +120 -6
- data_repo_client/api/repository_api.py +408 -40
- data_repo_client/api/resources_api.py +120 -6
- data_repo_client/api/snapshots_api.py +133 -6
- data_repo_client/api/upgrade_api.py +2 -2
- data_repo_client/api_client.py +1 -1
- data_repo_client/configuration.py +1 -1
- data_repo_client/models/__init__.py +2 -0
- data_repo_client/models/dataset_model.py +31 -3
- data_repo_client/models/dataset_request_model.py +29 -1
- data_repo_client/models/dataset_summary_model.py +31 -3
- data_repo_client/models/enumerate_billing_profile_resources_model.py +120 -0
- data_repo_client/models/iam_resource_type_enum.py +2 -1
- data_repo_client/models/profile_owned_resource_model.py +240 -0
- data_repo_client/models/sam_policy_model.py +27 -1
- {data_repo_client-2.197.0.dist-info → data_repo_client-2.360.0.dist-info}/METADATA +1 -1
- {data_repo_client-2.197.0.dist-info → data_repo_client-2.360.0.dist-info}/RECORD +22 -20
- {data_repo_client-2.197.0.dist-info → data_repo_client-2.360.0.dist-info}/WHEEL +0 -0
- {data_repo_client-2.197.0.dist-info → data_repo_client-2.360.0.dist-info}/top_level.txt +0 -0
|
@@ -175,7 +175,7 @@ class ResourcesApi(object):
|
|
|
175
175
|
def create_profile(self, **kwargs): # noqa: E501
|
|
176
176
|
"""create_profile # noqa: E501
|
|
177
177
|
|
|
178
|
-
Creates a new profile associated with a billing account. This is asynchronous. The final return is of type definitions/BillingProfileModel. # noqa: E501
|
|
178
|
+
Creates a new profile associated with a billing account. This is asynchronous. The final return is of type definitions/BillingProfileModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
179
179
|
This method makes a synchronous HTTP request by default. To make an
|
|
180
180
|
asynchronous HTTP request, please pass async_req=True
|
|
181
181
|
>>> thread = api.create_profile(async_req=True)
|
|
@@ -200,7 +200,7 @@ class ResourcesApi(object):
|
|
|
200
200
|
def create_profile_with_http_info(self, **kwargs): # noqa: E501
|
|
201
201
|
"""create_profile # noqa: E501
|
|
202
202
|
|
|
203
|
-
Creates a new profile associated with a billing account. This is asynchronous. The final return is of type definitions/BillingProfileModel. # noqa: E501
|
|
203
|
+
Creates a new profile associated with a billing account. This is asynchronous. The final return is of type definitions/BillingProfileModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
204
204
|
This method makes a synchronous HTTP request by default. To make an
|
|
205
205
|
asynchronous HTTP request, please pass async_req=True
|
|
206
206
|
>>> thread = api.create_profile_with_http_info(async_req=True)
|
|
@@ -289,7 +289,7 @@ class ResourcesApi(object):
|
|
|
289
289
|
def delete_profile(self, id, **kwargs): # noqa: E501
|
|
290
290
|
"""delete_profile # noqa: E501
|
|
291
291
|
|
|
292
|
-
Delete a billing profile by id. This is asynchronous. The final return is of type definitions/DeleteResponseModel. # noqa: E501
|
|
292
|
+
Delete a billing profile by id. This is asynchronous. The final return is of type definitions/DeleteResponseModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
293
293
|
This method makes a synchronous HTTP request by default. To make an
|
|
294
294
|
asynchronous HTTP request, please pass async_req=True
|
|
295
295
|
>>> thread = api.delete_profile(id, async_req=True)
|
|
@@ -315,7 +315,7 @@ class ResourcesApi(object):
|
|
|
315
315
|
def delete_profile_with_http_info(self, id, **kwargs): # noqa: E501
|
|
316
316
|
"""delete_profile # noqa: E501
|
|
317
317
|
|
|
318
|
-
Delete a billing profile by id. This is asynchronous. The final return is of type definitions/DeleteResponseModel. # noqa: E501
|
|
318
|
+
Delete a billing profile by id. This is asynchronous. The final return is of type definitions/DeleteResponseModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
319
319
|
This method makes a synchronous HTTP request by default. To make an
|
|
320
320
|
asynchronous HTTP request, please pass async_req=True
|
|
321
321
|
>>> thread = api.delete_profile_with_http_info(id, async_req=True)
|
|
@@ -652,6 +652,120 @@ class ResourcesApi(object):
|
|
|
652
652
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
653
653
|
collection_formats=collection_formats)
|
|
654
654
|
|
|
655
|
+
def get_profile_resources(self, id, **kwargs): # noqa: E501
|
|
656
|
+
"""get_profile_resources # noqa: E501
|
|
657
|
+
|
|
658
|
+
Given a profile ID, return the resources associated with that profile. # noqa: E501
|
|
659
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
660
|
+
asynchronous HTTP request, please pass async_req=True
|
|
661
|
+
>>> thread = api.get_profile_resources(id, async_req=True)
|
|
662
|
+
>>> result = thread.get()
|
|
663
|
+
|
|
664
|
+
:param async_req bool: execute request asynchronously
|
|
665
|
+
:param str id: A UUID to used to identify an object in the repository (required)
|
|
666
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
667
|
+
be returned without reading/decoding response
|
|
668
|
+
data. Default is True.
|
|
669
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
670
|
+
number provided, it will be total request
|
|
671
|
+
timeout. It can also be a pair (tuple) of
|
|
672
|
+
(connection, read) timeouts.
|
|
673
|
+
:return: EnumerateBillingProfileResourcesModel
|
|
674
|
+
If the method is called asynchronously,
|
|
675
|
+
returns the request thread.
|
|
676
|
+
"""
|
|
677
|
+
kwargs['_return_http_data_only'] = True
|
|
678
|
+
return self.get_profile_resources_with_http_info(id, **kwargs) # noqa: E501
|
|
679
|
+
|
|
680
|
+
def get_profile_resources_with_http_info(self, id, **kwargs): # noqa: E501
|
|
681
|
+
"""get_profile_resources # noqa: E501
|
|
682
|
+
|
|
683
|
+
Given a profile ID, return the resources associated with that profile. # noqa: E501
|
|
684
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
685
|
+
asynchronous HTTP request, please pass async_req=True
|
|
686
|
+
>>> thread = api.get_profile_resources_with_http_info(id, async_req=True)
|
|
687
|
+
>>> result = thread.get()
|
|
688
|
+
|
|
689
|
+
:param async_req bool: execute request asynchronously
|
|
690
|
+
:param str id: A UUID to used to identify an object in the repository (required)
|
|
691
|
+
:param _return_http_data_only: response data without head status code
|
|
692
|
+
and headers
|
|
693
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
694
|
+
be returned without reading/decoding response
|
|
695
|
+
data. Default is True.
|
|
696
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
697
|
+
number provided, it will be total request
|
|
698
|
+
timeout. It can also be a pair (tuple) of
|
|
699
|
+
(connection, read) timeouts.
|
|
700
|
+
:return: tuple(EnumerateBillingProfileResourcesModel, status_code(int), headers(HTTPHeaderDict))
|
|
701
|
+
If the method is called asynchronously,
|
|
702
|
+
returns the request thread.
|
|
703
|
+
"""
|
|
704
|
+
|
|
705
|
+
local_var_params = locals()
|
|
706
|
+
|
|
707
|
+
all_params = [
|
|
708
|
+
'id'
|
|
709
|
+
]
|
|
710
|
+
all_params.extend(
|
|
711
|
+
[
|
|
712
|
+
'async_req',
|
|
713
|
+
'_return_http_data_only',
|
|
714
|
+
'_preload_content',
|
|
715
|
+
'_request_timeout'
|
|
716
|
+
]
|
|
717
|
+
)
|
|
718
|
+
|
|
719
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
720
|
+
if key not in all_params:
|
|
721
|
+
raise ApiTypeError(
|
|
722
|
+
"Got an unexpected keyword argument '%s'"
|
|
723
|
+
" to method get_profile_resources" % key
|
|
724
|
+
)
|
|
725
|
+
local_var_params[key] = val
|
|
726
|
+
del local_var_params['kwargs']
|
|
727
|
+
# verify the required parameter 'id' is set
|
|
728
|
+
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
|
|
729
|
+
local_var_params['id'] is None): # noqa: E501
|
|
730
|
+
raise ApiValueError("Missing the required parameter `id` when calling `get_profile_resources`") # noqa: E501
|
|
731
|
+
|
|
732
|
+
collection_formats = {}
|
|
733
|
+
|
|
734
|
+
path_params = {}
|
|
735
|
+
if 'id' in local_var_params:
|
|
736
|
+
path_params['id'] = local_var_params['id'] # noqa: E501
|
|
737
|
+
|
|
738
|
+
query_params = []
|
|
739
|
+
|
|
740
|
+
header_params = {}
|
|
741
|
+
|
|
742
|
+
form_params = []
|
|
743
|
+
local_var_files = {}
|
|
744
|
+
|
|
745
|
+
body_params = None
|
|
746
|
+
# HTTP header `Accept`
|
|
747
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
748
|
+
['application/json']) # noqa: E501
|
|
749
|
+
|
|
750
|
+
# Authentication setting
|
|
751
|
+
auth_settings = ['oidc'] # noqa: E501
|
|
752
|
+
|
|
753
|
+
return self.api_client.call_api(
|
|
754
|
+
'/api/resources/v1/profiles/{id}/resources', 'GET',
|
|
755
|
+
path_params,
|
|
756
|
+
query_params,
|
|
757
|
+
header_params,
|
|
758
|
+
body=body_params,
|
|
759
|
+
post_params=form_params,
|
|
760
|
+
files=local_var_files,
|
|
761
|
+
response_type='EnumerateBillingProfileResourcesModel', # noqa: E501
|
|
762
|
+
auth_settings=auth_settings,
|
|
763
|
+
async_req=local_var_params.get('async_req'),
|
|
764
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
765
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
766
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
767
|
+
collection_formats=collection_formats)
|
|
768
|
+
|
|
655
769
|
def retrieve_profile(self, id, **kwargs): # noqa: E501
|
|
656
770
|
"""retrieve_profile # noqa: E501
|
|
657
771
|
|
|
@@ -883,7 +997,7 @@ class ResourcesApi(object):
|
|
|
883
997
|
def update_profile(self, billing_profile_update_model, **kwargs): # noqa: E501
|
|
884
998
|
"""update_profile # noqa: E501
|
|
885
999
|
|
|
886
|
-
Update a billing profile by id. This is asynchronous. The final return is of type definitions/BillingProfileModel. # noqa: E501
|
|
1000
|
+
Update a billing profile by id. This is asynchronous. The final return is of type definitions/BillingProfileModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
887
1001
|
This method makes a synchronous HTTP request by default. To make an
|
|
888
1002
|
asynchronous HTTP request, please pass async_req=True
|
|
889
1003
|
>>> thread = api.update_profile(billing_profile_update_model, async_req=True)
|
|
@@ -908,7 +1022,7 @@ class ResourcesApi(object):
|
|
|
908
1022
|
def update_profile_with_http_info(self, billing_profile_update_model, **kwargs): # noqa: E501
|
|
909
1023
|
"""update_profile # noqa: E501
|
|
910
1024
|
|
|
911
|
-
Update a billing profile by id. This is asynchronous. The final return is of type definitions/BillingProfileModel. # noqa: E501
|
|
1025
|
+
Update a billing profile by id. This is asynchronous. The final return is of type definitions/BillingProfileModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
912
1026
|
This method makes a synchronous HTTP request by default. To make an
|
|
913
1027
|
asynchronous HTTP request, please pass async_req=True
|
|
914
1028
|
>>> thread = api.update_profile_with_http_info(billing_profile_update_model, async_req=True)
|
|
@@ -294,7 +294,7 @@ class SnapshotsApi(object):
|
|
|
294
294
|
def create_snapshot(self, **kwargs): # noqa: E501
|
|
295
295
|
"""create_snapshot # noqa: E501
|
|
296
296
|
|
|
297
|
-
Create a new snapshot # noqa: E501
|
|
297
|
+
Create a new snapshot. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
298
298
|
This method makes a synchronous HTTP request by default. To make an
|
|
299
299
|
asynchronous HTTP request, please pass async_req=True
|
|
300
300
|
>>> thread = api.create_snapshot(async_req=True)
|
|
@@ -319,7 +319,7 @@ class SnapshotsApi(object):
|
|
|
319
319
|
def create_snapshot_with_http_info(self, **kwargs): # noqa: E501
|
|
320
320
|
"""create_snapshot # noqa: E501
|
|
321
321
|
|
|
322
|
-
Create a new snapshot # noqa: E501
|
|
322
|
+
Create a new snapshot. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
323
323
|
This method makes a synchronous HTTP request by default. To make an
|
|
324
324
|
asynchronous HTTP request, please pass async_req=True
|
|
325
325
|
>>> thread = api.create_snapshot_with_http_info(async_req=True)
|
|
@@ -408,7 +408,7 @@ class SnapshotsApi(object):
|
|
|
408
408
|
def delete_snapshot(self, id, **kwargs): # noqa: E501
|
|
409
409
|
"""delete_snapshot # noqa: E501
|
|
410
410
|
|
|
411
|
-
Delete a snapshot by id # noqa: E501
|
|
411
|
+
Delete a snapshot by id. If this operation fails, we do not attempt to undo any failed steps. Therefore, a failed snapshot delete call leaves the snapshot in a partially deleted state. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
412
412
|
This method makes a synchronous HTTP request by default. To make an
|
|
413
413
|
asynchronous HTTP request, please pass async_req=True
|
|
414
414
|
>>> thread = api.delete_snapshot(id, async_req=True)
|
|
@@ -433,7 +433,7 @@ class SnapshotsApi(object):
|
|
|
433
433
|
def delete_snapshot_with_http_info(self, id, **kwargs): # noqa: E501
|
|
434
434
|
"""delete_snapshot # noqa: E501
|
|
435
435
|
|
|
436
|
-
Delete a snapshot by id # noqa: E501
|
|
436
|
+
Delete a snapshot by id. If this operation fails, we do not attempt to undo any failed steps. Therefore, a failed snapshot delete call leaves the snapshot in a partially deleted state. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
437
437
|
This method makes a synchronous HTTP request by default. To make an
|
|
438
438
|
asynchronous HTTP request, please pass async_req=True
|
|
439
439
|
>>> thread = api.delete_snapshot_with_http_info(id, async_req=True)
|
|
@@ -1049,7 +1049,7 @@ class SnapshotsApi(object):
|
|
|
1049
1049
|
def export_snapshot(self, id, **kwargs): # noqa: E501
|
|
1050
1050
|
"""export_snapshot # noqa: E501
|
|
1051
1051
|
|
|
1052
|
-
Export a snapshot by id # noqa: E501
|
|
1052
|
+
Export a snapshot by id. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
1053
1053
|
This method makes a synchronous HTTP request by default. To make an
|
|
1054
1054
|
asynchronous HTTP request, please pass async_req=True
|
|
1055
1055
|
>>> thread = api.export_snapshot(id, async_req=True)
|
|
@@ -1077,7 +1077,7 @@ class SnapshotsApi(object):
|
|
|
1077
1077
|
def export_snapshot_with_http_info(self, id, **kwargs): # noqa: E501
|
|
1078
1078
|
"""export_snapshot # noqa: E501
|
|
1079
1079
|
|
|
1080
|
-
Export a snapshot by id # noqa: E501
|
|
1080
|
+
Export a snapshot by id. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
1081
1081
|
This method makes a synchronous HTTP request by default. To make an
|
|
1082
1082
|
asynchronous HTTP request, please pass async_req=True
|
|
1083
1083
|
>>> thread = api.export_snapshot_with_http_info(id, async_req=True)
|
|
@@ -3370,6 +3370,133 @@ class SnapshotsApi(object):
|
|
|
3370
3370
|
_request_timeout=local_var_params.get('_request_timeout'),
|
|
3371
3371
|
collection_formats=collection_formats)
|
|
3372
3372
|
|
|
3373
|
+
def set_snapshot_public(self, id, body, **kwargs): # noqa: E501
|
|
3374
|
+
"""set_snapshot_public # noqa: E501
|
|
3375
|
+
|
|
3376
|
+
Sets the reader policy on the snapshot public for the specified snapshot if request body is true. Makes the reader policy on the snapshot private if the request body is false. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
3377
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3378
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3379
|
+
>>> thread = api.set_snapshot_public(id, body, async_req=True)
|
|
3380
|
+
>>> result = thread.get()
|
|
3381
|
+
|
|
3382
|
+
:param async_req bool: execute request asynchronously
|
|
3383
|
+
:param str id: A UUID to used to identify an object in the repository (required)
|
|
3384
|
+
:param bool body: A boolean value indicating whether the reader policy on the snapshot is being set public. (required)
|
|
3385
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
3386
|
+
be returned without reading/decoding response
|
|
3387
|
+
data. Default is True.
|
|
3388
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3389
|
+
number provided, it will be total request
|
|
3390
|
+
timeout. It can also be a pair (tuple) of
|
|
3391
|
+
(connection, read) timeouts.
|
|
3392
|
+
:return: JobModel
|
|
3393
|
+
If the method is called asynchronously,
|
|
3394
|
+
returns the request thread.
|
|
3395
|
+
"""
|
|
3396
|
+
kwargs['_return_http_data_only'] = True
|
|
3397
|
+
return self.set_snapshot_public_with_http_info(id, body, **kwargs) # noqa: E501
|
|
3398
|
+
|
|
3399
|
+
def set_snapshot_public_with_http_info(self, id, body, **kwargs): # noqa: E501
|
|
3400
|
+
"""set_snapshot_public # noqa: E501
|
|
3401
|
+
|
|
3402
|
+
Sets the reader policy on the snapshot public for the specified snapshot if request body is true. Makes the reader policy on the snapshot private if the request body is false. This is asynchronous. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
3403
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
3404
|
+
asynchronous HTTP request, please pass async_req=True
|
|
3405
|
+
>>> thread = api.set_snapshot_public_with_http_info(id, body, async_req=True)
|
|
3406
|
+
>>> result = thread.get()
|
|
3407
|
+
|
|
3408
|
+
:param async_req bool: execute request asynchronously
|
|
3409
|
+
:param str id: A UUID to used to identify an object in the repository (required)
|
|
3410
|
+
:param bool body: A boolean value indicating whether the reader policy on the snapshot is being set public. (required)
|
|
3411
|
+
:param _return_http_data_only: response data without head status code
|
|
3412
|
+
and headers
|
|
3413
|
+
:param _preload_content: if False, the urllib3.HTTPResponse object will
|
|
3414
|
+
be returned without reading/decoding response
|
|
3415
|
+
data. Default is True.
|
|
3416
|
+
:param _request_timeout: timeout setting for this request. If one
|
|
3417
|
+
number provided, it will be total request
|
|
3418
|
+
timeout. It can also be a pair (tuple) of
|
|
3419
|
+
(connection, read) timeouts.
|
|
3420
|
+
:return: tuple(JobModel, status_code(int), headers(HTTPHeaderDict))
|
|
3421
|
+
If the method is called asynchronously,
|
|
3422
|
+
returns the request thread.
|
|
3423
|
+
"""
|
|
3424
|
+
|
|
3425
|
+
local_var_params = locals()
|
|
3426
|
+
|
|
3427
|
+
all_params = [
|
|
3428
|
+
'id',
|
|
3429
|
+
'body'
|
|
3430
|
+
]
|
|
3431
|
+
all_params.extend(
|
|
3432
|
+
[
|
|
3433
|
+
'async_req',
|
|
3434
|
+
'_return_http_data_only',
|
|
3435
|
+
'_preload_content',
|
|
3436
|
+
'_request_timeout'
|
|
3437
|
+
]
|
|
3438
|
+
)
|
|
3439
|
+
|
|
3440
|
+
for key, val in six.iteritems(local_var_params['kwargs']):
|
|
3441
|
+
if key not in all_params:
|
|
3442
|
+
raise ApiTypeError(
|
|
3443
|
+
"Got an unexpected keyword argument '%s'"
|
|
3444
|
+
" to method set_snapshot_public" % key
|
|
3445
|
+
)
|
|
3446
|
+
local_var_params[key] = val
|
|
3447
|
+
del local_var_params['kwargs']
|
|
3448
|
+
# verify the required parameter 'id' is set
|
|
3449
|
+
if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
|
|
3450
|
+
local_var_params['id'] is None): # noqa: E501
|
|
3451
|
+
raise ApiValueError("Missing the required parameter `id` when calling `set_snapshot_public`") # noqa: E501
|
|
3452
|
+
# verify the required parameter 'body' is set
|
|
3453
|
+
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
|
|
3454
|
+
local_var_params['body'] is None): # noqa: E501
|
|
3455
|
+
raise ApiValueError("Missing the required parameter `body` when calling `set_snapshot_public`") # noqa: E501
|
|
3456
|
+
|
|
3457
|
+
collection_formats = {}
|
|
3458
|
+
|
|
3459
|
+
path_params = {}
|
|
3460
|
+
if 'id' in local_var_params:
|
|
3461
|
+
path_params['id'] = local_var_params['id'] # noqa: E501
|
|
3462
|
+
|
|
3463
|
+
query_params = []
|
|
3464
|
+
|
|
3465
|
+
header_params = {}
|
|
3466
|
+
|
|
3467
|
+
form_params = []
|
|
3468
|
+
local_var_files = {}
|
|
3469
|
+
|
|
3470
|
+
body_params = None
|
|
3471
|
+
if 'body' in local_var_params:
|
|
3472
|
+
body_params = local_var_params['body']
|
|
3473
|
+
# HTTP header `Accept`
|
|
3474
|
+
header_params['Accept'] = self.api_client.select_header_accept(
|
|
3475
|
+
['application/json']) # noqa: E501
|
|
3476
|
+
|
|
3477
|
+
# HTTP header `Content-Type`
|
|
3478
|
+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
|
|
3479
|
+
['application/json']) # noqa: E501
|
|
3480
|
+
|
|
3481
|
+
# Authentication setting
|
|
3482
|
+
auth_settings = ['oidc'] # noqa: E501
|
|
3483
|
+
|
|
3484
|
+
return self.api_client.call_api(
|
|
3485
|
+
'/api/repository/v1/snapshots/{id}/public', 'PUT',
|
|
3486
|
+
path_params,
|
|
3487
|
+
query_params,
|
|
3488
|
+
header_params,
|
|
3489
|
+
body=body_params,
|
|
3490
|
+
post_params=form_params,
|
|
3491
|
+
files=local_var_files,
|
|
3492
|
+
response_type='JobModel', # noqa: E501
|
|
3493
|
+
auth_settings=auth_settings,
|
|
3494
|
+
async_req=local_var_params.get('async_req'),
|
|
3495
|
+
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
|
|
3496
|
+
_preload_content=local_var_params.get('_preload_content', True),
|
|
3497
|
+
_request_timeout=local_var_params.get('_request_timeout'),
|
|
3498
|
+
collection_formats=collection_formats)
|
|
3499
|
+
|
|
3373
3500
|
def unlink_duos_dataset_from_snapshot(self, id, **kwargs): # noqa: E501
|
|
3374
3501
|
"""unlink_duos_dataset_from_snapshot # noqa: E501
|
|
3375
3502
|
|
|
@@ -39,7 +39,7 @@ class UpgradeApi(object):
|
|
|
39
39
|
def upgrade(self, upgrade, **kwargs): # noqa: E501
|
|
40
40
|
"""upgrade # noqa: E501
|
|
41
41
|
|
|
42
|
-
Extensible endpoint for triggering upgrade tasks in the data repository. The asynchronous result is UpgradeResponseModel # noqa: E501
|
|
42
|
+
Extensible endpoint for triggering upgrade tasks in the data repository. The asynchronous result is UpgradeResponseModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
43
43
|
This method makes a synchronous HTTP request by default. To make an
|
|
44
44
|
asynchronous HTTP request, please pass async_req=True
|
|
45
45
|
>>> thread = api.upgrade(upgrade, async_req=True)
|
|
@@ -64,7 +64,7 @@ class UpgradeApi(object):
|
|
|
64
64
|
def upgrade_with_http_info(self, upgrade, **kwargs): # noqa: E501
|
|
65
65
|
"""upgrade # noqa: E501
|
|
66
66
|
|
|
67
|
-
Extensible endpoint for triggering upgrade tasks in the data repository. The asynchronous result is UpgradeResponseModel # noqa: E501
|
|
67
|
+
Extensible endpoint for triggering upgrade tasks in the data repository. The asynchronous result is UpgradeResponseModel. Use the returned job id to check the retrieveJob endpoint for the job status or retrieveJobResult endpoint to get the final result. # noqa: E501
|
|
68
68
|
This method makes a synchronous HTTP request by default. To make an
|
|
69
69
|
asynchronous HTTP request, please pass async_req=True
|
|
70
70
|
>>> thread = api.upgrade_with_http_info(upgrade, async_req=True)
|
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.360.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.360.0".\
|
|
340
340
|
format(env=sys.platform, pyversion=sys.version)
|
|
341
341
|
|
|
342
342
|
def get_host_settings(self):
|
|
@@ -82,6 +82,7 @@ from data_repo_client.models.drs_alias_model import DrsAliasModel
|
|
|
82
82
|
from data_repo_client.models.duos_firecloud_group_model import DuosFirecloudGroupModel
|
|
83
83
|
from data_repo_client.models.duos_firecloud_groups_sync_response import DuosFirecloudGroupsSyncResponse
|
|
84
84
|
from data_repo_client.models.enumerate_billing_profile_model import EnumerateBillingProfileModel
|
|
85
|
+
from data_repo_client.models.enumerate_billing_profile_resources_model import EnumerateBillingProfileResourcesModel
|
|
85
86
|
from data_repo_client.models.enumerate_dataset_model import EnumerateDatasetModel
|
|
86
87
|
from data_repo_client.models.enumerate_snapshot_access_request import EnumerateSnapshotAccessRequest
|
|
87
88
|
from data_repo_client.models.enumerate_snapshot_model import EnumerateSnapshotModel
|
|
@@ -102,6 +103,7 @@ from data_repo_client.models.journal_entry_model import JournalEntryModel
|
|
|
102
103
|
from data_repo_client.models.policy_member_request import PolicyMemberRequest
|
|
103
104
|
from data_repo_client.models.policy_model import PolicyModel
|
|
104
105
|
from data_repo_client.models.policy_response import PolicyResponse
|
|
106
|
+
from data_repo_client.models.profile_owned_resource_model import ProfileOwnedResourceModel
|
|
105
107
|
from data_repo_client.models.query_column_statistics_request_model import QueryColumnStatisticsRequestModel
|
|
106
108
|
from data_repo_client.models.query_data_request_model import QueryDataRequestModel
|
|
107
109
|
from data_repo_client.models.relationship_model import RelationshipModel
|
|
@@ -51,7 +51,8 @@ class DatasetModel(object):
|
|
|
51
51
|
'ingest_service_account': 'str',
|
|
52
52
|
'predictable_file_ids': 'bool',
|
|
53
53
|
'tags': 'list[str]',
|
|
54
|
-
'resource_locks': 'ResourceLocks'
|
|
54
|
+
'resource_locks': 'ResourceLocks',
|
|
55
|
+
'inherit_steward': 'bool'
|
|
55
56
|
}
|
|
56
57
|
|
|
57
58
|
attribute_map = {
|
|
@@ -73,10 +74,11 @@ class DatasetModel(object):
|
|
|
73
74
|
'ingest_service_account': 'ingestServiceAccount',
|
|
74
75
|
'predictable_file_ids': 'predictableFileIds',
|
|
75
76
|
'tags': 'tags',
|
|
76
|
-
'resource_locks': 'resourceLocks'
|
|
77
|
+
'resource_locks': 'resourceLocks',
|
|
78
|
+
'inherit_steward': 'inheritSteward'
|
|
77
79
|
}
|
|
78
80
|
|
|
79
|
-
def __init__(self, id=None, name=None, description=None, default_profile_id=None, data_project=None, default_snapshot_id=None, schema=None, created_date=None, storage=None, secure_monitoring_enabled=False, phs_id=None, access_information=None, cloud_platform=None, self_hosted=False, properties=None, ingest_service_account=None, predictable_file_ids=False, tags=None, resource_locks=None, local_vars_configuration=None): # noqa: E501
|
|
81
|
+
def __init__(self, id=None, name=None, description=None, default_profile_id=None, data_project=None, default_snapshot_id=None, schema=None, created_date=None, storage=None, secure_monitoring_enabled=False, phs_id=None, access_information=None, cloud_platform=None, self_hosted=False, properties=None, ingest_service_account=None, predictable_file_ids=False, tags=None, resource_locks=None, inherit_steward=False, local_vars_configuration=None): # noqa: E501
|
|
80
82
|
"""DatasetModel - a model defined in OpenAPI""" # noqa: E501
|
|
81
83
|
if local_vars_configuration is None:
|
|
82
84
|
local_vars_configuration = Configuration()
|
|
@@ -101,6 +103,7 @@ class DatasetModel(object):
|
|
|
101
103
|
self._predictable_file_ids = None
|
|
102
104
|
self._tags = None
|
|
103
105
|
self._resource_locks = None
|
|
106
|
+
self._inherit_steward = None
|
|
104
107
|
self.discriminator = None
|
|
105
108
|
|
|
106
109
|
if id is not None:
|
|
@@ -141,6 +144,8 @@ class DatasetModel(object):
|
|
|
141
144
|
self.tags = tags
|
|
142
145
|
if resource_locks is not None:
|
|
143
146
|
self.resource_locks = resource_locks
|
|
147
|
+
if inherit_steward is not None:
|
|
148
|
+
self.inherit_steward = inherit_steward
|
|
144
149
|
|
|
145
150
|
@property
|
|
146
151
|
def id(self):
|
|
@@ -574,6 +579,29 @@ class DatasetModel(object):
|
|
|
574
579
|
|
|
575
580
|
self._resource_locks = resource_locks
|
|
576
581
|
|
|
582
|
+
@property
|
|
583
|
+
def inherit_steward(self):
|
|
584
|
+
"""Gets the inherit_steward of this DatasetModel. # noqa: E501
|
|
585
|
+
|
|
586
|
+
If true, all snapshots created from this dataset will grant dataset custodians the steward (owner) role on the snapshots. # noqa: E501
|
|
587
|
+
|
|
588
|
+
:return: The inherit_steward of this DatasetModel. # noqa: E501
|
|
589
|
+
:rtype: bool
|
|
590
|
+
"""
|
|
591
|
+
return self._inherit_steward
|
|
592
|
+
|
|
593
|
+
@inherit_steward.setter
|
|
594
|
+
def inherit_steward(self, inherit_steward):
|
|
595
|
+
"""Sets the inherit_steward of this DatasetModel.
|
|
596
|
+
|
|
597
|
+
If true, all snapshots created from this dataset will grant dataset custodians the steward (owner) role on the snapshots. # noqa: E501
|
|
598
|
+
|
|
599
|
+
:param inherit_steward: The inherit_steward of this DatasetModel. # noqa: E501
|
|
600
|
+
:type: bool
|
|
601
|
+
"""
|
|
602
|
+
|
|
603
|
+
self._inherit_steward = inherit_steward
|
|
604
|
+
|
|
577
605
|
def to_dict(self):
|
|
578
606
|
"""Returns the model properties as a dict"""
|
|
579
607
|
result = {}
|
|
@@ -46,6 +46,7 @@ class DatasetRequestModel(object):
|
|
|
46
46
|
'dedicated_ingest_service_account': 'bool',
|
|
47
47
|
'experimental_predictable_file_ids': 'bool',
|
|
48
48
|
'policies': 'DatasetRequestModelPolicies',
|
|
49
|
+
'inherit_steward': 'bool',
|
|
49
50
|
'tags': 'list[str]'
|
|
50
51
|
}
|
|
51
52
|
|
|
@@ -63,10 +64,11 @@ class DatasetRequestModel(object):
|
|
|
63
64
|
'dedicated_ingest_service_account': 'dedicatedIngestServiceAccount',
|
|
64
65
|
'experimental_predictable_file_ids': 'experimentalPredictableFileIds',
|
|
65
66
|
'policies': 'policies',
|
|
67
|
+
'inherit_steward': 'inheritSteward',
|
|
66
68
|
'tags': 'tags'
|
|
67
69
|
}
|
|
68
70
|
|
|
69
|
-
def __init__(self, name=None, description=None, default_profile_id=None, schema=None, region=None, cloud_platform=None, enable_secure_monitoring=False, phs_id=None, experimental_self_hosted=False, properties=None, dedicated_ingest_service_account=True, experimental_predictable_file_ids=False, policies=None, tags=None, local_vars_configuration=None): # noqa: E501
|
|
71
|
+
def __init__(self, name=None, description=None, default_profile_id=None, schema=None, region=None, cloud_platform=None, enable_secure_monitoring=False, phs_id=None, experimental_self_hosted=False, properties=None, dedicated_ingest_service_account=True, experimental_predictable_file_ids=False, policies=None, inherit_steward=False, tags=None, local_vars_configuration=None): # noqa: E501
|
|
70
72
|
"""DatasetRequestModel - a model defined in OpenAPI""" # noqa: E501
|
|
71
73
|
if local_vars_configuration is None:
|
|
72
74
|
local_vars_configuration = Configuration()
|
|
@@ -85,6 +87,7 @@ class DatasetRequestModel(object):
|
|
|
85
87
|
self._dedicated_ingest_service_account = None
|
|
86
88
|
self._experimental_predictable_file_ids = None
|
|
87
89
|
self._policies = None
|
|
90
|
+
self._inherit_steward = None
|
|
88
91
|
self._tags = None
|
|
89
92
|
self.discriminator = None
|
|
90
93
|
|
|
@@ -111,6 +114,8 @@ class DatasetRequestModel(object):
|
|
|
111
114
|
self.experimental_predictable_file_ids = experimental_predictable_file_ids
|
|
112
115
|
if policies is not None:
|
|
113
116
|
self.policies = policies
|
|
117
|
+
if inherit_steward is not None:
|
|
118
|
+
self.inherit_steward = inherit_steward
|
|
114
119
|
if tags is not None:
|
|
115
120
|
self.tags = tags
|
|
116
121
|
|
|
@@ -418,6 +423,29 @@ class DatasetRequestModel(object):
|
|
|
418
423
|
|
|
419
424
|
self._policies = policies
|
|
420
425
|
|
|
426
|
+
@property
|
|
427
|
+
def inherit_steward(self):
|
|
428
|
+
"""Gets the inherit_steward of this DatasetRequestModel. # noqa: E501
|
|
429
|
+
|
|
430
|
+
If true, all snapshots created from this dataset will grant dataset custodians the steward (owner) role on the snapshots. This is intended to be used in cases where a dataset will have many (> 1000) snapshots and the user wants all dataset custodians to have this role on all snapshots. Using this flag is a more efficient way to grant this role, and will avoid using up google resource quotas. # noqa: E501
|
|
431
|
+
|
|
432
|
+
:return: The inherit_steward of this DatasetRequestModel. # noqa: E501
|
|
433
|
+
:rtype: bool
|
|
434
|
+
"""
|
|
435
|
+
return self._inherit_steward
|
|
436
|
+
|
|
437
|
+
@inherit_steward.setter
|
|
438
|
+
def inherit_steward(self, inherit_steward):
|
|
439
|
+
"""Sets the inherit_steward of this DatasetRequestModel.
|
|
440
|
+
|
|
441
|
+
If true, all snapshots created from this dataset will grant dataset custodians the steward (owner) role on the snapshots. This is intended to be used in cases where a dataset will have many (> 1000) snapshots and the user wants all dataset custodians to have this role on all snapshots. Using this flag is a more efficient way to grant this role, and will avoid using up google resource quotas. # noqa: E501
|
|
442
|
+
|
|
443
|
+
:param inherit_steward: The inherit_steward of this DatasetRequestModel. # noqa: E501
|
|
444
|
+
:type: bool
|
|
445
|
+
"""
|
|
446
|
+
|
|
447
|
+
self._inherit_steward = inherit_steward
|
|
448
|
+
|
|
421
449
|
@property
|
|
422
450
|
def tags(self):
|
|
423
451
|
"""Gets the tags of this DatasetRequestModel. # noqa: E501
|
|
@@ -47,7 +47,8 @@ class DatasetSummaryModel(object):
|
|
|
47
47
|
'self_hosted': 'bool',
|
|
48
48
|
'predictable_file_ids': 'bool',
|
|
49
49
|
'tags': 'list[str]',
|
|
50
|
-
'resource_locks': 'ResourceLocks'
|
|
50
|
+
'resource_locks': 'ResourceLocks',
|
|
51
|
+
'inherit_steward': 'bool'
|
|
51
52
|
}
|
|
52
53
|
|
|
53
54
|
attribute_map = {
|
|
@@ -65,10 +66,11 @@ class DatasetSummaryModel(object):
|
|
|
65
66
|
'self_hosted': 'selfHosted',
|
|
66
67
|
'predictable_file_ids': 'predictableFileIds',
|
|
67
68
|
'tags': 'tags',
|
|
68
|
-
'resource_locks': 'resourceLocks'
|
|
69
|
+
'resource_locks': 'resourceLocks',
|
|
70
|
+
'inherit_steward': 'inheritSteward'
|
|
69
71
|
}
|
|
70
72
|
|
|
71
|
-
def __init__(self, id=None, name=None, description=None, default_profile_id=None, created_date=None, storage=None, secure_monitoring_enabled=False, cloud_platform=None, data_project=None, storage_account=None, phs_id=None, self_hosted=False, predictable_file_ids=False, tags=None, resource_locks=None, local_vars_configuration=None): # noqa: E501
|
|
73
|
+
def __init__(self, id=None, name=None, description=None, default_profile_id=None, created_date=None, storage=None, secure_monitoring_enabled=False, cloud_platform=None, data_project=None, storage_account=None, phs_id=None, self_hosted=False, predictable_file_ids=False, tags=None, resource_locks=None, inherit_steward=False, local_vars_configuration=None): # noqa: E501
|
|
72
74
|
"""DatasetSummaryModel - a model defined in OpenAPI""" # noqa: E501
|
|
73
75
|
if local_vars_configuration is None:
|
|
74
76
|
local_vars_configuration = Configuration()
|
|
@@ -89,6 +91,7 @@ class DatasetSummaryModel(object):
|
|
|
89
91
|
self._predictable_file_ids = None
|
|
90
92
|
self._tags = None
|
|
91
93
|
self._resource_locks = None
|
|
94
|
+
self._inherit_steward = None
|
|
92
95
|
self.discriminator = None
|
|
93
96
|
|
|
94
97
|
if id is not None:
|
|
@@ -121,6 +124,8 @@ class DatasetSummaryModel(object):
|
|
|
121
124
|
self.tags = tags
|
|
122
125
|
if resource_locks is not None:
|
|
123
126
|
self.resource_locks = resource_locks
|
|
127
|
+
if inherit_steward is not None:
|
|
128
|
+
self.inherit_steward = inherit_steward
|
|
124
129
|
|
|
125
130
|
@property
|
|
126
131
|
def id(self):
|
|
@@ -466,6 +471,29 @@ class DatasetSummaryModel(object):
|
|
|
466
471
|
|
|
467
472
|
self._resource_locks = resource_locks
|
|
468
473
|
|
|
474
|
+
@property
|
|
475
|
+
def inherit_steward(self):
|
|
476
|
+
"""Gets the inherit_steward of this DatasetSummaryModel. # noqa: E501
|
|
477
|
+
|
|
478
|
+
If true, all snapshots created from this dataset will grant dataset custodians the steward (owner) role on the snapshots. # noqa: E501
|
|
479
|
+
|
|
480
|
+
:return: The inherit_steward of this DatasetSummaryModel. # noqa: E501
|
|
481
|
+
:rtype: bool
|
|
482
|
+
"""
|
|
483
|
+
return self._inherit_steward
|
|
484
|
+
|
|
485
|
+
@inherit_steward.setter
|
|
486
|
+
def inherit_steward(self, inherit_steward):
|
|
487
|
+
"""Sets the inherit_steward of this DatasetSummaryModel.
|
|
488
|
+
|
|
489
|
+
If true, all snapshots created from this dataset will grant dataset custodians the steward (owner) role on the snapshots. # noqa: E501
|
|
490
|
+
|
|
491
|
+
:param inherit_steward: The inherit_steward of this DatasetSummaryModel. # noqa: E501
|
|
492
|
+
:type: bool
|
|
493
|
+
"""
|
|
494
|
+
|
|
495
|
+
self._inherit_steward = inherit_steward
|
|
496
|
+
|
|
469
497
|
def to_dict(self):
|
|
470
498
|
"""Returns the model properties as a dict"""
|
|
471
499
|
result = {}
|