data-repo-client 2.269.0__py3-none-any.whl → 2.270.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.

@@ -14,7 +14,7 @@
14
14
 
15
15
  from __future__ import absolute_import
16
16
 
17
- __version__ = "2.269.0"
17
+ __version__ = "2.270.0"
18
18
 
19
19
  # import apis into sdk package
20
20
  from data_repo_client.api.data_repository_service_api import DataRepositoryServiceApi
@@ -8604,6 +8604,133 @@ class RepositoryApi(object):
8604
8604
  _request_timeout=local_var_params.get('_request_timeout'),
8605
8605
  collection_formats=collection_formats)
8606
8606
 
8607
+ def set_snapshot_public(self, id, body, **kwargs): # noqa: E501
8608
+ """set_snapshot_public # noqa: E501
8609
+
8610
+ 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. # noqa: E501
8611
+ This method makes a synchronous HTTP request by default. To make an
8612
+ asynchronous HTTP request, please pass async_req=True
8613
+ >>> thread = api.set_snapshot_public(id, body, async_req=True)
8614
+ >>> result = thread.get()
8615
+
8616
+ :param async_req bool: execute request asynchronously
8617
+ :param str id: A UUID to used to identify an object in the repository (required)
8618
+ :param bool body: A boolean value indicating whether the reader policy on the snapshot is being set public. (required)
8619
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
8620
+ be returned without reading/decoding response
8621
+ data. Default is True.
8622
+ :param _request_timeout: timeout setting for this request. If one
8623
+ number provided, it will be total request
8624
+ timeout. It can also be a pair (tuple) of
8625
+ (connection, read) timeouts.
8626
+ :return: JobModel
8627
+ If the method is called asynchronously,
8628
+ returns the request thread.
8629
+ """
8630
+ kwargs['_return_http_data_only'] = True
8631
+ return self.set_snapshot_public_with_http_info(id, body, **kwargs) # noqa: E501
8632
+
8633
+ def set_snapshot_public_with_http_info(self, id, body, **kwargs): # noqa: E501
8634
+ """set_snapshot_public # noqa: E501
8635
+
8636
+ 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. # noqa: E501
8637
+ This method makes a synchronous HTTP request by default. To make an
8638
+ asynchronous HTTP request, please pass async_req=True
8639
+ >>> thread = api.set_snapshot_public_with_http_info(id, body, async_req=True)
8640
+ >>> result = thread.get()
8641
+
8642
+ :param async_req bool: execute request asynchronously
8643
+ :param str id: A UUID to used to identify an object in the repository (required)
8644
+ :param bool body: A boolean value indicating whether the reader policy on the snapshot is being set public. (required)
8645
+ :param _return_http_data_only: response data without head status code
8646
+ and headers
8647
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
8648
+ be returned without reading/decoding response
8649
+ data. Default is True.
8650
+ :param _request_timeout: timeout setting for this request. If one
8651
+ number provided, it will be total request
8652
+ timeout. It can also be a pair (tuple) of
8653
+ (connection, read) timeouts.
8654
+ :return: tuple(JobModel, status_code(int), headers(HTTPHeaderDict))
8655
+ If the method is called asynchronously,
8656
+ returns the request thread.
8657
+ """
8658
+
8659
+ local_var_params = locals()
8660
+
8661
+ all_params = [
8662
+ 'id',
8663
+ 'body'
8664
+ ]
8665
+ all_params.extend(
8666
+ [
8667
+ 'async_req',
8668
+ '_return_http_data_only',
8669
+ '_preload_content',
8670
+ '_request_timeout'
8671
+ ]
8672
+ )
8673
+
8674
+ for key, val in six.iteritems(local_var_params['kwargs']):
8675
+ if key not in all_params:
8676
+ raise ApiTypeError(
8677
+ "Got an unexpected keyword argument '%s'"
8678
+ " to method set_snapshot_public" % key
8679
+ )
8680
+ local_var_params[key] = val
8681
+ del local_var_params['kwargs']
8682
+ # verify the required parameter 'id' is set
8683
+ if self.api_client.client_side_validation and ('id' not in local_var_params or # noqa: E501
8684
+ local_var_params['id'] is None): # noqa: E501
8685
+ raise ApiValueError("Missing the required parameter `id` when calling `set_snapshot_public`") # noqa: E501
8686
+ # verify the required parameter 'body' is set
8687
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
8688
+ local_var_params['body'] is None): # noqa: E501
8689
+ raise ApiValueError("Missing the required parameter `body` when calling `set_snapshot_public`") # noqa: E501
8690
+
8691
+ collection_formats = {}
8692
+
8693
+ path_params = {}
8694
+ if 'id' in local_var_params:
8695
+ path_params['id'] = local_var_params['id'] # noqa: E501
8696
+
8697
+ query_params = []
8698
+
8699
+ header_params = {}
8700
+
8701
+ form_params = []
8702
+ local_var_files = {}
8703
+
8704
+ body_params = None
8705
+ if 'body' in local_var_params:
8706
+ body_params = local_var_params['body']
8707
+ # HTTP header `Accept`
8708
+ header_params['Accept'] = self.api_client.select_header_accept(
8709
+ ['application/json']) # noqa: E501
8710
+
8711
+ # HTTP header `Content-Type`
8712
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
8713
+ ['application/json']) # noqa: E501
8714
+
8715
+ # Authentication setting
8716
+ auth_settings = ['oidc'] # noqa: E501
8717
+
8718
+ return self.api_client.call_api(
8719
+ '/api/repository/v1/snapshots/{id}/public', 'PUT',
8720
+ path_params,
8721
+ query_params,
8722
+ header_params,
8723
+ body=body_params,
8724
+ post_params=form_params,
8725
+ files=local_var_files,
8726
+ response_type='JobModel', # noqa: E501
8727
+ auth_settings=auth_settings,
8728
+ async_req=local_var_params.get('async_req'),
8729
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
8730
+ _preload_content=local_var_params.get('_preload_content', True),
8731
+ _request_timeout=local_var_params.get('_request_timeout'),
8732
+ collection_formats=collection_formats)
8733
+
8607
8734
  def sync_duos_dataset_authorized_users(self, duos_id, **kwargs): # noqa: E501
