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.

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. - 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 token: API token for sending authenticated requests. :return: AnalysisWithAuthenticationResponse

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. - 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 token: API token for sending authenticated requests. :return: AnalysisWithAuthenticationResponse

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 base_registry_user: Registry user to be used for pulling images from registry. :param str base_registry_password: Registry password or token to be used for pulling images from source registry. :param bool base_registry_verify_tls: Verify TLS certificates of registry from where images are pulled from during the build. :param str output_registry_user: Registry user to be used for pulling images from registry. :param str output_registry_password: Registry password or token to be used for pulling images from destination registry. :param bool output_registry_verify_tls: Verify TLS certificates of registry from where images are pulled to during the build. :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 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 base_registry_user: Registry user to be used for pulling images from registry. :param str base_registry_password: Registry password or token to be used for pulling images from source registry. :param bool base_registry_verify_tls: Verify TLS certificates of registry from where images are pulled from during the build. :param str output_registry_user: Registry user to be used for pulling images from registry. :param str output_registry_password: Registry password or token to be used for pulling images from destination registry. :param bool output_registry_verify_tls: Verify TLS certificates of registry from where images are pulled to during the build. :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 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_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.

thamos.swagger_client.thoth.container_images_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.container_images_api.ContainerImagesApi(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_container_images(**kwargs)[source]

Get analyzed container images. # 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_container_images(async_req=True) >>> result = thread.get()

:param async_req bool :return: ContainerImagesResponse

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

list_container_images_with_http_info(**kwargs)[source]

Get analyzed container images. # 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_container_images_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: ContainerImagesResponse

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

thamos.swagger_client.thoth.hardware_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.hardware_api.HardwareApi(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.

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.

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.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_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.

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 ProvenanceInput body: Input to be checked for provenance. (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. :param str token: API token for sending authenticated requests. :return: AnalysisWithAuthenticationResponse

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 ProvenanceInput body: Input to be checked for provenance. (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. :param str token: API token for sending authenticated requests. :return: AnalysisWithAuthenticationResponse

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_package_from_imported_packages(import_name, **kwargs)[source]

List imported packages’ names. # 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_from_imported_packages(import_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str import_name: Names of the Python Packages for the given import package name. (required) :return: PythonPackageNameResponse

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

get_package_from_imported_packages_with_http_info(import_name, **kwargs)[source]

List imported packages’ names. # 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_from_imported_packages_with_http_info(import_name, async_req=True) >>> result = thread.get()

:param async_req bool :param str import_name: Names of the Python Packages for the given import package name. (required) :return: PythonPackageNameResponse

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

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.

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_platform(**kwargs)[source]

Get supported platforms 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.get_python_platform(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPlatforms

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

get_python_platform_with_http_info(**kwargs)[source]

Get supported platforms 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.get_python_platform_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: PythonPlatforms

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.

list_python_package_versions(name, **kwargs)[source]

List versions of the given Python package. # 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_versions(name, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. (required) :param int page: Page offset in pagination. :return: PythonPackageVersionsResponse

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

list_python_package_versions_with_http_info(name, **kwargs)[source]

List versions of the given Python package. # 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_versions_with_http_info(name, async_req=True) >>> result = thread.get()

:param async_req bool :param str name: Name of the Python Package. (required) :param int page: Page offset in pagination. :return: PythonPackageVersionsResponse

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

thamos.swagger_client.thoth.s2i_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.s2i_api.S2iApi(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_s2i_python(**kwargs)[source]

Get available S2I base container images for Python applications. # 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_s2i_python(async_req=True) >>> result = thread.get()

:param async_req bool :return: S2IPythonResponse

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

list_s2i_python_with_http_info(**kwargs)[source]

Get available S2I base container images for Python applications. # 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_s2i_python_with_http_info(async_req=True) >>> result = thread.get()

:param async_req bool :return: S2IPythonResponse

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

Module contents