示例#1
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.get_task_endpoint = _Endpoint(
         settings={
             'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/task/{id}',
             'operation_id': 'get_task',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
             ],
             'required': [
                 'id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
             },
             'location_map': {
                 'id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
示例#2
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.get_database_health_endpoint = _Endpoint(
         settings={
             'response_type': (Health, ),
             'auth': ['jwt'],
             'endpoint_path': '/health/database',
             'operation_id': 'get_database_health',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [],
             'required': [],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {},
             'attribute_map': {},
             'location_map': {},
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
     self.get_health_endpoint = _Endpoint(settings={
         'response_type': (Health, ),
         'auth': ['jwt'],
         'endpoint_path': '/health',
         'operation_id': 'get_health',
         'http_method': 'GET',
         'servers': None,
     },
                                          params_map={
                                              'all': [],
                                              'required': [],
                                              'nullable': [],
                                              'enum': [],
                                              'validation': []
                                          },
                                          root_map={
                                              'validations': {},
                                              'allowed_values': {},
                                              'openapi_types': {},
                                              'attribute_map': {},
                                              'location_map': {},
                                              'collection_format_map': {}
                                          },
                                          headers_map={
                                              'accept':
                                              ['application/json'],
                                              'content_type': [],
                                          },
                                          api_client=api_client)
     self.get_health_info_endpoint = _Endpoint(settings={
         'response_type': (HealthInfo, ),
         'auth': ['jwt'],
         'endpoint_path':
         '/health/info',
         'operation_id':
         'get_health_info',
         'http_method':
         'GET',
         'servers':
         None,
     },
                                               params_map={
                                                   'all': [],
                                                   'required': [],
                                                   'nullable': [],
                                                   'enum': [],
                                                   'validation': []
                                               },
                                               root_map={
                                                   'validations': {},
                                                   'allowed_values': {},
                                                   'openapi_types': {},
                                                   'attribute_map': {},
                                                   'location_map': {},
                                                   'collection_format_map':
                                                   {}
                                               },
                                               headers_map={
                                                   'accept':
                                                   ['application/json'],
                                                   'content_type': [],
                                               },
                                               api_client=api_client)
示例#3
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.add_result_endpoint = _Endpoint(settings={
         'response_type': (Result, ),
         'auth': ['jwt'],
         'endpoint_path': '/result',
         'operation_id': 'add_result',
         'http_method': 'POST',
         'servers': None,
     },
                                          params_map={
                                              'all': [
                                                  'result',
                                              ],
                                              'required': [],
                                              'nullable': [],
                                              'enum': [],
                                              'validation': []
                                          },
                                          root_map={
                                              'validations': {},
                                              'allowed_values': {},
                                              'openapi_types': {
                                                  'result': (Result, ),
                                              },
                                              'attribute_map': {},
                                              'location_map': {
                                                  'result': 'body',
                                              },
                                              'collection_format_map': {}
                                          },
                                          headers_map={
                                              'accept':
                                              ['application/json'],
                                              'content_type':
                                              ['application/json']
                                          },
                                          api_client=api_client)
     self.get_result_endpoint = _Endpoint(settings={
         'response_type': (Result, ),
         'auth': ['jwt'],
         'endpoint_path': '/result/{id}',
         'operation_id': 'get_result',
         'http_method': 'GET',
         'servers': None,
     },
                                          params_map={
                                              'all': [
                                                  'id',
                                              ],
                                              'required': [
                                                  'id',
                                              ],
                                              'nullable': [],
                                              'enum': [],
                                              'validation': []
                                          },
                                          root_map={
                                              'validations': {},
                                              'allowed_values': {},
                                              'openapi_types': {
                                                  'id': (str, ),
                                              },
                                              'attribute_map': {
                                                  'id': 'id',
                                              },
                                              'location_map': {
                                                  'id': 'path',
                                              },
                                              'collection_format_map': {}
                                          },
                                          headers_map={
                                              'accept':
                                              ['application/json'],
                                              'content_type': [],
                                          },
                                          api_client=api_client)
     self.get_result_list_endpoint = _Endpoint(settings={
         'response_type': (ResultList, ),
         'auth': ['jwt'],
         'endpoint_path':
         '/result',
         'operation_id':
         'get_result_list',
         'http_method':
         'GET',
         'servers':
         None,
     },
                                               params_map={
                                                   'all': [
                                                       'filter',
                                                       'estimate',
                                                       'page',
                                                       'page_size',
                                                   ],
                                                   'required': [],
                                                   'nullable': [],
                                                   'enum': [],
                                                   'validation': []
                                               },
                                               root_map={
                                                   'validations': {},
                                                   'allowed_values': {},
                                                   'openapi_types': {
                                                       'filter': ([str], ),
                                                       'estimate': (bool, ),
                                                       'page': (int, ),
                                                       'page_size': (int, ),
                                                   },
                                                   'attribute_map': {
                                                       'filter': 'filter',
                                                       'estimate':
                                                       'estimate',
                                                       'page': 'page',
                                                       'page_size':
                                                       'pageSize',
                                                   },
                                                   'location_map': {
                                                       'filter': 'query',
                                                       'estimate': 'query',
                                                       'page': 'query',
                                                       'page_size': 'query',
                                                   },
                                                   'collection_format_map':
                                                   {
                                                       'filter': 'multi',
                                                   }
                                               },
                                               headers_map={
                                                   'accept':
                                                   ['application/json'],
                                                   'content_type': [],
                                               },
                                               api_client=api_client)
     self.update_result_endpoint = _Endpoint(settings={
         'response_type': (Result, ),
         'auth': ['jwt'],
         'endpoint_path': '/result/{id}',
         'operation_id': 'update_result',
         'http_method': 'PUT',
         'servers': None,
     },
                                             params_map={
                                                 'all': [
                                                     'id',
                                                     'result',
                                                 ],
                                                 'required': [
                                                     'id',
                                                 ],
                                                 'nullable': [],
                                                 'enum': [],
                                                 'validation': []
                                             },
                                             root_map={
                                                 'validations': {},
                                                 'allowed_values': {},
                                                 'openapi_types': {
                                                     'id': (str, ),
                                                     'result': (Result, ),
                                                 },
                                                 'attribute_map': {
                                                     'id': 'id',
                                                 },
                                                 'location_map': {
                                                     'id': 'path',
                                                     'result': 'body',
                                                 },
                                                 'collection_format_map':
                                                 {}
                                             },
                                             headers_map={
                                                 'accept':
                                                 ['application/json'],
                                                 'content_type':
                                                 ['application/json']
                                             },
                                             api_client=api_client)
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.delete_artifact_endpoint = _Endpoint(
         settings={
             'response_type': None,
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/artifact/{id}',
             'operation_id': 'delete_artifact',
             'http_method': 'DELETE',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
             ],
             'required': [
                 'id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
             },
             'location_map': {
                 'id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [],
             'content_type': [],
         },
         api_client=api_client
     )
     self.download_artifact_endpoint = _Endpoint(
         settings={
             'response_type': (file_type,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/artifact/{id}/download',
             'operation_id': 'download_artifact',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
             ],
             'required': [
                 'id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
             },
             'location_map': {
                 'id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'text/plain',
                 'image/jpeg',
                 'image/png',
                 'image/gif',
                 'application/octet-stream'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.get_artifact_endpoint = _Endpoint(
         settings={
             'response_type': (Artifact,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/artifact/{id}',
             'operation_id': 'get_artifact',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
             ],
             'required': [
                 'id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
             },
             'location_map': {
                 'id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.get_artifact_list_endpoint = _Endpoint(
         settings={
             'response_type': (ArtifactList,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/artifact',
             'operation_id': 'get_artifact_list',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'result_id',
                 'run_id',
                 'page',
                 'page_size',
             ],
             'required': [],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'result_id':
                     (str,),
                 'run_id':
                     (str,),
                 'page':
                     (int,),
                 'page_size':
                     (int,),
             },
             'attribute_map': {
                 'result_id': 'resultId',
                 'run_id': 'runId',
                 'page': 'page',
                 'page_size': 'pageSize',
             },
             'location_map': {
                 'result_id': 'query',
                 'run_id': 'query',
                 'page': 'query',
                 'page_size': 'query',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.upload_artifact_endpoint = _Endpoint(
         settings={
             'response_type': (Artifact,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/artifact',
             'operation_id': 'upload_artifact',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'filename',
                 'file',
                 'result_id',
                 'run_id',
                 'additional_metadata',
             ],
             'required': [
                 'filename',
                 'file',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'filename':
                     (str,),
                 'file':
                     (file_type,),
                 'result_id':
                     (str,),
                 'run_id':
                     (str,),
                 'additional_metadata':
                     ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
             },
             'attribute_map': {
                 'filename': 'filename',
                 'file': 'file',
                 'result_id': 'resultId',
                 'run_id': 'runId',
                 'additional_metadata': 'additionalMetadata',
             },
             'location_map': {
                 'filename': 'form',
                 'file': 'form',
                 'result_id': 'form',
                 'run_id': 'form',
                 'additional_metadata': 'form',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [
                 'multipart/form-data'
             ]
         },
         api_client=api_client
     )
     self.view_artifact_endpoint = _Endpoint(
         settings={
             'response_type': (file_type,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/artifact/{id}/view',
             'operation_id': 'view_artifact',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
             ],
             'required': [
                 'id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
             },
             'location_map': {
                 'id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'text/plain',
                 'image/jpeg',
                 'image/png',
                 'image/gif',
                 'application/octet-stream'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
示例#5
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.add_token_endpoint = _Endpoint(settings={
         'response_type': (Token, ),
         'auth': ['jwt'],
         'endpoint_path': '/user/token',
         'operation_id': 'add_token',
         'http_method': 'POST',
         'servers': None,
     },
                                         params_map={
                                             'all': [
                                                 'create_token',
                                             ],
                                             'required': [],
                                             'nullable': [],
                                             'enum': [],
                                             'validation': []
                                         },
                                         root_map={
                                             'validations': {},
                                             'allowed_values': {},
                                             'openapi_types': {
                                                 'create_token':
                                                 (CreateToken, ),
                                             },
                                             'attribute_map': {},
                                             'location_map': {
                                                 'create_token': 'body',
                                             },
                                             'collection_format_map': {}
                                         },
                                         headers_map={
                                             'accept': ['application/json'],
                                             'content_type':
                                             ['application/json']
                                         },
                                         api_client=api_client)
     self.delete_token_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': ['jwt'],
         'endpoint_path': '/user/token/{id}',
         'operation_id': 'delete_token',
         'http_method': 'DELETE',
         'servers': None,
     },
                                            params_map={
                                                'all': [
                                                    'id',
                                                ],
                                                'required': [
                                                    'id',
                                                ],
                                                'nullable': [],
                                                'enum': [],
                                                'validation': []
                                            },
                                            root_map={
                                                'validations': {},
                                                'allowed_values': {},
                                                'openapi_types': {
                                                    'id': (str, ),
                                                },
                                                'attribute_map': {
                                                    'id': 'id',
                                                },
                                                'location_map': {
                                                    'id': 'path',
                                                },
                                                'collection_format_map': {}
                                            },
                                            headers_map={
                                                'accept': [],
                                                'content_type': [],
                                            },
                                            api_client=api_client)
     self.get_current_user_endpoint = _Endpoint(settings={
         'response_type': (User, ),
         'auth': ['jwt'],
         'endpoint_path': '/user',
         'operation_id': 'get_current_user',
         'http_method': 'GET',
         'servers': None,
     },
                                                params_map={
                                                    'all': [],
                                                    'required': [],
                                                    'nullable': [],
                                                    'enum': [],
                                                    'validation': []
                                                },
                                                root_map={
                                                    'validations': {},
                                                    'allowed_values': {},
                                                    'openapi_types': {},
                                                    'attribute_map': {},
                                                    'location_map': {},
                                                    'collection_format_map':
                                                    {}
                                                },
                                                headers_map={
                                                    'accept':
                                                    ['application/json'],
                                                    'content_type': [],
                                                },
                                                api_client=api_client)
     self.get_token_endpoint = _Endpoint(settings={
         'response_type': (Token, ),
         'auth': ['jwt'],
         'endpoint_path': '/user/token/{id}',
         'operation_id': 'get_token',
         'http_method': 'GET',
         'servers': None,
     },
                                         params_map={
                                             'all': [
                                                 'id',
                                             ],
                                             'required': [
                                                 'id',
                                             ],
                                             'nullable': [],
                                             'enum': [],
                                             'validation': []
                                         },
                                         root_map={
                                             'validations': {},
                                             'allowed_values': {},
                                             'openapi_types': {
                                                 'id': (str, ),
                                             },
                                             'attribute_map': {
                                                 'id': 'id',
                                             },
                                             'location_map': {
                                                 'id': 'path',
                                             },
                                             'collection_format_map': {}
                                         },
                                         headers_map={
                                             'accept': ['application/json'],
                                             'content_type': [],
                                         },
                                         api_client=api_client)
     self.get_token_list_endpoint = _Endpoint(settings={
         'response_type': (TokenList, ),
         'auth': ['jwt'],
         'endpoint_path': '/user/token',
         'operation_id': 'get_token_list',
         'http_method': 'GET',
         'servers': None,
     },
                                              params_map={
                                                  'all': [
                                                      'page',
                                                      'page_size',
                                                  ],
                                                  'required': [],
                                                  'nullable': [],
                                                  'enum': [],
                                                  'validation': []
                                              },
                                              root_map={
                                                  'validations': {},
                                                  'allowed_values': {},
                                                  'openapi_types': {
                                                      'page': (int, ),
                                                      'page_size': (int, ),
                                                  },
                                                  'attribute_map': {
                                                      'page': 'page',
                                                      'page_size':
                                                      'pageSize',
                                                  },
                                                  'location_map': {
                                                      'page': 'query',
                                                      'page_size': 'query',
                                                  },
                                                  'collection_format_map':
                                                  {}
                                              },
                                              headers_map={
                                                  'accept':
                                                  ['application/json'],
                                                  'content_type': [],
                                              },
                                              api_client=api_client)
     self.update_current_user_endpoint = _Endpoint(
         settings={
             'response_type': (User, ),
             'auth': ['jwt'],
             'endpoint_path': '/user',
             'operation_id': 'update_current_user',
             'http_method': 'PUT',
             'servers': None,
         },
         params_map={
             'all': [],
             'required': [],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {},
             'attribute_map': {},
             'location_map': {},
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': [],
         },
         api_client=api_client)
示例#6
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.add_report_endpoint = _Endpoint(
         settings={
             'response_type': (Report,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/report',
             'operation_id': 'add_report',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'report_parameters',
             ],
             'required': [
                 'report_parameters',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'report_parameters':
                     (ReportParameters,),
             },
             'attribute_map': {
             },
             'location_map': {
                 'report_parameters': 'body',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [
                 'application/json'
             ]
         },
         api_client=api_client
     )
     self.delete_report_endpoint = _Endpoint(
         settings={
             'response_type': None,
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/report/{id}',
             'operation_id': 'delete_report',
             'http_method': 'DELETE',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
             ],
             'required': [
                 'id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
             },
             'location_map': {
                 'id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [],
             'content_type': [],
         },
         api_client=api_client
     )
     self.download_report_endpoint = _Endpoint(
         settings={
             'response_type': (file_type,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/report/{id}/download/{filename}',
             'operation_id': 'download_report',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
                 'filename',
             ],
             'required': [
                 'id',
                 'filename',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
                 'filename':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
                 'filename': 'filename',
             },
             'location_map': {
                 'id': 'path',
                 'filename': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'text/plain',
                 'application/csv',
                 'application/json',
                 'text/html',
                 'application/zip'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.get_report_endpoint = _Endpoint(
         settings={
             'response_type': (Report,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/report/{id}',
             'operation_id': 'get_report',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
             ],
             'required': [
                 'id',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
             },
             'location_map': {
                 'id': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.get_report_list_endpoint = _Endpoint(
         settings={
             'response_type': (ReportList,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/report',
             'operation_id': 'get_report_list',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'page',
                 'page_size',
                 'project',
             ],
             'required': [],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'page':
                     (int,),
                 'page_size':
                     (int,),
                 'project':
                     (str,),
             },
             'attribute_map': {
                 'page': 'page',
                 'page_size': 'pageSize',
                 'project': 'project',
             },
             'location_map': {
                 'page': 'query',
                 'page_size': 'query',
                 'project': 'query',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.get_report_types_endpoint = _Endpoint(
         settings={
             'response_type': ([InlineResponse200],),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/report/types',
             'operation_id': 'get_report_types',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
             ],
             'required': [],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
             },
             'attribute_map': {
             },
             'location_map': {
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'application/json'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
     self.view_report_endpoint = _Endpoint(
         settings={
             'response_type': (file_type,),
             'auth': [
                 'jwt'
             ],
             'endpoint_path': '/report/{id}/view/{filename}',
             'operation_id': 'view_report',
             'http_method': 'GET',
             'servers': None,
         },
         params_map={
             'all': [
                 'id',
                 'filename',
             ],
             'required': [
                 'id',
                 'filename',
             ],
             'nullable': [
             ],
             'enum': [
             ],
             'validation': [
             ]
         },
         root_map={
             'validations': {
             },
             'allowed_values': {
             },
             'openapi_types': {
                 'id':
                     (str,),
                 'filename':
                     (str,),
             },
             'attribute_map': {
                 'id': 'id',
                 'filename': 'filename',
             },
             'location_map': {
                 'id': 'path',
                 'filename': 'path',
             },
             'collection_format_map': {
             }
         },
         headers_map={
             'accept': [
                 'text/plain',
                 'application/csv',
                 'application/json',
                 'text/html',
                 'application/zip'
             ],
             'content_type': [],
         },
         api_client=api_client
     )
示例#7
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.add_import_endpoint = _Endpoint(
         settings={
             'response_type': (ModelImport, ),
             'auth': ['jwt'],
             'endpoint_path': '/import',
             'operation_id': 'add_import',
             'http_method': 'POST',
             'servers': None,
         },
         params_map={
             'all': [
                 'import_file',
                 'project',
                 'metadata',
                 'source',
             ],
             'required': [
                 'import_file',
             ],
             'nullable': [],
             'enum': [],
             'validation': []
         },
         root_map={
             'validations': {},
             'allowed_values': {},
             'openapi_types': {
                 'import_file': (file_type, ),
                 'project': (str, ),
                 'metadata': ({
                     str: (bool, date, datetime, dict, float, int, list,
                           str, none_type)
                 }, ),
                 'source': (str, ),
             },
             'attribute_map': {
                 'import_file': 'importFile',
                 'project': 'project',
                 'metadata': 'metadata',
                 'source': 'source',
             },
             'location_map': {
                 'import_file': 'form',
                 'project': 'form',
                 'metadata': 'form',
                 'source': 'form',
             },
             'collection_format_map': {}
         },
         headers_map={
             'accept': ['application/json'],
             'content_type': ['multipart/form-data']
         },
         api_client=api_client)
     self.get_import_endpoint = _Endpoint(settings={
         'response_type': (ModelImport, ),
         'auth': ['jwt'],
         'endpoint_path': '/import/{id}',
         'operation_id': 'get_import',
         'http_method': 'GET',
         'servers': None,
     },
                                          params_map={
                                              'all': [
                                                  'id',
                                              ],
                                              'required': [
                                                  'id',
                                              ],
                                              'nullable': [],
                                              'enum': [],
                                              'validation': []
                                          },
                                          root_map={
                                              'validations': {},
                                              'allowed_values': {},
                                              'openapi_types': {
                                                  'id': (str, ),
                                              },
                                              'attribute_map': {
                                                  'id': 'id',
                                              },
                                              'location_map': {
                                                  'id': 'path',
                                              },
                                              'collection_format_map': {}
                                          },
                                          headers_map={
                                              'accept':
                                              ['application/json'],
                                              'content_type': [],
                                          },
                                          api_client=api_client)
示例#8
0
 def __init__(self, api_client=None):
     if api_client is None:
         api_client = ApiClient()
     self.api_client = api_client
     self.activate_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/login/activate/{activation_code}',
         'operation_id': 'activate',
         'http_method': 'GET',
         'servers': None,
     },
                                        params_map={
                                            'all': [
                                                'activation_code',
                                            ],
                                            'required': [
                                                'activation_code',
                                            ],
                                            'nullable': [],
                                            'enum': [],
                                            'validation': []
                                        },
                                        root_map={
                                            'validations': {},
                                            'allowed_values': {},
                                            'openapi_types': {
                                                'activation_code': (str, ),
                                            },
                                            'attribute_map': {
                                                'activation_code':
                                                'activation_code',
                                            },
                                            'location_map': {
                                                'activation_code': 'path',
                                            },
                                            'collection_format_map': {}
                                        },
                                        headers_map={
                                            'accept': [],
                                            'content_type': [],
                                        },
                                        api_client=api_client)
     self.auth_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/login/auth/{provider}',
         'operation_id': 'auth',
         'http_method': 'GET',
         'servers': None,
     },
                                    params_map={
                                        'all': [
                                            'provider',
                                        ],
                                        'required': [
                                            'provider',
                                        ],
                                        'nullable': [],
                                        'enum': [],
                                        'validation': []
                                    },
                                    root_map={
                                        'validations': {},
                                        'allowed_values': {},
                                        'openapi_types': {
                                            'provider': (str, ),
                                        },
                                        'attribute_map': {
                                            'provider': 'provider',
                                        },
                                        'location_map': {
                                            'provider': 'path',
                                        },
                                        'collection_format_map': {}
                                    },
                                    headers_map={
                                        'accept': [],
                                        'content_type': [],
                                    },
                                    api_client=api_client)
     self.config_endpoint = _Endpoint(settings={
         'response_type': (LoginConfig, ),
         'auth': [],
         'endpoint_path': '/login/config/{provider}',
         'operation_id': 'config',
         'http_method': 'GET',
         'servers': None,
     },
                                      params_map={
                                          'all': [
                                              'provider',
                                          ],
                                          'required': [
                                              'provider',
                                          ],
                                          'nullable': [],
                                          'enum': [],
                                          'validation': []
                                      },
                                      root_map={
                                          'validations': {},
                                          'allowed_values': {},
                                          'openapi_types': {
                                              'provider': (str, ),
                                          },
                                          'attribute_map': {
                                              'provider': 'provider',
                                          },
                                          'location_map': {
                                              'provider': 'path',
                                          },
                                          'collection_format_map': {}
                                      },
                                      headers_map={
                                          'accept': ['application/json'],
                                          'content_type': [],
                                      },
                                      api_client=api_client)
     self.login_endpoint = _Endpoint(settings={
         'response_type': (LoginToken, ),
         'auth': [],
         'endpoint_path': '/login',
         'operation_id': 'login',
         'http_method': 'POST',
         'servers': None,
     },
                                     params_map={
                                         'all': [
                                             'credentials',
                                         ],
                                         'required': [],
                                         'nullable': [],
                                         'enum': [],
                                         'validation': []
                                     },
                                     root_map={
                                         'validations': {},
                                         'allowed_values': {},
                                         'openapi_types': {
                                             'credentials': (Credentials, ),
                                         },
                                         'attribute_map': {},
                                         'location_map': {
                                             'credentials': 'body',
                                         },
                                         'collection_format_map': {}
                                     },
                                     headers_map={
                                         'accept': ['application/json'],
                                         'content_type':
                                         ['application/json']
                                     },
                                     api_client=api_client)
     self.recover_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/login/recover',
         'operation_id': 'recover',
         'http_method': 'POST',
         'servers': None,
     },
                                       params_map={
                                           'all': [
                                               'account_recovery',
                                           ],
                                           'required': [],
                                           'nullable': [],
                                           'enum': [],
                                           'validation': []
                                       },
                                       root_map={
                                           'validations': {},
                                           'allowed_values': {},
                                           'openapi_types': {
                                               'account_recovery':
                                               (AccountRecovery, ),
                                           },
                                           'attribute_map': {},
                                           'location_map': {
                                               'account_recovery': 'body',
                                           },
                                           'collection_format_map': {}
                                       },
                                       headers_map={
                                           'accept': [],
                                           'content_type':
                                           ['application/json']
                                       },
                                       api_client=api_client)
     self.register_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/login/register',
         'operation_id': 'register',
         'http_method': 'POST',
         'servers': None,
     },
                                        params_map={
                                            'all': [
                                                'account_registration',
                                            ],
                                            'required': [],
                                            'nullable': [],
                                            'enum': [],
                                            'validation': []
                                        },
                                        root_map={
                                            'validations': {},
                                            'allowed_values': {},
                                            'openapi_types': {
                                                'account_registration':
                                                (AccountRegistration, ),
                                            },
                                            'attribute_map': {},
                                            'location_map': {
                                                'account_registration':
                                                'body',
                                            },
                                            'collection_format_map': {}
                                        },
                                        headers_map={
                                            'accept': ['application/json'],
                                            'content_type':
                                            ['application/json']
                                        },
                                        api_client=api_client)
     self.reset_password_endpoint = _Endpoint(settings={
         'response_type': None,
         'auth': [],
         'endpoint_path': '/login/reset-password',
         'operation_id': 'reset_password',
         'http_method': 'POST',
         'servers': None,
     },
                                              params_map={
                                                  'all': [
                                                      'account_reset',
                                                  ],
                                                  'required': [],
                                                  'nullable': [],
                                                  'enum': [],
                                                  'validation': []
                                              },
                                              root_map={
                                                  'validations': {},
                                                  'allowed_values': {},
                                                  'openapi_types': {
                                                      'account_reset':
                                                      (AccountReset, ),
                                                  },
                                                  'attribute_map': {},
                                                  'location_map': {
                                                      'account_reset':
                                                      'body',
                                                  },
                                                  'collection_format_map':
                                                  {}
                                              },
                                              headers_map={
                                                  'accept': [],
                                                  'content_type':
                                                  ['application/json']
                                              },
                                              api_client=api_client)
     self.support_endpoint = _Endpoint(settings={
         'response_type': (LoginSupport, ),
         'auth': [],
         'endpoint_path': '/login/support',
         'operation_id': 'support',
         'http_method': 'GET',
         'servers': None,
     },
                                       params_map={
                                           'all': [],
                                           'required': [],
                                           'nullable': [],
                                           'enum': [],
                                           'validation': []
                                       },
                                       root_map={
                                           'validations': {},
                                           'allowed_values': {},
                                           'openapi_types': {},
                                           'attribute_map': {},
                                           'location_map': {},
                                           'collection_format_map': {}
                                       },
                                       headers_map={
                                           'accept': ['application/json'],
                                           'content_type': [],
                                       },
                                       api_client=api_client)