github.com/treeverse/lakefs@v1.24.1-0.20240520134607-95648127bfb0/clients/python-legacy/lakefs_client/api/objects_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.error import Error
    26  from lakefs_client.model.object_copy_creation import ObjectCopyCreation
    27  from lakefs_client.model.object_error_list import ObjectErrorList
    28  from lakefs_client.model.object_stats import ObjectStats
    29  from lakefs_client.model.object_stats_list import ObjectStatsList
    30  from lakefs_client.model.path_list import PathList
    31  from lakefs_client.model.underlying_object_properties import UnderlyingObjectProperties
    32  
    33  
    34  class ObjectsApi(object):
    35      """NOTE: This class is auto generated by OpenAPI Generator
    36      Ref: https://openapi-generator.tech
    37  
    38      Do not edit the class manually.
    39      """
    40  
    41      def __init__(self, api_client=None):
    42          if api_client is None:
    43              api_client = ApiClient()
    44          self.api_client = api_client
    45          self.copy_object_endpoint = _Endpoint(
    46              settings={
    47                  'response_type': (ObjectStats,),
    48                  'auth': [
    49                      'basic_auth',
    50                      'cookie_auth',
    51                      'jwt_token',
    52                      'oidc_auth',
    53                      'saml_auth'
    54                  ],
    55                  'endpoint_path': '/repositories/{repository}/branches/{branch}/objects/copy',
    56                  'operation_id': 'copy_object',
    57                  'http_method': 'POST',
    58                  'servers': None,
    59              },
    60              params_map={
    61                  'all': [
    62                      'repository',
    63                      'branch',
    64                      'dest_path',
    65                      'object_copy_creation',
    66                  ],
    67                  'required': [
    68                      'repository',
    69                      'branch',
    70                      'dest_path',
    71                      'object_copy_creation',
    72                  ],
    73                  'nullable': [
    74                  ],
    75                  'enum': [
    76                  ],
    77                  'validation': [
    78                  ]
    79              },
    80              root_map={
    81                  'validations': {
    82                  },
    83                  'allowed_values': {
    84                  },
    85                  'openapi_types': {
    86                      'repository':
    87                          (str,),
    88                      'branch':
    89                          (str,),
    90                      'dest_path':
    91                          (str,),
    92                      'object_copy_creation':
    93                          (ObjectCopyCreation,),
    94                  },
    95                  'attribute_map': {
    96                      'repository': 'repository',
    97                      'branch': 'branch',
    98                      'dest_path': 'dest_path',
    99                  },
   100                  'location_map': {
   101                      'repository': 'path',
   102                      'branch': 'path',
   103                      'dest_path': 'query',
   104                      'object_copy_creation': 'body',
   105                  },
   106                  'collection_format_map': {
   107                  }
   108              },
   109              headers_map={
   110                  'accept': [
   111                      'application/json'
   112                  ],
   113                  'content_type': [
   114                      'application/json'
   115                  ]
   116              },
   117              api_client=api_client
   118          )
   119          self.delete_object_endpoint = _Endpoint(
   120              settings={
   121                  'response_type': None,
   122                  'auth': [
   123                      'basic_auth',
   124                      'cookie_auth',
   125                      'jwt_token',
   126                      'oidc_auth',
   127                      'saml_auth'
   128                  ],
   129                  'endpoint_path': '/repositories/{repository}/branches/{branch}/objects',
   130                  'operation_id': 'delete_object',
   131                  'http_method': 'DELETE',
   132                  'servers': None,
   133              },
   134              params_map={
   135                  'all': [
   136                      'repository',
   137                      'branch',
   138                      'path',
   139                      'force',
   140                  ],
   141                  'required': [
   142                      'repository',
   143                      'branch',
   144                      'path',
   145                  ],
   146                  'nullable': [
   147                  ],
   148                  'enum': [
   149                  ],
   150                  'validation': [
   151                  ]
   152              },
   153              root_map={
   154                  'validations': {
   155                  },
   156                  'allowed_values': {
   157                  },
   158                  'openapi_types': {
   159                      'repository':
   160                          (str,),
   161                      'branch':
   162                          (str,),
   163                      'path':
   164                          (str,),
   165                      'force':
   166                          (bool,),
   167                  },
   168                  'attribute_map': {
   169                      'repository': 'repository',
   170                      'branch': 'branch',
   171                      'path': 'path',
   172                      'force': 'force',
   173                  },
   174                  'location_map': {
   175                      'repository': 'path',
   176                      'branch': 'path',
   177                      'path': 'query',
   178                      'force': 'query',
   179                  },
   180                  'collection_format_map': {
   181                  }
   182              },
   183              headers_map={
   184                  'accept': [
   185                      'application/json'
   186                  ],
   187                  'content_type': [],
   188              },
   189              api_client=api_client
   190          )
   191          self.delete_objects_endpoint = _Endpoint(
   192              settings={
   193                  'response_type': (ObjectErrorList,),
   194                  'auth': [
   195                      'basic_auth',
   196                      'cookie_auth',
   197                      'jwt_token',
   198                      'oidc_auth',
   199                      'saml_auth'
   200                  ],
   201                  'endpoint_path': '/repositories/{repository}/branches/{branch}/objects/delete',
   202                  'operation_id': 'delete_objects',
   203                  'http_method': 'POST',
   204                  'servers': None,
   205              },
   206              params_map={
   207                  'all': [
   208                      'repository',
   209                      'branch',
   210                      'path_list',
   211                      'force',
   212                  ],
   213                  'required': [
   214                      'repository',
   215                      'branch',
   216                      'path_list',
   217                  ],
   218                  'nullable': [
   219                  ],
   220                  'enum': [
   221                  ],
   222                  'validation': [
   223                  ]
   224              },
   225              root_map={
   226                  'validations': {
   227                  },
   228                  'allowed_values': {
   229                  },
   230                  'openapi_types': {
   231                      'repository':
   232                          (str,),
   233                      'branch':
   234                          (str,),
   235                      'path_list':
   236                          (PathList,),
   237                      'force':
   238                          (bool,),
   239                  },
   240                  'attribute_map': {
   241                      'repository': 'repository',
   242                      'branch': 'branch',
   243                      'force': 'force',
   244                  },
   245                  'location_map': {
   246                      'repository': 'path',
   247                      'branch': 'path',
   248                      'path_list': 'body',
   249                      'force': 'query',
   250                  },
   251                  'collection_format_map': {
   252                  }
   253              },
   254              headers_map={
   255                  'accept': [
   256                      'application/json'
   257                  ],
   258                  'content_type': [
   259                      'application/json'
   260                  ]
   261              },
   262              api_client=api_client
   263          )
   264          self.get_object_endpoint = _Endpoint(
   265              settings={
   266                  'response_type': (file_type,),
   267                  'auth': [
   268                      'basic_auth',
   269                      'cookie_auth',
   270                      'jwt_token',
   271                      'oidc_auth',
   272                      'saml_auth'
   273                  ],
   274                  'endpoint_path': '/repositories/{repository}/refs/{ref}/objects',
   275                  'operation_id': 'get_object',
   276                  'http_method': 'GET',
   277                  'servers': None,
   278              },
   279              params_map={
   280                  'all': [
   281                      'repository',
   282                      'ref',
   283                      'path',
   284                      'range',
   285                      'if_none_match',
   286                      'presign',
   287                  ],
   288                  'required': [
   289                      'repository',
   290                      'ref',
   291                      'path',
   292                  ],
   293                  'nullable': [
   294                  ],
   295                  'enum': [
   296                  ],
   297                  'validation': [
   298                      'range',
   299                  ]
   300              },
   301              root_map={
   302                  'validations': {
   303                      ('range',): {
   304  
   305                          'regex': {
   306                              'pattern': r'^bytes=((\d*-\d*,? ?)+)$',  # noqa: E501
   307                          },
   308                      },
   309                  },
   310                  'allowed_values': {
   311                  },
   312                  'openapi_types': {
   313                      'repository':
   314                          (str,),
   315                      'ref':
   316                          (str,),
   317                      'path':
   318                          (str,),
   319                      'range':
   320                          (str,),
   321                      'if_none_match':
   322                          (str,),
   323                      'presign':
   324                          (bool,),
   325                  },
   326                  'attribute_map': {
   327                      'repository': 'repository',
   328                      'ref': 'ref',
   329                      'path': 'path',
   330                      'range': 'Range',
   331                      'if_none_match': 'If-None-Match',
   332                      'presign': 'presign',
   333                  },
   334                  'location_map': {
   335                      'repository': 'path',
   336                      'ref': 'path',
   337                      'path': 'query',
   338                      'range': 'header',
   339                      'if_none_match': 'header',
   340                      'presign': 'query',
   341                  },
   342                  'collection_format_map': {
   343                  }
   344              },
   345              headers_map={
   346                  'accept': [
   347                      'application/octet-stream',
   348                      'application/json'
   349                  ],
   350                  'content_type': [],
   351              },
   352              api_client=api_client
   353          )
   354          self.get_underlying_properties_endpoint = _Endpoint(
   355              settings={
   356                  'response_type': (UnderlyingObjectProperties,),
   357                  'auth': [
   358                      'basic_auth',
   359                      'cookie_auth',
   360                      'jwt_token',
   361                      'oidc_auth',
   362                      'saml_auth'
   363                  ],
   364                  'endpoint_path': '/repositories/{repository}/refs/{ref}/objects/underlyingProperties',
   365                  'operation_id': 'get_underlying_properties',
   366                  'http_method': 'GET',
   367                  'servers': None,
   368              },
   369              params_map={
   370                  'all': [
   371                      'repository',
   372                      'ref',
   373                      'path',
   374                  ],
   375                  'required': [
   376                      'repository',
   377                      'ref',
   378                      'path',
   379                  ],
   380                  'nullable': [
   381                  ],
   382                  'enum': [
   383                  ],
   384                  'validation': [
   385                  ]
   386              },
   387              root_map={
   388                  'validations': {
   389                  },
   390                  'allowed_values': {
   391                  },
   392                  'openapi_types': {
   393                      'repository':
   394                          (str,),
   395                      'ref':
   396                          (str,),
   397                      'path':
   398                          (str,),
   399                  },
   400                  'attribute_map': {
   401                      'repository': 'repository',
   402                      'ref': 'ref',
   403                      'path': 'path',
   404                  },
   405                  'location_map': {
   406                      'repository': 'path',
   407                      'ref': 'path',
   408                      'path': 'query',
   409                  },
   410                  'collection_format_map': {
   411                  }
   412              },
   413              headers_map={
   414                  'accept': [
   415                      'application/json'
   416                  ],
   417                  'content_type': [],
   418              },
   419              api_client=api_client
   420          )
   421          self.head_object_endpoint = _Endpoint(
   422              settings={
   423                  'response_type': None,
   424                  'auth': [
   425                      'basic_auth',
   426                      'cookie_auth',
   427                      'jwt_token',
   428                      'oidc_auth',
   429                      'saml_auth'
   430                  ],
   431                  'endpoint_path': '/repositories/{repository}/refs/{ref}/objects',
   432                  'operation_id': 'head_object',
   433                  'http_method': 'HEAD',
   434                  'servers': None,
   435              },
   436              params_map={
   437                  'all': [
   438                      'repository',
   439                      'ref',
   440                      'path',
   441                      'range',
   442                  ],
   443                  'required': [
   444                      'repository',
   445                      'ref',
   446                      'path',
   447                  ],
   448                  'nullable': [
   449                  ],
   450                  'enum': [
   451                  ],
   452                  'validation': [
   453                      'range',
   454                  ]
   455              },
   456              root_map={
   457                  'validations': {
   458                      ('range',): {
   459  
   460                          'regex': {
   461                              'pattern': r'^bytes=((\d*-\d*,? ?)+)$',  # noqa: E501
   462                          },
   463                      },
   464                  },
   465                  'allowed_values': {
   466                  },
   467                  'openapi_types': {
   468                      'repository':
   469                          (str,),
   470                      'ref':
   471                          (str,),
   472                      'path':
   473                          (str,),
   474                      'range':
   475                          (str,),
   476                  },
   477                  'attribute_map': {
   478                      'repository': 'repository',
   479                      'ref': 'ref',
   480                      'path': 'path',
   481                      'range': 'Range',
   482                  },
   483                  'location_map': {
   484                      'repository': 'path',
   485                      'ref': 'path',
   486                      'path': 'query',
   487                      'range': 'header',
   488                  },
   489                  'collection_format_map': {
   490                  }
   491              },
   492              headers_map={
   493                  'accept': [],
   494                  'content_type': [],
   495              },
   496              api_client=api_client
   497          )
   498          self.list_objects_endpoint = _Endpoint(
   499              settings={
   500                  'response_type': (ObjectStatsList,),
   501                  'auth': [
   502                      'basic_auth',
   503                      'cookie_auth',
   504                      'jwt_token',
   505                      'oidc_auth',
   506                      'saml_auth'
   507                  ],
   508                  'endpoint_path': '/repositories/{repository}/refs/{ref}/objects/ls',
   509                  'operation_id': 'list_objects',
   510                  'http_method': 'GET',
   511                  'servers': None,
   512              },
   513              params_map={
   514                  'all': [
   515                      'repository',
   516                      'ref',
   517                      'user_metadata',
   518                      'presign',
   519                      'after',
   520                      'amount',
   521                      'delimiter',
   522                      'prefix',
   523                  ],
   524                  'required': [
   525                      'repository',
   526                      'ref',
   527                  ],
   528                  'nullable': [
   529                  ],
   530                  'enum': [
   531                  ],
   532                  'validation': [
   533                      'amount',
   534                  ]
   535              },
   536              root_map={
   537                  'validations': {
   538                      ('amount',): {
   539  
   540                          'inclusive_maximum': 1000,
   541                          'inclusive_minimum': -1,
   542                      },
   543                  },
   544                  'allowed_values': {
   545                  },
   546                  'openapi_types': {
   547                      'repository':
   548                          (str,),
   549                      'ref':
   550                          (str,),
   551                      'user_metadata':
   552                          (bool,),
   553                      'presign':
   554                          (bool,),
   555                      'after':
   556                          (str,),
   557                      'amount':
   558                          (int,),
   559                      'delimiter':
   560                          (str,),
   561                      'prefix':
   562                          (str,),
   563                  },
   564                  'attribute_map': {
   565                      'repository': 'repository',
   566                      'ref': 'ref',
   567                      'user_metadata': 'user_metadata',
   568                      'presign': 'presign',
   569                      'after': 'after',
   570                      'amount': 'amount',
   571                      'delimiter': 'delimiter',
   572                      'prefix': 'prefix',
   573                  },
   574                  'location_map': {
   575                      'repository': 'path',
   576                      'ref': 'path',
   577                      'user_metadata': 'query',
   578                      'presign': 'query',
   579                      'after': 'query',
   580                      'amount': 'query',
   581                      'delimiter': 'query',
   582                      'prefix': 'query',
   583                  },
   584                  'collection_format_map': {
   585                  }
   586              },
   587              headers_map={
   588                  'accept': [
   589                      'application/json'
   590                  ],
   591                  'content_type': [],
   592              },
   593              api_client=api_client
   594          )
   595          self.stat_object_endpoint = _Endpoint(
   596              settings={
   597                  'response_type': (ObjectStats,),
   598                  'auth': [
   599                      'basic_auth',
   600                      'cookie_auth',
   601                      'jwt_token',
   602                      'oidc_auth',
   603                      'saml_auth'
   604                  ],
   605                  'endpoint_path': '/repositories/{repository}/refs/{ref}/objects/stat',
   606                  'operation_id': 'stat_object',
   607                  'http_method': 'GET',
   608                  'servers': None,
   609              },
   610              params_map={
   611                  'all': [
   612                      'repository',
   613                      'ref',
   614                      'path',
   615                      'user_metadata',
   616                      'presign',
   617                  ],
   618                  'required': [
   619                      'repository',
   620                      'ref',
   621                      'path',
   622                  ],
   623                  'nullable': [
   624                  ],
   625                  'enum': [
   626                  ],
   627                  'validation': [
   628                  ]
   629              },
   630              root_map={
   631                  'validations': {
   632                  },
   633                  'allowed_values': {
   634                  },
   635                  'openapi_types': {
   636                      'repository':
   637                          (str,),
   638                      'ref':
   639                          (str,),
   640                      'path':
   641                          (str,),
   642                      'user_metadata':
   643                          (bool,),
   644                      'presign':
   645                          (bool,),
   646                  },
   647                  'attribute_map': {
   648                      'repository': 'repository',
   649                      'ref': 'ref',
   650                      'path': 'path',
   651                      'user_metadata': 'user_metadata',
   652                      'presign': 'presign',
   653                  },
   654                  'location_map': {
   655                      'repository': 'path',
   656                      'ref': 'path',
   657                      'path': 'query',
   658                      'user_metadata': 'query',
   659                      'presign': 'query',
   660                  },
   661                  'collection_format_map': {
   662                  }
   663              },
   664              headers_map={
   665                  'accept': [
   666                      'application/json'
   667                  ],
   668                  'content_type': [],
   669              },
   670              api_client=api_client
   671          )
   672          self.upload_object_endpoint = _Endpoint(
   673              settings={
   674                  'response_type': (ObjectStats,),
   675                  'auth': [
   676                      'basic_auth',
   677                      'cookie_auth',
   678                      'jwt_token',
   679                      'oidc_auth',
   680                      'saml_auth'
   681                  ],
   682                  'endpoint_path': '/repositories/{repository}/branches/{branch}/objects',
   683                  'operation_id': 'upload_object',
   684                  'http_method': 'POST',
   685                  'servers': None,
   686              },
   687              params_map={
   688                  'all': [
   689                      'repository',
   690                      'branch',
   691                      'path',
   692                      'if_none_match',
   693                      'storage_class',
   694                      'force',
   695                      'content',
   696                  ],
   697                  'required': [
   698                      'repository',
   699                      'branch',
   700                      'path',
   701                  ],
   702                  'nullable': [
   703                  ],
   704                  'enum': [
   705                  ],
   706                  'validation': [
   707                  ]
   708              },
   709              root_map={
   710                  'validations': {
   711                  },
   712                  'allowed_values': {
   713                  },
   714                  'openapi_types': {
   715                      'repository':
   716                          (str,),
   717                      'branch':
   718                          (str,),
   719                      'path':
   720                          (str,),
   721                      'if_none_match':
   722                          (str,),
   723                      'storage_class':
   724                          (str,),
   725                      'force':
   726                          (bool,),
   727                      'content':
   728                          (file_type,),
   729                  },
   730                  'attribute_map': {
   731                      'repository': 'repository',
   732                      'branch': 'branch',
   733                      'path': 'path',
   734                      'if_none_match': 'If-None-Match',
   735                      'storage_class': 'storageClass',
   736                      'force': 'force',
   737                      'content': 'content',
   738                  },
   739                  'location_map': {
   740                      'repository': 'path',
   741                      'branch': 'path',
   742                      'path': 'query',
   743                      'if_none_match': 'header',
   744                      'storage_class': 'query',
   745                      'force': 'query',
   746                      'content': 'form',
   747                  },
   748                  'collection_format_map': {
   749                  }
   750              },
   751              headers_map={
   752                  'accept': [
   753                      'application/json'
   754                  ],
   755                  'content_type': [
   756                      'multipart/form-data',
   757                      'application/octet-stream'
   758                  ]
   759              },
   760              api_client=api_client
   761          )
   762  
   763      def copy_object(
   764          self,
   765          repository,
   766          branch,
   767          dest_path,
   768          object_copy_creation,
   769          **kwargs
   770      ):
   771          """create a copy of an object  # noqa: E501
   772  
   773          This method makes a synchronous HTTP request by default. To make an
   774          asynchronous HTTP request, please pass async_req=True
   775  
   776          >>> thread = api.copy_object(repository, branch, dest_path, object_copy_creation, async_req=True)
   777          >>> result = thread.get()
   778  
   779          Args:
   780              repository (str):
   781              branch (str): destination branch for the copy
   782              dest_path (str): destination path relative to the branch
   783              object_copy_creation (ObjectCopyCreation):
   784  
   785          Keyword Args:
   786              _return_http_data_only (bool): response data without head status
   787                  code and headers. Default is True.
   788              _preload_content (bool): if False, the urllib3.HTTPResponse object
   789                  will be returned without reading/decoding response data.
   790                  Default is True.
   791              _request_timeout (int/float/tuple): timeout setting for this request. If
   792                  one number provided, it will be total request timeout. It can also
   793                  be a pair (tuple) of (connection, read) timeouts.
   794                  Default is None.
   795              _check_input_type (bool): specifies if type checking
   796                  should be done one the data sent to the server.
   797                  Default is True.
   798              _check_return_type (bool): specifies if type checking
   799                  should be done one the data received from the server.
   800                  Default is True.
   801              _host_index (int/None): specifies the index of the server
   802                  that we want to use.
   803                  Default is read from the configuration.
   804              async_req (bool): execute request asynchronously
   805  
   806          Returns:
   807              ObjectStats
   808                  If the method is called asynchronously, returns the request
   809                  thread.
   810          """
   811          kwargs['async_req'] = kwargs.get(
   812              'async_req', False
   813          )
   814          kwargs['_return_http_data_only'] = kwargs.get(
   815              '_return_http_data_only', True
   816          )
   817          kwargs['_preload_content'] = kwargs.get(
   818              '_preload_content', True
   819          )
   820          kwargs['_request_timeout'] = kwargs.get(
   821              '_request_timeout', None
   822          )
   823          kwargs['_check_input_type'] = kwargs.get(
   824              '_check_input_type', True
   825          )
   826          kwargs['_check_return_type'] = kwargs.get(
   827              '_check_return_type', True
   828          )
   829          kwargs['_host_index'] = kwargs.get('_host_index')
   830          kwargs['repository'] = \
   831              repository
   832          kwargs['branch'] = \
   833              branch
   834          kwargs['dest_path'] = \
   835              dest_path
   836          kwargs['object_copy_creation'] = \
   837              object_copy_creation
   838          return self.copy_object_endpoint.call_with_http_info(**kwargs)
   839  
   840      def delete_object(
   841          self,
   842          repository,
   843          branch,
   844          path,
   845          **kwargs
   846      ):
   847          """delete object. Missing objects will not return a NotFound error.  # noqa: E501
   848  
   849          This method makes a synchronous HTTP request by default. To make an
   850          asynchronous HTTP request, please pass async_req=True
   851  
   852          >>> thread = api.delete_object(repository, branch, path, async_req=True)
   853          >>> result = thread.get()
   854  
   855          Args:
   856              repository (str):
   857              branch (str):
   858              path (str): relative to the branch
   859  
   860          Keyword Args:
   861              force (bool): [optional] if omitted the server will use the default value of False
   862              _return_http_data_only (bool): response data without head status
   863                  code and headers. Default is True.
   864              _preload_content (bool): if False, the urllib3.HTTPResponse object
   865                  will be returned without reading/decoding response data.
   866                  Default is True.
   867              _request_timeout (int/float/tuple): timeout setting for this request. If
   868                  one number provided, it will be total request timeout. It can also
   869                  be a pair (tuple) of (connection, read) timeouts.
   870                  Default is None.
   871              _check_input_type (bool): specifies if type checking
   872                  should be done one the data sent to the server.
   873                  Default is True.
   874              _check_return_type (bool): specifies if type checking
   875                  should be done one the data received from the server.
   876                  Default is True.
   877              _host_index (int/None): specifies the index of the server
   878                  that we want to use.
   879                  Default is read from the configuration.
   880              async_req (bool): execute request asynchronously
   881  
   882          Returns:
   883              None
   884                  If the method is called asynchronously, returns the request
   885                  thread.
   886          """
   887          kwargs['async_req'] = kwargs.get(
   888              'async_req', False
   889          )
   890          kwargs['_return_http_data_only'] = kwargs.get(
   891              '_return_http_data_only', True
   892          )
   893          kwargs['_preload_content'] = kwargs.get(
   894              '_preload_content', True
   895          )
   896          kwargs['_request_timeout'] = kwargs.get(
   897              '_request_timeout', None
   898          )
   899          kwargs['_check_input_type'] = kwargs.get(
   900              '_check_input_type', True
   901          )
   902          kwargs['_check_return_type'] = kwargs.get(
   903              '_check_return_type', True
   904          )
   905          kwargs['_host_index'] = kwargs.get('_host_index')
   906          kwargs['repository'] = \
   907              repository
   908          kwargs['branch'] = \
   909              branch
   910          kwargs['path'] = \
   911              path
   912          return self.delete_object_endpoint.call_with_http_info(**kwargs)
   913  
   914      def delete_objects(
   915          self,
   916          repository,
   917          branch,
   918          path_list,
   919          **kwargs
   920      ):
   921          """delete objects. Missing objects will not return a NotFound error.  # noqa: E501
   922  
   923          This method makes a synchronous HTTP request by default. To make an
   924          asynchronous HTTP request, please pass async_req=True
   925  
   926          >>> thread = api.delete_objects(repository, branch, path_list, async_req=True)
   927          >>> result = thread.get()
   928  
   929          Args:
   930              repository (str):
   931              branch (str):
   932              path_list (PathList):
   933  
   934          Keyword Args:
   935              force (bool): [optional] if omitted the server will use the default value of False
   936              _return_http_data_only (bool): response data without head status
   937                  code and headers. Default is True.
   938              _preload_content (bool): if False, the urllib3.HTTPResponse object
   939                  will be returned without reading/decoding response data.
   940                  Default is True.
   941              _request_timeout (int/float/tuple): timeout setting for this request. If
   942                  one number provided, it will be total request timeout. It can also
   943                  be a pair (tuple) of (connection, read) timeouts.
   944                  Default is None.
   945              _check_input_type (bool): specifies if type checking
   946                  should be done one the data sent to the server.
   947                  Default is True.
   948              _check_return_type (bool): specifies if type checking
   949                  should be done one the data received from the server.
   950                  Default is True.
   951              _host_index (int/None): specifies the index of the server
   952                  that we want to use.
   953                  Default is read from the configuration.
   954              async_req (bool): execute request asynchronously
   955  
   956          Returns:
   957              ObjectErrorList
   958                  If the method is called asynchronously, returns the request
   959                  thread.
   960          """
   961          kwargs['async_req'] = kwargs.get(
   962              'async_req', False
   963          )
   964          kwargs['_return_http_data_only'] = kwargs.get(
   965              '_return_http_data_only', True
   966          )
   967          kwargs['_preload_content'] = kwargs.get(
   968              '_preload_content', True
   969          )
   970          kwargs['_request_timeout'] = kwargs.get(
   971              '_request_timeout', None
   972          )
   973          kwargs['_check_input_type'] = kwargs.get(
   974              '_check_input_type', True
   975          )
   976          kwargs['_check_return_type'] = kwargs.get(
   977              '_check_return_type', True
   978          )
   979          kwargs['_host_index'] = kwargs.get('_host_index')
   980          kwargs['repository'] = \
   981              repository
   982          kwargs['branch'] = \
   983              branch
   984          kwargs['path_list'] = \
   985              path_list
   986          return self.delete_objects_endpoint.call_with_http_info(**kwargs)
   987  
   988      def get_object(
   989          self,
   990          repository,
   991          ref,
   992          path,
   993          **kwargs
   994      ):
   995          """get object content  # noqa: E501
   996  
   997          This method makes a synchronous HTTP request by default. To make an
   998          asynchronous HTTP request, please pass async_req=True
   999  
  1000          >>> thread = api.get_object(repository, ref, path, async_req=True)
  1001          >>> result = thread.get()
  1002  
  1003          Args:
  1004              repository (str):
  1005              ref (str): a reference (could be either a branch or a commit ID)
  1006              path (str): relative to the ref
  1007  
  1008          Keyword Args:
  1009              range (str): Byte range to retrieve. [optional]
  1010              if_none_match (str): Returns response only if the object does not have a matching ETag. [optional]
  1011              presign (bool): [optional]
  1012              _return_http_data_only (bool): response data without head status
  1013                  code and headers. Default is True.
  1014              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1015                  will be returned without reading/decoding response data.
  1016                  Default is True.
  1017              _request_timeout (int/float/tuple): timeout setting for this request. If
  1018                  one number provided, it will be total request timeout. It can also
  1019                  be a pair (tuple) of (connection, read) timeouts.
  1020                  Default is None.
  1021              _check_input_type (bool): specifies if type checking
  1022                  should be done one the data sent to the server.
  1023                  Default is True.
  1024              _check_return_type (bool): specifies if type checking
  1025                  should be done one the data received from the server.
  1026                  Default is True.
  1027              _host_index (int/None): specifies the index of the server
  1028                  that we want to use.
  1029                  Default is read from the configuration.
  1030              async_req (bool): execute request asynchronously
  1031  
  1032          Returns:
  1033              file_type
  1034                  If the method is called asynchronously, returns the request
  1035                  thread.
  1036          """
  1037          kwargs['async_req'] = kwargs.get(
  1038              'async_req', False
  1039          )
  1040          kwargs['_return_http_data_only'] = kwargs.get(
  1041              '_return_http_data_only', True
  1042          )
  1043          kwargs['_preload_content'] = kwargs.get(
  1044              '_preload_content', True
  1045          )
  1046          kwargs['_request_timeout'] = kwargs.get(
  1047              '_request_timeout', None
  1048          )
  1049          kwargs['_check_input_type'] = kwargs.get(
  1050              '_check_input_type', True
  1051          )
  1052          kwargs['_check_return_type'] = kwargs.get(
  1053              '_check_return_type', True
  1054          )
  1055          kwargs['_host_index'] = kwargs.get('_host_index')
  1056          kwargs['repository'] = \
  1057              repository
  1058          kwargs['ref'] = \
  1059              ref
  1060          kwargs['path'] = \
  1061              path
  1062          return self.get_object_endpoint.call_with_http_info(**kwargs)
  1063  
  1064      def get_underlying_properties(
  1065          self,
  1066          repository,
  1067          ref,
  1068          path,
  1069          **kwargs
  1070      ):
  1071          """get object properties on underlying storage  # noqa: E501
  1072  
  1073          This method makes a synchronous HTTP request by default. To make an
  1074          asynchronous HTTP request, please pass async_req=True
  1075  
  1076          >>> thread = api.get_underlying_properties(repository, ref, path, async_req=True)
  1077          >>> result = thread.get()
  1078  
  1079          Args:
  1080              repository (str):
  1081              ref (str): a reference (could be either a branch or a commit ID)
  1082              path (str): relative to the branch
  1083  
  1084          Keyword Args:
  1085              _return_http_data_only (bool): response data without head status
  1086                  code and headers. Default is True.
  1087              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1088                  will be returned without reading/decoding response data.
  1089                  Default is True.
  1090              _request_timeout (int/float/tuple): timeout setting for this request. If
  1091                  one number provided, it will be total request timeout. It can also
  1092                  be a pair (tuple) of (connection, read) timeouts.
  1093                  Default is None.
  1094              _check_input_type (bool): specifies if type checking
  1095                  should be done one the data sent to the server.
  1096                  Default is True.
  1097              _check_return_type (bool): specifies if type checking
  1098                  should be done one the data received from the server.
  1099                  Default is True.
  1100              _host_index (int/None): specifies the index of the server
  1101                  that we want to use.
  1102                  Default is read from the configuration.
  1103              async_req (bool): execute request asynchronously
  1104  
  1105          Returns:
  1106              UnderlyingObjectProperties
  1107                  If the method is called asynchronously, returns the request
  1108                  thread.
  1109          """
  1110          kwargs['async_req'] = kwargs.get(
  1111              'async_req', False
  1112          )
  1113          kwargs['_return_http_data_only'] = kwargs.get(
  1114              '_return_http_data_only', True
  1115          )
  1116          kwargs['_preload_content'] = kwargs.get(
  1117              '_preload_content', True
  1118          )
  1119          kwargs['_request_timeout'] = kwargs.get(
  1120              '_request_timeout', None
  1121          )
  1122          kwargs['_check_input_type'] = kwargs.get(
  1123              '_check_input_type', True
  1124          )
  1125          kwargs['_check_return_type'] = kwargs.get(
  1126              '_check_return_type', True
  1127          )
  1128          kwargs['_host_index'] = kwargs.get('_host_index')
  1129          kwargs['repository'] = \
  1130              repository
  1131          kwargs['ref'] = \
  1132              ref
  1133          kwargs['path'] = \
  1134              path
  1135          return self.get_underlying_properties_endpoint.call_with_http_info(**kwargs)
  1136  
  1137      def head_object(
  1138          self,
  1139          repository,
  1140          ref,
  1141          path,
  1142          **kwargs
  1143      ):
  1144          """check if object exists  # noqa: E501
  1145  
  1146          This method makes a synchronous HTTP request by default. To make an
  1147          asynchronous HTTP request, please pass async_req=True
  1148  
  1149          >>> thread = api.head_object(repository, ref, path, async_req=True)
  1150          >>> result = thread.get()
  1151  
  1152          Args:
  1153              repository (str):
  1154              ref (str): a reference (could be either a branch or a commit ID)
  1155              path (str): relative to the ref
  1156  
  1157          Keyword Args:
  1158              range (str): Byte range to retrieve. [optional]
  1159              _return_http_data_only (bool): response data without head status
  1160                  code and headers. Default is True.
  1161              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1162                  will be returned without reading/decoding response data.
  1163                  Default is True.
  1164              _request_timeout (int/float/tuple): timeout setting for this request. If
  1165                  one number provided, it will be total request timeout. It can also
  1166                  be a pair (tuple) of (connection, read) timeouts.
  1167                  Default is None.
  1168              _check_input_type (bool): specifies if type checking
  1169                  should be done one the data sent to the server.
  1170                  Default is True.
  1171              _check_return_type (bool): specifies if type checking
  1172                  should be done one the data received from the server.
  1173                  Default is True.
  1174              _host_index (int/None): specifies the index of the server
  1175                  that we want to use.
  1176                  Default is read from the configuration.
  1177              async_req (bool): execute request asynchronously
  1178  
  1179          Returns:
  1180              None
  1181                  If the method is called asynchronously, returns the request
  1182                  thread.
  1183          """
  1184          kwargs['async_req'] = kwargs.get(
  1185              'async_req', False
  1186          )
  1187          kwargs['_return_http_data_only'] = kwargs.get(
  1188              '_return_http_data_only', True
  1189          )
  1190          kwargs['_preload_content'] = kwargs.get(
  1191              '_preload_content', True
  1192          )
  1193          kwargs['_request_timeout'] = kwargs.get(
  1194              '_request_timeout', None
  1195          )
  1196          kwargs['_check_input_type'] = kwargs.get(
  1197              '_check_input_type', True
  1198          )
  1199          kwargs['_check_return_type'] = kwargs.get(
  1200              '_check_return_type', True
  1201          )
  1202          kwargs['_host_index'] = kwargs.get('_host_index')
  1203          kwargs['repository'] = \
  1204              repository
  1205          kwargs['ref'] = \
  1206              ref
  1207          kwargs['path'] = \
  1208              path
  1209          return self.head_object_endpoint.call_with_http_info(**kwargs)
  1210  
  1211      def list_objects(
  1212          self,
  1213          repository,
  1214          ref,
  1215          **kwargs
  1216      ):
  1217          """list objects under a given prefix  # noqa: E501
  1218  
  1219          This method makes a synchronous HTTP request by default. To make an
  1220          asynchronous HTTP request, please pass async_req=True
  1221  
  1222          >>> thread = api.list_objects(repository, ref, async_req=True)
  1223          >>> result = thread.get()
  1224  
  1225          Args:
  1226              repository (str):
  1227              ref (str): a reference (could be either a branch or a commit ID)
  1228  
  1229          Keyword Args:
  1230              user_metadata (bool): [optional] if omitted the server will use the default value of True
  1231              presign (bool): [optional]
  1232              after (str): return items after this value. [optional]
  1233              amount (int): how many items to return. [optional] if omitted the server will use the default value of 100
  1234              delimiter (str): delimiter used to group common prefixes by. [optional]
  1235              prefix (str): return items prefixed with this value. [optional]
  1236              _return_http_data_only (bool): response data without head status
  1237                  code and headers. Default is True.
  1238              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1239                  will be returned without reading/decoding response data.
  1240                  Default is True.
  1241              _request_timeout (int/float/tuple): timeout setting for this request. If
  1242                  one number provided, it will be total request timeout. It can also
  1243                  be a pair (tuple) of (connection, read) timeouts.
  1244                  Default is None.
  1245              _check_input_type (bool): specifies if type checking
  1246                  should be done one the data sent to the server.
  1247                  Default is True.
  1248              _check_return_type (bool): specifies if type checking
  1249                  should be done one the data received from the server.
  1250                  Default is True.
  1251              _host_index (int/None): specifies the index of the server
  1252                  that we want to use.
  1253                  Default is read from the configuration.
  1254              async_req (bool): execute request asynchronously
  1255  
  1256          Returns:
  1257              ObjectStatsList
  1258                  If the method is called asynchronously, returns the request
  1259                  thread.
  1260          """
  1261          kwargs['async_req'] = kwargs.get(
  1262              'async_req', False
  1263          )
  1264          kwargs['_return_http_data_only'] = kwargs.get(
  1265              '_return_http_data_only', True
  1266          )
  1267          kwargs['_preload_content'] = kwargs.get(
  1268              '_preload_content', True
  1269          )
  1270          kwargs['_request_timeout'] = kwargs.get(
  1271              '_request_timeout', None
  1272          )
  1273          kwargs['_check_input_type'] = kwargs.get(
  1274              '_check_input_type', True
  1275          )
  1276          kwargs['_check_return_type'] = kwargs.get(
  1277              '_check_return_type', True
  1278          )
  1279          kwargs['_host_index'] = kwargs.get('_host_index')
  1280          kwargs['repository'] = \
  1281              repository
  1282          kwargs['ref'] = \
  1283              ref
  1284          return self.list_objects_endpoint.call_with_http_info(**kwargs)
  1285  
  1286      def stat_object(
  1287          self,
  1288          repository,
  1289          ref,
  1290          path,
  1291          **kwargs
  1292      ):
  1293          """get object metadata  # noqa: E501
  1294  
  1295          This method makes a synchronous HTTP request by default. To make an
  1296          asynchronous HTTP request, please pass async_req=True
  1297  
  1298          >>> thread = api.stat_object(repository, ref, path, async_req=True)
  1299          >>> result = thread.get()
  1300  
  1301          Args:
  1302              repository (str):
  1303              ref (str): a reference (could be either a branch or a commit ID)
  1304              path (str): relative to the branch
  1305  
  1306          Keyword Args:
  1307              user_metadata (bool): [optional] if omitted the server will use the default value of True
  1308              presign (bool): [optional]
  1309              _return_http_data_only (bool): response data without head status
  1310                  code and headers. Default is True.
  1311              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1312                  will be returned without reading/decoding response data.
  1313                  Default is True.
  1314              _request_timeout (int/float/tuple): timeout setting for this request. If
  1315                  one number provided, it will be total request timeout. It can also
  1316                  be a pair (tuple) of (connection, read) timeouts.
  1317                  Default is None.
  1318              _check_input_type (bool): specifies if type checking
  1319                  should be done one the data sent to the server.
  1320                  Default is True.
  1321              _check_return_type (bool): specifies if type checking
  1322                  should be done one the data received from the server.
  1323                  Default is True.
  1324              _host_index (int/None): specifies the index of the server
  1325                  that we want to use.
  1326                  Default is read from the configuration.
  1327              async_req (bool): execute request asynchronously
  1328  
  1329          Returns:
  1330              ObjectStats
  1331                  If the method is called asynchronously, returns the request
  1332                  thread.
  1333          """
  1334          kwargs['async_req'] = kwargs.get(
  1335              'async_req', False
  1336          )
  1337          kwargs['_return_http_data_only'] = kwargs.get(
  1338              '_return_http_data_only', True
  1339          )
  1340          kwargs['_preload_content'] = kwargs.get(
  1341              '_preload_content', True
  1342          )
  1343          kwargs['_request_timeout'] = kwargs.get(
  1344              '_request_timeout', None
  1345          )
  1346          kwargs['_check_input_type'] = kwargs.get(
  1347              '_check_input_type', True
  1348          )
  1349          kwargs['_check_return_type'] = kwargs.get(
  1350              '_check_return_type', True
  1351          )
  1352          kwargs['_host_index'] = kwargs.get('_host_index')
  1353          kwargs['repository'] = \
  1354              repository
  1355          kwargs['ref'] = \
  1356              ref
  1357          kwargs['path'] = \
  1358              path
  1359          return self.stat_object_endpoint.call_with_http_info(**kwargs)
  1360  
  1361      def upload_object(
  1362          self,
  1363          repository,
  1364          branch,
  1365          path,
  1366          **kwargs
  1367      ):
  1368          """upload_object  # noqa: E501
  1369  
  1370          This method makes a synchronous HTTP request by default. To make an
  1371          asynchronous HTTP request, please pass async_req=True
  1372  
  1373          >>> thread = api.upload_object(repository, branch, path, async_req=True)
  1374          >>> result = thread.get()
  1375  
  1376          Args:
  1377              repository (str):
  1378              branch (str):
  1379              path (str): relative to the branch
  1380  
  1381          Keyword Args:
  1382              if_none_match (str): Set to \"*\" to atomically allow the upload only if the key has no object yet. Other values are not supported.. [optional]
  1383              storage_class (str): Deprecated, this capability will not be supported in future releases.. [optional]
  1384              force (bool): [optional] if omitted the server will use the default value of False
  1385              content (file_type): Only a single file per upload which must be named \\\"content\\\".. [optional]
  1386              _return_http_data_only (bool): response data without head status
  1387                  code and headers. Default is True.
  1388              _preload_content (bool): if False, the urllib3.HTTPResponse object
  1389                  will be returned without reading/decoding response data.
  1390                  Default is True.
  1391              _request_timeout (int/float/tuple): timeout setting for this request. If
  1392                  one number provided, it will be total request timeout. It can also
  1393                  be a pair (tuple) of (connection, read) timeouts.
  1394                  Default is None.
  1395              _check_input_type (bool): specifies if type checking
  1396                  should be done one the data sent to the server.
  1397                  Default is True.
  1398              _check_return_type (bool): specifies if type checking
  1399                  should be done one the data received from the server.
  1400                  Default is True.
  1401              _host_index (int/None): specifies the index of the server
  1402                  that we want to use.
  1403                  Default is read from the configuration.
  1404              async_req (bool): execute request asynchronously
  1405  
  1406          Returns:
  1407              ObjectStats
  1408                  If the method is called asynchronously, returns the request
  1409                  thread.
  1410          """
  1411          kwargs['async_req'] = kwargs.get(
  1412              'async_req', False
  1413          )
  1414          kwargs['_return_http_data_only'] = kwargs.get(
  1415              '_return_http_data_only', True
  1416          )
  1417          kwargs['_preload_content'] = kwargs.get(
  1418              '_preload_content', True
  1419          )
  1420          kwargs['_request_timeout'] = kwargs.get(
  1421              '_request_timeout', None
  1422          )
  1423          kwargs['_check_input_type'] = kwargs.get(
  1424              '_check_input_type', True
  1425          )
  1426          kwargs['_check_return_type'] = kwargs.get(
  1427              '_check_return_type', True
  1428          )
  1429          kwargs['_host_index'] = kwargs.get('_host_index')
  1430          kwargs['repository'] = \
  1431              repository
  1432          kwargs['branch'] = \
  1433              branch
  1434          kwargs['path'] = \
  1435              path
  1436          return self.upload_object_endpoint.call_with_http_info(**kwargs)
  1437