github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python-legacy/lakefs_client/api/repositories_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.branch_protection_rule import BranchProtectionRule
    26  from lakefs_client.model.error import Error
    27  from lakefs_client.model.garbage_collection_rules import GarbageCollectionRules
    28  from lakefs_client.model.refs_restore import RefsRestore
    29  from lakefs_client.model.repository import Repository
    30  from lakefs_client.model.repository_creation import RepositoryCreation
    31  from lakefs_client.model.repository_dump_status import RepositoryDumpStatus
    32  from lakefs_client.model.repository_list import RepositoryList
    33  from lakefs_client.model.repository_metadata import RepositoryMetadata
    34  from lakefs_client.model.repository_restore_status import RepositoryRestoreStatus
    35  from lakefs_client.model.task_info import TaskInfo
    36  
    37  
    38  class RepositoriesApi(object):
    39      """NOTE: This class is auto generated by OpenAPI Generator
    40      Ref: https://openapi-generator.tech
    41  
    42      Do not edit the class manually.
    43      """
    44  
    45      def __init__(self, api_client=None):
    46          if api_client is None:
    47              api_client = ApiClient()
    48          self.api_client = api_client
    49          self.create_repository_endpoint = _Endpoint(
    50              settings={
    51                  'response_type': (Repository,),
    52                  'auth': [
    53                      'basic_auth',
    54                      'cookie_auth',
    55                      'jwt_token',
    56                      'oidc_auth',
    57                      'saml_auth'
    58                  ],
    59                  'endpoint_path': '/repositories',
    60                  'operation_id': 'create_repository',
    61                  'http_method': 'POST',
    62                  'servers': None,
    63              },
    64              params_map={
    65                  'all': [
    66                      'repository_creation',
    67                      'bare',
    68                  ],
    69                  'required': [
    70                      'repository_creation',
    71                  ],
    72                  'nullable': [
    73                  ],
    74                  'enum': [
    75                  ],
    76                  'validation': [
    77                  ]
    78              },
    79              root_map={
    80                  'validations': {
    81                  },
    82                  'allowed_values': {
    83                  },
    84                  'openapi_types': {
    85                      'repository_creation':
    86                          (RepositoryCreation,),
    87                      'bare':
    88                          (bool,),
    89                  },
    90                  'attribute_map': {
    91                      'bare': 'bare',
    92                  },
    93                  'location_map': {
    94                      'repository_creation': 'body',
    95                      'bare': 'query',
    96                  },
    97                  'collection_format_map': {
    98                  }
    99              },
   100              headers_map={
   101                  'accept': [
   102                      'application/json'
   103                  ],
   104                  'content_type': [
   105                      'application/json'
   106                  ]
   107              },
   108              api_client=api_client
   109          )
   110          self.delete_gc_rules_endpoint = _Endpoint(
   111              settings={
   112                  'response_type': None,
   113                  'auth': [
   114                      'basic_auth',
   115                      'cookie_auth',
   116                      'jwt_token',
   117                      'oidc_auth',
   118                      'saml_auth'
   119                  ],
   120                  'endpoint_path': '/repositories/{repository}/settings/gc_rules',
   121                  'operation_id': 'delete_gc_rules',
   122                  'http_method': 'DELETE',
   123                  'servers': None,
   124              },
   125              params_map={
   126                  'all': [
   127                      'repository',
   128                  ],
   129                  'required': [
   130                      'repository',
   131                  ],
   132                  'nullable': [
   133                  ],
   134                  'enum': [
   135                  ],
   136                  'validation': [
   137                  ]
   138              },
   139              root_map={
   140                  'validations': {
   141                  },
   142                  'allowed_values': {
   143                  },
   144                  'openapi_types': {
   145                      'repository':
   146                          (str,),
   147                  },
   148                  'attribute_map': {
   149                      'repository': 'repository',
   150                  },
   151                  'location_map': {
   152                      'repository': 'path',
   153                  },
   154                  'collection_format_map': {
   155                  }
   156              },
   157              headers_map={
   158                  'accept': [
   159                      'application/json'
   160                  ],
   161                  'content_type': [],
   162              },
   163              api_client=api_client
   164          )
   165          self.delete_repository_endpoint = _Endpoint(
   166              settings={
   167                  'response_type': None,
   168                  'auth': [
   169                      'basic_auth',
   170                      'cookie_auth',
   171                      'jwt_token',
   172                      'oidc_auth',
   173                      'saml_auth'
   174                  ],
   175                  'endpoint_path': '/repositories/{repository}',
   176                  'operation_id': 'delete_repository',
   177                  'http_method': 'DELETE',
   178                  'servers': None,
   179              },
   180              params_map={
   181                  'all': [
   182                      'repository',
   183                      'force',
   184                  ],
   185                  'required': [
   186                      'repository',
   187                  ],
   188                  'nullable': [
   189                  ],
   190                  'enum': [
   191                  ],
   192                  'validation': [
   193                  ]
   194              },
   195              root_map={
   196                  'validations': {
   197                  },
   198                  'allowed_values': {
   199                  },
   200                  'openapi_types': {
   201                      'repository':
   202                          (str,),
   203                      'force':
   204                          (bool,),
   205                  },
   206                  'attribute_map': {
   207                      'repository': 'repository',
   208                      'force': 'force',
   209                  },
   210                  'location_map': {
   211                      'repository': 'path',
   212                      'force': 'query',
   213                  },
   214                  'collection_format_map': {
   215                  }
   216              },
   217              headers_map={
   218                  'accept': [
   219                      'application/json'
   220                  ],
   221                  'content_type': [],
   222              },
   223              api_client=api_client
   224          )
   225          self.dump_status_endpoint = _Endpoint(
   226              settings={
   227                  'response_type': (RepositoryDumpStatus,),
   228                  'auth': [
   229                      'basic_auth',
   230                      'cookie_auth',
   231                      'jwt_token',
   232                      'oidc_auth',
   233                      'saml_auth'
   234                  ],
   235                  'endpoint_path': '/repositories/{repository}/dump',
   236                  'operation_id': 'dump_status',
   237                  'http_method': 'GET',
   238                  'servers': None,
   239              },
   240              params_map={
   241                  'all': [
   242                      'repository',
   243                      'task_id',
   244                  ],
   245                  'required': [
   246                      'repository',
   247                      'task_id',
   248                  ],
   249                  'nullable': [
   250                  ],
   251                  'enum': [
   252                  ],
   253                  'validation': [
   254                  ]
   255              },
   256              root_map={
   257                  'validations': {
   258                  },
   259                  'allowed_values': {
   260                  },
   261                  'openapi_types': {
   262                      'repository':
   263                          (str,),
   264                      'task_id':
   265                          (str,),
   266                  },
   267                  'attribute_map': {
   268                      'repository': 'repository',
   269                      'task_id': 'task_id',
   270                  },
   271                  'location_map': {
   272                      'repository': 'path',
   273                      'task_id': 'query',
   274                  },
   275                  'collection_format_map': {
   276                  }
   277              },
   278              headers_map={
   279                  'accept': [
   280                      'application/json'
   281                  ],
   282                  'content_type': [],
   283              },
   284              api_client=api_client
   285          )
   286          self.dump_submit_endpoint = _Endpoint(
   287              settings={
   288                  'response_type': (TaskInfo,),
   289                  'auth': [
   290                      'basic_auth',
   291                      'cookie_auth',
   292                      'jwt_token',
   293                      'oidc_auth',
   294                      'saml_auth'
   295                  ],
   296                  'endpoint_path': '/repositories/{repository}/dump',
   297                  'operation_id': 'dump_submit',
   298                  'http_method': 'POST',
   299                  'servers': None,
   300              },
   301              params_map={
   302                  'all': [
   303                      'repository',
   304                  ],
   305                  'required': [
   306                      'repository',
   307                  ],
   308                  'nullable': [
   309                  ],
   310                  'enum': [
   311                  ],
   312                  'validation': [
   313                  ]
   314              },
   315              root_map={
   316                  'validations': {
   317                  },
   318                  'allowed_values': {
   319                  },
   320                  'openapi_types': {
   321                      'repository':
   322                          (str,),
   323                  },
   324                  'attribute_map': {
   325                      'repository': 'repository',
   326                  },
   327                  'location_map': {
   328                      'repository': 'path',
   329                  },
   330                  'collection_format_map': {
   331                  }
   332              },
   333              headers_map={
   334                  'accept': [
   335                      'application/json'
   336                  ],
   337                  'content_type': [],
   338              },
   339              api_client=api_client
   340          )
   341          self.get_branch_protection_rules_endpoint = _Endpoint(
   342              settings={
   343                  'response_type': ([BranchProtectionRule],),
   344                  'auth': [
   345                      'basic_auth',
   346                      'cookie_auth',
   347                      'jwt_token',
   348                      'oidc_auth',
   349                      'saml_auth'
   350                  ],
   351                  'endpoint_path': '/repositories/{repository}/settings/branch_protection',
   352                  'operation_id': 'get_branch_protection_rules',
   353                  'http_method': 'GET',
   354                  'servers': None,
   355              },
   356              params_map={
   357                  'all': [
   358                      'repository',
   359                  ],
   360                  'required': [
   361                      'repository',
   362                  ],
   363                  'nullable': [
   364                  ],
   365                  'enum': [
   366                  ],
   367                  'validation': [
   368                  ]
   369              },
   370              root_map={
   371                  'validations': {
   372                  },
   373                  'allowed_values': {
   374                  },
   375                  'openapi_types': {
   376                      'repository':
   377                          (str,),
   378                  },
   379                  'attribute_map': {
   380                      'repository': 'repository',
   381                  },
   382                  'location_map': {
   383                      'repository': 'path',
   384                  },
   385                  'collection_format_map': {
   386                  }
   387              },
   388              headers_map={
   389                  'accept': [
   390                      'application/json'
   391                  ],
   392                  'content_type': [],
   393              },
   394              api_client=api_client
   395          )
   396          self.get_gc_rules_endpoint = _Endpoint(
   397              settings={
   398                  'response_type': (GarbageCollectionRules,),
   399                  'auth': [
   400                      'basic_auth',
   401                      'cookie_auth',
   402                      'jwt_token',
   403                      'oidc_auth',
   404                      'saml_auth'
   405                  ],
   406                  'endpoint_path': '/repositories/{repository}/settings/gc_rules',
   407                  'operation_id': 'get_gc_rules',
   408                  'http_method': 'GET',
   409                  'servers': None,
   410              },
   411              params_map={
   412                  'all': [
   413                      'repository',
   414                  ],
   415                  'required': [
   416                      'repository',
   417                  ],
   418                  'nullable': [
   419                  ],
   420                  'enum': [
   421                  ],
   422                  'validation': [
   423                  ]
   424              },
   425              root_map={
   426                  'validations': {
   427                  },
   428                  'allowed_values': {
   429                  },
   430                  'openapi_types': {
   431                      'repository':
   432                          (str,),
   433                  },
   434                  'attribute_map': {
   435                      'repository': 'repository',
   436                  },
   437                  'location_map': {
   438                      'repository': 'path',
   439                  },
   440                  'collection_format_map': {
   441                  }
   442              },
   443              headers_map={
   444                  'accept': [
   445                      'application/json'
   446                  ],
   447                  'content_type': [],
   448              },
   449              api_client=api_client
   450          )
   451          self.get_repository_endpoint = _Endpoint(
   452              settings={
   453                  'response_type': (Repository,),
   454                  'auth': [
   455                      'basic_auth',
   456                      'cookie_auth',
   457                      'jwt_token',
   458                      'oidc_auth',
   459                      'saml_auth'
   460                  ],
   461                  'endpoint_path': '/repositories/{repository}',
   462                  'operation_id': 'get_repository',
   463                  'http_method': 'GET',
   464                  'servers': None,
   465              },
   466              params_map={
   467                  'all': [
   468                      'repository',
   469                  ],
   470                  'required': [
   471                      'repository',
   472                  ],
   473                  'nullable': [
   474                  ],
   475                  'enum': [
   476                  ],
   477                  'validation': [
   478                  ]
   479              },
   480              root_map={
   481                  'validations': {
   482                  },
   483                  'allowed_values': {
   484                  },
   485                  'openapi_types': {
   486                      'repository':
   487                          (str,),
   488                  },
   489                  'attribute_map': {
   490                      'repository': 'repository',
   491                  },
   492                  'location_map': {
   493                      'repository': 'path',
   494                  },
   495                  'collection_format_map': {
   496                  }
   497              },
   498              headers_map={
   499                  'accept': [
   500                      'application/json'
   501                  ],
   502                  'content_type': [],
   503              },
   504              api_client=api_client
   505          )
   506          self.get_repository_metadata_endpoint = _Endpoint(
   507              settings={
   508                  'response_type': (RepositoryMetadata,),
   509                  'auth': [
   510                      'basic_auth',
   511                      'cookie_auth',
   512                      'jwt_token',
   513                      'oidc_auth',
   514                      'saml_auth'
   515                  ],
   516                  'endpoint_path': '/repositories/{repository}/metadata',
   517                  'operation_id': 'get_repository_metadata',
   518                  'http_method': 'GET',
   519                  'servers': None,
   520              },
   521              params_map={
   522                  'all': [
   523                      'repository',
   524                  ],
   525                  'required': [
   526                      'repository',
   527                  ],
   528                  'nullable': [
   529                  ],
   530                  'enum': [
   531                  ],
   532                  'validation': [
   533                  ]
   534              },
   535              root_map={
   536                  'validations': {
   537                  },
   538                  'allowed_values': {
   539                  },
   540                  'openapi_types': {
   541                      'repository':
   542                          (str,),
   543                  },
   544                  'attribute_map': {
   545                      'repository': 'repository',
   546                  },
   547                  'location_map': {
   548                      'repository': 'path',
   549                  },
   550                  'collection_format_map': {
   551                  }
   552              },
   553              headers_map={
   554                  'accept': [
   555                      'application/json'
   556                  ],
   557                  'content_type': [],
   558              },
   559              api_client=api_client
   560          )
   561          self.list_repositories_endpoint = _Endpoint(
   562              settings={
   563                  'response_type': (RepositoryList,),
   564                  'auth': [
   565                      'basic_auth',
   566                      'cookie_auth',
   567                      'jwt_token',
   568                      'oidc_auth',
   569                      'saml_auth'
   570                  ],
   571                  'endpoint_path': '/repositories',
   572                  'operation_id': 'list_repositories',
   573                  'http_method': 'GET',
   574                  'servers': None,
   575              },
   576              params_map={
   577                  'all': [
   578                      'prefix',
   579                      'after',
   580                      'amount',
   581                  ],
   582                  'required': [],
   583                  'nullable': [
   584                  ],
   585                  'enum': [
   586                  ],
   587                  'validation': [
   588                      'amount',
   589                  ]
   590              },
   591              root_map={
   592                  'validations': {
   593                      ('amount',): {
   594  
   595                          'inclusive_maximum': 1000,
   596                          'inclusive_minimum': -1,
   597                      },
   598                  },
   599                  'allowed_values': {
   600                  },
   601                  'openapi_types': {
   602                      'prefix':
   603                          (str,),
   604                      'after':
   605                          (str,),
   606                      'amount':
   607                          (int,),
   608                  },
   609                  'attribute_map': {
   610                      'prefix': 'prefix',
   611                      'after': 'after',
   612                      'amount': 'amount',
   613                  },
   614                  'location_map': {
   615                      'prefix': 'query',
   616                      'after': 'query',
   617                      'amount': 'query',
   618                  },
   619                  'collection_format_map': {
   620                  }
   621              },
   622              headers_map={
   623                  'accept': [
   624                      'application/json'
   625                  ],
   626                  'content_type': [],
   627              },
   628              api_client=api_client
   629          )
   630          self.restore_status_endpoint = _Endpoint(
   631              settings={
   632                  'response_type': (RepositoryRestoreStatus,),
   633                  'auth': [
   634                      'basic_auth',
   635                      'cookie_auth',
   636                      'jwt_token',
   637                      'oidc_auth',
   638                      'saml_auth'
   639                  ],
   640                  'endpoint_path': '/repositories/{repository}/restore',
   641                  'operation_id': 'restore_status',
   642                  'http_method': 'GET',
   643                  'servers': None,
   644              },
   645              params_map={
   646                  'all': [
   647                      'repository',
   648                      'task_id',
   649                  ],
   650                  'required': [
   651                      'repository',
   652                      'task_id',
   653                  ],
   654                  'nullable': [
   655                  ],
   656                  'enum': [
   657                  ],
   658                  'validation': [
   659                  ]
   660              },
   661              root_map={
   662                  'validations': {
   663                  },
   664                  'allowed_values': {
   665                  },
   666                  'openapi_types': {
   667                      'repository':
   668                          (str,),
   669                      'task_id':
   670                          (str,),
   671                  },
   672                  'attribute_map': {
   673                      'repository': 'repository',
   674                      'task_id': 'task_id',
   675                  },
   676                  'location_map': {
   677                      'repository': 'path',
   678                      'task_id': 'query',
   679                  },
   680                  'collection_format_map': {
   681                  }
   682              },
   683              headers_map={
   684                  'accept': [
   685                      'application/json'
   686                  ],
   687                  'content_type': [],
   688              },
   689              api_client=api_client
   690          )
   691          self.restore_submit_endpoint = _Endpoint(
   692              settings={
   693                  'response_type': (TaskInfo,),
   694                  'auth': [
   695                      'basic_auth',
   696                      'cookie_auth',
   697                      'jwt_token',
   698                      'oidc_auth',
   699                      'saml_auth'
   700                  ],
   701                  'endpoint_path': '/repositories/{repository}/restore',
   702                  'operation_id': 'restore_submit',
   703                  'http_method': 'POST',
   704                  'servers': None,
   705              },
   706              params_map={
   707                  'all': [
   708                      'repository',
   709                      'refs_restore',
   710                  ],
   711                  'required': [
   712                      'repository',
   713                      'refs_restore',
   714                  ],
   715                  'nullable': [
   716                  ],
   717                  'enum': [
   718                  ],
   719                  'validation': [
   720                  ]
   721              },
   722              root_map={
   723                  'validations': {
   724                  },
   725                  'allowed_values': {
   726                  },
   727                  'openapi_types': {
   728                      'repository':
   729                          (str,),
   730                      'refs_restore':
   731                          (RefsRestore,),
   732                  },
   733                  'attribute_map': {
   734                      'repository': 'repository',
   735                  },
   736                  'location_map': {
   737                      'repository': 'path',
   738                      'refs_restore': 'body',
   739                  },
   740                  'collection_format_map': {
   741                  }
   742              },
   743              headers_map={
   744                  'accept': [
   745                      'application/json'
   746                  ],
   747                  'content_type': [
   748                      'application/json'
   749                  ]
   750              },
   751              api_client=api_client
   752          )
   753          self.set_branch_protection_rules_endpoint = _Endpoint(
   754              settings={
   755                  'response_type': None,
   756                  'auth': [
   757                      'basic_auth',
   758                      'cookie_auth',
   759                      'jwt_token',
   760                      'oidc_auth',
   761                      'saml_auth'
   762                  ],
   763                  'endpoint_path': '/repositories/{repository}/settings/branch_protection',
   764                  'operation_id': 'set_branch_protection_rules',
   765                  'http_method': 'PUT',
   766                  'servers': None,
   767              },
   768              params_map={
   769                  'all': [
   770                      'repository',
   771                      'branch_protection_rule',
   772                      'if_match',
   773                  ],
   774                  'required': [
   775                      'repository',
   776                      'branch_protection_rule',
   777                  ],
   778                  'nullable': [
   779                  ],
   780                  'enum': [
   781                  ],
   782                  'validation': [
   783                  ]
   784              },
   785              root_map={
   786                  'validations': {
   787                  },
   788                  'allowed_values': {
   789                  },
   790                  'openapi_types': {
   791                      'repository':
   792                          (str,),
   793                      'branch_protection_rule':
   794                          ([BranchProtectionRule],),
   795                      'if_match':
   796                          (str,),
   797                  },
   798                  'attribute_map': {
   799                      'repository': 'repository',
   800                      'if_match': 'If-Match',
   801                  },
   802                  'location_map': {
   803                      'repository': 'path',
   804                      'branch_protection_rule': 'body',
   805                      'if_match': 'header',
   806                  },
   807                  'collection_format_map': {
   808                  }
   809              },
   810              headers_map={
   811                  'accept': [
   812                      'application/json'
   813                  ],
   814                  'content_type': [
   815                      'application/json'
   816                  ]
   817              },
   818              api_client=api_client
   819          )
   820          self.set_gc_rules_endpoint = _Endpoint(
   821              settings={
   822                  'response_type': None,
   823                  'auth': [
   824                      'basic_auth',
   825                      'cookie_auth',
   826                      'jwt_token',
   827                      'oidc_auth',
   828                      'saml_auth'
   829                  ],
   830                  'endpoint_path': '/repositories/{repository}/settings/gc_rules',
   831                  'operation_id': 'set_gc_rules',
   832                  'http_method': 'PUT',
   833                  'servers': None,
   834              },
   835              params_map={
   836                  'all': [
   837                      'repository',
   838                      'garbage_collection_rules',
   839                  ],
   840                  'required': [
   841                      'repository',
   842                      'garbage_collection_rules',
   843                  ],
   844                  'nullable': [
   845                  ],
   846                  'enum': [
   847                  ],
   848                  'validation': [
   849                  ]
   850              },
   851              root_map={
   852                  'validations': {
   853                  },
   854                  'allowed_values': {
   855                  },
   856                  'openapi_types': {
   857                      'repository':
   858                          (str,),
   859                      'garbage_collection_rules':
   860                          (GarbageCollectionRules,),
   861                  },
   862                  'attribute_map': {
   863                      'repository': 'repository',
   864                  },
   865                  'location_map': {
   866                      'repository': 'path',
   867                      'garbage_collection_rules': 'body',
   868                  },
   869                  'collection_format_map': {
   870                  }
   871              },
   872              headers_map={
   873                  'accept': [
   874                      'application/json'
   875                  ],
   876                  'content_type': [
   877                      'application/json'
   878                  ]
   879              },
   880              api_client=api_client
   881          )
   882  
   883      def create_repository(
   884          self,
   885          repository_creation,
   886          **kwargs
   887      ):
   888          """create repository  # noqa: E501
   889  
   890          This method makes a synchronous HTTP request by default. To make an
   891          asynchronous HTTP request, please pass async_req=True
   892  
   893          >>> thread = api.create_repository(repository_creation, async_req=True)
   894          >>> result = thread.get()
   895  
   896          Args:
   897              repository_creation (RepositoryCreation):
   898  
   899          Keyword Args:
   900              bare (bool): If true, create a bare repository with no initial commit and branch. [optional] if omitted the server will use the default value of False
   901              _return_http_data_only (bool): response data without head status
   902                  code and headers. Default is True.
   903              _preload_content (bool): if False, the urllib3.HTTPResponse object
   904                  will be returned without reading/decoding response data.
   905                  Default is True.
   906              _request_timeout (int/float/tuple): timeout setting for this request. If
   907                  one number provided, it will be total request timeout. It can also
   908                  be a pair (tuple) of (connection, read) timeouts.
   909                  Default is None.
   910              _check_input_type (bool): specifies if type checking
   911                  should be done one the data sent to the server.
   912                  Default is True.
   913              _check_return_type (bool): specifies if type checking
   914                  should be done one the data received from the server.
   915                  Default is True.
   916              _host_index (int/None): specifies the index of the server
   917                  that we want to use.
   918                  Default is read from the configuration.
   919              async_req (bool): execute request asynchronously
   920  
   921          Returns:
   922              Repository
   923                  If the method is called asynchronously, returns the request
   924                  thread.
   925          """
   926          kwargs['async_req'] = kwargs.get(
   927              'async_req', False
   928          )
   929          kwargs['_return_http_data_only'] = kwargs.get(
   930              '_return_http_data_only', True
   931          )
   932          kwargs['_preload_content'] = kwargs.get(
   933              '_preload_content', True
   934          )
   935          kwargs['_request_timeout'] = kwargs.get(
   936              '_request_timeout', None
   937          )
   938          kwargs['_check_input_type'] = kwargs.get(
   939              '_check_input_type', True
   940          )
   941          kwargs['_check_return_type'] = kwargs.get(
   942              '_check_return_type', True
   943          )
   944          kwargs['_host_index'] = kwargs.get('_host_index')
   945          kwargs['repository_creation'] = \
   946              repository_creation
   947          return self.create_repository_endpoint.call_with_http_info(**kwargs)
   948  
   949      def delete_gc_rules(
   950          self,
   951          repository,
   952          **kwargs
   953      ):
   954          """delete_gc_rules  # noqa: E501
   955  
   956          This method makes a synchronous HTTP request by default. To make an
   957          asynchronous HTTP request, please pass async_req=True
   958  
   959          >>> thread = api.delete_gc_rules(repository, async_req=True)
   960          >>> result = thread.get()
   961  
   962          Args:
   963              repository (str):
   964  
   965          Keyword Args:
   966              _return_http_data_only (bool): response data without head status
   967                  code and headers. Default is True.
   968              _preload_content (bool): if False, the urllib3.HTTPResponse object
   969                  will be returned without reading/decoding response data.
   970                  Default is True.
   971              _request_timeout (int/float/tuple): timeout setting for this request. If
   972                  one number provided, it will be total request timeout. It can also
   973                  be a pair (tuple) of (connection, read) timeouts.
   974                  Default is None.
   975              _check_input_type (bool): specifies if type checking
   976                  should be done one the data sent to the server.
   977                  Default is True.
   978              _check_return_type (bool): specifies if type checking
   979                  should be done one the data received from the server.
   980                  Default is True.
   981              _host_index (int/None): specifies the index of the server
   982                  that we want to use.
   983                  Default is read from the configuration.
   984              async_req (bool): execute request asynchronously
   985  
   986          Returns:
   987              None
   988                  If the method is called asynchronously, returns the request
   989                  thread.
   990          """
   991          kwargs['async_req'] = kwargs.get(
   992              'async_req', False
   993          )
   994          kwargs['_return_http_data_only'] = kwargs.get(
   995              '_return_http_data_only', True
   996          )
   997          kwargs['_preload_content'] = kwargs.get(
   998              '_preload_content', True
   999          )
  1000          kwargs['_request_timeout'] = kwargs.get(
  1001              '_request_timeout', None
  1002          )
  1003          kwargs['_check_input_type'] = kwargs.get(
  1004              '_check_input_type', True
  1005          )
  1006          kwargs['_check_return_type'] = kwargs.get(
  1007              '_check_return_type', True
  1008          )
  1009          kwargs['_host_index'] = kwargs.get('_host_index')
  1010          kwargs['repository'] = \
  1011              repository
  1012          return self.delete_gc_rules_endpoint.call_with_http_info(**kwargs)
  1013  
  1014      def delete_repository(
  1015          self,
  1016          repository,
  1017          **kwargs
  1018      ):
  1019          """delete repository  # noqa: E501
  1020  
  1021          This method makes a synchronous HTTP request by default. To make an
  1022          asynchronous HTTP request, please pass async_req=True
  1023  
  1024          >>> thread = api.delete_repository(repository, async_req=True)
  1025          >>> result = thread.get()
  1026  
  1027          Args:
  1028              repository (str):
  1029  
  1030          Keyword Args:
  1031              force (bool): Bypass read-only protection and delete the repository. [optional] if omitted the server will use the default value of False
  1032              _return_http_data_only (bool): response data without head status
  1033                  code and headers. Default is True.
  1034              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1035                  will be returned without reading/decoding response data.
  1036                  Default is True.
  1037              _request_timeout (int/float/tuple): timeout setting for this request. If
  1038                  one number provided, it will be total request timeout. It can also
  1039                  be a pair (tuple) of (connection, read) timeouts.
  1040                  Default is None.
  1041              _check_input_type (bool): specifies if type checking
  1042                  should be done one the data sent to the server.
  1043                  Default is True.
  1044              _check_return_type (bool): specifies if type checking
  1045                  should be done one the data received from the server.
  1046                  Default is True.
  1047              _host_index (int/None): specifies the index of the server
  1048                  that we want to use.
  1049                  Default is read from the configuration.
  1050              async_req (bool): execute request asynchronously
  1051  
  1052          Returns:
  1053              None
  1054                  If the method is called asynchronously, returns the request
  1055                  thread.
  1056          """
  1057          kwargs['async_req'] = kwargs.get(
  1058              'async_req', False
  1059          )
  1060          kwargs['_return_http_data_only'] = kwargs.get(
  1061              '_return_http_data_only', True
  1062          )
  1063          kwargs['_preload_content'] = kwargs.get(
  1064              '_preload_content', True
  1065          )
  1066          kwargs['_request_timeout'] = kwargs.get(
  1067              '_request_timeout', None
  1068          )
  1069          kwargs['_check_input_type'] = kwargs.get(
  1070              '_check_input_type', True
  1071          )
  1072          kwargs['_check_return_type'] = kwargs.get(
  1073              '_check_return_type', True
  1074          )
  1075          kwargs['_host_index'] = kwargs.get('_host_index')
  1076          kwargs['repository'] = \
  1077              repository
  1078          return self.delete_repository_endpoint.call_with_http_info(**kwargs)
  1079  
  1080      def dump_status(
  1081          self,
  1082          repository,
  1083          task_id,
  1084          **kwargs
  1085      ):
  1086          """Status of a repository dump task  # noqa: E501
  1087  
  1088          This method makes a synchronous HTTP request by default. To make an
  1089          asynchronous HTTP request, please pass async_req=True
  1090  
  1091          >>> thread = api.dump_status(repository, task_id, async_req=True)
  1092          >>> result = thread.get()
  1093  
  1094          Args:
  1095              repository (str):
  1096              task_id (str):
  1097  
  1098          Keyword Args:
  1099              _return_http_data_only (bool): response data without head status
  1100                  code and headers. Default is True.
  1101              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1102                  will be returned without reading/decoding response data.
  1103                  Default is True.
  1104              _request_timeout (int/float/tuple): timeout setting for this request. If
  1105                  one number provided, it will be total request timeout. It can also
  1106                  be a pair (tuple) of (connection, read) timeouts.
  1107                  Default is None.
  1108              _check_input_type (bool): specifies if type checking
  1109                  should be done one the data sent to the server.
  1110                  Default is True.
  1111              _check_return_type (bool): specifies if type checking
  1112                  should be done one the data received from the server.
  1113                  Default is True.
  1114              _host_index (int/None): specifies the index of the server
  1115                  that we want to use.
  1116                  Default is read from the configuration.
  1117              async_req (bool): execute request asynchronously
  1118  
  1119          Returns:
  1120              RepositoryDumpStatus
  1121                  If the method is called asynchronously, returns the request
  1122                  thread.
  1123          """
  1124          kwargs['async_req'] = kwargs.get(
  1125              'async_req', False
  1126          )
  1127          kwargs['_return_http_data_only'] = kwargs.get(
  1128              '_return_http_data_only', True
  1129          )
  1130          kwargs['_preload_content'] = kwargs.get(
  1131              '_preload_content', True
  1132          )
  1133          kwargs['_request_timeout'] = kwargs.get(
  1134              '_request_timeout', None
  1135          )
  1136          kwargs['_check_input_type'] = kwargs.get(
  1137              '_check_input_type', True
  1138          )
  1139          kwargs['_check_return_type'] = kwargs.get(
  1140              '_check_return_type', True
  1141          )
  1142          kwargs['_host_index'] = kwargs.get('_host_index')
  1143          kwargs['repository'] = \
  1144              repository
  1145          kwargs['task_id'] = \
  1146              task_id
  1147          return self.dump_status_endpoint.call_with_http_info(**kwargs)
  1148  
  1149      def dump_submit(
  1150          self,
  1151          repository,
  1152          **kwargs
  1153      ):
  1154          """Backup the repository metadata (tags, commits, branches) and save the backup to the object store.  # noqa: E501
  1155  
  1156          This method makes a synchronous HTTP request by default. To make an
  1157          asynchronous HTTP request, please pass async_req=True
  1158  
  1159          >>> thread = api.dump_submit(repository, async_req=True)
  1160          >>> result = thread.get()
  1161  
  1162          Args:
  1163              repository (str):
  1164  
  1165          Keyword Args:
  1166              _return_http_data_only (bool): response data without head status
  1167                  code and headers. Default is True.
  1168              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1169                  will be returned without reading/decoding response data.
  1170                  Default is True.
  1171              _request_timeout (int/float/tuple): timeout setting for this request. If
  1172                  one number provided, it will be total request timeout. It can also
  1173                  be a pair (tuple) of (connection, read) timeouts.
  1174                  Default is None.
  1175              _check_input_type (bool): specifies if type checking
  1176                  should be done one the data sent to the server.
  1177                  Default is True.
  1178              _check_return_type (bool): specifies if type checking
  1179                  should be done one the data received from the server.
  1180                  Default is True.
  1181              _host_index (int/None): specifies the index of the server
  1182                  that we want to use.
  1183                  Default is read from the configuration.
  1184              async_req (bool): execute request asynchronously
  1185  
  1186          Returns:
  1187              TaskInfo
  1188                  If the method is called asynchronously, returns the request
  1189                  thread.
  1190          """
  1191          kwargs['async_req'] = kwargs.get(
  1192              'async_req', False
  1193          )
  1194          kwargs['_return_http_data_only'] = kwargs.get(
  1195              '_return_http_data_only', True
  1196          )
  1197          kwargs['_preload_content'] = kwargs.get(
  1198              '_preload_content', True
  1199          )
  1200          kwargs['_request_timeout'] = kwargs.get(
  1201              '_request_timeout', None
  1202          )
  1203          kwargs['_check_input_type'] = kwargs.get(
  1204              '_check_input_type', True
  1205          )
  1206          kwargs['_check_return_type'] = kwargs.get(
  1207              '_check_return_type', True
  1208          )
  1209          kwargs['_host_index'] = kwargs.get('_host_index')
  1210          kwargs['repository'] = \
  1211              repository
  1212          return self.dump_submit_endpoint.call_with_http_info(**kwargs)
  1213  
  1214      def get_branch_protection_rules(
  1215          self,
  1216          repository,
  1217          **kwargs
  1218      ):
  1219          """get branch protection rules  # noqa: E501
  1220  
  1221          This method makes a synchronous HTTP request by default. To make an
  1222          asynchronous HTTP request, please pass async_req=True
  1223  
  1224          >>> thread = api.get_branch_protection_rules(repository, async_req=True)
  1225          >>> result = thread.get()
  1226  
  1227          Args:
  1228              repository (str):
  1229  
  1230          Keyword Args:
  1231              _return_http_data_only (bool): response data without head status
  1232                  code and headers. Default is True.
  1233              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1234                  will be returned without reading/decoding response data.
  1235                  Default is True.
  1236              _request_timeout (int/float/tuple): timeout setting for this request. If
  1237                  one number provided, it will be total request timeout. It can also
  1238                  be a pair (tuple) of (connection, read) timeouts.
  1239                  Default is None.
  1240              _check_input_type (bool): specifies if type checking
  1241                  should be done one the data sent to the server.
  1242                  Default is True.
  1243              _check_return_type (bool): specifies if type checking
  1244                  should be done one the data received from the server.
  1245                  Default is True.
  1246              _host_index (int/None): specifies the index of the server
  1247                  that we want to use.
  1248                  Default is read from the configuration.
  1249              async_req (bool): execute request asynchronously
  1250  
  1251          Returns:
  1252              [BranchProtectionRule]
  1253                  If the method is called asynchronously, returns the request
  1254                  thread.
  1255          """
  1256          kwargs['async_req'] = kwargs.get(
  1257              'async_req', False
  1258          )
  1259          kwargs['_return_http_data_only'] = kwargs.get(
  1260              '_return_http_data_only', True
  1261          )
  1262          kwargs['_preload_content'] = kwargs.get(
  1263              '_preload_content', True
  1264          )
  1265          kwargs['_request_timeout'] = kwargs.get(
  1266              '_request_timeout', None
  1267          )
  1268          kwargs['_check_input_type'] = kwargs.get(
  1269              '_check_input_type', True
  1270          )
  1271          kwargs['_check_return_type'] = kwargs.get(
  1272              '_check_return_type', True
  1273          )
  1274          kwargs['_host_index'] = kwargs.get('_host_index')
  1275          kwargs['repository'] = \
  1276              repository
  1277          return self.get_branch_protection_rules_endpoint.call_with_http_info(**kwargs)
  1278  
  1279      def get_gc_rules(
  1280          self,
  1281          repository,
  1282          **kwargs
  1283      ):
  1284          """get repository GC rules  # noqa: E501
  1285  
  1286          This method makes a synchronous HTTP request by default. To make an
  1287          asynchronous HTTP request, please pass async_req=True
  1288  
  1289          >>> thread = api.get_gc_rules(repository, async_req=True)
  1290          >>> result = thread.get()
  1291  
  1292          Args:
  1293              repository (str):
  1294  
  1295          Keyword Args:
  1296              _return_http_data_only (bool): response data without head status
  1297                  code and headers. Default is True.
  1298              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1299                  will be returned without reading/decoding response data.
  1300                  Default is True.
  1301              _request_timeout (int/float/tuple): timeout setting for this request. If
  1302                  one number provided, it will be total request timeout. It can also
  1303                  be a pair (tuple) of (connection, read) timeouts.
  1304                  Default is None.
  1305              _check_input_type (bool): specifies if type checking
  1306                  should be done one the data sent to the server.
  1307                  Default is True.
  1308              _check_return_type (bool): specifies if type checking
  1309                  should be done one the data received from the server.
  1310                  Default is True.
  1311              _host_index (int/None): specifies the index of the server
  1312                  that we want to use.
  1313                  Default is read from the configuration.
  1314              async_req (bool): execute request asynchronously
  1315  
  1316          Returns:
  1317              GarbageCollectionRules
  1318                  If the method is called asynchronously, returns the request
  1319                  thread.
  1320          """
  1321          kwargs['async_req'] = kwargs.get(
  1322              'async_req', False
  1323          )
  1324          kwargs['_return_http_data_only'] = kwargs.get(
  1325              '_return_http_data_only', True
  1326          )
  1327          kwargs['_preload_content'] = kwargs.get(
  1328              '_preload_content', True
  1329          )
  1330          kwargs['_request_timeout'] = kwargs.get(
  1331              '_request_timeout', None
  1332          )
  1333          kwargs['_check_input_type'] = kwargs.get(
  1334              '_check_input_type', True
  1335          )
  1336          kwargs['_check_return_type'] = kwargs.get(
  1337              '_check_return_type', True
  1338          )
  1339          kwargs['_host_index'] = kwargs.get('_host_index')
  1340          kwargs['repository'] = \
  1341              repository
  1342          return self.get_gc_rules_endpoint.call_with_http_info(**kwargs)
  1343  
  1344      def get_repository(
  1345          self,
  1346          repository,
  1347          **kwargs
  1348      ):
  1349          """get repository  # noqa: E501
  1350  
  1351          This method makes a synchronous HTTP request by default. To make an
  1352          asynchronous HTTP request, please pass async_req=True
  1353  
  1354          >>> thread = api.get_repository(repository, async_req=True)
  1355          >>> result = thread.get()
  1356  
  1357          Args:
  1358              repository (str):
  1359  
  1360          Keyword Args:
  1361              _return_http_data_only (bool): response data without head status
  1362                  code and headers. Default is True.
  1363              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1364                  will be returned without reading/decoding response data.
  1365                  Default is True.
  1366              _request_timeout (int/float/tuple): timeout setting for this request. If
  1367                  one number provided, it will be total request timeout. It can also
  1368                  be a pair (tuple) of (connection, read) timeouts.
  1369                  Default is None.
  1370              _check_input_type (bool): specifies if type checking
  1371                  should be done one the data sent to the server.
  1372                  Default is True.
  1373              _check_return_type (bool): specifies if type checking
  1374                  should be done one the data received from the server.
  1375                  Default is True.
  1376              _host_index (int/None): specifies the index of the server
  1377                  that we want to use.
  1378                  Default is read from the configuration.
  1379              async_req (bool): execute request asynchronously
  1380  
  1381          Returns:
  1382              Repository
  1383                  If the method is called asynchronously, returns the request
  1384                  thread.
  1385          """
  1386          kwargs['async_req'] = kwargs.get(
  1387              'async_req', False
  1388          )
  1389          kwargs['_return_http_data_only'] = kwargs.get(
  1390              '_return_http_data_only', True
  1391          )
  1392          kwargs['_preload_content'] = kwargs.get(
  1393              '_preload_content', True
  1394          )
  1395          kwargs['_request_timeout'] = kwargs.get(
  1396              '_request_timeout', None
  1397          )
  1398          kwargs['_check_input_type'] = kwargs.get(
  1399              '_check_input_type', True
  1400          )
  1401          kwargs['_check_return_type'] = kwargs.get(
  1402              '_check_return_type', True
  1403          )
  1404          kwargs['_host_index'] = kwargs.get('_host_index')
  1405          kwargs['repository'] = \
  1406              repository
  1407          return self.get_repository_endpoint.call_with_http_info(**kwargs)
  1408  
  1409      def get_repository_metadata(
  1410          self,
  1411          repository,
  1412          **kwargs
  1413      ):
  1414          """get repository metadata  # noqa: E501
  1415  
  1416          This method makes a synchronous HTTP request by default. To make an
  1417          asynchronous HTTP request, please pass async_req=True
  1418  
  1419          >>> thread = api.get_repository_metadata(repository, async_req=True)
  1420          >>> result = thread.get()
  1421  
  1422          Args:
  1423              repository (str):
  1424  
  1425          Keyword Args:
  1426              _return_http_data_only (bool): response data without head status
  1427                  code and headers. Default is True.
  1428              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1429                  will be returned without reading/decoding response data.
  1430                  Default is True.
  1431              _request_timeout (int/float/tuple): timeout setting for this request. If
  1432                  one number provided, it will be total request timeout. It can also
  1433                  be a pair (tuple) of (connection, read) timeouts.
  1434                  Default is None.
  1435              _check_input_type (bool): specifies if type checking
  1436                  should be done one the data sent to the server.
  1437                  Default is True.
  1438              _check_return_type (bool): specifies if type checking
  1439                  should be done one the data received from the server.
  1440                  Default is True.
  1441              _host_index (int/None): specifies the index of the server
  1442                  that we want to use.
  1443                  Default is read from the configuration.
  1444              async_req (bool): execute request asynchronously
  1445  
  1446          Returns:
  1447              RepositoryMetadata
  1448                  If the method is called asynchronously, returns the request
  1449                  thread.
  1450          """
  1451          kwargs['async_req'] = kwargs.get(
  1452              'async_req', False
  1453          )
  1454          kwargs['_return_http_data_only'] = kwargs.get(
  1455              '_return_http_data_only', True
  1456          )
  1457          kwargs['_preload_content'] = kwargs.get(
  1458              '_preload_content', True
  1459          )
  1460          kwargs['_request_timeout'] = kwargs.get(
  1461              '_request_timeout', None
  1462          )
  1463          kwargs['_check_input_type'] = kwargs.get(
  1464              '_check_input_type', True
  1465          )
  1466          kwargs['_check_return_type'] = kwargs.get(
  1467              '_check_return_type', True
  1468          )
  1469          kwargs['_host_index'] = kwargs.get('_host_index')
  1470          kwargs['repository'] = \
  1471              repository
  1472          return self.get_repository_metadata_endpoint.call_with_http_info(**kwargs)
  1473  
  1474      def list_repositories(
  1475          self,
  1476          **kwargs
  1477      ):
  1478          """list repositories  # noqa: E501
  1479  
  1480          This method makes a synchronous HTTP request by default. To make an
  1481          asynchronous HTTP request, please pass async_req=True
  1482  
  1483          >>> thread = api.list_repositories(async_req=True)
  1484          >>> result = thread.get()
  1485  
  1486  
  1487          Keyword Args:
  1488              prefix (str): return items prefixed with this value. [optional]
  1489              after (str): return items after this value. [optional]
  1490              amount (int): how many items to return. [optional] if omitted the server will use the default value of 100
  1491              _return_http_data_only (bool): response data without head status
  1492                  code and headers. Default is True.
  1493              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1494                  will be returned without reading/decoding response data.
  1495                  Default is True.
  1496              _request_timeout (int/float/tuple): timeout setting for this request. If
  1497                  one number provided, it will be total request timeout. It can also
  1498                  be a pair (tuple) of (connection, read) timeouts.
  1499                  Default is None.
  1500              _check_input_type (bool): specifies if type checking
  1501                  should be done one the data sent to the server.
  1502                  Default is True.
  1503              _check_return_type (bool): specifies if type checking
  1504                  should be done one the data received from the server.
  1505                  Default is True.
  1506              _host_index (int/None): specifies the index of the server
  1507                  that we want to use.
  1508                  Default is read from the configuration.
  1509              async_req (bool): execute request asynchronously
  1510  
  1511          Returns:
  1512              RepositoryList
  1513                  If the method is called asynchronously, returns the request
  1514                  thread.
  1515          """
  1516          kwargs['async_req'] = kwargs.get(
  1517              'async_req', False
  1518          )
  1519          kwargs['_return_http_data_only'] = kwargs.get(
  1520              '_return_http_data_only', True
  1521          )
  1522          kwargs['_preload_content'] = kwargs.get(
  1523              '_preload_content', True
  1524          )
  1525          kwargs['_request_timeout'] = kwargs.get(
  1526              '_request_timeout', None
  1527          )
  1528          kwargs['_check_input_type'] = kwargs.get(
  1529              '_check_input_type', True
  1530          )
  1531          kwargs['_check_return_type'] = kwargs.get(
  1532              '_check_return_type', True
  1533          )
  1534          kwargs['_host_index'] = kwargs.get('_host_index')
  1535          return self.list_repositories_endpoint.call_with_http_info(**kwargs)
  1536  
  1537      def restore_status(
  1538          self,
  1539          repository,
  1540          task_id,
  1541          **kwargs
  1542      ):
  1543          """Status of a restore request  # noqa: E501
  1544  
  1545          This method makes a synchronous HTTP request by default. To make an
  1546          asynchronous HTTP request, please pass async_req=True
  1547  
  1548          >>> thread = api.restore_status(repository, task_id, async_req=True)
  1549          >>> result = thread.get()
  1550  
  1551          Args:
  1552              repository (str):
  1553              task_id (str):
  1554  
  1555          Keyword Args:
  1556              _return_http_data_only (bool): response data without head status
  1557                  code and headers. Default is True.
  1558              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1559                  will be returned without reading/decoding response data.
  1560                  Default is True.
  1561              _request_timeout (int/float/tuple): timeout setting for this request. If
  1562                  one number provided, it will be total request timeout. It can also
  1563                  be a pair (tuple) of (connection, read) timeouts.
  1564                  Default is None.
  1565              _check_input_type (bool): specifies if type checking
  1566                  should be done one the data sent to the server.
  1567                  Default is True.
  1568              _check_return_type (bool): specifies if type checking
  1569                  should be done one the data received from the server.
  1570                  Default is True.
  1571              _host_index (int/None): specifies the index of the server
  1572                  that we want to use.
  1573                  Default is read from the configuration.
  1574              async_req (bool): execute request asynchronously
  1575  
  1576          Returns:
  1577              RepositoryRestoreStatus
  1578                  If the method is called asynchronously, returns the request
  1579                  thread.
  1580          """
  1581          kwargs['async_req'] = kwargs.get(
  1582              'async_req', False
  1583          )
  1584          kwargs['_return_http_data_only'] = kwargs.get(
  1585              '_return_http_data_only', True
  1586          )
  1587          kwargs['_preload_content'] = kwargs.get(
  1588              '_preload_content', True
  1589          )
  1590          kwargs['_request_timeout'] = kwargs.get(
  1591              '_request_timeout', None
  1592          )
  1593          kwargs['_check_input_type'] = kwargs.get(
  1594              '_check_input_type', True
  1595          )
  1596          kwargs['_check_return_type'] = kwargs.get(
  1597              '_check_return_type', True
  1598          )
  1599          kwargs['_host_index'] = kwargs.get('_host_index')
  1600          kwargs['repository'] = \
  1601              repository
  1602          kwargs['task_id'] = \
  1603              task_id
  1604          return self.restore_status_endpoint.call_with_http_info(**kwargs)
  1605  
  1606      def restore_submit(
  1607          self,
  1608          repository,
  1609          refs_restore,
  1610          **kwargs
  1611      ):
  1612          """Restore repository from a dump in the object store  # noqa: E501
  1613  
  1614          This method makes a synchronous HTTP request by default. To make an
  1615          asynchronous HTTP request, please pass async_req=True
  1616  
  1617          >>> thread = api.restore_submit(repository, refs_restore, async_req=True)
  1618          >>> result = thread.get()
  1619  
  1620          Args:
  1621              repository (str):
  1622              refs_restore (RefsRestore):
  1623  
  1624          Keyword Args:
  1625              _return_http_data_only (bool): response data without head status
  1626                  code and headers. Default is True.
  1627              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1628                  will be returned without reading/decoding response data.
  1629                  Default is True.
  1630              _request_timeout (int/float/tuple): timeout setting for this request. If
  1631                  one number provided, it will be total request timeout. It can also
  1632                  be a pair (tuple) of (connection, read) timeouts.
  1633                  Default is None.
  1634              _check_input_type (bool): specifies if type checking
  1635                  should be done one the data sent to the server.
  1636                  Default is True.
  1637              _check_return_type (bool): specifies if type checking
  1638                  should be done one the data received from the server.
  1639                  Default is True.
  1640              _host_index (int/None): specifies the index of the server
  1641                  that we want to use.
  1642                  Default is read from the configuration.
  1643              async_req (bool): execute request asynchronously
  1644  
  1645          Returns:
  1646              TaskInfo
  1647                  If the method is called asynchronously, returns the request
  1648                  thread.
  1649          """
  1650          kwargs['async_req'] = kwargs.get(
  1651              'async_req', False
  1652          )
  1653          kwargs['_return_http_data_only'] = kwargs.get(
  1654              '_return_http_data_only', True
  1655          )
  1656          kwargs['_preload_content'] = kwargs.get(
  1657              '_preload_content', True
  1658          )
  1659          kwargs['_request_timeout'] = kwargs.get(
  1660              '_request_timeout', None
  1661          )
  1662          kwargs['_check_input_type'] = kwargs.get(
  1663              '_check_input_type', True
  1664          )
  1665          kwargs['_check_return_type'] = kwargs.get(
  1666              '_check_return_type', True
  1667          )
  1668          kwargs['_host_index'] = kwargs.get('_host_index')
  1669          kwargs['repository'] = \
  1670              repository
  1671          kwargs['refs_restore'] = \
  1672              refs_restore
  1673          return self.restore_submit_endpoint.call_with_http_info(**kwargs)
  1674  
  1675      def set_branch_protection_rules(
  1676          self,
  1677          repository,
  1678          branch_protection_rule,
  1679          **kwargs
  1680      ):
  1681          """set_branch_protection_rules  # noqa: E501
  1682  
  1683          This method makes a synchronous HTTP request by default. To make an
  1684          asynchronous HTTP request, please pass async_req=True
  1685  
  1686          >>> thread = api.set_branch_protection_rules(repository, branch_protection_rule, async_req=True)
  1687          >>> result = thread.get()
  1688  
  1689          Args:
  1690              repository (str):
  1691              branch_protection_rule ([BranchProtectionRule]):
  1692  
  1693          Keyword Args:
  1694              if_match (str): if provided, the branch protection rules will be updated only if the current ETag match the provided value. [optional]
  1695              _return_http_data_only (bool): response data without head status
  1696                  code and headers. Default is True.
  1697              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1698                  will be returned without reading/decoding response data.
  1699                  Default is True.
  1700              _request_timeout (int/float/tuple): timeout setting for this request. If
  1701                  one number provided, it will be total request timeout. It can also
  1702                  be a pair (tuple) of (connection, read) timeouts.
  1703                  Default is None.
  1704              _check_input_type (bool): specifies if type checking
  1705                  should be done one the data sent to the server.
  1706                  Default is True.
  1707              _check_return_type (bool): specifies if type checking
  1708                  should be done one the data received from the server.
  1709                  Default is True.
  1710              _host_index (int/None): specifies the index of the server
  1711                  that we want to use.
  1712                  Default is read from the configuration.
  1713              async_req (bool): execute request asynchronously
  1714  
  1715          Returns:
  1716              None
  1717                  If the method is called asynchronously, returns the request
  1718                  thread.
  1719          """
  1720          kwargs['async_req'] = kwargs.get(
  1721              'async_req', False
  1722          )
  1723          kwargs['_return_http_data_only'] = kwargs.get(
  1724              '_return_http_data_only', True
  1725          )
  1726          kwargs['_preload_content'] = kwargs.get(
  1727              '_preload_content', True
  1728          )
  1729          kwargs['_request_timeout'] = kwargs.get(
  1730              '_request_timeout', None
  1731          )
  1732          kwargs['_check_input_type'] = kwargs.get(
  1733              '_check_input_type', True
  1734          )
  1735          kwargs['_check_return_type'] = kwargs.get(
  1736              '_check_return_type', True
  1737          )
  1738          kwargs['_host_index'] = kwargs.get('_host_index')
  1739          kwargs['repository'] = \
  1740              repository
  1741          kwargs['branch_protection_rule'] = \
  1742              branch_protection_rule
  1743          return self.set_branch_protection_rules_endpoint.call_with_http_info(**kwargs)
  1744  
  1745      def set_gc_rules(
  1746          self,
  1747          repository,
  1748          garbage_collection_rules,
  1749          **kwargs
  1750      ):
  1751          """set_gc_rules  # noqa: E501
  1752  
  1753          This method makes a synchronous HTTP request by default. To make an
  1754          asynchronous HTTP request, please pass async_req=True
  1755  
  1756          >>> thread = api.set_gc_rules(repository, garbage_collection_rules, async_req=True)
  1757          >>> result = thread.get()
  1758  
  1759          Args:
  1760              repository (str):
  1761              garbage_collection_rules (GarbageCollectionRules):
  1762  
  1763          Keyword Args:
  1764              _return_http_data_only (bool): response data without head status
  1765                  code and headers. Default is True.
  1766              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1767                  will be returned without reading/decoding response data.
  1768                  Default is True.
  1769              _request_timeout (int/float/tuple): timeout setting for this request. If
  1770                  one number provided, it will be total request timeout. It can also
  1771                  be a pair (tuple) of (connection, read) timeouts.
  1772                  Default is None.
  1773              _check_input_type (bool): specifies if type checking
  1774                  should be done one the data sent to the server.
  1775                  Default is True.
  1776              _check_return_type (bool): specifies if type checking
  1777                  should be done one the data received from the server.
  1778                  Default is True.
  1779              _host_index (int/None): specifies the index of the server
  1780                  that we want to use.
  1781                  Default is read from the configuration.
  1782              async_req (bool): execute request asynchronously
  1783  
  1784          Returns:
  1785              None
  1786                  If the method is called asynchronously, returns the request
  1787                  thread.
  1788          """
  1789          kwargs['async_req'] = kwargs.get(
  1790              'async_req', False
  1791          )
  1792          kwargs['_return_http_data_only'] = kwargs.get(
  1793              '_return_http_data_only', True
  1794          )
  1795          kwargs['_preload_content'] = kwargs.get(
  1796              '_preload_content', True
  1797          )
  1798          kwargs['_request_timeout'] = kwargs.get(
  1799              '_request_timeout', None
  1800          )
  1801          kwargs['_check_input_type'] = kwargs.get(
  1802              '_check_input_type', True
  1803          )
  1804          kwargs['_check_return_type'] = kwargs.get(
  1805              '_check_return_type', True
  1806          )
  1807          kwargs['_host_index'] = kwargs.get('_host_index')
  1808          kwargs['repository'] = \
  1809              repository
  1810          kwargs['garbage_collection_rules'] = \
  1811              garbage_collection_rules
  1812          return self.set_gc_rules_endpoint.call_with_http_info(**kwargs)
  1813