thamos.swagger_client package¶
Subpackages¶
- thamos.swagger_client.models package
- Submodules
- thamos.swagger_client.models.advise_input module
- thamos.swagger_client.models.advise_input_library_usage module
- thamos.swagger_client.models.adviser_result_response module
- thamos.swagger_client.models.adviser_result_response_metadata module
- thamos.swagger_client.models.adviser_result_response_metadata_distribution module
- thamos.swagger_client.models.adviser_result_response_metadata_distribution_version_parts module
- thamos.swagger_client.models.adviser_result_response_metadata_python module
- thamos.swagger_client.models.adviser_result_response_result module
- thamos.swagger_client.models.adviser_result_response_result_report module
- thamos.swagger_client.models.adviser_result_response_result_report_dependency_graph module
- thamos.swagger_client.models.adviser_result_response_result_report_pipeline module
- thamos.swagger_client.models.adviser_result_response_result_report_products module
- thamos.swagger_client.models.analysis_log_response module
- thamos.swagger_client.models.analysis_response module
- thamos.swagger_client.models.analysis_response_error module
- thamos.swagger_client.models.analysis_result_response module
- thamos.swagger_client.models.analysis_result_response_metadata module
- thamos.swagger_client.models.analysis_result_response_result module
- thamos.swagger_client.models.analysis_result_response_result_aicoeci module
- thamos.swagger_client.models.analysis_result_response_result_deb module
- thamos.swagger_client.models.analysis_result_response_result_debdependencies module
- thamos.swagger_client.models.analysis_result_response_result_pythonfiles module
- thamos.swagger_client.models.analysis_result_response_result_pythoninterpreters module
- thamos.swagger_client.models.analysis_result_response_result_pythonpackages module
- thamos.swagger_client.models.analysis_status_response module
- thamos.swagger_client.models.analysis_status_response_status module
- thamos.swagger_client.models.analysis_unauthorized_error module
- thamos.swagger_client.models.analysis_with_authentication_response module
- thamos.swagger_client.models.build module
- thamos.swagger_client.models.build_analysis_response module
- thamos.swagger_client.models.build_analysis_response_base_image_analysis module
- thamos.swagger_client.models.build_analysis_response_buildlog_analysis module
- thamos.swagger_client.models.build_analysis_response_error module
- thamos.swagger_client.models.build_analysis_response_error_base_image_analysis module
- thamos.swagger_client.models.build_analysis_response_error_build_log_analysis module
- thamos.swagger_client.models.build_build_log module
- thamos.swagger_client.models.callback_info module
- thamos.swagger_client.models.container_images_response module
- thamos.swagger_client.models.container_images_response_container_images module
- thamos.swagger_client.models.container_images_response_error module
- thamos.swagger_client.models.container_images_response_parameters module
- thamos.swagger_client.models.deb_dependency_item module
- thamos.swagger_client.models.image_metadata_response module
- thamos.swagger_client.models.justification module
- thamos.swagger_client.models.justification_inner module
- thamos.swagger_client.models.kebechet_metadata module
- thamos.swagger_client.models.kebechet_webhook_input module
- thamos.swagger_client.models.project_def module
- thamos.swagger_client.models.project_def_constraints module
- thamos.swagger_client.models.provenance_input module
- thamos.swagger_client.models.provenance_result_response module
- thamos.swagger_client.models.provenance_result_response_metadata module
- thamos.swagger_client.models.provenance_result_response_metadata_distribution module
- thamos.swagger_client.models.provenance_result_response_metadata_distribution_version_parts module
- thamos.swagger_client.models.provenance_result_response_result module
- thamos.swagger_client.models.provenance_result_response_result_parameters module
- thamos.swagger_client.models.python_environments module
- thamos.swagger_client.models.python_environments_environment module
- thamos.swagger_client.models.python_package_dependencies module
- thamos.swagger_client.models.python_package_dependencies_dependencies module
- thamos.swagger_client.models.python_package_dependencies_error module
- thamos.swagger_client.models.python_package_indexes module
- thamos.swagger_client.models.python_package_indexes_indexes module
- thamos.swagger_client.models.python_package_name_import_response module
- thamos.swagger_client.models.python_package_name_import_response_package_names module
- thamos.swagger_client.models.python_package_name_response_error module
- thamos.swagger_client.models.python_package_version_environments_response module
- thamos.swagger_client.models.python_package_version_metadata_response module
- thamos.swagger_client.models.python_package_version_metadata_response_error module
- thamos.swagger_client.models.python_package_version_metadata_response_metadata module
- thamos.swagger_client.models.python_package_version_metadata_response_metadata_importlib_metadata module
- thamos.swagger_client.models.python_package_version_metadata_response_metadata_importlib_metadata_entry_points module
- thamos.swagger_client.models.python_package_versions_response module
- thamos.swagger_client.models.python_package_versions_response_error module
- thamos.swagger_client.models.python_package_versions_response_versions module
- thamos.swagger_client.models.python_packages_response module
- thamos.swagger_client.models.python_packages_response_packages module
- thamos.swagger_client.models.python_platforms module
- thamos.swagger_client.models.python_stack module
- thamos.swagger_client.models.repo_init_input module
- thamos.swagger_client.models.requirements_def module
- thamos.swagger_client.models.requirements_lock_def module
- thamos.swagger_client.models.runtime_environment module
- thamos.swagger_client.models.runtime_environment_hardware module
- thamos.swagger_client.models.runtime_environment_operating_system module
- thamos.swagger_client.models.stack_info module
- thamos.swagger_client.models.unit_def module
- Module contents
- thamos.swagger_client.thoth package
- Submodules
- thamos.swagger_client.thoth.advise_api module
- thamos.swagger_client.thoth.build_analysis_api module
- thamos.swagger_client.thoth.buildlogs_api module
- thamos.swagger_client.thoth.container_images_api module
- thamos.swagger_client.thoth.environments_api module
- thamos.swagger_client.thoth.image_analysis_api module
- thamos.swagger_client.thoth.kebechet_api module
- thamos.swagger_client.thoth.provenance_api module
- thamos.swagger_client.thoth.python_packages_api module
- Module contents
Submodules¶
thamos.swagger_client.api_client module¶
Thoth User API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.7.0-dev
Generated by: https://github.com/swagger-api/swagger-codegen.git
- class thamos.swagger_client.api_client.ApiClient(configuration=None, header_name=None, header_value=None, cookie=None)[source]¶
Bases:
object
Generic API client for Swagger client library builds.
Swagger generic API client. This client handles the client- server communication, and is invariant across implementations. Specifics of the methods and models for each application are generated from the Swagger templates.
NOTE: This class is auto generated by the swagger code generator program. Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually.
- Parameters
configuration – .Configuration object for this client
header_name – a header to pass when making calls to the API.
header_value – a header value to pass when making calls to the API.
cookie – a cookie to include in the header when making calls to the API
- NATIVE_TYPES_MAPPING = {'bool': <class 'bool'>, 'date': <class 'datetime.date'>, 'datetime': <class 'datetime.datetime'>, 'float': <class 'float'>, 'int': <class 'int'>, 'long': <class 'int'>, 'object': <class 'object'>, 'str': <class 'str'>}¶
- PRIMITIVE_TYPES = (<class 'float'>, <class 'bool'>, <class 'bytes'>, <class 'str'>, <class 'int'>)¶
- call_api(resource_path, method, path_params=None, query_params=None, header_params=None, body=None, post_params=None, files=None, response_type=None, auth_settings=None, async_req=None, _return_http_data_only=None, collection_formats=None, _preload_content=True, _request_timeout=None)[source]¶
Makes the HTTP request (synchronous) and returns deserialized data.
To make an async request, set the async_req parameter.
- Parameters
resource_path – Path to method endpoint.
method – Method to call.
path_params – Path parameters in the url.
query_params – Query parameters in the url.
header_params – Header parameters to be placed in the request header.
body – Request body.
dict (files) – Request post form parameters, for application/x-www-form-urlencoded, multipart/form-data.
list (auth_settings) – Auth Settings names for the request.
response – Response data type.
dict – key -> filename, value -> filepath, for multipart/form-data.
bool (async_req) – execute request asynchronously
_return_http_data_only – response data without head status code and headers
collection_formats – dict of collection formats for path, query, header, and post parameters.
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns
If async_req parameter is True, the request will be called asynchronously. The method will return the request thread. If parameter async_req is False or missing, then the method will return the response directly.
- deserialize(response, response_type)[source]¶
Deserializes response into an object.
- Parameters
response – RESTResponse object to be deserialized.
response_type – class literal for deserialized object, or string of class name.
- Returns
deserialized object.
- parameters_to_tuples(params, collection_formats)[source]¶
Get parameters as list of tuples, formatting collections.
- Parameters
params – Parameters as dict or list of two-tuples
collection_formats (dict) – Parameter collection formats
- Returns
Parameters as list of tuples, collections formatted
- prepare_post_parameters(post_params=None, files=None)[source]¶
Builds form parameters.
- Parameters
post_params – Normal form parameters.
files – File parameters.
- Returns
Form parameters with files.
- request(method, url, query_params=None, headers=None, post_params=None, body=None, _preload_content=True, _request_timeout=None)[source]¶
Makes the HTTP request using RESTClient.
- sanitize_for_serialization(obj)[source]¶
Builds a JSON POST object.
If obj is None, return None. If obj is str, int, long, float, bool, return directly. If obj is datetime.datetime, datetime.date
convert to string in iso8601 format.
If obj is list, sanitize each element in the list. If obj is dict, return the dict. If obj is swagger model, return the properties dict.
- Parameters
obj – The data to serialize.
- Returns
The serialized form of data.
- select_header_accept(accepts)[source]¶
Returns Accept based on an array of accepts provided.
- Parameters
accepts – List of headers.
- Returns
Accept (e.g. application/json).
- select_header_content_type(content_types)[source]¶
Returns Content-Type based on an array of content_types provided.
- Parameters
content_types – List of content-types.
- Returns
Content-Type (e.g. application/json).
- update_params_for_auth(headers, querys, auth_settings)[source]¶
Updates header and query params based on authentication setting.
- Parameters
headers – Header parameters dict to be updated.
querys – Query parameters tuple list to be updated.
auth_settings – Authentication setting identifiers list.
- property user_agent¶
User agent for this API client
thamos.swagger_client.configuration module¶
Thoth User API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.7.0-dev
Generated by: https://github.com/swagger-api/swagger-codegen.git
- class thamos.swagger_client.configuration.Configuration[source]¶
Bases:
object
NOTE: This class is auto generated by the swagger code generator program.
Ref: https://github.com/swagger-api/swagger-codegen Do not edit the class manually.
- auth_settings()[source]¶
Gets Auth Settings dict for api client.
- Returns
The Auth Settings information dict.
- get_api_key_with_prefix(identifier)[source]¶
Gets API key (with prefix if set).
- Parameters
identifier – The identifier of apiKey.
- Returns
The token for api key authentication.
- get_basic_auth_token()[source]¶
Gets HTTP basic authentication header (string).
- Returns
The token for basic HTTP authentication.
- property logger_file¶
The logger file.
If the logger_file is None, then add stream handler and remove file handler. Otherwise, add file handler and remove stream handler.
- Parameters
value – The logger_file path.
- Type
- property logger_format¶
The logger format.
The logger_formatter will be updated when sets logger_format.
- Parameters
value – The format string.
- Type
thamos.swagger_client.rest module¶
Thoth User API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.7.0-dev
Generated by: https://github.com/swagger-api/swagger-codegen.git
- exception thamos.swagger_client.rest.ApiException(status=None, reason=None, http_resp=None)[source]¶
Bases:
Exception
- class thamos.swagger_client.rest.RESTClientObject(configuration, pools_size=4, maxsize=None)[source]¶
Bases:
object
- DELETE(url, headers=None, query_params=None, body=None, _preload_content=True, _request_timeout=None)[source]¶
- OPTIONS(url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, _request_timeout=None)[source]¶
- PATCH(url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, _request_timeout=None)[source]¶
- POST(url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, _request_timeout=None)[source]¶
- PUT(url, headers=None, query_params=None, post_params=None, body=None, _preload_content=True, _request_timeout=None)[source]¶
- request(method, url, query_params=None, headers=None, body=None, post_params=None, _preload_content=True, _request_timeout=None)[source]¶
Perform requests.
- Parameters
method – http request method
url – http request url
query_params – query parameters in the url
headers – http request headers
body – request json body, for application/json
post_params – request post parameters, application/x-www-form-urlencoded and multipart/form-data
_preload_content – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
Module contents¶
Thoth User API
No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501
OpenAPI spec version: 0.7.0-dev
Generated by: https://github.com/swagger-api/swagger-codegen.git