8608
8735
  """sync_duos_dataset_authorized_users # noqa: E501
8609
8736
 
@@ -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. # 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. # 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
 
@@ -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.269.0/python'
81
+ self.user_agent = 'OpenAPI-Generator/2.270.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.269.0".\
339
+ "SDK Package Version: 2.270.0".\
340
340
  format(env=sys.platform, pyversion=sys.version)
341
341
 
342
342
  def get_host_settings(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: data-repo-client
3
- Version: 2.269.0
3
+ Version: 2.270.0
4
4
  Summary: Data Repository API
5
5
  Home-page:
6
6
  Author: OpenAPI Generator community
@@ -1,6 +1,6 @@
1
- data_repo_client/__init__.py,sha256=HxlHAdGqWQu-ANd8Z9IwBxY8MHopt15bSuikg3kXb74,18151
2
- data_repo_client/api_client.py,sha256=xugIkF2f5errj_OdVRDoV_F2LMErL7ANbT0IXwQg28Q,27141
3
- data_repo_client/configuration.py,sha256=81q_6RNPsgAXdhT9qMbYZutSe-dEMIF4ik3MaO6bJGw,13682
1
+ data_repo_client/__init__.py,sha256=kv6owqpKgq_1_mh6gtgkkUlDO2Oobds6MG81stTwBpw,18151
2
+ data_repo_client/api_client.py,sha256=gdhPJkKG93PSiTg6vb7L6Rj3BzsvWsG43pnzNs--8rY,27141
3
+ data_repo_client/configuration.py,sha256=3qODei2J16B9OZ-14Ti7j1qwXNI9hqYNuXKvHEIOdXs,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
@@ -13,11 +13,11 @@ data_repo_client/api/jobs_api.py,sha256=Ngx-pytG_1iKyKW5B-_Lo1vuPx0qJH9QqYkuPidB
13
13
  data_repo_client/api/journal_api.py,sha256=30q0oVicCuIIUDFzm32JvDpQcmKR4InUBmSlybkK4Q4,8829
14
14
  data_repo_client/api/profiles_api.py,sha256=O3M2Nm25kFVv1mJJR8MwNOhOoaI3kODocfWACz8HzeY,52484
15
15
  data_repo_client/api/register_api.py,sha256=Q3mDFgxaUxbiuStLqW2yapH45-PZTvPVbOeG3DBaTVI,5999
16
- data_repo_client/api/repository_api.py,sha256=x1oiiTjWbIsReiksdc5dETqS4d9CaCcXpY1woxk2ltI,471224
16
+ data_repo_client/api/repository_api.py,sha256=0wBTT6ThMZ55NIvaccymh5lZaFmviQWxN6wuHZAMHAg,477501
17
17
  data_repo_client/api/resources_api.py,sha256=ExmqB8WLlZbHps2sFkAQlGdnMGGjWw4NkBQ0kMyBZfI,52485
18
18
  data_repo_client/api/search_api.py,sha256=AvbQ45-NKxirgMmsyx4xN-gkN8eHSyjDmrrP23cNBCo,31737
19
19
  data_repo_client/api/snapshot_access_request_api.py,sha256=ngqUZ7LGyF7QsrTLcLo9BcIuwrSEoEsLPEpv-bLYQWg,55636
20
- data_repo_client/api/snapshots_api.py,sha256=ASXNpt-p0uHzcW0DsMI8gkIJedqTOJXB9JK0zqgAYZo,188414
20
+ data_repo_client/api/snapshots_api.py,sha256=ETsnaeR5WqMhi2CgjprEgycS6KSCKu6yP4Yc6aSBRlQ,194691
21
21
  data_repo_client/api/unauthenticated_api.py,sha256=QWMMTMxinULtYn-1SDwuWUaZgShbrbwMtfhp3_Wrh6Q,14777
22
22
  data_repo_client/api/upgrade_api.py,sha256=573HZcDimwLHQR8ZuWEuMRvP8FXvEskmamDZ6PIzgIU,6966
23
23
  data_repo_client/models/__init__.py,sha256=oujo2-zRZ0dODWXkAjCkCWB_Vs605GmBgERJLo7Xw1A,16725
@@ -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.269.0.dist-info/METADATA,sha256=uswyAkEDpBl6jtmhk8uonZdLOzdgo6mipc3LDmwZrB0,1420
201
- data_repo_client-2.269.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
202
- data_repo_client-2.269.0.dist-info/top_level.txt,sha256=rxRfDoBxOaUhmfMLoiE926w1prfERSr2Qg70w69QsgQ,17
203
- data_repo_client-2.269.0.dist-info/RECORD,,
200
+ data_repo_client-2.270.0.dist-info/METADATA,sha256=kRRHwb-OzCr5Gidn-wwx4nncy95mTS5XGRhRPz6Ja10,1420
201
+ data_repo_client-2.270.0.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
202
+ data_repo_client-2.270.0.dist-info/top_level.txt,sha256=rxRfDoBxOaUhmfMLoiE926w1prfERSr2Qg70w69QsgQ,17
203
+ data_repo_client-2.270.0.dist-info/RECORD,,