thamos.swagger_client.thoth package

Submodules

thamos.swagger_client.thoth.advise_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.advise_api.AdviseApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_advise_python(analysis_id, **kwargs)[source]

Get computed adviser result based on its id. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: Advise id returned on advise request. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_log(analysis_id, **kwargs)[source]

Retrieve a adviser run log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_log(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of analysis for which log should be retrieved. (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_log_with_http_info(analysis_id, **kwargs)[source]

Retrieve a adviser run log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_log_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of analysis for which log should be retrieved. (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_status(analysis_id, **kwargs)[source]

Show status of an adviser computing recommendations. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_status(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested adviser run. (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_status_with_http_info(analysis_id, **kwargs)[source]

Show status of an adviser computing recommendations. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_status_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested adviser run. (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_advise_python_with_http_info(analysis_id, **kwargs)[source]

Get computed adviser result based on its id. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_advise_python_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: Advise id returned on advise request. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

list_advise_python(**kwargs)[source]

Get adviser results available. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_advise_python(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: AnalysisListingResponse

If the method is called asynchronously, returns the request thread.

list_advise_python_with_http_info(**kwargs)[source]

Get adviser results available. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_advise_python_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: AnalysisListingResponse

If the method is called asynchronously, returns the request thread.

post_advise_python(body, recommendation_type, **kwargs)[source]

Get advise for Python ecosystem. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_advise_python(body, recommendation_type, async_req=True) >>> result = thread.get()

:param async_req bool :param AdviseInput body: Specification of Python application stack with runtime specific information. (required) :param str recommendation_type: Recommendation type. (required) :param int count: Number of software stacks that should be returned. :param int limit: Limit number of software stacks scored. :param str origin: A repository where the application stack is used. This is used for tracking as well as for automated reporting when results are available. :param str source_type: A flag marking what Thoth integration is requesting adviser: - cli: Thamos CLI. - s2i: OpenShift’s S2I (Source-to-Image) build. - github_app: Qeb-Hwt GitHub App. - kebechet: Kebechet Bot. - jupyter_notebook: Jupyter Notebook (nb-requirements). :param bool dev: Consider or do not consider development dependencies when resolving stacks. :param bool debug: Run the given adviser in a verbose mode so developers can debug it. :param bool force: Do not use cached results, always run adviser. :param str github_event_type: GitHub’s event type. :param int github_check_run_id: GitHub’s event id. :param int github_installation_id: GitHub’s installation id. :param str github_base_repo_url: URL of the GitHub repository containing the Pull Request. :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

post_advise_python_with_http_info(body, recommendation_type, **kwargs)[source]

Get advise for Python ecosystem. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_advise_python_with_http_info(body, recommendation_type, async_req=True) >>> result = thread.get()

:param async_req bool :param AdviseInput body: Specification of Python application stack with runtime specific information. (required) :param str recommendation_type: Recommendation type. (required) :param int count: Number of software stacks that should be returned. :param int limit: Limit number of software stacks scored. :param str origin: A repository where the application stack is used. This is used for tracking as well as for automated reporting when results are available. :param str source_type: A flag marking what Thoth integration is requesting adviser: - cli: Thamos CLI. - s2i: OpenShift’s S2I (Source-to-Image) build. - github_app: Qeb-Hwt GitHub App. - kebechet: Kebechet Bot. - jupyter_notebook: Jupyter Notebook (nb-requirements). :param bool dev: Consider or do not consider development dependencies when resolving stacks. :param bool debug: Run the given adviser in a verbose mode so developers can debug it. :param bool force: Do not use cached results, always run adviser. :param str github_event_type: GitHub’s event type. :param int github_check_run_id: GitHub’s event id. :param int github_installation_id: GitHub’s installation id. :param str github_base_repo_url: URL of the GitHub repository containing the Pull Request. :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.build_analysis_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.build_analysis_api.BuildAnalysisApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

post_build(body, **kwargs)[source]

Analyze the given build imagestream and log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_build(body, async_req=True) >>> result = thread.get()

:param async_req bool :param Build body: Fill up the Build details such as output imagestream, base imagestream, and build log. (required) :param str registry_user: Registry user to be used for pulling images from registry. :param str registry_password: Registry password or token to be used for pulling images from registry. :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed. :param str origin: A remote where the image is being used. This is used for tracking as well as for automated reporting when results are available. :param bool debug: Run the given analyzer in a verbose mode so developers can debug analyzer. :param bool registry_verify_tls: Verify TLS certificates of registry from where images are pulled from. :param bool force: Do not use cached results, always run analysis. :return: BuildAnalysisResponse

If the method is called asynchronously, returns the request thread.

post_build_with_http_info(body, **kwargs)[source]

Analyze the given build imagestream and log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_build_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param Build body: Fill up the Build details such as output imagestream, base imagestream, and build log. (required) :param str registry_user: Registry user to be used for pulling images from registry. :param str registry_password: Registry password or token to be used for pulling images from registry. :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed. :param str origin: A remote where the image is being used. This is used for tracking as well as for automated reporting when results are available. :param bool debug: Run the given analyzer in a verbose mode so developers can debug analyzer. :param bool registry_verify_tls: Verify TLS certificates of registry from where images are pulled from. :param bool force: Do not use cached results, always run analysis. :return: BuildAnalysisResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.buildlogs_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.buildlogs_api.BuildlogsApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_buildlog(document_id, **kwargs)[source]

Retrieve the given build log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_buildlog(document_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str document_id: Build log to be retrieved. (required) :return: None

If the method is called asynchronously, returns the request thread.

get_buildlog_analyze(analysis_id, **kwargs)[source]

Retrieve a build analyzer result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_buildlog_analyze(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_buildlog_analyze_with_http_info(analysis_id, **kwargs)[source]

Retrieve a build analyzer result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_buildlog_analyze_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_buildlog_with_http_info(document_id, **kwargs)[source]

Retrieve the given build log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_buildlog_with_http_info(document_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str document_id: Build log to be retrieved. (required) :return: None

If the method is called asynchronously, returns the request thread.

list_buildlog_analyze(**kwargs)[source]

Retrieve a list of document ids for build analyzer results. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_buildlog_analyze(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: AnalysisListingResponse

If the method is called asynchronously, returns the request thread.

list_buildlog_analyze_with_http_info(**kwargs)[source]

Retrieve a list of document ids for build analyzer results. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_buildlog_analyze_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: AnalysisListingResponse

If the method is called asynchronously, returns the request thread.

list_buildlogs(**kwargs)[source]

Retrieve a list of document ids for stored build logs. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_buildlogs(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: None

If the method is called asynchronously, returns the request thread.

list_buildlogs_with_http_info(**kwargs)[source]

Retrieve a list of document ids for stored build logs. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_buildlogs_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: None

If the method is called asynchronously, returns the request thread.

post_buildlog(body, **kwargs)[source]

Store the given build log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_buildlog(body, async_req=True) >>> result = thread.get()

:param async_req bool :param Log body: Build log to be stored. (required) :return: None

If the method is called asynchronously, returns the request thread.

post_buildlog_with_http_info(body, **kwargs)[source]

Store the given build log. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_buildlog_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param Log body: Build log to be stored. (required) :return: None

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.git_hub_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.git_hub_api.GitHubApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

schedule_thamos_advise(body, **kwargs)[source]

Schedule Thamos advise for GitHub App. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_thamos_advise(body, async_req=True) >>> result = thread.get()

:param async_req bool :param QebHwtThamosAdviseInput body: Thamos advise inputs. (required) :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

schedule_thamos_advise_with_http_info(body, **kwargs)[source]

Schedule Thamos advise for GitHub App. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_thamos_advise_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param QebHwtThamosAdviseInput body: Thamos advise inputs. (required) :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.image_analysis_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.image_analysis_api.ImageAnalysisApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_analyze(analysis_id, **kwargs)[source]

Retrieve an analyzer result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: Id of analysis that results should be retrieved. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_analyze_by_hash(image_hash, **kwargs)[source]

Retrieve an analyzer result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_by_hash(image_hash, async_req=True) >>> result = thread.get()

:param async_req bool :param str image_hash: Image hash for identifying image (including hash type, now supported only “sha256”). (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_analyze_by_hash_with_http_info(image_hash, **kwargs)[source]

Retrieve an analyzer result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_by_hash_with_http_info(image_hash, async_req=True) >>> result = thread.get()

:param async_req bool :param str image_hash: Image hash for identifying image (including hash type, now supported only “sha256”). (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_analyze_log(analysis_id, **kwargs)[source]

Show logs of an analysis. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_log(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_analyze_log_with_http_info(analysis_id, **kwargs)[source]

Show logs of an analysis. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_log_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_analyze_status(analysis_id, **kwargs)[source]

Show analysis status. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_status(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_analyze_status_with_http_info(analysis_id, **kwargs)[source]

Show analysis status. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_status_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_analyze_with_http_info(analysis_id, **kwargs)[source]

Retrieve an analyzer result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_analyze_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: Id of analysis that results should be retrieved. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

list_analyze(**kwargs)[source]

Retrieve a list of document ids for analyzer results. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_analyze(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: AnalysisListingResponse

If the method is called asynchronously, returns the request thread.

list_analyze_with_http_info(**kwargs)[source]

Retrieve a list of document ids for analyzer results. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_analyze_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: AnalysisListingResponse

If the method is called asynchronously, returns the request thread.

list_software_environment_analyses_for_build(environment_name, **kwargs)[source]

List analyses for the given software environment for build. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environment_analyses_for_build(environment_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str environment_name: Software environment name for run for which analyses should be retrieved. (required) :return: object

If the method is called asynchronously, returns the request thread.

list_software_environment_analyses_for_build_with_http_info(environment_name, **kwargs)[source]

List analyses for the given software environment for build. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environment_analyses_for_build_with_http_info(environment_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str environment_name: Software environment name for run for which analyses should be retrieved. (required) :return: object

If the method is called asynchronously, returns the request thread.

list_software_environment_analyses_for_run(environment_name, **kwargs)[source]

List analyses for the given software environment for run. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environment_analyses_for_run(environment_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str environment_name: Software environment name for run for which analyses should be retrieved. (required) :return: object

If the method is called asynchronously, returns the request thread.

list_software_environment_analyses_for_run_with_http_info(environment_name, **kwargs)[source]

List analyses for the given software environment for run. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environment_analyses_for_run_with_http_info(environment_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str environment_name: Software environment name for run for which analyses should be retrieved. (required) :return: object

If the method is called asynchronously, returns the request thread.

list_software_environments_for_build(**kwargs)[source]

Retrieve a list of software environments analyzed for build. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environments_for_build(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: object

If the method is called asynchronously, returns the request thread.

list_software_environments_for_build_with_http_info(**kwargs)[source]

Retrieve a list of software environments analyzed for build. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environments_for_build_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: object

If the method is called asynchronously, returns the request thread.

list_software_environments_for_run(**kwargs)[source]

Retrieve a list of software environments analyzed for run. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environments_for_run(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: object

If the method is called asynchronously, returns the request thread.

list_software_environments_for_run_with_http_info(**kwargs)[source]

Retrieve a list of software environments analyzed for run. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environments_for_run_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: object

If the method is called asynchronously, returns the request thread.

post_analyze(image, **kwargs)[source]

Analyze the given image asynchronously. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_analyze(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of image - can also specify remote registry to pull image from. (required) :param str registry_user: Registry user to be used for pulling images from registry. :param str registry_password: Registry password or token to be used for pulling images from registry. :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed. :param str origin: A remote where the image is being used. This is used for tracking as well as for automated reporting when results are available. :param bool debug: Run the given analyzer in a verbose mode so developers can debug analyzer. :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from. :param bool force: Do not use cached results, always run analysis. :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

post_analyze_with_http_info(image, **kwargs)[source]

Analyze the given image asynchronously. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_analyze_with_http_info(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of image - can also specify remote registry to pull image from. (required) :param str registry_user: Registry user to be used for pulling images from registry. :param str registry_password: Registry password or token to be used for pulling images from registry. :param str environment_type: Type of environment (runtime or buildtime) which is being analyzed. :param str origin: A remote where the image is being used. This is used for tracking as well as for automated reporting when results are available. :param bool debug: Run the given analyzer in a verbose mode so developers can debug analyzer. :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from. :param bool force: Do not use cached results, always run analysis. :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

post_image_metadata(image, **kwargs)[source]

Get metadata for the given image # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_image_metadata(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of image - can also specify remote registry to pull image from. (required) :param str registry_user: Registry user to be used for pulling images from registry. :param str registry_password: Registry password or token to be used for pulling images from registry. :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from. :return: ImageMetadataResponse

If the method is called asynchronously, returns the request thread.

post_image_metadata_with_http_info(image, **kwargs)[source]

Get metadata for the given image # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_image_metadata_with_http_info(image, async_req=True) >>> result = thread.get()

:param async_req bool :param str image: Name of image - can also specify remote registry to pull image from. (required) :param str registry_user: Registry user to be used for pulling images from registry. :param str registry_password: Registry password or token to be used for pulling images from registry. :param bool verify_tls: Verify TLS certificates of registry from where images are pulled from. :return: ImageMetadataResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.info_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.info_api.InfoApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

list_hardware_environments(**kwargs)[source]

Retrieve a list of supported hardware environments # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_hardware_environments(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: InlineResponse200

If the method is called asynchronously, returns the request thread.

list_hardware_environments_with_http_info(**kwargs)[source]

Retrieve a list of supported hardware environments # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_hardware_environments_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: InlineResponse200

If the method is called asynchronously, returns the request thread.

list_runtime_environments(**kwargs)[source]

Retrieve a list of supported runtime environments # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_runtime_environments(async_req=True) >>> result = thread.get()

:param async_req bool :return: InlineResponse2001

If the method is called asynchronously, returns the request thread.

list_runtime_environments_with_http_info(**kwargs)[source]

Retrieve a list of supported runtime environments # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_runtime_environments_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: InlineResponse2001

If the method is called asynchronously, returns the request thread.

list_software_environments(**kwargs)[source]

Retrieve a list of supported software environments # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environments(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: InlineResponse2002

If the method is called asynchronously, returns the request thread.

list_software_environments_with_http_info(**kwargs)[source]

Retrieve a list of supported software environments # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_software_environments_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param int page: Page offset in pagination. :return: InlineResponse2002

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.kebechet_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.kebechet_api.KebechetApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

schedule_kebechet(body, **kwargs)[source]

Schedule kebechet instance from webhook # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_kebechet(body, async_req=True) >>> result = thread.get()

:param async_req bool :param dict(str, object) body: Body of a git service webhook (required) :return: None

If the method is called asynchronously, returns the request thread.

schedule_kebechet_webhook(body, **kwargs)[source]

Schedule kebechet instance from webhook # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_kebechet_webhook(body, async_req=True) >>> result = thread.get()

:param async_req bool :param KebechetWebhookInput body: Body of a git service webhook (required) :return: None

If the method is called asynchronously, returns the request thread.

schedule_kebechet_webhook_with_http_info(body, **kwargs)[source]

Schedule kebechet instance from webhook # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_kebechet_webhook_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param KebechetWebhookInput body: Body of a git service webhook (required) :return: None

If the method is called asynchronously, returns the request thread.

schedule_kebechet_with_http_info(body, **kwargs)[source]

Schedule kebechet instance from webhook # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.schedule_kebechet_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param dict(str, object) body: Body of a git service webhook (required) :return: None

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.provenance_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.provenance_api.ProvenanceApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_provenance_python(analysis_id, **kwargs)[source]

Retrieve a provenance check result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_log(analysis_id, **kwargs)[source]

Show logs of a provenance checks. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_log(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_log_with_http_info(analysis_id, **kwargs)[source]

Show logs of a provenance checks. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_log_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisLogResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_status(analysis_id, **kwargs)[source]

Show status of a provenance check. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_status(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested provenance check. (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_status_with_http_info(analysis_id, **kwargs)[source]

Show status of a provenance check. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_status_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested provenance check. (required) :return: AnalysisStatusResponse

If the method is called asynchronously, returns the request thread.

get_provenance_python_with_http_info(analysis_id, **kwargs)[source]

Retrieve a provenance check result. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_provenance_python_with_http_info(analysis_id, async_req=True) >>> result = thread.get()

:param async_req bool :param str analysis_id: An id of requested analysis. (required) :return: AnalysisResultResponse

If the method is called asynchronously, returns the request thread.

post_provenance_python(body, **kwargs)[source]

Check provenance of packages stated in an application stack. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_provenance_python(body, async_req=True) >>> result = thread.get()

:param async_req bool :param PythonStack body: Pipfile and Pipfile.lock as used by pipenv. (required) :param str origin: A repository where the application stack is used. This is used for tracking as well as for automated reporting when results are available. :param bool debug: Run the provenance checker in a verbose mode so developers can debug it. :param bool force: Do not use cached results, always run provenance checks. :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

post_provenance_python_with_http_info(body, **kwargs)[source]

Check provenance of packages stated in an application stack. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.post_provenance_python_with_http_info(body, async_req=True) >>> result = thread.get()

:param async_req bool :param PythonStack body: Pipfile and Pipfile.lock as used by pipenv. (required) :param str origin: A repository where the application stack is used. This is used for tracking as well as for automated reporting when results are available. :param bool debug: Run the provenance checker in a verbose mode so developers can debug it. :param bool force: Do not use cached results, always run provenance checks. :return: AnalysisResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.python_package_metadata_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.python_package_metadata_api.PythonPackageMetadataApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_package_metadata(name, version, index, **kwargs)[source]

Retrieve metadata relative to a Python Package from the Knowledge Graph. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_package_metadata(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. (required) :param str version: Version of the Python Package. (required) :param str index: Index url of the Python Package. (required) :return: PythonPackageMetadataResponse

If the method is called asynchronously, returns the request thread.

get_package_metadata_with_http_info(name, version, index, **kwargs)[source]

Retrieve metadata relative to a Python Package from the Knowledge Graph. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_package_metadata_with_http_info(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. (required) :param str version: Version of the Python Package. (required) :param str index: Index url of the Python Package. (required) :return: PythonPackageMetadataResponse

If the method is called asynchronously, returns the request thread.

thamos.swagger_client.thoth.python_packages_api module

Thoth User API

No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) # noqa: E501

OpenAPI spec version: 0.6.0-dev

Generated by: https://github.com/swagger-api/swagger-codegen.git

class thamos.swagger_client.thoth.python_packages_api.PythonPackagesApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

get_python_package_dependencies(name, version, index, **kwargs)[source]

Get direct dependencies of Python libraries. If environment is provided, take into account environment markers that are evaluated during dependencies installation. If environment is not provided, any environment is considered. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_dependencies(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. (required) :param str version: Version of the Python Package. (required) :param str index: Index url of the Python Package. (required) :param str os_name: Name of operating system to consider as environment where package is installed in. :param str os_version: Version of operating system to consider as environment where package is installed in. :param str python_version: Version of Python interpreter used to install the given package. :param bool marker_evaluation_result: Consider marker evaluation result for the given environment. If set to None, marker evaluation result is not taken into account. :return: PythonPackageDependencies

If the method is called asynchronously, returns the request thread.

get_python_package_dependencies_with_http_info(name, version, index, **kwargs)[source]

Get direct dependencies of Python libraries. If environment is provided, take into account environment markers that are evaluated during dependencies installation. If environment is not provided, any environment is considered. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_dependencies_with_http_info(name, version, index, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. (required) :param str version: Version of the Python Package. (required) :param str index: Index url of the Python Package. (required) :param str os_name: Name of operating system to consider as environment where package is installed in. :param str os_version: Version of operating system to consider as environment where package is installed in. :param str python_version: Version of Python interpreter used to install the given package. :param bool marker_evaluation_result: Consider marker evaluation result for the given environment. If set to None, marker evaluation result is not taken into account. :return: PythonPackageDependencies

If the method is called asynchronously, returns the request thread.

get_python_package_versions_count(**kwargs)[source]

Retrieve information from the Knowledge Graph with regards to total number of Python packages. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_versions_count(async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. :param str version: Version of the Python Package. :param str index: Index url of the Python Package. :return: PythonPackagesCountInfoResponse

If the method is called asynchronously, returns the request thread.

get_python_package_versions_count_with_http_info(**kwargs)[source]

Retrieve information from the Knowledge Graph with regards to total number of Python packages. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.get_python_package_versions_count_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. :param str version: Version of the Python Package. :param str index: Index url of the Python Package. :return: PythonPackagesCountInfoResponse

If the method is called asynchronously, returns the request thread.

list_python_package_indexes(**kwargs)[source]

List registered Python package indexes. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_indexes(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPackageIndexes

If the method is called asynchronously, returns the request thread.

list_python_package_indexes_with_http_info(**kwargs)[source]

List registered Python package indexes. # noqa: E501

This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True >>> thread = api.list_python_package_indexes_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPackageIndexes

If the method is called asynchronously, returns the request thread.

Module contents