github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python/lakefs_sdk/api/internal_api.py (about) 1 # coding: utf-8 2 3 """ 4 lakeFS API 5 6 lakeFS HTTP API 7 8 The version of the OpenAPI document: 1.0.0 9 Contact: services@treeverse.io 10 Generated by OpenAPI Generator (https://openapi-generator.tech) 11 12 Do not edit the class manually. 13 """ # noqa: E501 14 15 16 import re # noqa: F401 17 import io 18 import warnings 19 20 try: 21 from pydantic.v1 import validate_arguments, ValidationError 22 except ImportError: 23 from pydantic import validate_arguments, ValidationError 24 from typing_extensions import Annotated 25 26 try: 27 from pydantic.v1 import Field, StrictStr 28 except ImportError: 29 from pydantic import Field, StrictStr 30 31 from typing import List, Optional 32 33 from lakefs_sdk.models.auth_capabilities import AuthCapabilities 34 from lakefs_sdk.models.branch_protection_rule import BranchProtectionRule 35 from lakefs_sdk.models.comm_prefs_input import CommPrefsInput 36 from lakefs_sdk.models.commit_record_creation import CommitRecordCreation 37 from lakefs_sdk.models.credentials_with_secret import CredentialsWithSecret 38 from lakefs_sdk.models.garbage_collection_config import GarbageCollectionConfig 39 from lakefs_sdk.models.garbage_collection_prepare_response import GarbageCollectionPrepareResponse 40 from lakefs_sdk.models.garbage_collection_rules import GarbageCollectionRules 41 from lakefs_sdk.models.installation_usage_report import InstallationUsageReport 42 from lakefs_sdk.models.internal_delete_branch_protection_rule_request import InternalDeleteBranchProtectionRuleRequest 43 from lakefs_sdk.models.object_stage_creation import ObjectStageCreation 44 from lakefs_sdk.models.object_stats import ObjectStats 45 from lakefs_sdk.models.prepare_gc_uncommitted_request import PrepareGCUncommittedRequest 46 from lakefs_sdk.models.prepare_gc_uncommitted_response import PrepareGCUncommittedResponse 47 from lakefs_sdk.models.refs_dump import RefsDump 48 from lakefs_sdk.models.refs_restore import RefsRestore 49 from lakefs_sdk.models.repository_metadata_keys import RepositoryMetadataKeys 50 from lakefs_sdk.models.repository_metadata_set import RepositoryMetadataSet 51 from lakefs_sdk.models.setup import Setup 52 from lakefs_sdk.models.setup_state import SetupState 53 from lakefs_sdk.models.stats_events_list import StatsEventsList 54 from lakefs_sdk.models.storage_config import StorageConfig 55 from lakefs_sdk.models.storage_uri import StorageURI 56 from lakefs_sdk.models.version_config import VersionConfig 57 58 from lakefs_sdk.api_client import ApiClient 59 from lakefs_sdk.api_response import ApiResponse 60 from lakefs_sdk.exceptions import ( # noqa: F401 61 ApiTypeError, 62 ApiValueError 63 ) 64 65 66 class InternalApi(object): 67 """NOTE: This class is auto generated by OpenAPI Generator 68 Ref: https://openapi-generator.tech 69 70 Do not edit the class manually. 71 """ 72 73 def __init__(self, api_client=None): 74 if api_client is None: 75 api_client = ApiClient.get_default() 76 self.api_client = api_client 77 78 @validate_arguments 79 def create_branch_protection_rule_preflight(self, repository : StrictStr, **kwargs) -> None: # noqa: E501 80 """create_branch_protection_rule_preflight # noqa: E501 81 82 This method makes a synchronous HTTP request by default. To make an 83 asynchronous HTTP request, please pass async_req=True 84 85 >>> thread = api.create_branch_protection_rule_preflight(repository, async_req=True) 86 >>> result = thread.get() 87 88 :param repository: (required) 89 :type repository: str 90 :param async_req: Whether to execute the request asynchronously. 91 :type async_req: bool, optional 92 :param _request_timeout: timeout setting for this request. If one 93 number provided, it will be total request 94 timeout. It can also be a pair (tuple) of 95 (connection, read) timeouts. 96 :return: Returns the result object. 97 If the method is called asynchronously, 98 returns the request thread. 99 :rtype: None 100 """ 101 kwargs['_return_http_data_only'] = True 102 if '_preload_content' in kwargs: 103 raise ValueError("Error! Please call the create_branch_protection_rule_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 104 return self.create_branch_protection_rule_preflight_with_http_info(repository, **kwargs) # noqa: E501 105 106 @validate_arguments 107 def create_branch_protection_rule_preflight_with_http_info(self, repository : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 108 """create_branch_protection_rule_preflight # noqa: E501 109 110 This method makes a synchronous HTTP request by default. To make an 111 asynchronous HTTP request, please pass async_req=True 112 113 >>> thread = api.create_branch_protection_rule_preflight_with_http_info(repository, async_req=True) 114 >>> result = thread.get() 115 116 :param repository: (required) 117 :type repository: str 118 :param async_req: Whether to execute the request asynchronously. 119 :type async_req: bool, optional 120 :param _preload_content: if False, the ApiResponse.data will 121 be set to none and raw_data will store the 122 HTTP response body without reading/decoding. 123 Default is True. 124 :type _preload_content: bool, optional 125 :param _return_http_data_only: response data instead of ApiResponse 126 object with status code, headers, etc 127 :type _return_http_data_only: bool, optional 128 :param _request_timeout: timeout setting for this request. If one 129 number provided, it will be total request 130 timeout. It can also be a pair (tuple) of 131 (connection, read) timeouts. 132 :param _request_auth: set to override the auth_settings for an a single 133 request; this effectively ignores the authentication 134 in the spec for a single request. 135 :type _request_auth: dict, optional 136 :type _content_type: string, optional: force content-type for the request 137 :return: Returns the result object. 138 If the method is called asynchronously, 139 returns the request thread. 140 :rtype: None 141 """ 142 143 _params = locals() 144 145 _all_params = [ 146 'repository' 147 ] 148 _all_params.extend( 149 [ 150 'async_req', 151 '_return_http_data_only', 152 '_preload_content', 153 '_request_timeout', 154 '_request_auth', 155 '_content_type', 156 '_headers' 157 ] 158 ) 159 160 # validate the arguments 161 for _key, _val in _params['kwargs'].items(): 162 if _key not in _all_params: 163 raise ApiTypeError( 164 "Got an unexpected keyword argument '%s'" 165 " to method create_branch_protection_rule_preflight" % _key 166 ) 167 _params[_key] = _val 168 del _params['kwargs'] 169 170 _collection_formats = {} 171 172 # process the path parameters 173 _path_params = {} 174 if _params['repository']: 175 _path_params['repository'] = _params['repository'] 176 177 178 # process the query parameters 179 _query_params = [] 180 # process the header parameters 181 _header_params = dict(_params.get('_headers', {})) 182 # process the form parameters 183 _form_params = [] 184 _files = {} 185 # process the body parameter 186 _body_params = None 187 # set the HTTP header `Accept` 188 _header_params['Accept'] = self.api_client.select_header_accept( 189 ['application/json']) # noqa: E501 190 191 # authentication setting 192 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 193 194 _response_types_map = {} 195 196 return self.api_client.call_api( 197 '/repositories/{repository}/branch_protection/set_allowed', 'GET', 198 _path_params, 199 _query_params, 200 _header_params, 201 body=_body_params, 202 post_params=_form_params, 203 files=_files, 204 response_types_map=_response_types_map, 205 auth_settings=_auth_settings, 206 async_req=_params.get('async_req'), 207 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 208 _preload_content=_params.get('_preload_content', True), 209 _request_timeout=_params.get('_request_timeout'), 210 collection_formats=_collection_formats, 211 _request_auth=_params.get('_request_auth')) 212 213 @validate_arguments 214 def create_commit_record(self, repository : StrictStr, commit_record_creation : CommitRecordCreation, **kwargs) -> None: # noqa: E501 215 """create commit record # noqa: E501 216 217 This method makes a synchronous HTTP request by default. To make an 218 asynchronous HTTP request, please pass async_req=True 219 220 >>> thread = api.create_commit_record(repository, commit_record_creation, async_req=True) 221 >>> result = thread.get() 222 223 :param repository: (required) 224 :type repository: str 225 :param commit_record_creation: (required) 226 :type commit_record_creation: CommitRecordCreation 227 :param async_req: Whether to execute the request asynchronously. 228 :type async_req: bool, optional 229 :param _request_timeout: timeout setting for this request. If one 230 number provided, it will be total request 231 timeout. It can also be a pair (tuple) of 232 (connection, read) timeouts. 233 :return: Returns the result object. 234 If the method is called asynchronously, 235 returns the request thread. 236 :rtype: None 237 """ 238 kwargs['_return_http_data_only'] = True 239 if '_preload_content' in kwargs: 240 raise ValueError("Error! Please call the create_commit_record_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 241 return self.create_commit_record_with_http_info(repository, commit_record_creation, **kwargs) # noqa: E501 242 243 @validate_arguments 244 def create_commit_record_with_http_info(self, repository : StrictStr, commit_record_creation : CommitRecordCreation, **kwargs) -> ApiResponse: # noqa: E501 245 """create commit record # noqa: E501 246 247 This method makes a synchronous HTTP request by default. To make an 248 asynchronous HTTP request, please pass async_req=True 249 250 >>> thread = api.create_commit_record_with_http_info(repository, commit_record_creation, async_req=True) 251 >>> result = thread.get() 252 253 :param repository: (required) 254 :type repository: str 255 :param commit_record_creation: (required) 256 :type commit_record_creation: CommitRecordCreation 257 :param async_req: Whether to execute the request asynchronously. 258 :type async_req: bool, optional 259 :param _preload_content: if False, the ApiResponse.data will 260 be set to none and raw_data will store the 261 HTTP response body without reading/decoding. 262 Default is True. 263 :type _preload_content: bool, optional 264 :param _return_http_data_only: response data instead of ApiResponse 265 object with status code, headers, etc 266 :type _return_http_data_only: bool, optional 267 :param _request_timeout: timeout setting for this request. If one 268 number provided, it will be total request 269 timeout. It can also be a pair (tuple) of 270 (connection, read) timeouts. 271 :param _request_auth: set to override the auth_settings for an a single 272 request; this effectively ignores the authentication 273 in the spec for a single request. 274 :type _request_auth: dict, optional 275 :type _content_type: string, optional: force content-type for the request 276 :return: Returns the result object. 277 If the method is called asynchronously, 278 returns the request thread. 279 :rtype: None 280 """ 281 282 _params = locals() 283 284 _all_params = [ 285 'repository', 286 'commit_record_creation' 287 ] 288 _all_params.extend( 289 [ 290 'async_req', 291 '_return_http_data_only', 292 '_preload_content', 293 '_request_timeout', 294 '_request_auth', 295 '_content_type', 296 '_headers' 297 ] 298 ) 299 300 # validate the arguments 301 for _key, _val in _params['kwargs'].items(): 302 if _key not in _all_params: 303 raise ApiTypeError( 304 "Got an unexpected keyword argument '%s'" 305 " to method create_commit_record" % _key 306 ) 307 _params[_key] = _val 308 del _params['kwargs'] 309 310 _collection_formats = {} 311 312 # process the path parameters 313 _path_params = {} 314 if _params['repository']: 315 _path_params['repository'] = _params['repository'] 316 317 318 # process the query parameters 319 _query_params = [] 320 # process the header parameters 321 _header_params = dict(_params.get('_headers', {})) 322 # process the form parameters 323 _form_params = [] 324 _files = {} 325 # process the body parameter 326 _body_params = None 327 if _params['commit_record_creation'] is not None: 328 _body_params = _params['commit_record_creation'] 329 330 # set the HTTP header `Accept` 331 _header_params['Accept'] = self.api_client.select_header_accept( 332 ['application/json']) # noqa: E501 333 334 # set the HTTP header `Content-Type` 335 _content_types_list = _params.get('_content_type', 336 self.api_client.select_header_content_type( 337 ['application/json'])) 338 if _content_types_list: 339 _header_params['Content-Type'] = _content_types_list 340 341 # authentication setting 342 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 343 344 _response_types_map = {} 345 346 return self.api_client.call_api( 347 '/repositories/{repository}/commits', 'POST', 348 _path_params, 349 _query_params, 350 _header_params, 351 body=_body_params, 352 post_params=_form_params, 353 files=_files, 354 response_types_map=_response_types_map, 355 auth_settings=_auth_settings, 356 async_req=_params.get('async_req'), 357 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 358 _preload_content=_params.get('_preload_content', True), 359 _request_timeout=_params.get('_request_timeout'), 360 collection_formats=_collection_formats, 361 _request_auth=_params.get('_request_auth')) 362 363 @validate_arguments 364 def create_symlink_file(self, repository : StrictStr, branch : StrictStr, location : Annotated[Optional[StrictStr], Field(description="path to the table data")] = None, **kwargs) -> StorageURI: # noqa: E501 365 """creates symlink files corresponding to the given directory # noqa: E501 366 367 This method makes a synchronous HTTP request by default. To make an 368 asynchronous HTTP request, please pass async_req=True 369 370 >>> thread = api.create_symlink_file(repository, branch, location, async_req=True) 371 >>> result = thread.get() 372 373 :param repository: (required) 374 :type repository: str 375 :param branch: (required) 376 :type branch: str 377 :param location: path to the table data 378 :type location: str 379 :param async_req: Whether to execute the request asynchronously. 380 :type async_req: bool, optional 381 :param _request_timeout: timeout setting for this request. If one 382 number provided, it will be total request 383 timeout. It can also be a pair (tuple) of 384 (connection, read) timeouts. 385 :return: Returns the result object. 386 If the method is called asynchronously, 387 returns the request thread. 388 :rtype: StorageURI 389 """ 390 kwargs['_return_http_data_only'] = True 391 if '_preload_content' in kwargs: 392 raise ValueError("Error! Please call the create_symlink_file_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 393 return self.create_symlink_file_with_http_info(repository, branch, location, **kwargs) # noqa: E501 394 395 @validate_arguments 396 def create_symlink_file_with_http_info(self, repository : StrictStr, branch : StrictStr, location : Annotated[Optional[StrictStr], Field(description="path to the table data")] = None, **kwargs) -> ApiResponse: # noqa: E501 397 """creates symlink files corresponding to the given directory # noqa: E501 398 399 This method makes a synchronous HTTP request by default. To make an 400 asynchronous HTTP request, please pass async_req=True 401 402 >>> thread = api.create_symlink_file_with_http_info(repository, branch, location, async_req=True) 403 >>> result = thread.get() 404 405 :param repository: (required) 406 :type repository: str 407 :param branch: (required) 408 :type branch: str 409 :param location: path to the table data 410 :type location: str 411 :param async_req: Whether to execute the request asynchronously. 412 :type async_req: bool, optional 413 :param _preload_content: if False, the ApiResponse.data will 414 be set to none and raw_data will store the 415 HTTP response body without reading/decoding. 416 Default is True. 417 :type _preload_content: bool, optional 418 :param _return_http_data_only: response data instead of ApiResponse 419 object with status code, headers, etc 420 :type _return_http_data_only: bool, optional 421 :param _request_timeout: timeout setting for this request. If one 422 number provided, it will be total request 423 timeout. It can also be a pair (tuple) of 424 (connection, read) timeouts. 425 :param _request_auth: set to override the auth_settings for an a single 426 request; this effectively ignores the authentication 427 in the spec for a single request. 428 :type _request_auth: dict, optional 429 :type _content_type: string, optional: force content-type for the request 430 :return: Returns the result object. 431 If the method is called asynchronously, 432 returns the request thread. 433 :rtype: tuple(StorageURI, status_code(int), headers(HTTPHeaderDict)) 434 """ 435 436 _params = locals() 437 438 _all_params = [ 439 'repository', 440 'branch', 441 'location' 442 ] 443 _all_params.extend( 444 [ 445 'async_req', 446 '_return_http_data_only', 447 '_preload_content', 448 '_request_timeout', 449 '_request_auth', 450 '_content_type', 451 '_headers' 452 ] 453 ) 454 455 # validate the arguments 456 for _key, _val in _params['kwargs'].items(): 457 if _key not in _all_params: 458 raise ApiTypeError( 459 "Got an unexpected keyword argument '%s'" 460 " to method create_symlink_file" % _key 461 ) 462 _params[_key] = _val 463 del _params['kwargs'] 464 465 _collection_formats = {} 466 467 # process the path parameters 468 _path_params = {} 469 if _params['repository']: 470 _path_params['repository'] = _params['repository'] 471 472 if _params['branch']: 473 _path_params['branch'] = _params['branch'] 474 475 476 # process the query parameters 477 _query_params = [] 478 if _params.get('location') is not None: # noqa: E501 479 _query_params.append(('location', _params['location'])) 480 481 # process the header parameters 482 _header_params = dict(_params.get('_headers', {})) 483 # process the form parameters 484 _form_params = [] 485 _files = {} 486 # process the body parameter 487 _body_params = None 488 # set the HTTP header `Accept` 489 _header_params['Accept'] = self.api_client.select_header_accept( 490 ['application/json']) # noqa: E501 491 492 # authentication setting 493 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 494 495 _response_types_map = { 496 '201': "StorageURI", 497 '401': "Error", 498 '404': "Error", 499 '420': None, 500 } 501 502 return self.api_client.call_api( 503 '/repositories/{repository}/refs/{branch}/symlink', 'POST', 504 _path_params, 505 _query_params, 506 _header_params, 507 body=_body_params, 508 post_params=_form_params, 509 files=_files, 510 response_types_map=_response_types_map, 511 auth_settings=_auth_settings, 512 async_req=_params.get('async_req'), 513 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 514 _preload_content=_params.get('_preload_content', True), 515 _request_timeout=_params.get('_request_timeout'), 516 collection_formats=_collection_formats, 517 _request_auth=_params.get('_request_auth')) 518 519 @validate_arguments 520 def delete_repository_metadata(self, repository : StrictStr, repository_metadata_keys : RepositoryMetadataKeys, **kwargs) -> None: # noqa: E501 521 """delete repository metadata # noqa: E501 522 523 Delete specified keys from the repository's metadata. # noqa: E501 524 This method makes a synchronous HTTP request by default. To make an 525 asynchronous HTTP request, please pass async_req=True 526 527 >>> thread = api.delete_repository_metadata(repository, repository_metadata_keys, async_req=True) 528 >>> result = thread.get() 529 530 :param repository: (required) 531 :type repository: str 532 :param repository_metadata_keys: (required) 533 :type repository_metadata_keys: RepositoryMetadataKeys 534 :param async_req: Whether to execute the request asynchronously. 535 :type async_req: bool, optional 536 :param _request_timeout: timeout setting for this request. If one 537 number provided, it will be total request 538 timeout. It can also be a pair (tuple) of 539 (connection, read) timeouts. 540 :return: Returns the result object. 541 If the method is called asynchronously, 542 returns the request thread. 543 :rtype: None 544 """ 545 kwargs['_return_http_data_only'] = True 546 if '_preload_content' in kwargs: 547 raise ValueError("Error! Please call the delete_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 548 return self.delete_repository_metadata_with_http_info(repository, repository_metadata_keys, **kwargs) # noqa: E501 549 550 @validate_arguments 551 def delete_repository_metadata_with_http_info(self, repository : StrictStr, repository_metadata_keys : RepositoryMetadataKeys, **kwargs) -> ApiResponse: # noqa: E501 552 """delete repository metadata # noqa: E501 553 554 Delete specified keys from the repository's metadata. # noqa: E501 555 This method makes a synchronous HTTP request by default. To make an 556 asynchronous HTTP request, please pass async_req=True 557 558 >>> thread = api.delete_repository_metadata_with_http_info(repository, repository_metadata_keys, async_req=True) 559 >>> result = thread.get() 560 561 :param repository: (required) 562 :type repository: str 563 :param repository_metadata_keys: (required) 564 :type repository_metadata_keys: RepositoryMetadataKeys 565 :param async_req: Whether to execute the request asynchronously. 566 :type async_req: bool, optional 567 :param _preload_content: if False, the ApiResponse.data will 568 be set to none and raw_data will store the 569 HTTP response body without reading/decoding. 570 Default is True. 571 :type _preload_content: bool, optional 572 :param _return_http_data_only: response data instead of ApiResponse 573 object with status code, headers, etc 574 :type _return_http_data_only: bool, optional 575 :param _request_timeout: timeout setting for this request. If one 576 number provided, it will be total request 577 timeout. It can also be a pair (tuple) of 578 (connection, read) timeouts. 579 :param _request_auth: set to override the auth_settings for an a single 580 request; this effectively ignores the authentication 581 in the spec for a single request. 582 :type _request_auth: dict, optional 583 :type _content_type: string, optional: force content-type for the request 584 :return: Returns the result object. 585 If the method is called asynchronously, 586 returns the request thread. 587 :rtype: None 588 """ 589 590 _params = locals() 591 592 _all_params = [ 593 'repository', 594 'repository_metadata_keys' 595 ] 596 _all_params.extend( 597 [ 598 'async_req', 599 '_return_http_data_only', 600 '_preload_content', 601 '_request_timeout', 602 '_request_auth', 603 '_content_type', 604 '_headers' 605 ] 606 ) 607 608 # validate the arguments 609 for _key, _val in _params['kwargs'].items(): 610 if _key not in _all_params: 611 raise ApiTypeError( 612 "Got an unexpected keyword argument '%s'" 613 " to method delete_repository_metadata" % _key 614 ) 615 _params[_key] = _val 616 del _params['kwargs'] 617 618 _collection_formats = {} 619 620 # process the path parameters 621 _path_params = {} 622 if _params['repository']: 623 _path_params['repository'] = _params['repository'] 624 625 626 # process the query parameters 627 _query_params = [] 628 # process the header parameters 629 _header_params = dict(_params.get('_headers', {})) 630 # process the form parameters 631 _form_params = [] 632 _files = {} 633 # process the body parameter 634 _body_params = None 635 if _params['repository_metadata_keys'] is not None: 636 _body_params = _params['repository_metadata_keys'] 637 638 # set the HTTP header `Accept` 639 _header_params['Accept'] = self.api_client.select_header_accept( 640 ['application/json']) # noqa: E501 641 642 # set the HTTP header `Content-Type` 643 _content_types_list = _params.get('_content_type', 644 self.api_client.select_header_content_type( 645 ['application/json'])) 646 if _content_types_list: 647 _header_params['Content-Type'] = _content_types_list 648 649 # authentication setting 650 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 651 652 _response_types_map = {} 653 654 return self.api_client.call_api( 655 '/repositories/{repository}/metadata', 'DELETE', 656 _path_params, 657 _query_params, 658 _header_params, 659 body=_body_params, 660 post_params=_form_params, 661 files=_files, 662 response_types_map=_response_types_map, 663 auth_settings=_auth_settings, 664 async_req=_params.get('async_req'), 665 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 666 _preload_content=_params.get('_preload_content', True), 667 _request_timeout=_params.get('_request_timeout'), 668 collection_formats=_collection_formats, 669 _request_auth=_params.get('_request_auth')) 670 671 @validate_arguments 672 def dump_refs(self, repository : StrictStr, **kwargs) -> RefsDump: # noqa: E501 673 """Dump repository refs (tags, commits, branches) to object store Deprecated: a new API will introduce long running operations # noqa: E501 674 675 This method makes a synchronous HTTP request by default. To make an 676 asynchronous HTTP request, please pass async_req=True 677 678 >>> thread = api.dump_refs(repository, async_req=True) 679 >>> result = thread.get() 680 681 :param repository: (required) 682 :type repository: str 683 :param async_req: Whether to execute the request asynchronously. 684 :type async_req: bool, optional 685 :param _request_timeout: timeout setting for this request. If one 686 number provided, it will be total request 687 timeout. It can also be a pair (tuple) of 688 (connection, read) timeouts. 689 :return: Returns the result object. 690 If the method is called asynchronously, 691 returns the request thread. 692 :rtype: RefsDump 693 """ 694 kwargs['_return_http_data_only'] = True 695 if '_preload_content' in kwargs: 696 raise ValueError("Error! Please call the dump_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 697 return self.dump_refs_with_http_info(repository, **kwargs) # noqa: E501 698 699 @validate_arguments 700 def dump_refs_with_http_info(self, repository : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 701 """Dump repository refs (tags, commits, branches) to object store Deprecated: a new API will introduce long running operations # noqa: E501 702 703 This method makes a synchronous HTTP request by default. To make an 704 asynchronous HTTP request, please pass async_req=True 705 706 >>> thread = api.dump_refs_with_http_info(repository, async_req=True) 707 >>> result = thread.get() 708 709 :param repository: (required) 710 :type repository: str 711 :param async_req: Whether to execute the request asynchronously. 712 :type async_req: bool, optional 713 :param _preload_content: if False, the ApiResponse.data will 714 be set to none and raw_data will store the 715 HTTP response body without reading/decoding. 716 Default is True. 717 :type _preload_content: bool, optional 718 :param _return_http_data_only: response data instead of ApiResponse 719 object with status code, headers, etc 720 :type _return_http_data_only: bool, optional 721 :param _request_timeout: timeout setting for this request. If one 722 number provided, it will be total request 723 timeout. It can also be a pair (tuple) of 724 (connection, read) timeouts. 725 :param _request_auth: set to override the auth_settings for an a single 726 request; this effectively ignores the authentication 727 in the spec for a single request. 728 :type _request_auth: dict, optional 729 :type _content_type: string, optional: force content-type for the request 730 :return: Returns the result object. 731 If the method is called asynchronously, 732 returns the request thread. 733 :rtype: tuple(RefsDump, status_code(int), headers(HTTPHeaderDict)) 734 """ 735 736 _params = locals() 737 738 _all_params = [ 739 'repository' 740 ] 741 _all_params.extend( 742 [ 743 'async_req', 744 '_return_http_data_only', 745 '_preload_content', 746 '_request_timeout', 747 '_request_auth', 748 '_content_type', 749 '_headers' 750 ] 751 ) 752 753 # validate the arguments 754 for _key, _val in _params['kwargs'].items(): 755 if _key not in _all_params: 756 raise ApiTypeError( 757 "Got an unexpected keyword argument '%s'" 758 " to method dump_refs" % _key 759 ) 760 _params[_key] = _val 761 del _params['kwargs'] 762 763 _collection_formats = {} 764 765 # process the path parameters 766 _path_params = {} 767 if _params['repository']: 768 _path_params['repository'] = _params['repository'] 769 770 771 # process the query parameters 772 _query_params = [] 773 # process the header parameters 774 _header_params = dict(_params.get('_headers', {})) 775 # process the form parameters 776 _form_params = [] 777 _files = {} 778 # process the body parameter 779 _body_params = None 780 # set the HTTP header `Accept` 781 _header_params['Accept'] = self.api_client.select_header_accept( 782 ['application/json']) # noqa: E501 783 784 # authentication setting 785 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 786 787 _response_types_map = { 788 '201': "RefsDump", 789 '400': "Error", 790 '401': "Error", 791 '404': "Error", 792 '420': None, 793 } 794 795 return self.api_client.call_api( 796 '/repositories/{repository}/refs/dump', 'PUT', 797 _path_params, 798 _query_params, 799 _header_params, 800 body=_body_params, 801 post_params=_form_params, 802 files=_files, 803 response_types_map=_response_types_map, 804 auth_settings=_auth_settings, 805 async_req=_params.get('async_req'), 806 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 807 _preload_content=_params.get('_preload_content', True), 808 _request_timeout=_params.get('_request_timeout'), 809 collection_formats=_collection_formats, 810 _request_auth=_params.get('_request_auth')) 811 812 @validate_arguments 813 def get_auth_capabilities(self, **kwargs) -> AuthCapabilities: # noqa: E501 814 """list authentication capabilities supported # noqa: E501 815 816 This method makes a synchronous HTTP request by default. To make an 817 asynchronous HTTP request, please pass async_req=True 818 819 >>> thread = api.get_auth_capabilities(async_req=True) 820 >>> result = thread.get() 821 822 :param async_req: Whether to execute the request asynchronously. 823 :type async_req: bool, optional 824 :param _request_timeout: timeout setting for this request. If one 825 number provided, it will be total request 826 timeout. It can also be a pair (tuple) of 827 (connection, read) timeouts. 828 :return: Returns the result object. 829 If the method is called asynchronously, 830 returns the request thread. 831 :rtype: AuthCapabilities 832 """ 833 kwargs['_return_http_data_only'] = True 834 if '_preload_content' in kwargs: 835 raise ValueError("Error! Please call the get_auth_capabilities_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 836 return self.get_auth_capabilities_with_http_info(**kwargs) # noqa: E501 837 838 @validate_arguments 839 def get_auth_capabilities_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 840 """list authentication capabilities supported # noqa: E501 841 842 This method makes a synchronous HTTP request by default. To make an 843 asynchronous HTTP request, please pass async_req=True 844 845 >>> thread = api.get_auth_capabilities_with_http_info(async_req=True) 846 >>> result = thread.get() 847 848 :param async_req: Whether to execute the request asynchronously. 849 :type async_req: bool, optional 850 :param _preload_content: if False, the ApiResponse.data will 851 be set to none and raw_data will store the 852 HTTP response body without reading/decoding. 853 Default is True. 854 :type _preload_content: bool, optional 855 :param _return_http_data_only: response data instead of ApiResponse 856 object with status code, headers, etc 857 :type _return_http_data_only: bool, optional 858 :param _request_timeout: timeout setting for this request. If one 859 number provided, it will be total request 860 timeout. It can also be a pair (tuple) of 861 (connection, read) timeouts. 862 :param _request_auth: set to override the auth_settings for an a single 863 request; this effectively ignores the authentication 864 in the spec for a single request. 865 :type _request_auth: dict, optional 866 :type _content_type: string, optional: force content-type for the request 867 :return: Returns the result object. 868 If the method is called asynchronously, 869 returns the request thread. 870 :rtype: tuple(AuthCapabilities, status_code(int), headers(HTTPHeaderDict)) 871 """ 872 873 _params = locals() 874 875 _all_params = [ 876 ] 877 _all_params.extend( 878 [ 879 'async_req', 880 '_return_http_data_only', 881 '_preload_content', 882 '_request_timeout', 883 '_request_auth', 884 '_content_type', 885 '_headers' 886 ] 887 ) 888 889 # validate the arguments 890 for _key, _val in _params['kwargs'].items(): 891 if _key not in _all_params: 892 raise ApiTypeError( 893 "Got an unexpected keyword argument '%s'" 894 " to method get_auth_capabilities" % _key 895 ) 896 _params[_key] = _val 897 del _params['kwargs'] 898 899 _collection_formats = {} 900 901 # process the path parameters 902 _path_params = {} 903 904 # process the query parameters 905 _query_params = [] 906 # process the header parameters 907 _header_params = dict(_params.get('_headers', {})) 908 # process the form parameters 909 _form_params = [] 910 _files = {} 911 # process the body parameter 912 _body_params = None 913 # set the HTTP header `Accept` 914 _header_params['Accept'] = self.api_client.select_header_accept( 915 ['application/json']) # noqa: E501 916 917 # authentication setting 918 _auth_settings = [] # noqa: E501 919 920 _response_types_map = { 921 '200': "AuthCapabilities", 922 '420': None, 923 } 924 925 return self.api_client.call_api( 926 '/auth/capabilities', 'GET', 927 _path_params, 928 _query_params, 929 _header_params, 930 body=_body_params, 931 post_params=_form_params, 932 files=_files, 933 response_types_map=_response_types_map, 934 auth_settings=_auth_settings, 935 async_req=_params.get('async_req'), 936 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 937 _preload_content=_params.get('_preload_content', True), 938 _request_timeout=_params.get('_request_timeout'), 939 collection_formats=_collection_formats, 940 _request_auth=_params.get('_request_auth')) 941 942 @validate_arguments 943 def get_garbage_collection_config(self, **kwargs) -> GarbageCollectionConfig: # noqa: E501 944 """get_garbage_collection_config # noqa: E501 945 946 get information of gc settings # noqa: E501 947 This method makes a synchronous HTTP request by default. To make an 948 asynchronous HTTP request, please pass async_req=True 949 950 >>> thread = api.get_garbage_collection_config(async_req=True) 951 >>> result = thread.get() 952 953 :param async_req: Whether to execute the request asynchronously. 954 :type async_req: bool, optional 955 :param _request_timeout: timeout setting for this request. If one 956 number provided, it will be total request 957 timeout. It can also be a pair (tuple) of 958 (connection, read) timeouts. 959 :return: Returns the result object. 960 If the method is called asynchronously, 961 returns the request thread. 962 :rtype: GarbageCollectionConfig 963 """ 964 kwargs['_return_http_data_only'] = True 965 if '_preload_content' in kwargs: 966 raise ValueError("Error! Please call the get_garbage_collection_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 967 return self.get_garbage_collection_config_with_http_info(**kwargs) # noqa: E501 968 969 @validate_arguments 970 def get_garbage_collection_config_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 971 """get_garbage_collection_config # noqa: E501 972 973 get information of gc settings # noqa: E501 974 This method makes a synchronous HTTP request by default. To make an 975 asynchronous HTTP request, please pass async_req=True 976 977 >>> thread = api.get_garbage_collection_config_with_http_info(async_req=True) 978 >>> result = thread.get() 979 980 :param async_req: Whether to execute the request asynchronously. 981 :type async_req: bool, optional 982 :param _preload_content: if False, the ApiResponse.data will 983 be set to none and raw_data will store the 984 HTTP response body without reading/decoding. 985 Default is True. 986 :type _preload_content: bool, optional 987 :param _return_http_data_only: response data instead of ApiResponse 988 object with status code, headers, etc 989 :type _return_http_data_only: bool, optional 990 :param _request_timeout: timeout setting for this request. If one 991 number provided, it will be total request 992 timeout. It can also be a pair (tuple) of 993 (connection, read) timeouts. 994 :param _request_auth: set to override the auth_settings for an a single 995 request; this effectively ignores the authentication 996 in the spec for a single request. 997 :type _request_auth: dict, optional 998 :type _content_type: string, optional: force content-type for the request 999 :return: Returns the result object. 1000 If the method is called asynchronously, 1001 returns the request thread. 1002 :rtype: tuple(GarbageCollectionConfig, status_code(int), headers(HTTPHeaderDict)) 1003 """ 1004 1005 _params = locals() 1006 1007 _all_params = [ 1008 ] 1009 _all_params.extend( 1010 [ 1011 'async_req', 1012 '_return_http_data_only', 1013 '_preload_content', 1014 '_request_timeout', 1015 '_request_auth', 1016 '_content_type', 1017 '_headers' 1018 ] 1019 ) 1020 1021 # validate the arguments 1022 for _key, _val in _params['kwargs'].items(): 1023 if _key not in _all_params: 1024 raise ApiTypeError( 1025 "Got an unexpected keyword argument '%s'" 1026 " to method get_garbage_collection_config" % _key 1027 ) 1028 _params[_key] = _val 1029 del _params['kwargs'] 1030 1031 _collection_formats = {} 1032 1033 # process the path parameters 1034 _path_params = {} 1035 1036 # process the query parameters 1037 _query_params = [] 1038 # process the header parameters 1039 _header_params = dict(_params.get('_headers', {})) 1040 # process the form parameters 1041 _form_params = [] 1042 _files = {} 1043 # process the body parameter 1044 _body_params = None 1045 # set the HTTP header `Accept` 1046 _header_params['Accept'] = self.api_client.select_header_accept( 1047 ['application/json']) # noqa: E501 1048 1049 # authentication setting 1050 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 1051 1052 _response_types_map = { 1053 '200': "GarbageCollectionConfig", 1054 '401': "Error", 1055 } 1056 1057 return self.api_client.call_api( 1058 '/config/garbage-collection', 'GET', 1059 _path_params, 1060 _query_params, 1061 _header_params, 1062 body=_body_params, 1063 post_params=_form_params, 1064 files=_files, 1065 response_types_map=_response_types_map, 1066 auth_settings=_auth_settings, 1067 async_req=_params.get('async_req'), 1068 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 1069 _preload_content=_params.get('_preload_content', True), 1070 _request_timeout=_params.get('_request_timeout'), 1071 collection_formats=_collection_formats, 1072 _request_auth=_params.get('_request_auth')) 1073 1074 @validate_arguments 1075 def get_lake_fs_version(self, **kwargs) -> VersionConfig: # noqa: E501 1076 """(Deprecated) get_lake_fs_version # noqa: E501 1077 1078 get version of lakeFS server # noqa: E501 1079 This method makes a synchronous HTTP request by default. To make an 1080 asynchronous HTTP request, please pass async_req=True 1081 1082 >>> thread = api.get_lake_fs_version(async_req=True) 1083 >>> result = thread.get() 1084 1085 :param async_req: Whether to execute the request asynchronously. 1086 :type async_req: bool, optional 1087 :param _request_timeout: timeout setting for this request. If one 1088 number provided, it will be total request 1089 timeout. It can also be a pair (tuple) of 1090 (connection, read) timeouts. 1091 :return: Returns the result object. 1092 If the method is called asynchronously, 1093 returns the request thread. 1094 :rtype: VersionConfig 1095 """ 1096 kwargs['_return_http_data_only'] = True 1097 if '_preload_content' in kwargs: 1098 raise ValueError("Error! Please call the get_lake_fs_version_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 1099 return self.get_lake_fs_version_with_http_info(**kwargs) # noqa: E501 1100 1101 @validate_arguments 1102 def get_lake_fs_version_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 1103 """(Deprecated) get_lake_fs_version # noqa: E501 1104 1105 get version of lakeFS server # noqa: E501 1106 This method makes a synchronous HTTP request by default. To make an 1107 asynchronous HTTP request, please pass async_req=True 1108 1109 >>> thread = api.get_lake_fs_version_with_http_info(async_req=True) 1110 >>> result = thread.get() 1111 1112 :param async_req: Whether to execute the request asynchronously. 1113 :type async_req: bool, optional 1114 :param _preload_content: if False, the ApiResponse.data will 1115 be set to none and raw_data will store the 1116 HTTP response body without reading/decoding. 1117 Default is True. 1118 :type _preload_content: bool, optional 1119 :param _return_http_data_only: response data instead of ApiResponse 1120 object with status code, headers, etc 1121 :type _return_http_data_only: bool, optional 1122 :param _request_timeout: timeout setting for this request. If one 1123 number provided, it will be total request 1124 timeout. It can also be a pair (tuple) of 1125 (connection, read) timeouts. 1126 :param _request_auth: set to override the auth_settings for an a single 1127 request; this effectively ignores the authentication 1128 in the spec for a single request. 1129 :type _request_auth: dict, optional 1130 :type _content_type: string, optional: force content-type for the request 1131 :return: Returns the result object. 1132 If the method is called asynchronously, 1133 returns the request thread. 1134 :rtype: tuple(VersionConfig, status_code(int), headers(HTTPHeaderDict)) 1135 """ 1136 1137 warnings.warn("GET /config/version is deprecated.", DeprecationWarning) 1138 1139 _params = locals() 1140 1141 _all_params = [ 1142 ] 1143 _all_params.extend( 1144 [ 1145 'async_req', 1146 '_return_http_data_only', 1147 '_preload_content', 1148 '_request_timeout', 1149 '_request_auth', 1150 '_content_type', 1151 '_headers' 1152 ] 1153 ) 1154 1155 # validate the arguments 1156 for _key, _val in _params['kwargs'].items(): 1157 if _key not in _all_params: 1158 raise ApiTypeError( 1159 "Got an unexpected keyword argument '%s'" 1160 " to method get_lake_fs_version" % _key 1161 ) 1162 _params[_key] = _val 1163 del _params['kwargs'] 1164 1165 _collection_formats = {} 1166 1167 # process the path parameters 1168 _path_params = {} 1169 1170 # process the query parameters 1171 _query_params = [] 1172 # process the header parameters 1173 _header_params = dict(_params.get('_headers', {})) 1174 # process the form parameters 1175 _form_params = [] 1176 _files = {} 1177 # process the body parameter 1178 _body_params = None 1179 # set the HTTP header `Accept` 1180 _header_params['Accept'] = self.api_client.select_header_accept( 1181 ['application/json']) # noqa: E501 1182 1183 # authentication setting 1184 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 1185 1186 _response_types_map = { 1187 '200': "VersionConfig", 1188 '401': "Error", 1189 } 1190 1191 return self.api_client.call_api( 1192 '/config/version', 'GET', 1193 _path_params, 1194 _query_params, 1195 _header_params, 1196 body=_body_params, 1197 post_params=_form_params, 1198 files=_files, 1199 response_types_map=_response_types_map, 1200 auth_settings=_auth_settings, 1201 async_req=_params.get('async_req'), 1202 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 1203 _preload_content=_params.get('_preload_content', True), 1204 _request_timeout=_params.get('_request_timeout'), 1205 collection_formats=_collection_formats, 1206 _request_auth=_params.get('_request_auth')) 1207 1208 @validate_arguments 1209 def get_setup_state(self, **kwargs) -> SetupState: # noqa: E501 1210 """check if the lakeFS installation is already set up # noqa: E501 1211 1212 This method makes a synchronous HTTP request by default. To make an 1213 asynchronous HTTP request, please pass async_req=True 1214 1215 >>> thread = api.get_setup_state(async_req=True) 1216 >>> result = thread.get() 1217 1218 :param async_req: Whether to execute the request asynchronously. 1219 :type async_req: bool, optional 1220 :param _request_timeout: timeout setting for this request. If one 1221 number provided, it will be total request 1222 timeout. It can also be a pair (tuple) of 1223 (connection, read) timeouts. 1224 :return: Returns the result object. 1225 If the method is called asynchronously, 1226 returns the request thread. 1227 :rtype: SetupState 1228 """ 1229 kwargs['_return_http_data_only'] = True 1230 if '_preload_content' in kwargs: 1231 raise ValueError("Error! Please call the get_setup_state_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 1232 return self.get_setup_state_with_http_info(**kwargs) # noqa: E501 1233 1234 @validate_arguments 1235 def get_setup_state_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 1236 """check if the lakeFS installation is already set up # noqa: E501 1237 1238 This method makes a synchronous HTTP request by default. To make an 1239 asynchronous HTTP request, please pass async_req=True 1240 1241 >>> thread = api.get_setup_state_with_http_info(async_req=True) 1242 >>> result = thread.get() 1243 1244 :param async_req: Whether to execute the request asynchronously. 1245 :type async_req: bool, optional 1246 :param _preload_content: if False, the ApiResponse.data will 1247 be set to none and raw_data will store the 1248 HTTP response body without reading/decoding. 1249 Default is True. 1250 :type _preload_content: bool, optional 1251 :param _return_http_data_only: response data instead of ApiResponse 1252 object with status code, headers, etc 1253 :type _return_http_data_only: bool, optional 1254 :param _request_timeout: timeout setting for this request. If one 1255 number provided, it will be total request 1256 timeout. It can also be a pair (tuple) of 1257 (connection, read) timeouts. 1258 :param _request_auth: set to override the auth_settings for an a single 1259 request; this effectively ignores the authentication 1260 in the spec for a single request. 1261 :type _request_auth: dict, optional 1262 :type _content_type: string, optional: force content-type for the request 1263 :return: Returns the result object. 1264 If the method is called asynchronously, 1265 returns the request thread. 1266 :rtype: tuple(SetupState, status_code(int), headers(HTTPHeaderDict)) 1267 """ 1268 1269 _params = locals() 1270 1271 _all_params = [ 1272 ] 1273 _all_params.extend( 1274 [ 1275 'async_req', 1276 '_return_http_data_only', 1277 '_preload_content', 1278 '_request_timeout', 1279 '_request_auth', 1280 '_content_type', 1281 '_headers' 1282 ] 1283 ) 1284 1285 # validate the arguments 1286 for _key, _val in _params['kwargs'].items(): 1287 if _key not in _all_params: 1288 raise ApiTypeError( 1289 "Got an unexpected keyword argument '%s'" 1290 " to method get_setup_state" % _key 1291 ) 1292 _params[_key] = _val 1293 del _params['kwargs'] 1294 1295 _collection_formats = {} 1296 1297 # process the path parameters 1298 _path_params = {} 1299 1300 # process the query parameters 1301 _query_params = [] 1302 # process the header parameters 1303 _header_params = dict(_params.get('_headers', {})) 1304 # process the form parameters 1305 _form_params = [] 1306 _files = {} 1307 # process the body parameter 1308 _body_params = None 1309 # set the HTTP header `Accept` 1310 _header_params['Accept'] = self.api_client.select_header_accept( 1311 ['application/json']) # noqa: E501 1312 1313 # authentication setting 1314 _auth_settings = [] # noqa: E501 1315 1316 _response_types_map = { 1317 '200': "SetupState", 1318 '420': None, 1319 } 1320 1321 return self.api_client.call_api( 1322 '/setup_lakefs', 'GET', 1323 _path_params, 1324 _query_params, 1325 _header_params, 1326 body=_body_params, 1327 post_params=_form_params, 1328 files=_files, 1329 response_types_map=_response_types_map, 1330 auth_settings=_auth_settings, 1331 async_req=_params.get('async_req'), 1332 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 1333 _preload_content=_params.get('_preload_content', True), 1334 _request_timeout=_params.get('_request_timeout'), 1335 collection_formats=_collection_formats, 1336 _request_auth=_params.get('_request_auth')) 1337 1338 @validate_arguments 1339 def get_storage_config(self, **kwargs) -> StorageConfig: # noqa: E501 1340 """(Deprecated) get_storage_config # noqa: E501 1341 1342 retrieve lakeFS storage configuration # noqa: E501 1343 This method makes a synchronous HTTP request by default. To make an 1344 asynchronous HTTP request, please pass async_req=True 1345 1346 >>> thread = api.get_storage_config(async_req=True) 1347 >>> result = thread.get() 1348 1349 :param async_req: Whether to execute the request asynchronously. 1350 :type async_req: bool, optional 1351 :param _request_timeout: timeout setting for this request. If one 1352 number provided, it will be total request 1353 timeout. It can also be a pair (tuple) of 1354 (connection, read) timeouts. 1355 :return: Returns the result object. 1356 If the method is called asynchronously, 1357 returns the request thread. 1358 :rtype: StorageConfig 1359 """ 1360 kwargs['_return_http_data_only'] = True 1361 if '_preload_content' in kwargs: 1362 raise ValueError("Error! Please call the get_storage_config_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 1363 return self.get_storage_config_with_http_info(**kwargs) # noqa: E501 1364 1365 @validate_arguments 1366 def get_storage_config_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 1367 """(Deprecated) get_storage_config # noqa: E501 1368 1369 retrieve lakeFS storage configuration # noqa: E501 1370 This method makes a synchronous HTTP request by default. To make an 1371 asynchronous HTTP request, please pass async_req=True 1372 1373 >>> thread = api.get_storage_config_with_http_info(async_req=True) 1374 >>> result = thread.get() 1375 1376 :param async_req: Whether to execute the request asynchronously. 1377 :type async_req: bool, optional 1378 :param _preload_content: if False, the ApiResponse.data will 1379 be set to none and raw_data will store the 1380 HTTP response body without reading/decoding. 1381 Default is True. 1382 :type _preload_content: bool, optional 1383 :param _return_http_data_only: response data instead of ApiResponse 1384 object with status code, headers, etc 1385 :type _return_http_data_only: bool, optional 1386 :param _request_timeout: timeout setting for this request. If one 1387 number provided, it will be total request 1388 timeout. It can also be a pair (tuple) of 1389 (connection, read) timeouts. 1390 :param _request_auth: set to override the auth_settings for an a single 1391 request; this effectively ignores the authentication 1392 in the spec for a single request. 1393 :type _request_auth: dict, optional 1394 :type _content_type: string, optional: force content-type for the request 1395 :return: Returns the result object. 1396 If the method is called asynchronously, 1397 returns the request thread. 1398 :rtype: tuple(StorageConfig, status_code(int), headers(HTTPHeaderDict)) 1399 """ 1400 1401 warnings.warn("GET /config/storage is deprecated.", DeprecationWarning) 1402 1403 _params = locals() 1404 1405 _all_params = [ 1406 ] 1407 _all_params.extend( 1408 [ 1409 'async_req', 1410 '_return_http_data_only', 1411 '_preload_content', 1412 '_request_timeout', 1413 '_request_auth', 1414 '_content_type', 1415 '_headers' 1416 ] 1417 ) 1418 1419 # validate the arguments 1420 for _key, _val in _params['kwargs'].items(): 1421 if _key not in _all_params: 1422 raise ApiTypeError( 1423 "Got an unexpected keyword argument '%s'" 1424 " to method get_storage_config" % _key 1425 ) 1426 _params[_key] = _val 1427 del _params['kwargs'] 1428 1429 _collection_formats = {} 1430 1431 # process the path parameters 1432 _path_params = {} 1433 1434 # process the query parameters 1435 _query_params = [] 1436 # process the header parameters 1437 _header_params = dict(_params.get('_headers', {})) 1438 # process the form parameters 1439 _form_params = [] 1440 _files = {} 1441 # process the body parameter 1442 _body_params = None 1443 # set the HTTP header `Accept` 1444 _header_params['Accept'] = self.api_client.select_header_accept( 1445 ['application/json']) # noqa: E501 1446 1447 # authentication setting 1448 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 1449 1450 _response_types_map = { 1451 '200': "StorageConfig", 1452 '401': "Error", 1453 } 1454 1455 return self.api_client.call_api( 1456 '/config/storage', 'GET', 1457 _path_params, 1458 _query_params, 1459 _header_params, 1460 body=_body_params, 1461 post_params=_form_params, 1462 files=_files, 1463 response_types_map=_response_types_map, 1464 auth_settings=_auth_settings, 1465 async_req=_params.get('async_req'), 1466 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 1467 _preload_content=_params.get('_preload_content', True), 1468 _request_timeout=_params.get('_request_timeout'), 1469 collection_formats=_collection_formats, 1470 _request_auth=_params.get('_request_auth')) 1471 1472 @validate_arguments 1473 def get_usage_report_summary(self, **kwargs) -> InstallationUsageReport: # noqa: E501 1474 """get usage report summary # noqa: E501 1475 1476 This method makes a synchronous HTTP request by default. To make an 1477 asynchronous HTTP request, please pass async_req=True 1478 1479 >>> thread = api.get_usage_report_summary(async_req=True) 1480 >>> result = thread.get() 1481 1482 :param async_req: Whether to execute the request asynchronously. 1483 :type async_req: bool, optional 1484 :param _request_timeout: timeout setting for this request. If one 1485 number provided, it will be total request 1486 timeout. It can also be a pair (tuple) of 1487 (connection, read) timeouts. 1488 :return: Returns the result object. 1489 If the method is called asynchronously, 1490 returns the request thread. 1491 :rtype: InstallationUsageReport 1492 """ 1493 kwargs['_return_http_data_only'] = True 1494 if '_preload_content' in kwargs: 1495 raise ValueError("Error! Please call the get_usage_report_summary_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 1496 return self.get_usage_report_summary_with_http_info(**kwargs) # noqa: E501 1497 1498 @validate_arguments 1499 def get_usage_report_summary_with_http_info(self, **kwargs) -> ApiResponse: # noqa: E501 1500 """get usage report summary # noqa: E501 1501 1502 This method makes a synchronous HTTP request by default. To make an 1503 asynchronous HTTP request, please pass async_req=True 1504 1505 >>> thread = api.get_usage_report_summary_with_http_info(async_req=True) 1506 >>> result = thread.get() 1507 1508 :param async_req: Whether to execute the request asynchronously. 1509 :type async_req: bool, optional 1510 :param _preload_content: if False, the ApiResponse.data will 1511 be set to none and raw_data will store the 1512 HTTP response body without reading/decoding. 1513 Default is True. 1514 :type _preload_content: bool, optional 1515 :param _return_http_data_only: response data instead of ApiResponse 1516 object with status code, headers, etc 1517 :type _return_http_data_only: bool, optional 1518 :param _request_timeout: timeout setting for this request. If one 1519 number provided, it will be total request 1520 timeout. It can also be a pair (tuple) of 1521 (connection, read) timeouts. 1522 :param _request_auth: set to override the auth_settings for an a single 1523 request; this effectively ignores the authentication 1524 in the spec for a single request. 1525 :type _request_auth: dict, optional 1526 :type _content_type: string, optional: force content-type for the request 1527 :return: Returns the result object. 1528 If the method is called asynchronously, 1529 returns the request thread. 1530 :rtype: tuple(InstallationUsageReport, status_code(int), headers(HTTPHeaderDict)) 1531 """ 1532 1533 _params = locals() 1534 1535 _all_params = [ 1536 ] 1537 _all_params.extend( 1538 [ 1539 'async_req', 1540 '_return_http_data_only', 1541 '_preload_content', 1542 '_request_timeout', 1543 '_request_auth', 1544 '_content_type', 1545 '_headers' 1546 ] 1547 ) 1548 1549 # validate the arguments 1550 for _key, _val in _params['kwargs'].items(): 1551 if _key not in _all_params: 1552 raise ApiTypeError( 1553 "Got an unexpected keyword argument '%s'" 1554 " to method get_usage_report_summary" % _key 1555 ) 1556 _params[_key] = _val 1557 del _params['kwargs'] 1558 1559 _collection_formats = {} 1560 1561 # process the path parameters 1562 _path_params = {} 1563 1564 # process the query parameters 1565 _query_params = [] 1566 # process the header parameters 1567 _header_params = dict(_params.get('_headers', {})) 1568 # process the form parameters 1569 _form_params = [] 1570 _files = {} 1571 # process the body parameter 1572 _body_params = None 1573 # set the HTTP header `Accept` 1574 _header_params['Accept'] = self.api_client.select_header_accept( 1575 ['application/json', 'application/text']) # noqa: E501 1576 1577 # authentication setting 1578 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 1579 1580 _response_types_map = { 1581 '200': "InstallationUsageReport", 1582 '400': "Error", 1583 '401': "Error", 1584 '404': "Error", 1585 '420': None, 1586 } 1587 1588 return self.api_client.call_api( 1589 '/usage-report/summary', 'GET', 1590 _path_params, 1591 _query_params, 1592 _header_params, 1593 body=_body_params, 1594 post_params=_form_params, 1595 files=_files, 1596 response_types_map=_response_types_map, 1597 auth_settings=_auth_settings, 1598 async_req=_params.get('async_req'), 1599 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 1600 _preload_content=_params.get('_preload_content', True), 1601 _request_timeout=_params.get('_request_timeout'), 1602 collection_formats=_collection_formats, 1603 _request_auth=_params.get('_request_auth')) 1604 1605 @validate_arguments 1606 def internal_create_branch_protection_rule(self, repository : StrictStr, branch_protection_rule : BranchProtectionRule, **kwargs) -> None: # noqa: E501 1607 """(Deprecated) internal_create_branch_protection_rule # noqa: E501 1608 1609 This method makes a synchronous HTTP request by default. To make an 1610 asynchronous HTTP request, please pass async_req=True 1611 1612 >>> thread = api.internal_create_branch_protection_rule(repository, branch_protection_rule, async_req=True) 1613 >>> result = thread.get() 1614 1615 :param repository: (required) 1616 :type repository: str 1617 :param branch_protection_rule: (required) 1618 :type branch_protection_rule: BranchProtectionRule 1619 :param async_req: Whether to execute the request asynchronously. 1620 :type async_req: bool, optional 1621 :param _request_timeout: timeout setting for this request. If one 1622 number provided, it will be total request 1623 timeout. It can also be a pair (tuple) of 1624 (connection, read) timeouts. 1625 :return: Returns the result object. 1626 If the method is called asynchronously, 1627 returns the request thread. 1628 :rtype: None 1629 """ 1630 kwargs['_return_http_data_only'] = True 1631 if '_preload_content' in kwargs: 1632 raise ValueError("Error! Please call the internal_create_branch_protection_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 1633 return self.internal_create_branch_protection_rule_with_http_info(repository, branch_protection_rule, **kwargs) # noqa: E501 1634 1635 @validate_arguments 1636 def internal_create_branch_protection_rule_with_http_info(self, repository : StrictStr, branch_protection_rule : BranchProtectionRule, **kwargs) -> ApiResponse: # noqa: E501 1637 """(Deprecated) internal_create_branch_protection_rule # noqa: E501 1638 1639 This method makes a synchronous HTTP request by default. To make an 1640 asynchronous HTTP request, please pass async_req=True 1641 1642 >>> thread = api.internal_create_branch_protection_rule_with_http_info(repository, branch_protection_rule, async_req=True) 1643 >>> result = thread.get() 1644 1645 :param repository: (required) 1646 :type repository: str 1647 :param branch_protection_rule: (required) 1648 :type branch_protection_rule: BranchProtectionRule 1649 :param async_req: Whether to execute the request asynchronously. 1650 :type async_req: bool, optional 1651 :param _preload_content: if False, the ApiResponse.data will 1652 be set to none and raw_data will store the 1653 HTTP response body without reading/decoding. 1654 Default is True. 1655 :type _preload_content: bool, optional 1656 :param _return_http_data_only: response data instead of ApiResponse 1657 object with status code, headers, etc 1658 :type _return_http_data_only: bool, optional 1659 :param _request_timeout: timeout setting for this request. If one 1660 number provided, it will be total request 1661 timeout. It can also be a pair (tuple) of 1662 (connection, read) timeouts. 1663 :param _request_auth: set to override the auth_settings for an a single 1664 request; this effectively ignores the authentication 1665 in the spec for a single request. 1666 :type _request_auth: dict, optional 1667 :type _content_type: string, optional: force content-type for the request 1668 :return: Returns the result object. 1669 If the method is called asynchronously, 1670 returns the request thread. 1671 :rtype: None 1672 """ 1673 1674 warnings.warn("POST /repositories/{repository}/branch_protection is deprecated.", DeprecationWarning) 1675 1676 _params = locals() 1677 1678 _all_params = [ 1679 'repository', 1680 'branch_protection_rule' 1681 ] 1682 _all_params.extend( 1683 [ 1684 'async_req', 1685 '_return_http_data_only', 1686 '_preload_content', 1687 '_request_timeout', 1688 '_request_auth', 1689 '_content_type', 1690 '_headers' 1691 ] 1692 ) 1693 1694 # validate the arguments 1695 for _key, _val in _params['kwargs'].items(): 1696 if _key not in _all_params: 1697 raise ApiTypeError( 1698 "Got an unexpected keyword argument '%s'" 1699 " to method internal_create_branch_protection_rule" % _key 1700 ) 1701 _params[_key] = _val 1702 del _params['kwargs'] 1703 1704 _collection_formats = {} 1705 1706 # process the path parameters 1707 _path_params = {} 1708 if _params['repository']: 1709 _path_params['repository'] = _params['repository'] 1710 1711 1712 # process the query parameters 1713 _query_params = [] 1714 # process the header parameters 1715 _header_params = dict(_params.get('_headers', {})) 1716 # process the form parameters 1717 _form_params = [] 1718 _files = {} 1719 # process the body parameter 1720 _body_params = None 1721 if _params['branch_protection_rule'] is not None: 1722 _body_params = _params['branch_protection_rule'] 1723 1724 # set the HTTP header `Accept` 1725 _header_params['Accept'] = self.api_client.select_header_accept( 1726 ['application/json']) # noqa: E501 1727 1728 # set the HTTP header `Content-Type` 1729 _content_types_list = _params.get('_content_type', 1730 self.api_client.select_header_content_type( 1731 ['application/json'])) 1732 if _content_types_list: 1733 _header_params['Content-Type'] = _content_types_list 1734 1735 # authentication setting 1736 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 1737 1738 _response_types_map = {} 1739 1740 return self.api_client.call_api( 1741 '/repositories/{repository}/branch_protection', 'POST', 1742 _path_params, 1743 _query_params, 1744 _header_params, 1745 body=_body_params, 1746 post_params=_form_params, 1747 files=_files, 1748 response_types_map=_response_types_map, 1749 auth_settings=_auth_settings, 1750 async_req=_params.get('async_req'), 1751 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 1752 _preload_content=_params.get('_preload_content', True), 1753 _request_timeout=_params.get('_request_timeout'), 1754 collection_formats=_collection_formats, 1755 _request_auth=_params.get('_request_auth')) 1756 1757 @validate_arguments 1758 def internal_delete_branch_protection_rule(self, repository : StrictStr, internal_delete_branch_protection_rule_request : InternalDeleteBranchProtectionRuleRequest, **kwargs) -> None: # noqa: E501 1759 """(Deprecated) internal_delete_branch_protection_rule # noqa: E501 1760 1761 This method makes a synchronous HTTP request by default. To make an 1762 asynchronous HTTP request, please pass async_req=True 1763 1764 >>> thread = api.internal_delete_branch_protection_rule(repository, internal_delete_branch_protection_rule_request, async_req=True) 1765 >>> result = thread.get() 1766 1767 :param repository: (required) 1768 :type repository: str 1769 :param internal_delete_branch_protection_rule_request: (required) 1770 :type internal_delete_branch_protection_rule_request: InternalDeleteBranchProtectionRuleRequest 1771 :param async_req: Whether to execute the request asynchronously. 1772 :type async_req: bool, optional 1773 :param _request_timeout: timeout setting for this request. If one 1774 number provided, it will be total request 1775 timeout. It can also be a pair (tuple) of 1776 (connection, read) timeouts. 1777 :return: Returns the result object. 1778 If the method is called asynchronously, 1779 returns the request thread. 1780 :rtype: None 1781 """ 1782 kwargs['_return_http_data_only'] = True 1783 if '_preload_content' in kwargs: 1784 raise ValueError("Error! Please call the internal_delete_branch_protection_rule_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 1785 return self.internal_delete_branch_protection_rule_with_http_info(repository, internal_delete_branch_protection_rule_request, **kwargs) # noqa: E501 1786 1787 @validate_arguments 1788 def internal_delete_branch_protection_rule_with_http_info(self, repository : StrictStr, internal_delete_branch_protection_rule_request : InternalDeleteBranchProtectionRuleRequest, **kwargs) -> ApiResponse: # noqa: E501 1789 """(Deprecated) internal_delete_branch_protection_rule # noqa: E501 1790 1791 This method makes a synchronous HTTP request by default. To make an 1792 asynchronous HTTP request, please pass async_req=True 1793 1794 >>> thread = api.internal_delete_branch_protection_rule_with_http_info(repository, internal_delete_branch_protection_rule_request, async_req=True) 1795 >>> result = thread.get() 1796 1797 :param repository: (required) 1798 :type repository: str 1799 :param internal_delete_branch_protection_rule_request: (required) 1800 :type internal_delete_branch_protection_rule_request: InternalDeleteBranchProtectionRuleRequest 1801 :param async_req: Whether to execute the request asynchronously. 1802 :type async_req: bool, optional 1803 :param _preload_content: if False, the ApiResponse.data will 1804 be set to none and raw_data will store the 1805 HTTP response body without reading/decoding. 1806 Default is True. 1807 :type _preload_content: bool, optional 1808 :param _return_http_data_only: response data instead of ApiResponse 1809 object with status code, headers, etc 1810 :type _return_http_data_only: bool, optional 1811 :param _request_timeout: timeout setting for this request. If one 1812 number provided, it will be total request 1813 timeout. It can also be a pair (tuple) of 1814 (connection, read) timeouts. 1815 :param _request_auth: set to override the auth_settings for an a single 1816 request; this effectively ignores the authentication 1817 in the spec for a single request. 1818 :type _request_auth: dict, optional 1819 :type _content_type: string, optional: force content-type for the request 1820 :return: Returns the result object. 1821 If the method is called asynchronously, 1822 returns the request thread. 1823 :rtype: None 1824 """ 1825 1826 warnings.warn("DELETE /repositories/{repository}/branch_protection is deprecated.", DeprecationWarning) 1827 1828 _params = locals() 1829 1830 _all_params = [ 1831 'repository', 1832 'internal_delete_branch_protection_rule_request' 1833 ] 1834 _all_params.extend( 1835 [ 1836 'async_req', 1837 '_return_http_data_only', 1838 '_preload_content', 1839 '_request_timeout', 1840 '_request_auth', 1841 '_content_type', 1842 '_headers' 1843 ] 1844 ) 1845 1846 # validate the arguments 1847 for _key, _val in _params['kwargs'].items(): 1848 if _key not in _all_params: 1849 raise ApiTypeError( 1850 "Got an unexpected keyword argument '%s'" 1851 " to method internal_delete_branch_protection_rule" % _key 1852 ) 1853 _params[_key] = _val 1854 del _params['kwargs'] 1855 1856 _collection_formats = {} 1857 1858 # process the path parameters 1859 _path_params = {} 1860 if _params['repository']: 1861 _path_params['repository'] = _params['repository'] 1862 1863 1864 # process the query parameters 1865 _query_params = [] 1866 # process the header parameters 1867 _header_params = dict(_params.get('_headers', {})) 1868 # process the form parameters 1869 _form_params = [] 1870 _files = {} 1871 # process the body parameter 1872 _body_params = None 1873 if _params['internal_delete_branch_protection_rule_request'] is not None: 1874 _body_params = _params['internal_delete_branch_protection_rule_request'] 1875 1876 # set the HTTP header `Accept` 1877 _header_params['Accept'] = self.api_client.select_header_accept( 1878 ['application/json']) # noqa: E501 1879 1880 # set the HTTP header `Content-Type` 1881 _content_types_list = _params.get('_content_type', 1882 self.api_client.select_header_content_type( 1883 ['application/json'])) 1884 if _content_types_list: 1885 _header_params['Content-Type'] = _content_types_list 1886 1887 # authentication setting 1888 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 1889 1890 _response_types_map = {} 1891 1892 return self.api_client.call_api( 1893 '/repositories/{repository}/branch_protection', 'DELETE', 1894 _path_params, 1895 _query_params, 1896 _header_params, 1897 body=_body_params, 1898 post_params=_form_params, 1899 files=_files, 1900 response_types_map=_response_types_map, 1901 auth_settings=_auth_settings, 1902 async_req=_params.get('async_req'), 1903 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 1904 _preload_content=_params.get('_preload_content', True), 1905 _request_timeout=_params.get('_request_timeout'), 1906 collection_formats=_collection_formats, 1907 _request_auth=_params.get('_request_auth')) 1908 1909 @validate_arguments 1910 def internal_delete_garbage_collection_rules(self, repository : StrictStr, **kwargs) -> None: # noqa: E501 1911 """(Deprecated) internal_delete_garbage_collection_rules # noqa: E501 1912 1913 This method makes a synchronous HTTP request by default. To make an 1914 asynchronous HTTP request, please pass async_req=True 1915 1916 >>> thread = api.internal_delete_garbage_collection_rules(repository, async_req=True) 1917 >>> result = thread.get() 1918 1919 :param repository: (required) 1920 :type repository: str 1921 :param async_req: Whether to execute the request asynchronously. 1922 :type async_req: bool, optional 1923 :param _request_timeout: timeout setting for this request. If one 1924 number provided, it will be total request 1925 timeout. It can also be a pair (tuple) of 1926 (connection, read) timeouts. 1927 :return: Returns the result object. 1928 If the method is called asynchronously, 1929 returns the request thread. 1930 :rtype: None 1931 """ 1932 kwargs['_return_http_data_only'] = True 1933 if '_preload_content' in kwargs: 1934 raise ValueError("Error! Please call the internal_delete_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 1935 return self.internal_delete_garbage_collection_rules_with_http_info(repository, **kwargs) # noqa: E501 1936 1937 @validate_arguments 1938 def internal_delete_garbage_collection_rules_with_http_info(self, repository : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 1939 """(Deprecated) internal_delete_garbage_collection_rules # noqa: E501 1940 1941 This method makes a synchronous HTTP request by default. To make an 1942 asynchronous HTTP request, please pass async_req=True 1943 1944 >>> thread = api.internal_delete_garbage_collection_rules_with_http_info(repository, async_req=True) 1945 >>> result = thread.get() 1946 1947 :param repository: (required) 1948 :type repository: str 1949 :param async_req: Whether to execute the request asynchronously. 1950 :type async_req: bool, optional 1951 :param _preload_content: if False, the ApiResponse.data will 1952 be set to none and raw_data will store the 1953 HTTP response body without reading/decoding. 1954 Default is True. 1955 :type _preload_content: bool, optional 1956 :param _return_http_data_only: response data instead of ApiResponse 1957 object with status code, headers, etc 1958 :type _return_http_data_only: bool, optional 1959 :param _request_timeout: timeout setting for this request. If one 1960 number provided, it will be total request 1961 timeout. It can also be a pair (tuple) of 1962 (connection, read) timeouts. 1963 :param _request_auth: set to override the auth_settings for an a single 1964 request; this effectively ignores the authentication 1965 in the spec for a single request. 1966 :type _request_auth: dict, optional 1967 :type _content_type: string, optional: force content-type for the request 1968 :return: Returns the result object. 1969 If the method is called asynchronously, 1970 returns the request thread. 1971 :rtype: None 1972 """ 1973 1974 warnings.warn("DELETE /repositories/{repository}/gc/rules is deprecated.", DeprecationWarning) 1975 1976 _params = locals() 1977 1978 _all_params = [ 1979 'repository' 1980 ] 1981 _all_params.extend( 1982 [ 1983 'async_req', 1984 '_return_http_data_only', 1985 '_preload_content', 1986 '_request_timeout', 1987 '_request_auth', 1988 '_content_type', 1989 '_headers' 1990 ] 1991 ) 1992 1993 # validate the arguments 1994 for _key, _val in _params['kwargs'].items(): 1995 if _key not in _all_params: 1996 raise ApiTypeError( 1997 "Got an unexpected keyword argument '%s'" 1998 " to method internal_delete_garbage_collection_rules" % _key 1999 ) 2000 _params[_key] = _val 2001 del _params['kwargs'] 2002 2003 _collection_formats = {} 2004 2005 # process the path parameters 2006 _path_params = {} 2007 if _params['repository']: 2008 _path_params['repository'] = _params['repository'] 2009 2010 2011 # process the query parameters 2012 _query_params = [] 2013 # process the header parameters 2014 _header_params = dict(_params.get('_headers', {})) 2015 # process the form parameters 2016 _form_params = [] 2017 _files = {} 2018 # process the body parameter 2019 _body_params = None 2020 # set the HTTP header `Accept` 2021 _header_params['Accept'] = self.api_client.select_header_accept( 2022 ['application/json']) # noqa: E501 2023 2024 # authentication setting 2025 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 2026 2027 _response_types_map = {} 2028 2029 return self.api_client.call_api( 2030 '/repositories/{repository}/gc/rules', 'DELETE', 2031 _path_params, 2032 _query_params, 2033 _header_params, 2034 body=_body_params, 2035 post_params=_form_params, 2036 files=_files, 2037 response_types_map=_response_types_map, 2038 auth_settings=_auth_settings, 2039 async_req=_params.get('async_req'), 2040 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 2041 _preload_content=_params.get('_preload_content', True), 2042 _request_timeout=_params.get('_request_timeout'), 2043 collection_formats=_collection_formats, 2044 _request_auth=_params.get('_request_auth')) 2045 2046 @validate_arguments 2047 def internal_get_branch_protection_rules(self, repository : StrictStr, **kwargs) -> List[BranchProtectionRule]: # noqa: E501 2048 """(Deprecated) get branch protection rules # noqa: E501 2049 2050 This method makes a synchronous HTTP request by default. To make an 2051 asynchronous HTTP request, please pass async_req=True 2052 2053 >>> thread = api.internal_get_branch_protection_rules(repository, async_req=True) 2054 >>> result = thread.get() 2055 2056 :param repository: (required) 2057 :type repository: str 2058 :param async_req: Whether to execute the request asynchronously. 2059 :type async_req: bool, optional 2060 :param _request_timeout: timeout setting for this request. If one 2061 number provided, it will be total request 2062 timeout. It can also be a pair (tuple) of 2063 (connection, read) timeouts. 2064 :return: Returns the result object. 2065 If the method is called asynchronously, 2066 returns the request thread. 2067 :rtype: List[BranchProtectionRule] 2068 """ 2069 kwargs['_return_http_data_only'] = True 2070 if '_preload_content' in kwargs: 2071 raise ValueError("Error! Please call the internal_get_branch_protection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 2072 return self.internal_get_branch_protection_rules_with_http_info(repository, **kwargs) # noqa: E501 2073 2074 @validate_arguments 2075 def internal_get_branch_protection_rules_with_http_info(self, repository : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 2076 """(Deprecated) get branch protection rules # noqa: E501 2077 2078 This method makes a synchronous HTTP request by default. To make an 2079 asynchronous HTTP request, please pass async_req=True 2080 2081 >>> thread = api.internal_get_branch_protection_rules_with_http_info(repository, async_req=True) 2082 >>> result = thread.get() 2083 2084 :param repository: (required) 2085 :type repository: str 2086 :param async_req: Whether to execute the request asynchronously. 2087 :type async_req: bool, optional 2088 :param _preload_content: if False, the ApiResponse.data will 2089 be set to none and raw_data will store the 2090 HTTP response body without reading/decoding. 2091 Default is True. 2092 :type _preload_content: bool, optional 2093 :param _return_http_data_only: response data instead of ApiResponse 2094 object with status code, headers, etc 2095 :type _return_http_data_only: bool, optional 2096 :param _request_timeout: timeout setting for this request. If one 2097 number provided, it will be total request 2098 timeout. It can also be a pair (tuple) of 2099 (connection, read) timeouts. 2100 :param _request_auth: set to override the auth_settings for an a single 2101 request; this effectively ignores the authentication 2102 in the spec for a single request. 2103 :type _request_auth: dict, optional 2104 :type _content_type: string, optional: force content-type for the request 2105 :return: Returns the result object. 2106 If the method is called asynchronously, 2107 returns the request thread. 2108 :rtype: tuple(List[BranchProtectionRule], status_code(int), headers(HTTPHeaderDict)) 2109 """ 2110 2111 warnings.warn("GET /repositories/{repository}/branch_protection is deprecated.", DeprecationWarning) 2112 2113 _params = locals() 2114 2115 _all_params = [ 2116 'repository' 2117 ] 2118 _all_params.extend( 2119 [ 2120 'async_req', 2121 '_return_http_data_only', 2122 '_preload_content', 2123 '_request_timeout', 2124 '_request_auth', 2125 '_content_type', 2126 '_headers' 2127 ] 2128 ) 2129 2130 # validate the arguments 2131 for _key, _val in _params['kwargs'].items(): 2132 if _key not in _all_params: 2133 raise ApiTypeError( 2134 "Got an unexpected keyword argument '%s'" 2135 " to method internal_get_branch_protection_rules" % _key 2136 ) 2137 _params[_key] = _val 2138 del _params['kwargs'] 2139 2140 _collection_formats = {} 2141 2142 # process the path parameters 2143 _path_params = {} 2144 if _params['repository']: 2145 _path_params['repository'] = _params['repository'] 2146 2147 2148 # process the query parameters 2149 _query_params = [] 2150 # process the header parameters 2151 _header_params = dict(_params.get('_headers', {})) 2152 # process the form parameters 2153 _form_params = [] 2154 _files = {} 2155 # process the body parameter 2156 _body_params = None 2157 # set the HTTP header `Accept` 2158 _header_params['Accept'] = self.api_client.select_header_accept( 2159 ['application/json']) # noqa: E501 2160 2161 # authentication setting 2162 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 2163 2164 _response_types_map = { 2165 '200': "List[BranchProtectionRule]", 2166 '401': "Error", 2167 '404': "Error", 2168 '420': None, 2169 } 2170 2171 return self.api_client.call_api( 2172 '/repositories/{repository}/branch_protection', 'GET', 2173 _path_params, 2174 _query_params, 2175 _header_params, 2176 body=_body_params, 2177 post_params=_form_params, 2178 files=_files, 2179 response_types_map=_response_types_map, 2180 auth_settings=_auth_settings, 2181 async_req=_params.get('async_req'), 2182 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 2183 _preload_content=_params.get('_preload_content', True), 2184 _request_timeout=_params.get('_request_timeout'), 2185 collection_formats=_collection_formats, 2186 _request_auth=_params.get('_request_auth')) 2187 2188 @validate_arguments 2189 def internal_get_garbage_collection_rules(self, repository : StrictStr, **kwargs) -> GarbageCollectionRules: # noqa: E501 2190 """(Deprecated) internal_get_garbage_collection_rules # noqa: E501 2191 2192 This method makes a synchronous HTTP request by default. To make an 2193 asynchronous HTTP request, please pass async_req=True 2194 2195 >>> thread = api.internal_get_garbage_collection_rules(repository, async_req=True) 2196 >>> result = thread.get() 2197 2198 :param repository: (required) 2199 :type repository: str 2200 :param async_req: Whether to execute the request asynchronously. 2201 :type async_req: bool, optional 2202 :param _request_timeout: timeout setting for this request. If one 2203 number provided, it will be total request 2204 timeout. It can also be a pair (tuple) of 2205 (connection, read) timeouts. 2206 :return: Returns the result object. 2207 If the method is called asynchronously, 2208 returns the request thread. 2209 :rtype: GarbageCollectionRules 2210 """ 2211 kwargs['_return_http_data_only'] = True 2212 if '_preload_content' in kwargs: 2213 raise ValueError("Error! Please call the internal_get_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 2214 return self.internal_get_garbage_collection_rules_with_http_info(repository, **kwargs) # noqa: E501 2215 2216 @validate_arguments 2217 def internal_get_garbage_collection_rules_with_http_info(self, repository : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 2218 """(Deprecated) internal_get_garbage_collection_rules # noqa: E501 2219 2220 This method makes a synchronous HTTP request by default. To make an 2221 asynchronous HTTP request, please pass async_req=True 2222 2223 >>> thread = api.internal_get_garbage_collection_rules_with_http_info(repository, async_req=True) 2224 >>> result = thread.get() 2225 2226 :param repository: (required) 2227 :type repository: str 2228 :param async_req: Whether to execute the request asynchronously. 2229 :type async_req: bool, optional 2230 :param _preload_content: if False, the ApiResponse.data will 2231 be set to none and raw_data will store the 2232 HTTP response body without reading/decoding. 2233 Default is True. 2234 :type _preload_content: bool, optional 2235 :param _return_http_data_only: response data instead of ApiResponse 2236 object with status code, headers, etc 2237 :type _return_http_data_only: bool, optional 2238 :param _request_timeout: timeout setting for this request. If one 2239 number provided, it will be total request 2240 timeout. It can also be a pair (tuple) of 2241 (connection, read) timeouts. 2242 :param _request_auth: set to override the auth_settings for an a single 2243 request; this effectively ignores the authentication 2244 in the spec for a single request. 2245 :type _request_auth: dict, optional 2246 :type _content_type: string, optional: force content-type for the request 2247 :return: Returns the result object. 2248 If the method is called asynchronously, 2249 returns the request thread. 2250 :rtype: tuple(GarbageCollectionRules, status_code(int), headers(HTTPHeaderDict)) 2251 """ 2252 2253 warnings.warn("GET /repositories/{repository}/gc/rules is deprecated.", DeprecationWarning) 2254 2255 _params = locals() 2256 2257 _all_params = [ 2258 'repository' 2259 ] 2260 _all_params.extend( 2261 [ 2262 'async_req', 2263 '_return_http_data_only', 2264 '_preload_content', 2265 '_request_timeout', 2266 '_request_auth', 2267 '_content_type', 2268 '_headers' 2269 ] 2270 ) 2271 2272 # validate the arguments 2273 for _key, _val in _params['kwargs'].items(): 2274 if _key not in _all_params: 2275 raise ApiTypeError( 2276 "Got an unexpected keyword argument '%s'" 2277 " to method internal_get_garbage_collection_rules" % _key 2278 ) 2279 _params[_key] = _val 2280 del _params['kwargs'] 2281 2282 _collection_formats = {} 2283 2284 # process the path parameters 2285 _path_params = {} 2286 if _params['repository']: 2287 _path_params['repository'] = _params['repository'] 2288 2289 2290 # process the query parameters 2291 _query_params = [] 2292 # process the header parameters 2293 _header_params = dict(_params.get('_headers', {})) 2294 # process the form parameters 2295 _form_params = [] 2296 _files = {} 2297 # process the body parameter 2298 _body_params = None 2299 # set the HTTP header `Accept` 2300 _header_params['Accept'] = self.api_client.select_header_accept( 2301 ['application/json']) # noqa: E501 2302 2303 # authentication setting 2304 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 2305 2306 _response_types_map = { 2307 '200': "GarbageCollectionRules", 2308 '401': "Error", 2309 '404': "Error", 2310 '420': None, 2311 } 2312 2313 return self.api_client.call_api( 2314 '/repositories/{repository}/gc/rules', 'GET', 2315 _path_params, 2316 _query_params, 2317 _header_params, 2318 body=_body_params, 2319 post_params=_form_params, 2320 files=_files, 2321 response_types_map=_response_types_map, 2322 auth_settings=_auth_settings, 2323 async_req=_params.get('async_req'), 2324 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 2325 _preload_content=_params.get('_preload_content', True), 2326 _request_timeout=_params.get('_request_timeout'), 2327 collection_formats=_collection_formats, 2328 _request_auth=_params.get('_request_auth')) 2329 2330 @validate_arguments 2331 def internal_set_garbage_collection_rules(self, repository : StrictStr, garbage_collection_rules : GarbageCollectionRules, **kwargs) -> None: # noqa: E501 2332 """(Deprecated) internal_set_garbage_collection_rules # noqa: E501 2333 2334 This method makes a synchronous HTTP request by default. To make an 2335 asynchronous HTTP request, please pass async_req=True 2336 2337 >>> thread = api.internal_set_garbage_collection_rules(repository, garbage_collection_rules, async_req=True) 2338 >>> result = thread.get() 2339 2340 :param repository: (required) 2341 :type repository: str 2342 :param garbage_collection_rules: (required) 2343 :type garbage_collection_rules: GarbageCollectionRules 2344 :param async_req: Whether to execute the request asynchronously. 2345 :type async_req: bool, optional 2346 :param _request_timeout: timeout setting for this request. If one 2347 number provided, it will be total request 2348 timeout. It can also be a pair (tuple) of 2349 (connection, read) timeouts. 2350 :return: Returns the result object. 2351 If the method is called asynchronously, 2352 returns the request thread. 2353 :rtype: None 2354 """ 2355 kwargs['_return_http_data_only'] = True 2356 if '_preload_content' in kwargs: 2357 raise ValueError("Error! Please call the internal_set_garbage_collection_rules_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 2358 return self.internal_set_garbage_collection_rules_with_http_info(repository, garbage_collection_rules, **kwargs) # noqa: E501 2359 2360 @validate_arguments 2361 def internal_set_garbage_collection_rules_with_http_info(self, repository : StrictStr, garbage_collection_rules : GarbageCollectionRules, **kwargs) -> ApiResponse: # noqa: E501 2362 """(Deprecated) internal_set_garbage_collection_rules # noqa: E501 2363 2364 This method makes a synchronous HTTP request by default. To make an 2365 asynchronous HTTP request, please pass async_req=True 2366 2367 >>> thread = api.internal_set_garbage_collection_rules_with_http_info(repository, garbage_collection_rules, async_req=True) 2368 >>> result = thread.get() 2369 2370 :param repository: (required) 2371 :type repository: str 2372 :param garbage_collection_rules: (required) 2373 :type garbage_collection_rules: GarbageCollectionRules 2374 :param async_req: Whether to execute the request asynchronously. 2375 :type async_req: bool, optional 2376 :param _preload_content: if False, the ApiResponse.data will 2377 be set to none and raw_data will store the 2378 HTTP response body without reading/decoding. 2379 Default is True. 2380 :type _preload_content: bool, optional 2381 :param _return_http_data_only: response data instead of ApiResponse 2382 object with status code, headers, etc 2383 :type _return_http_data_only: bool, optional 2384 :param _request_timeout: timeout setting for this request. If one 2385 number provided, it will be total request 2386 timeout. It can also be a pair (tuple) of 2387 (connection, read) timeouts. 2388 :param _request_auth: set to override the auth_settings for an a single 2389 request; this effectively ignores the authentication 2390 in the spec for a single request. 2391 :type _request_auth: dict, optional 2392 :type _content_type: string, optional: force content-type for the request 2393 :return: Returns the result object. 2394 If the method is called asynchronously, 2395 returns the request thread. 2396 :rtype: None 2397 """ 2398 2399 warnings.warn("POST /repositories/{repository}/gc/rules is deprecated.", DeprecationWarning) 2400 2401 _params = locals() 2402 2403 _all_params = [ 2404 'repository', 2405 'garbage_collection_rules' 2406 ] 2407 _all_params.extend( 2408 [ 2409 'async_req', 2410 '_return_http_data_only', 2411 '_preload_content', 2412 '_request_timeout', 2413 '_request_auth', 2414 '_content_type', 2415 '_headers' 2416 ] 2417 ) 2418 2419 # validate the arguments 2420 for _key, _val in _params['kwargs'].items(): 2421 if _key not in _all_params: 2422 raise ApiTypeError( 2423 "Got an unexpected keyword argument '%s'" 2424 " to method internal_set_garbage_collection_rules" % _key 2425 ) 2426 _params[_key] = _val 2427 del _params['kwargs'] 2428 2429 _collection_formats = {} 2430 2431 # process the path parameters 2432 _path_params = {} 2433 if _params['repository']: 2434 _path_params['repository'] = _params['repository'] 2435 2436 2437 # process the query parameters 2438 _query_params = [] 2439 # process the header parameters 2440 _header_params = dict(_params.get('_headers', {})) 2441 # process the form parameters 2442 _form_params = [] 2443 _files = {} 2444 # process the body parameter 2445 _body_params = None 2446 if _params['garbage_collection_rules'] is not None: 2447 _body_params = _params['garbage_collection_rules'] 2448 2449 # set the HTTP header `Accept` 2450 _header_params['Accept'] = self.api_client.select_header_accept( 2451 ['application/json']) # noqa: E501 2452 2453 # set the HTTP header `Content-Type` 2454 _content_types_list = _params.get('_content_type', 2455 self.api_client.select_header_content_type( 2456 ['application/json'])) 2457 if _content_types_list: 2458 _header_params['Content-Type'] = _content_types_list 2459 2460 # authentication setting 2461 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 2462 2463 _response_types_map = {} 2464 2465 return self.api_client.call_api( 2466 '/repositories/{repository}/gc/rules', 'POST', 2467 _path_params, 2468 _query_params, 2469 _header_params, 2470 body=_body_params, 2471 post_params=_form_params, 2472 files=_files, 2473 response_types_map=_response_types_map, 2474 auth_settings=_auth_settings, 2475 async_req=_params.get('async_req'), 2476 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 2477 _preload_content=_params.get('_preload_content', True), 2478 _request_timeout=_params.get('_request_timeout'), 2479 collection_formats=_collection_formats, 2480 _request_auth=_params.get('_request_auth')) 2481 2482 @validate_arguments 2483 def post_stats_events(self, stats_events_list : StatsEventsList, **kwargs) -> None: # noqa: E501 2484 """post stats events, this endpoint is meant for internal use only # noqa: E501 2485 2486 This method makes a synchronous HTTP request by default. To make an 2487 asynchronous HTTP request, please pass async_req=True 2488 2489 >>> thread = api.post_stats_events(stats_events_list, async_req=True) 2490 >>> result = thread.get() 2491 2492 :param stats_events_list: (required) 2493 :type stats_events_list: StatsEventsList 2494 :param async_req: Whether to execute the request asynchronously. 2495 :type async_req: bool, optional 2496 :param _request_timeout: timeout setting for this request. If one 2497 number provided, it will be total request 2498 timeout. It can also be a pair (tuple) of 2499 (connection, read) timeouts. 2500 :return: Returns the result object. 2501 If the method is called asynchronously, 2502 returns the request thread. 2503 :rtype: None 2504 """ 2505 kwargs['_return_http_data_only'] = True 2506 if '_preload_content' in kwargs: 2507 raise ValueError("Error! Please call the post_stats_events_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 2508 return self.post_stats_events_with_http_info(stats_events_list, **kwargs) # noqa: E501 2509 2510 @validate_arguments 2511 def post_stats_events_with_http_info(self, stats_events_list : StatsEventsList, **kwargs) -> ApiResponse: # noqa: E501 2512 """post stats events, this endpoint is meant for internal use only # noqa: E501 2513 2514 This method makes a synchronous HTTP request by default. To make an 2515 asynchronous HTTP request, please pass async_req=True 2516 2517 >>> thread = api.post_stats_events_with_http_info(stats_events_list, async_req=True) 2518 >>> result = thread.get() 2519 2520 :param stats_events_list: (required) 2521 :type stats_events_list: StatsEventsList 2522 :param async_req: Whether to execute the request asynchronously. 2523 :type async_req: bool, optional 2524 :param _preload_content: if False, the ApiResponse.data will 2525 be set to none and raw_data will store the 2526 HTTP response body without reading/decoding. 2527 Default is True. 2528 :type _preload_content: bool, optional 2529 :param _return_http_data_only: response data instead of ApiResponse 2530 object with status code, headers, etc 2531 :type _return_http_data_only: bool, optional 2532 :param _request_timeout: timeout setting for this request. If one 2533 number provided, it will be total request 2534 timeout. It can also be a pair (tuple) of 2535 (connection, read) timeouts. 2536 :param _request_auth: set to override the auth_settings for an a single 2537 request; this effectively ignores the authentication 2538 in the spec for a single request. 2539 :type _request_auth: dict, optional 2540 :type _content_type: string, optional: force content-type for the request 2541 :return: Returns the result object. 2542 If the method is called asynchronously, 2543 returns the request thread. 2544 :rtype: None 2545 """ 2546 2547 _params = locals() 2548 2549 _all_params = [ 2550 'stats_events_list' 2551 ] 2552 _all_params.extend( 2553 [ 2554 'async_req', 2555 '_return_http_data_only', 2556 '_preload_content', 2557 '_request_timeout', 2558 '_request_auth', 2559 '_content_type', 2560 '_headers' 2561 ] 2562 ) 2563 2564 # validate the arguments 2565 for _key, _val in _params['kwargs'].items(): 2566 if _key not in _all_params: 2567 raise ApiTypeError( 2568 "Got an unexpected keyword argument '%s'" 2569 " to method post_stats_events" % _key 2570 ) 2571 _params[_key] = _val 2572 del _params['kwargs'] 2573 2574 _collection_formats = {} 2575 2576 # process the path parameters 2577 _path_params = {} 2578 2579 # process the query parameters 2580 _query_params = [] 2581 # process the header parameters 2582 _header_params = dict(_params.get('_headers', {})) 2583 # process the form parameters 2584 _form_params = [] 2585 _files = {} 2586 # process the body parameter 2587 _body_params = None 2588 if _params['stats_events_list'] is not None: 2589 _body_params = _params['stats_events_list'] 2590 2591 # set the HTTP header `Accept` 2592 _header_params['Accept'] = self.api_client.select_header_accept( 2593 ['application/json']) # noqa: E501 2594 2595 # set the HTTP header `Content-Type` 2596 _content_types_list = _params.get('_content_type', 2597 self.api_client.select_header_content_type( 2598 ['application/json'])) 2599 if _content_types_list: 2600 _header_params['Content-Type'] = _content_types_list 2601 2602 # authentication setting 2603 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 2604 2605 _response_types_map = {} 2606 2607 return self.api_client.call_api( 2608 '/statistics', 'POST', 2609 _path_params, 2610 _query_params, 2611 _header_params, 2612 body=_body_params, 2613 post_params=_form_params, 2614 files=_files, 2615 response_types_map=_response_types_map, 2616 auth_settings=_auth_settings, 2617 async_req=_params.get('async_req'), 2618 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 2619 _preload_content=_params.get('_preload_content', True), 2620 _request_timeout=_params.get('_request_timeout'), 2621 collection_formats=_collection_formats, 2622 _request_auth=_params.get('_request_auth')) 2623 2624 @validate_arguments 2625 def prepare_garbage_collection_commits(self, repository : StrictStr, **kwargs) -> GarbageCollectionPrepareResponse: # noqa: E501 2626 """save lists of active commits for garbage collection # noqa: E501 2627 2628 This method makes a synchronous HTTP request by default. To make an 2629 asynchronous HTTP request, please pass async_req=True 2630 2631 >>> thread = api.prepare_garbage_collection_commits(repository, async_req=True) 2632 >>> result = thread.get() 2633 2634 :param repository: (required) 2635 :type repository: str 2636 :param async_req: Whether to execute the request asynchronously. 2637 :type async_req: bool, optional 2638 :param _request_timeout: timeout setting for this request. If one 2639 number provided, it will be total request 2640 timeout. It can also be a pair (tuple) of 2641 (connection, read) timeouts. 2642 :return: Returns the result object. 2643 If the method is called asynchronously, 2644 returns the request thread. 2645 :rtype: GarbageCollectionPrepareResponse 2646 """ 2647 kwargs['_return_http_data_only'] = True 2648 if '_preload_content' in kwargs: 2649 raise ValueError("Error! Please call the prepare_garbage_collection_commits_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 2650 return self.prepare_garbage_collection_commits_with_http_info(repository, **kwargs) # noqa: E501 2651 2652 @validate_arguments 2653 def prepare_garbage_collection_commits_with_http_info(self, repository : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 2654 """save lists of active commits for garbage collection # noqa: E501 2655 2656 This method makes a synchronous HTTP request by default. To make an 2657 asynchronous HTTP request, please pass async_req=True 2658 2659 >>> thread = api.prepare_garbage_collection_commits_with_http_info(repository, async_req=True) 2660 >>> result = thread.get() 2661 2662 :param repository: (required) 2663 :type repository: str 2664 :param async_req: Whether to execute the request asynchronously. 2665 :type async_req: bool, optional 2666 :param _preload_content: if False, the ApiResponse.data will 2667 be set to none and raw_data will store the 2668 HTTP response body without reading/decoding. 2669 Default is True. 2670 :type _preload_content: bool, optional 2671 :param _return_http_data_only: response data instead of ApiResponse 2672 object with status code, headers, etc 2673 :type _return_http_data_only: bool, optional 2674 :param _request_timeout: timeout setting for this request. If one 2675 number provided, it will be total request 2676 timeout. It can also be a pair (tuple) of 2677 (connection, read) timeouts. 2678 :param _request_auth: set to override the auth_settings for an a single 2679 request; this effectively ignores the authentication 2680 in the spec for a single request. 2681 :type _request_auth: dict, optional 2682 :type _content_type: string, optional: force content-type for the request 2683 :return: Returns the result object. 2684 If the method is called asynchronously, 2685 returns the request thread. 2686 :rtype: tuple(GarbageCollectionPrepareResponse, status_code(int), headers(HTTPHeaderDict)) 2687 """ 2688 2689 _params = locals() 2690 2691 _all_params = [ 2692 'repository' 2693 ] 2694 _all_params.extend( 2695 [ 2696 'async_req', 2697 '_return_http_data_only', 2698 '_preload_content', 2699 '_request_timeout', 2700 '_request_auth', 2701 '_content_type', 2702 '_headers' 2703 ] 2704 ) 2705 2706 # validate the arguments 2707 for _key, _val in _params['kwargs'].items(): 2708 if _key not in _all_params: 2709 raise ApiTypeError( 2710 "Got an unexpected keyword argument '%s'" 2711 " to method prepare_garbage_collection_commits" % _key 2712 ) 2713 _params[_key] = _val 2714 del _params['kwargs'] 2715 2716 _collection_formats = {} 2717 2718 # process the path parameters 2719 _path_params = {} 2720 if _params['repository']: 2721 _path_params['repository'] = _params['repository'] 2722 2723 2724 # process the query parameters 2725 _query_params = [] 2726 # process the header parameters 2727 _header_params = dict(_params.get('_headers', {})) 2728 # process the form parameters 2729 _form_params = [] 2730 _files = {} 2731 # process the body parameter 2732 _body_params = None 2733 # set the HTTP header `Accept` 2734 _header_params['Accept'] = self.api_client.select_header_accept( 2735 ['application/json']) # noqa: E501 2736 2737 # authentication setting 2738 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 2739 2740 _response_types_map = { 2741 '201': "GarbageCollectionPrepareResponse", 2742 '401': "Error", 2743 '403': "Error", 2744 '404': "Error", 2745 '420': None, 2746 } 2747 2748 return self.api_client.call_api( 2749 '/repositories/{repository}/gc/prepare_commits', 'POST', 2750 _path_params, 2751 _query_params, 2752 _header_params, 2753 body=_body_params, 2754 post_params=_form_params, 2755 files=_files, 2756 response_types_map=_response_types_map, 2757 auth_settings=_auth_settings, 2758 async_req=_params.get('async_req'), 2759 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 2760 _preload_content=_params.get('_preload_content', True), 2761 _request_timeout=_params.get('_request_timeout'), 2762 collection_formats=_collection_formats, 2763 _request_auth=_params.get('_request_auth')) 2764 2765 @validate_arguments 2766 def prepare_garbage_collection_uncommitted(self, repository : StrictStr, prepare_gc_uncommitted_request : Optional[PrepareGCUncommittedRequest] = None, **kwargs) -> PrepareGCUncommittedResponse: # noqa: E501 2767 """save repository uncommitted metadata for garbage collection # noqa: E501 2768 2769 This method makes a synchronous HTTP request by default. To make an 2770 asynchronous HTTP request, please pass async_req=True 2771 2772 >>> thread = api.prepare_garbage_collection_uncommitted(repository, prepare_gc_uncommitted_request, async_req=True) 2773 >>> result = thread.get() 2774 2775 :param repository: (required) 2776 :type repository: str 2777 :param prepare_gc_uncommitted_request: 2778 :type prepare_gc_uncommitted_request: PrepareGCUncommittedRequest 2779 :param async_req: Whether to execute the request asynchronously. 2780 :type async_req: bool, optional 2781 :param _request_timeout: timeout setting for this request. If one 2782 number provided, it will be total request 2783 timeout. It can also be a pair (tuple) of 2784 (connection, read) timeouts. 2785 :return: Returns the result object. 2786 If the method is called asynchronously, 2787 returns the request thread. 2788 :rtype: PrepareGCUncommittedResponse 2789 """ 2790 kwargs['_return_http_data_only'] = True 2791 if '_preload_content' in kwargs: 2792 raise ValueError("Error! Please call the prepare_garbage_collection_uncommitted_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 2793 return self.prepare_garbage_collection_uncommitted_with_http_info(repository, prepare_gc_uncommitted_request, **kwargs) # noqa: E501 2794 2795 @validate_arguments 2796 def prepare_garbage_collection_uncommitted_with_http_info(self, repository : StrictStr, prepare_gc_uncommitted_request : Optional[PrepareGCUncommittedRequest] = None, **kwargs) -> ApiResponse: # noqa: E501 2797 """save repository uncommitted metadata for garbage collection # noqa: E501 2798 2799 This method makes a synchronous HTTP request by default. To make an 2800 asynchronous HTTP request, please pass async_req=True 2801 2802 >>> thread = api.prepare_garbage_collection_uncommitted_with_http_info(repository, prepare_gc_uncommitted_request, async_req=True) 2803 >>> result = thread.get() 2804 2805 :param repository: (required) 2806 :type repository: str 2807 :param prepare_gc_uncommitted_request: 2808 :type prepare_gc_uncommitted_request: PrepareGCUncommittedRequest 2809 :param async_req: Whether to execute the request asynchronously. 2810 :type async_req: bool, optional 2811 :param _preload_content: if False, the ApiResponse.data will 2812 be set to none and raw_data will store the 2813 HTTP response body without reading/decoding. 2814 Default is True. 2815 :type _preload_content: bool, optional 2816 :param _return_http_data_only: response data instead of ApiResponse 2817 object with status code, headers, etc 2818 :type _return_http_data_only: bool, optional 2819 :param _request_timeout: timeout setting for this request. If one 2820 number provided, it will be total request 2821 timeout. It can also be a pair (tuple) of 2822 (connection, read) timeouts. 2823 :param _request_auth: set to override the auth_settings for an a single 2824 request; this effectively ignores the authentication 2825 in the spec for a single request. 2826 :type _request_auth: dict, optional 2827 :type _content_type: string, optional: force content-type for the request 2828 :return: Returns the result object. 2829 If the method is called asynchronously, 2830 returns the request thread. 2831 :rtype: tuple(PrepareGCUncommittedResponse, status_code(int), headers(HTTPHeaderDict)) 2832 """ 2833 2834 _params = locals() 2835 2836 _all_params = [ 2837 'repository', 2838 'prepare_gc_uncommitted_request' 2839 ] 2840 _all_params.extend( 2841 [ 2842 'async_req', 2843 '_return_http_data_only', 2844 '_preload_content', 2845 '_request_timeout', 2846 '_request_auth', 2847 '_content_type', 2848 '_headers' 2849 ] 2850 ) 2851 2852 # validate the arguments 2853 for _key, _val in _params['kwargs'].items(): 2854 if _key not in _all_params: 2855 raise ApiTypeError( 2856 "Got an unexpected keyword argument '%s'" 2857 " to method prepare_garbage_collection_uncommitted" % _key 2858 ) 2859 _params[_key] = _val 2860 del _params['kwargs'] 2861 2862 _collection_formats = {} 2863 2864 # process the path parameters 2865 _path_params = {} 2866 if _params['repository']: 2867 _path_params['repository'] = _params['repository'] 2868 2869 2870 # process the query parameters 2871 _query_params = [] 2872 # process the header parameters 2873 _header_params = dict(_params.get('_headers', {})) 2874 # process the form parameters 2875 _form_params = [] 2876 _files = {} 2877 # process the body parameter 2878 _body_params = None 2879 if _params['prepare_gc_uncommitted_request'] is not None: 2880 _body_params = _params['prepare_gc_uncommitted_request'] 2881 2882 # set the HTTP header `Accept` 2883 _header_params['Accept'] = self.api_client.select_header_accept( 2884 ['application/json']) # noqa: E501 2885 2886 # set the HTTP header `Content-Type` 2887 _content_types_list = _params.get('_content_type', 2888 self.api_client.select_header_content_type( 2889 ['application/json'])) 2890 if _content_types_list: 2891 _header_params['Content-Type'] = _content_types_list 2892 2893 # authentication setting 2894 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 2895 2896 _response_types_map = { 2897 '201': "PrepareGCUncommittedResponse", 2898 '400': "Error", 2899 '401': "Error", 2900 '403': "Error", 2901 '404': "Error", 2902 '420': None, 2903 } 2904 2905 return self.api_client.call_api( 2906 '/repositories/{repository}/gc/prepare_uncommited', 'POST', 2907 _path_params, 2908 _query_params, 2909 _header_params, 2910 body=_body_params, 2911 post_params=_form_params, 2912 files=_files, 2913 response_types_map=_response_types_map, 2914 auth_settings=_auth_settings, 2915 async_req=_params.get('async_req'), 2916 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 2917 _preload_content=_params.get('_preload_content', True), 2918 _request_timeout=_params.get('_request_timeout'), 2919 collection_formats=_collection_formats, 2920 _request_auth=_params.get('_request_auth')) 2921 2922 @validate_arguments 2923 def restore_refs(self, repository : StrictStr, refs_restore : RefsRestore, **kwargs) -> None: # noqa: E501 2924 """Restore repository refs (tags, commits, branches) from object store. Deprecated: a new API will introduce long running operations # noqa: E501 2925 2926 This method makes a synchronous HTTP request by default. To make an 2927 asynchronous HTTP request, please pass async_req=True 2928 2929 >>> thread = api.restore_refs(repository, refs_restore, async_req=True) 2930 >>> result = thread.get() 2931 2932 :param repository: (required) 2933 :type repository: str 2934 :param refs_restore: (required) 2935 :type refs_restore: RefsRestore 2936 :param async_req: Whether to execute the request asynchronously. 2937 :type async_req: bool, optional 2938 :param _request_timeout: timeout setting for this request. If one 2939 number provided, it will be total request 2940 timeout. It can also be a pair (tuple) of 2941 (connection, read) timeouts. 2942 :return: Returns the result object. 2943 If the method is called asynchronously, 2944 returns the request thread. 2945 :rtype: None 2946 """ 2947 kwargs['_return_http_data_only'] = True 2948 if '_preload_content' in kwargs: 2949 raise ValueError("Error! Please call the restore_refs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 2950 return self.restore_refs_with_http_info(repository, refs_restore, **kwargs) # noqa: E501 2951 2952 @validate_arguments 2953 def restore_refs_with_http_info(self, repository : StrictStr, refs_restore : RefsRestore, **kwargs) -> ApiResponse: # noqa: E501 2954 """Restore repository refs (tags, commits, branches) from object store. Deprecated: a new API will introduce long running operations # noqa: E501 2955 2956 This method makes a synchronous HTTP request by default. To make an 2957 asynchronous HTTP request, please pass async_req=True 2958 2959 >>> thread = api.restore_refs_with_http_info(repository, refs_restore, async_req=True) 2960 >>> result = thread.get() 2961 2962 :param repository: (required) 2963 :type repository: str 2964 :param refs_restore: (required) 2965 :type refs_restore: RefsRestore 2966 :param async_req: Whether to execute the request asynchronously. 2967 :type async_req: bool, optional 2968 :param _preload_content: if False, the ApiResponse.data will 2969 be set to none and raw_data will store the 2970 HTTP response body without reading/decoding. 2971 Default is True. 2972 :type _preload_content: bool, optional 2973 :param _return_http_data_only: response data instead of ApiResponse 2974 object with status code, headers, etc 2975 :type _return_http_data_only: bool, optional 2976 :param _request_timeout: timeout setting for this request. If one 2977 number provided, it will be total request 2978 timeout. It can also be a pair (tuple) of 2979 (connection, read) timeouts. 2980 :param _request_auth: set to override the auth_settings for an a single 2981 request; this effectively ignores the authentication 2982 in the spec for a single request. 2983 :type _request_auth: dict, optional 2984 :type _content_type: string, optional: force content-type for the request 2985 :return: Returns the result object. 2986 If the method is called asynchronously, 2987 returns the request thread. 2988 :rtype: None 2989 """ 2990 2991 _params = locals() 2992 2993 _all_params = [ 2994 'repository', 2995 'refs_restore' 2996 ] 2997 _all_params.extend( 2998 [ 2999 'async_req', 3000 '_return_http_data_only', 3001 '_preload_content', 3002 '_request_timeout', 3003 '_request_auth', 3004 '_content_type', 3005 '_headers' 3006 ] 3007 ) 3008 3009 # validate the arguments 3010 for _key, _val in _params['kwargs'].items(): 3011 if _key not in _all_params: 3012 raise ApiTypeError( 3013 "Got an unexpected keyword argument '%s'" 3014 " to method restore_refs" % _key 3015 ) 3016 _params[_key] = _val 3017 del _params['kwargs'] 3018 3019 _collection_formats = {} 3020 3021 # process the path parameters 3022 _path_params = {} 3023 if _params['repository']: 3024 _path_params['repository'] = _params['repository'] 3025 3026 3027 # process the query parameters 3028 _query_params = [] 3029 # process the header parameters 3030 _header_params = dict(_params.get('_headers', {})) 3031 # process the form parameters 3032 _form_params = [] 3033 _files = {} 3034 # process the body parameter 3035 _body_params = None 3036 if _params['refs_restore'] is not None: 3037 _body_params = _params['refs_restore'] 3038 3039 # set the HTTP header `Accept` 3040 _header_params['Accept'] = self.api_client.select_header_accept( 3041 ['application/json']) # noqa: E501 3042 3043 # set the HTTP header `Content-Type` 3044 _content_types_list = _params.get('_content_type', 3045 self.api_client.select_header_content_type( 3046 ['application/json'])) 3047 if _content_types_list: 3048 _header_params['Content-Type'] = _content_types_list 3049 3050 # authentication setting 3051 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 3052 3053 _response_types_map = {} 3054 3055 return self.api_client.call_api( 3056 '/repositories/{repository}/refs/restore', 'PUT', 3057 _path_params, 3058 _query_params, 3059 _header_params, 3060 body=_body_params, 3061 post_params=_form_params, 3062 files=_files, 3063 response_types_map=_response_types_map, 3064 auth_settings=_auth_settings, 3065 async_req=_params.get('async_req'), 3066 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 3067 _preload_content=_params.get('_preload_content', True), 3068 _request_timeout=_params.get('_request_timeout'), 3069 collection_formats=_collection_formats, 3070 _request_auth=_params.get('_request_auth')) 3071 3072 @validate_arguments 3073 def set_garbage_collection_rules_preflight(self, repository : StrictStr, **kwargs) -> None: # noqa: E501 3074 """set_garbage_collection_rules_preflight # noqa: E501 3075 3076 This method makes a synchronous HTTP request by default. To make an 3077 asynchronous HTTP request, please pass async_req=True 3078 3079 >>> thread = api.set_garbage_collection_rules_preflight(repository, async_req=True) 3080 >>> result = thread.get() 3081 3082 :param repository: (required) 3083 :type repository: str 3084 :param async_req: Whether to execute the request asynchronously. 3085 :type async_req: bool, optional 3086 :param _request_timeout: timeout setting for this request. If one 3087 number provided, it will be total request 3088 timeout. It can also be a pair (tuple) of 3089 (connection, read) timeouts. 3090 :return: Returns the result object. 3091 If the method is called asynchronously, 3092 returns the request thread. 3093 :rtype: None 3094 """ 3095 kwargs['_return_http_data_only'] = True 3096 if '_preload_content' in kwargs: 3097 raise ValueError("Error! Please call the set_garbage_collection_rules_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 3098 return self.set_garbage_collection_rules_preflight_with_http_info(repository, **kwargs) # noqa: E501 3099 3100 @validate_arguments 3101 def set_garbage_collection_rules_preflight_with_http_info(self, repository : StrictStr, **kwargs) -> ApiResponse: # noqa: E501 3102 """set_garbage_collection_rules_preflight # noqa: E501 3103 3104 This method makes a synchronous HTTP request by default. To make an 3105 asynchronous HTTP request, please pass async_req=True 3106 3107 >>> thread = api.set_garbage_collection_rules_preflight_with_http_info(repository, async_req=True) 3108 >>> result = thread.get() 3109 3110 :param repository: (required) 3111 :type repository: str 3112 :param async_req: Whether to execute the request asynchronously. 3113 :type async_req: bool, optional 3114 :param _preload_content: if False, the ApiResponse.data will 3115 be set to none and raw_data will store the 3116 HTTP response body without reading/decoding. 3117 Default is True. 3118 :type _preload_content: bool, optional 3119 :param _return_http_data_only: response data instead of ApiResponse 3120 object with status code, headers, etc 3121 :type _return_http_data_only: bool, optional 3122 :param _request_timeout: timeout setting for this request. If one 3123 number provided, it will be total request 3124 timeout. It can also be a pair (tuple) of 3125 (connection, read) timeouts. 3126 :param _request_auth: set to override the auth_settings for an a single 3127 request; this effectively ignores the authentication 3128 in the spec for a single request. 3129 :type _request_auth: dict, optional 3130 :type _content_type: string, optional: force content-type for the request 3131 :return: Returns the result object. 3132 If the method is called asynchronously, 3133 returns the request thread. 3134 :rtype: None 3135 """ 3136 3137 _params = locals() 3138 3139 _all_params = [ 3140 'repository' 3141 ] 3142 _all_params.extend( 3143 [ 3144 'async_req', 3145 '_return_http_data_only', 3146 '_preload_content', 3147 '_request_timeout', 3148 '_request_auth', 3149 '_content_type', 3150 '_headers' 3151 ] 3152 ) 3153 3154 # validate the arguments 3155 for _key, _val in _params['kwargs'].items(): 3156 if _key not in _all_params: 3157 raise ApiTypeError( 3158 "Got an unexpected keyword argument '%s'" 3159 " to method set_garbage_collection_rules_preflight" % _key 3160 ) 3161 _params[_key] = _val 3162 del _params['kwargs'] 3163 3164 _collection_formats = {} 3165 3166 # process the path parameters 3167 _path_params = {} 3168 if _params['repository']: 3169 _path_params['repository'] = _params['repository'] 3170 3171 3172 # process the query parameters 3173 _query_params = [] 3174 # process the header parameters 3175 _header_params = dict(_params.get('_headers', {})) 3176 # process the form parameters 3177 _form_params = [] 3178 _files = {} 3179 # process the body parameter 3180 _body_params = None 3181 # set the HTTP header `Accept` 3182 _header_params['Accept'] = self.api_client.select_header_accept( 3183 ['application/json']) # noqa: E501 3184 3185 # authentication setting 3186 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 3187 3188 _response_types_map = {} 3189 3190 return self.api_client.call_api( 3191 '/repositories/{repository}/gc/rules/set_allowed', 'GET', 3192 _path_params, 3193 _query_params, 3194 _header_params, 3195 body=_body_params, 3196 post_params=_form_params, 3197 files=_files, 3198 response_types_map=_response_types_map, 3199 auth_settings=_auth_settings, 3200 async_req=_params.get('async_req'), 3201 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 3202 _preload_content=_params.get('_preload_content', True), 3203 _request_timeout=_params.get('_request_timeout'), 3204 collection_formats=_collection_formats, 3205 _request_auth=_params.get('_request_auth')) 3206 3207 @validate_arguments 3208 def set_repository_metadata(self, repository : StrictStr, repository_metadata_set : RepositoryMetadataSet, **kwargs) -> None: # noqa: E501 3209 """set repository metadata # noqa: E501 3210 3211 Set repository metadata. This will only add or update the provided keys, and will not remove any existing keys. # noqa: E501 3212 This method makes a synchronous HTTP request by default. To make an 3213 asynchronous HTTP request, please pass async_req=True 3214 3215 >>> thread = api.set_repository_metadata(repository, repository_metadata_set, async_req=True) 3216 >>> result = thread.get() 3217 3218 :param repository: (required) 3219 :type repository: str 3220 :param repository_metadata_set: (required) 3221 :type repository_metadata_set: RepositoryMetadataSet 3222 :param async_req: Whether to execute the request asynchronously. 3223 :type async_req: bool, optional 3224 :param _request_timeout: timeout setting for this request. If one 3225 number provided, it will be total request 3226 timeout. It can also be a pair (tuple) of 3227 (connection, read) timeouts. 3228 :return: Returns the result object. 3229 If the method is called asynchronously, 3230 returns the request thread. 3231 :rtype: None 3232 """ 3233 kwargs['_return_http_data_only'] = True 3234 if '_preload_content' in kwargs: 3235 raise ValueError("Error! Please call the set_repository_metadata_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 3236 return self.set_repository_metadata_with_http_info(repository, repository_metadata_set, **kwargs) # noqa: E501 3237 3238 @validate_arguments 3239 def set_repository_metadata_with_http_info(self, repository : StrictStr, repository_metadata_set : RepositoryMetadataSet, **kwargs) -> ApiResponse: # noqa: E501 3240 """set repository metadata # noqa: E501 3241 3242 Set repository metadata. This will only add or update the provided keys, and will not remove any existing keys. # noqa: E501 3243 This method makes a synchronous HTTP request by default. To make an 3244 asynchronous HTTP request, please pass async_req=True 3245 3246 >>> thread = api.set_repository_metadata_with_http_info(repository, repository_metadata_set, async_req=True) 3247 >>> result = thread.get() 3248 3249 :param repository: (required) 3250 :type repository: str 3251 :param repository_metadata_set: (required) 3252 :type repository_metadata_set: RepositoryMetadataSet 3253 :param async_req: Whether to execute the request asynchronously. 3254 :type async_req: bool, optional 3255 :param _preload_content: if False, the ApiResponse.data will 3256 be set to none and raw_data will store the 3257 HTTP response body without reading/decoding. 3258 Default is True. 3259 :type _preload_content: bool, optional 3260 :param _return_http_data_only: response data instead of ApiResponse 3261 object with status code, headers, etc 3262 :type _return_http_data_only: bool, optional 3263 :param _request_timeout: timeout setting for this request. If one 3264 number provided, it will be total request 3265 timeout. It can also be a pair (tuple) of 3266 (connection, read) timeouts. 3267 :param _request_auth: set to override the auth_settings for an a single 3268 request; this effectively ignores the authentication 3269 in the spec for a single request. 3270 :type _request_auth: dict, optional 3271 :type _content_type: string, optional: force content-type for the request 3272 :return: Returns the result object. 3273 If the method is called asynchronously, 3274 returns the request thread. 3275 :rtype: None 3276 """ 3277 3278 _params = locals() 3279 3280 _all_params = [ 3281 'repository', 3282 'repository_metadata_set' 3283 ] 3284 _all_params.extend( 3285 [ 3286 'async_req', 3287 '_return_http_data_only', 3288 '_preload_content', 3289 '_request_timeout', 3290 '_request_auth', 3291 '_content_type', 3292 '_headers' 3293 ] 3294 ) 3295 3296 # validate the arguments 3297 for _key, _val in _params['kwargs'].items(): 3298 if _key not in _all_params: 3299 raise ApiTypeError( 3300 "Got an unexpected keyword argument '%s'" 3301 " to method set_repository_metadata" % _key 3302 ) 3303 _params[_key] = _val 3304 del _params['kwargs'] 3305 3306 _collection_formats = {} 3307 3308 # process the path parameters 3309 _path_params = {} 3310 if _params['repository']: 3311 _path_params['repository'] = _params['repository'] 3312 3313 3314 # process the query parameters 3315 _query_params = [] 3316 # process the header parameters 3317 _header_params = dict(_params.get('_headers', {})) 3318 # process the form parameters 3319 _form_params = [] 3320 _files = {} 3321 # process the body parameter 3322 _body_params = None 3323 if _params['repository_metadata_set'] is not None: 3324 _body_params = _params['repository_metadata_set'] 3325 3326 # set the HTTP header `Accept` 3327 _header_params['Accept'] = self.api_client.select_header_accept( 3328 ['application/json']) # noqa: E501 3329 3330 # set the HTTP header `Content-Type` 3331 _content_types_list = _params.get('_content_type', 3332 self.api_client.select_header_content_type( 3333 ['application/json'])) 3334 if _content_types_list: 3335 _header_params['Content-Type'] = _content_types_list 3336 3337 # authentication setting 3338 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 3339 3340 _response_types_map = {} 3341 3342 return self.api_client.call_api( 3343 '/repositories/{repository}/metadata', 'POST', 3344 _path_params, 3345 _query_params, 3346 _header_params, 3347 body=_body_params, 3348 post_params=_form_params, 3349 files=_files, 3350 response_types_map=_response_types_map, 3351 auth_settings=_auth_settings, 3352 async_req=_params.get('async_req'), 3353 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 3354 _preload_content=_params.get('_preload_content', True), 3355 _request_timeout=_params.get('_request_timeout'), 3356 collection_formats=_collection_formats, 3357 _request_auth=_params.get('_request_auth')) 3358 3359 @validate_arguments 3360 def setup(self, setup : Setup, **kwargs) -> CredentialsWithSecret: # noqa: E501 3361 """setup lakeFS and create a first user # noqa: E501 3362 3363 This method makes a synchronous HTTP request by default. To make an 3364 asynchronous HTTP request, please pass async_req=True 3365 3366 >>> thread = api.setup(setup, async_req=True) 3367 >>> result = thread.get() 3368 3369 :param setup: (required) 3370 :type setup: Setup 3371 :param async_req: Whether to execute the request asynchronously. 3372 :type async_req: bool, optional 3373 :param _request_timeout: timeout setting for this request. If one 3374 number provided, it will be total request 3375 timeout. It can also be a pair (tuple) of 3376 (connection, read) timeouts. 3377 :return: Returns the result object. 3378 If the method is called asynchronously, 3379 returns the request thread. 3380 :rtype: CredentialsWithSecret 3381 """ 3382 kwargs['_return_http_data_only'] = True 3383 if '_preload_content' in kwargs: 3384 raise ValueError("Error! Please call the setup_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 3385 return self.setup_with_http_info(setup, **kwargs) # noqa: E501 3386 3387 @validate_arguments 3388 def setup_with_http_info(self, setup : Setup, **kwargs) -> ApiResponse: # noqa: E501 3389 """setup lakeFS and create a first user # noqa: E501 3390 3391 This method makes a synchronous HTTP request by default. To make an 3392 asynchronous HTTP request, please pass async_req=True 3393 3394 >>> thread = api.setup_with_http_info(setup, async_req=True) 3395 >>> result = thread.get() 3396 3397 :param setup: (required) 3398 :type setup: Setup 3399 :param async_req: Whether to execute the request asynchronously. 3400 :type async_req: bool, optional 3401 :param _preload_content: if False, the ApiResponse.data will 3402 be set to none and raw_data will store the 3403 HTTP response body without reading/decoding. 3404 Default is True. 3405 :type _preload_content: bool, optional 3406 :param _return_http_data_only: response data instead of ApiResponse 3407 object with status code, headers, etc 3408 :type _return_http_data_only: bool, optional 3409 :param _request_timeout: timeout setting for this request. If one 3410 number provided, it will be total request 3411 timeout. It can also be a pair (tuple) of 3412 (connection, read) timeouts. 3413 :param _request_auth: set to override the auth_settings for an a single 3414 request; this effectively ignores the authentication 3415 in the spec for a single request. 3416 :type _request_auth: dict, optional 3417 :type _content_type: string, optional: force content-type for the request 3418 :return: Returns the result object. 3419 If the method is called asynchronously, 3420 returns the request thread. 3421 :rtype: tuple(CredentialsWithSecret, status_code(int), headers(HTTPHeaderDict)) 3422 """ 3423 3424 _params = locals() 3425 3426 _all_params = [ 3427 'setup' 3428 ] 3429 _all_params.extend( 3430 [ 3431 'async_req', 3432 '_return_http_data_only', 3433 '_preload_content', 3434 '_request_timeout', 3435 '_request_auth', 3436 '_content_type', 3437 '_headers' 3438 ] 3439 ) 3440 3441 # validate the arguments 3442 for _key, _val in _params['kwargs'].items(): 3443 if _key not in _all_params: 3444 raise ApiTypeError( 3445 "Got an unexpected keyword argument '%s'" 3446 " to method setup" % _key 3447 ) 3448 _params[_key] = _val 3449 del _params['kwargs'] 3450 3451 _collection_formats = {} 3452 3453 # process the path parameters 3454 _path_params = {} 3455 3456 # process the query parameters 3457 _query_params = [] 3458 # process the header parameters 3459 _header_params = dict(_params.get('_headers', {})) 3460 # process the form parameters 3461 _form_params = [] 3462 _files = {} 3463 # process the body parameter 3464 _body_params = None 3465 if _params['setup'] is not None: 3466 _body_params = _params['setup'] 3467 3468 # set the HTTP header `Accept` 3469 _header_params['Accept'] = self.api_client.select_header_accept( 3470 ['application/json']) # noqa: E501 3471 3472 # set the HTTP header `Content-Type` 3473 _content_types_list = _params.get('_content_type', 3474 self.api_client.select_header_content_type( 3475 ['application/json'])) 3476 if _content_types_list: 3477 _header_params['Content-Type'] = _content_types_list 3478 3479 # authentication setting 3480 _auth_settings = [] # noqa: E501 3481 3482 _response_types_map = { 3483 '200': "CredentialsWithSecret", 3484 '400': "Error", 3485 '409': "Error", 3486 '420': None, 3487 } 3488 3489 return self.api_client.call_api( 3490 '/setup_lakefs', 'POST', 3491 _path_params, 3492 _query_params, 3493 _header_params, 3494 body=_body_params, 3495 post_params=_form_params, 3496 files=_files, 3497 response_types_map=_response_types_map, 3498 auth_settings=_auth_settings, 3499 async_req=_params.get('async_req'), 3500 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 3501 _preload_content=_params.get('_preload_content', True), 3502 _request_timeout=_params.get('_request_timeout'), 3503 collection_formats=_collection_formats, 3504 _request_auth=_params.get('_request_auth')) 3505 3506 @validate_arguments 3507 def setup_comm_prefs(self, comm_prefs_input : CommPrefsInput, **kwargs) -> None: # noqa: E501 3508 """setup communications preferences # noqa: E501 3509 3510 This method makes a synchronous HTTP request by default. To make an 3511 asynchronous HTTP request, please pass async_req=True 3512 3513 >>> thread = api.setup_comm_prefs(comm_prefs_input, async_req=True) 3514 >>> result = thread.get() 3515 3516 :param comm_prefs_input: (required) 3517 :type comm_prefs_input: CommPrefsInput 3518 :param async_req: Whether to execute the request asynchronously. 3519 :type async_req: bool, optional 3520 :param _request_timeout: timeout setting for this request. If one 3521 number provided, it will be total request 3522 timeout. It can also be a pair (tuple) of 3523 (connection, read) timeouts. 3524 :return: Returns the result object. 3525 If the method is called asynchronously, 3526 returns the request thread. 3527 :rtype: None 3528 """ 3529 kwargs['_return_http_data_only'] = True 3530 if '_preload_content' in kwargs: 3531 raise ValueError("Error! Please call the setup_comm_prefs_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 3532 return self.setup_comm_prefs_with_http_info(comm_prefs_input, **kwargs) # noqa: E501 3533 3534 @validate_arguments 3535 def setup_comm_prefs_with_http_info(self, comm_prefs_input : CommPrefsInput, **kwargs) -> ApiResponse: # noqa: E501 3536 """setup communications preferences # noqa: E501 3537 3538 This method makes a synchronous HTTP request by default. To make an 3539 asynchronous HTTP request, please pass async_req=True 3540 3541 >>> thread = api.setup_comm_prefs_with_http_info(comm_prefs_input, async_req=True) 3542 >>> result = thread.get() 3543 3544 :param comm_prefs_input: (required) 3545 :type comm_prefs_input: CommPrefsInput 3546 :param async_req: Whether to execute the request asynchronously. 3547 :type async_req: bool, optional 3548 :param _preload_content: if False, the ApiResponse.data will 3549 be set to none and raw_data will store the 3550 HTTP response body without reading/decoding. 3551 Default is True. 3552 :type _preload_content: bool, optional 3553 :param _return_http_data_only: response data instead of ApiResponse 3554 object with status code, headers, etc 3555 :type _return_http_data_only: bool, optional 3556 :param _request_timeout: timeout setting for this request. If one 3557 number provided, it will be total request 3558 timeout. It can also be a pair (tuple) of 3559 (connection, read) timeouts. 3560 :param _request_auth: set to override the auth_settings for an a single 3561 request; this effectively ignores the authentication 3562 in the spec for a single request. 3563 :type _request_auth: dict, optional 3564 :type _content_type: string, optional: force content-type for the request 3565 :return: Returns the result object. 3566 If the method is called asynchronously, 3567 returns the request thread. 3568 :rtype: None 3569 """ 3570 3571 _params = locals() 3572 3573 _all_params = [ 3574 'comm_prefs_input' 3575 ] 3576 _all_params.extend( 3577 [ 3578 'async_req', 3579 '_return_http_data_only', 3580 '_preload_content', 3581 '_request_timeout', 3582 '_request_auth', 3583 '_content_type', 3584 '_headers' 3585 ] 3586 ) 3587 3588 # validate the arguments 3589 for _key, _val in _params['kwargs'].items(): 3590 if _key not in _all_params: 3591 raise ApiTypeError( 3592 "Got an unexpected keyword argument '%s'" 3593 " to method setup_comm_prefs" % _key 3594 ) 3595 _params[_key] = _val 3596 del _params['kwargs'] 3597 3598 _collection_formats = {} 3599 3600 # process the path parameters 3601 _path_params = {} 3602 3603 # process the query parameters 3604 _query_params = [] 3605 # process the header parameters 3606 _header_params = dict(_params.get('_headers', {})) 3607 # process the form parameters 3608 _form_params = [] 3609 _files = {} 3610 # process the body parameter 3611 _body_params = None 3612 if _params['comm_prefs_input'] is not None: 3613 _body_params = _params['comm_prefs_input'] 3614 3615 # set the HTTP header `Accept` 3616 _header_params['Accept'] = self.api_client.select_header_accept( 3617 ['application/json']) # noqa: E501 3618 3619 # set the HTTP header `Content-Type` 3620 _content_types_list = _params.get('_content_type', 3621 self.api_client.select_header_content_type( 3622 ['application/json'])) 3623 if _content_types_list: 3624 _header_params['Content-Type'] = _content_types_list 3625 3626 # authentication setting 3627 _auth_settings = [] # noqa: E501 3628 3629 _response_types_map = {} 3630 3631 return self.api_client.call_api( 3632 '/setup_comm_prefs', 'POST', 3633 _path_params, 3634 _query_params, 3635 _header_params, 3636 body=_body_params, 3637 post_params=_form_params, 3638 files=_files, 3639 response_types_map=_response_types_map, 3640 auth_settings=_auth_settings, 3641 async_req=_params.get('async_req'), 3642 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 3643 _preload_content=_params.get('_preload_content', True), 3644 _request_timeout=_params.get('_request_timeout'), 3645 collection_formats=_collection_formats, 3646 _request_auth=_params.get('_request_auth')) 3647 3648 @validate_arguments 3649 def stage_object(self, repository : StrictStr, branch : StrictStr, path : Annotated[StrictStr, Field(..., description="relative to the branch")], object_stage_creation : ObjectStageCreation, **kwargs) -> ObjectStats: # noqa: E501 3650 """(Deprecated) stage an object's metadata for the given branch # noqa: E501 3651 3652 This method makes a synchronous HTTP request by default. To make an 3653 asynchronous HTTP request, please pass async_req=True 3654 3655 >>> thread = api.stage_object(repository, branch, path, object_stage_creation, async_req=True) 3656 >>> result = thread.get() 3657 3658 :param repository: (required) 3659 :type repository: str 3660 :param branch: (required) 3661 :type branch: str 3662 :param path: relative to the branch (required) 3663 :type path: str 3664 :param object_stage_creation: (required) 3665 :type object_stage_creation: ObjectStageCreation 3666 :param async_req: Whether to execute the request asynchronously. 3667 :type async_req: bool, optional 3668 :param _request_timeout: timeout setting for this request. If one 3669 number provided, it will be total request 3670 timeout. It can also be a pair (tuple) of 3671 (connection, read) timeouts. 3672 :return: Returns the result object. 3673 If the method is called asynchronously, 3674 returns the request thread. 3675 :rtype: ObjectStats 3676 """ 3677 kwargs['_return_http_data_only'] = True 3678 if '_preload_content' in kwargs: 3679 raise ValueError("Error! Please call the stage_object_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 3680 return self.stage_object_with_http_info(repository, branch, path, object_stage_creation, **kwargs) # noqa: E501 3681 3682 @validate_arguments 3683 def stage_object_with_http_info(self, repository : StrictStr, branch : StrictStr, path : Annotated[StrictStr, Field(..., description="relative to the branch")], object_stage_creation : ObjectStageCreation, **kwargs) -> ApiResponse: # noqa: E501 3684 """(Deprecated) stage an object's metadata for the given branch # noqa: E501 3685 3686 This method makes a synchronous HTTP request by default. To make an 3687 asynchronous HTTP request, please pass async_req=True 3688 3689 >>> thread = api.stage_object_with_http_info(repository, branch, path, object_stage_creation, async_req=True) 3690 >>> result = thread.get() 3691 3692 :param repository: (required) 3693 :type repository: str 3694 :param branch: (required) 3695 :type branch: str 3696 :param path: relative to the branch (required) 3697 :type path: str 3698 :param object_stage_creation: (required) 3699 :type object_stage_creation: ObjectStageCreation 3700 :param async_req: Whether to execute the request asynchronously. 3701 :type async_req: bool, optional 3702 :param _preload_content: if False, the ApiResponse.data will 3703 be set to none and raw_data will store the 3704 HTTP response body without reading/decoding. 3705 Default is True. 3706 :type _preload_content: bool, optional 3707 :param _return_http_data_only: response data instead of ApiResponse 3708 object with status code, headers, etc 3709 :type _return_http_data_only: bool, optional 3710 :param _request_timeout: timeout setting for this request. If one 3711 number provided, it will be total request 3712 timeout. It can also be a pair (tuple) of 3713 (connection, read) timeouts. 3714 :param _request_auth: set to override the auth_settings for an a single 3715 request; this effectively ignores the authentication 3716 in the spec for a single request. 3717 :type _request_auth: dict, optional 3718 :type _content_type: string, optional: force content-type for the request 3719 :return: Returns the result object. 3720 If the method is called asynchronously, 3721 returns the request thread. 3722 :rtype: tuple(ObjectStats, status_code(int), headers(HTTPHeaderDict)) 3723 """ 3724 3725 warnings.warn("PUT /repositories/{repository}/branches/{branch}/objects is deprecated.", DeprecationWarning) 3726 3727 _params = locals() 3728 3729 _all_params = [ 3730 'repository', 3731 'branch', 3732 'path', 3733 'object_stage_creation' 3734 ] 3735 _all_params.extend( 3736 [ 3737 'async_req', 3738 '_return_http_data_only', 3739 '_preload_content', 3740 '_request_timeout', 3741 '_request_auth', 3742 '_content_type', 3743 '_headers' 3744 ] 3745 ) 3746 3747 # validate the arguments 3748 for _key, _val in _params['kwargs'].items(): 3749 if _key not in _all_params: 3750 raise ApiTypeError( 3751 "Got an unexpected keyword argument '%s'" 3752 " to method stage_object" % _key 3753 ) 3754 _params[_key] = _val 3755 del _params['kwargs'] 3756 3757 _collection_formats = {} 3758 3759 # process the path parameters 3760 _path_params = {} 3761 if _params['repository']: 3762 _path_params['repository'] = _params['repository'] 3763 3764 if _params['branch']: 3765 _path_params['branch'] = _params['branch'] 3766 3767 3768 # process the query parameters 3769 _query_params = [] 3770 if _params.get('path') is not None: # noqa: E501 3771 _query_params.append(('path', _params['path'])) 3772 3773 # process the header parameters 3774 _header_params = dict(_params.get('_headers', {})) 3775 # process the form parameters 3776 _form_params = [] 3777 _files = {} 3778 # process the body parameter 3779 _body_params = None 3780 if _params['object_stage_creation'] is not None: 3781 _body_params = _params['object_stage_creation'] 3782 3783 # set the HTTP header `Accept` 3784 _header_params['Accept'] = self.api_client.select_header_accept( 3785 ['application/json']) # noqa: E501 3786 3787 # set the HTTP header `Content-Type` 3788 _content_types_list = _params.get('_content_type', 3789 self.api_client.select_header_content_type( 3790 ['application/json'])) 3791 if _content_types_list: 3792 _header_params['Content-Type'] = _content_types_list 3793 3794 # authentication setting 3795 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 3796 3797 _response_types_map = { 3798 '201': "ObjectStats", 3799 '400': "Error", 3800 '401': "Error", 3801 '403': "Error", 3802 '404': "Error", 3803 '420': None, 3804 } 3805 3806 return self.api_client.call_api( 3807 '/repositories/{repository}/branches/{branch}/objects', 'PUT', 3808 _path_params, 3809 _query_params, 3810 _header_params, 3811 body=_body_params, 3812 post_params=_form_params, 3813 files=_files, 3814 response_types_map=_response_types_map, 3815 auth_settings=_auth_settings, 3816 async_req=_params.get('async_req'), 3817 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 3818 _preload_content=_params.get('_preload_content', True), 3819 _request_timeout=_params.get('_request_timeout'), 3820 collection_formats=_collection_formats, 3821 _request_auth=_params.get('_request_auth')) 3822 3823 @validate_arguments 3824 def upload_object_preflight(self, repository : StrictStr, branch : StrictStr, path : Annotated[StrictStr, Field(..., description="relative to the branch")], **kwargs) -> None: # noqa: E501 3825 """upload_object_preflight # noqa: E501 3826 3827 This method makes a synchronous HTTP request by default. To make an 3828 asynchronous HTTP request, please pass async_req=True 3829 3830 >>> thread = api.upload_object_preflight(repository, branch, path, async_req=True) 3831 >>> result = thread.get() 3832 3833 :param repository: (required) 3834 :type repository: str 3835 :param branch: (required) 3836 :type branch: str 3837 :param path: relative to the branch (required) 3838 :type path: str 3839 :param async_req: Whether to execute the request asynchronously. 3840 :type async_req: bool, optional 3841 :param _request_timeout: timeout setting for this request. If one 3842 number provided, it will be total request 3843 timeout. It can also be a pair (tuple) of 3844 (connection, read) timeouts. 3845 :return: Returns the result object. 3846 If the method is called asynchronously, 3847 returns the request thread. 3848 :rtype: None 3849 """ 3850 kwargs['_return_http_data_only'] = True 3851 if '_preload_content' in kwargs: 3852 raise ValueError("Error! Please call the upload_object_preflight_with_http_info method with `_preload_content` instead and obtain raw data from ApiResponse.raw_data") 3853 return self.upload_object_preflight_with_http_info(repository, branch, path, **kwargs) # noqa: E501 3854 3855 @validate_arguments 3856 def upload_object_preflight_with_http_info(self, repository : StrictStr, branch : StrictStr, path : Annotated[StrictStr, Field(..., description="relative to the branch")], **kwargs) -> ApiResponse: # noqa: E501 3857 """upload_object_preflight # noqa: E501 3858 3859 This method makes a synchronous HTTP request by default. To make an 3860 asynchronous HTTP request, please pass async_req=True 3861 3862 >>> thread = api.upload_object_preflight_with_http_info(repository, branch, path, async_req=True) 3863 >>> result = thread.get() 3864 3865 :param repository: (required) 3866 :type repository: str 3867 :param branch: (required) 3868 :type branch: str 3869 :param path: relative to the branch (required) 3870 :type path: str 3871 :param async_req: Whether to execute the request asynchronously. 3872 :type async_req: bool, optional 3873 :param _preload_content: if False, the ApiResponse.data will 3874 be set to none and raw_data will store the 3875 HTTP response body without reading/decoding. 3876 Default is True. 3877 :type _preload_content: bool, optional 3878 :param _return_http_data_only: response data instead of ApiResponse 3879 object with status code, headers, etc 3880 :type _return_http_data_only: bool, optional 3881 :param _request_timeout: timeout setting for this request. If one 3882 number provided, it will be total request 3883 timeout. It can also be a pair (tuple) of 3884 (connection, read) timeouts. 3885 :param _request_auth: set to override the auth_settings for an a single 3886 request; this effectively ignores the authentication 3887 in the spec for a single request. 3888 :type _request_auth: dict, optional 3889 :type _content_type: string, optional: force content-type for the request 3890 :return: Returns the result object. 3891 If the method is called asynchronously, 3892 returns the request thread. 3893 :rtype: None 3894 """ 3895 3896 _params = locals() 3897 3898 _all_params = [ 3899 'repository', 3900 'branch', 3901 'path' 3902 ] 3903 _all_params.extend( 3904 [ 3905 'async_req', 3906 '_return_http_data_only', 3907 '_preload_content', 3908 '_request_timeout', 3909 '_request_auth', 3910 '_content_type', 3911 '_headers' 3912 ] 3913 ) 3914 3915 # validate the arguments 3916 for _key, _val in _params['kwargs'].items(): 3917 if _key not in _all_params: 3918 raise ApiTypeError( 3919 "Got an unexpected keyword argument '%s'" 3920 " to method upload_object_preflight" % _key 3921 ) 3922 _params[_key] = _val 3923 del _params['kwargs'] 3924 3925 _collection_formats = {} 3926 3927 # process the path parameters 3928 _path_params = {} 3929 if _params['repository']: 3930 _path_params['repository'] = _params['repository'] 3931 3932 if _params['branch']: 3933 _path_params['branch'] = _params['branch'] 3934 3935 3936 # process the query parameters 3937 _query_params = [] 3938 if _params.get('path') is not None: # noqa: E501 3939 _query_params.append(('path', _params['path'])) 3940 3941 # process the header parameters 3942 _header_params = dict(_params.get('_headers', {})) 3943 # process the form parameters 3944 _form_params = [] 3945 _files = {} 3946 # process the body parameter 3947 _body_params = None 3948 # set the HTTP header `Accept` 3949 _header_params['Accept'] = self.api_client.select_header_accept( 3950 ['application/json']) # noqa: E501 3951 3952 # authentication setting 3953 _auth_settings = ['basic_auth', 'cookie_auth', 'oidc_auth', 'saml_auth', 'jwt_token'] # noqa: E501 3954 3955 _response_types_map = {} 3956 3957 return self.api_client.call_api( 3958 '/repositories/{repository}/branches/{branch}/objects/stage_allowed', 'GET', 3959 _path_params, 3960 _query_params, 3961 _header_params, 3962 body=_body_params, 3963 post_params=_form_params, 3964 files=_files, 3965 response_types_map=_response_types_map, 3966 auth_settings=_auth_settings, 3967 async_req=_params.get('async_req'), 3968 _return_http_data_only=_params.get('_return_http_data_only'), # noqa: E501 3969 _preload_content=_params.get('_preload_content', True), 3970 _request_timeout=_params.get('_request_timeout'), 3971 collection_formats=_collection_formats, 3972 _request_auth=_params.get('_request_auth'))