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