organization_pipelines_api module#
- class edgeimpulse_api.api.organization_pipelines_api.OrganizationPipelinesApi(api_client=None)[source]#
Bases:
object
- create_organization_pipeline(
- organization_id: StrictInt[StrictInt],
- organization_update_pipeline_body: OrganizationUpdatePipelineBody,
- **kwargs,
Create pipeline
Create an organizational pipelines
- Parameters:
organization_id (int) – Organization ID (required)
organization_update_pipeline_body (OrganizationUpdatePipelineBody) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- delete_organization_pipeline(
- organization_id: StrictInt[StrictInt],
- pipeline_id: StrictInt[StrictInt],
- **kwargs,
Delete pipeline
Delete an organizational pipelines
- Parameters:
organization_id (int) – Organization ID (required)
pipeline_id (int) – Pipeline ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- get_organization_pipeline(
- organization_id: StrictInt[StrictInt],
- pipeline_id: StrictInt[StrictInt],
- **kwargs,
Get pipeline
Retrieve an organizational pipelines
- Parameters:
organization_id (int) – Organization ID (required)
pipeline_id (int) – Pipeline ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- list_archived_organization_pipelines(
- organization_id: StrictInt[StrictInt],
- project_id: StrictInt | None[StrictInt | None] = None,
- **kwargs,
List archived pipelines
Retrieve all archived organizational pipelines
- Parameters:
organization_id (int) – Organization ID (required)
project_id (int) – If set, filters on pipelines which are attached to this project.
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- list_organization_pipelines(
- organization_id: StrictInt[StrictInt],
- project_id: StrictInt | None[StrictInt | None] = None,
- **kwargs,
List pipelines
Retrieve all organizational pipelines
- Parameters:
organization_id (int) – Organization ID (required)
project_id (int) – If set, filters on pipelines which are attached to this project.
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- run_organization_pipeline(
- organization_id: StrictInt[StrictInt],
- pipeline_id: StrictInt[StrictInt],
- ignore_last_successful_run: StrictBool | None[StrictBool | None] = None,
- **kwargs,
Run pipeline
Run an organizational pipeline
- Parameters:
organization_id (int) – Organization ID (required)
pipeline_id (int) – Pipeline ID (required)
ignore_last_successful_run (bool) – If set then EI_LAST_SUCCESSFUL_RUN is not set. You can use this to re-run a pipeline from scratch.
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- stop_organization_pipeline(
- organization_id: StrictInt[StrictInt],
- pipeline_id: StrictInt[StrictInt],
- **kwargs,
Stop a running pipeline
Stops the pipeline, and marks it as failed.
- Parameters:
organization_id (int) – Organization ID (required)
pipeline_id (int) – Pipeline ID (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type:
- update_organization_pipeline(
- organization_id: StrictInt[StrictInt],
- pipeline_id: StrictInt[StrictInt],
- organization_update_pipeline_body: OrganizationUpdatePipelineBody,
- **kwargs,
Update pipeline
Update an organizational pipelines
- Parameters:
organization_id (int) – Organization ID (required)
pipeline_id (int) – Pipeline ID (required)
organization_update_pipeline_body (OrganizationUpdatePipelineBody) – (required)
async_req (bool, optional) – Whether to execute the request asynchronously.
_preload_content (bool, optional) – if False, the urllib3.HTTPResponse object will be returned without reading/decoding response data. Default is True.
_request_timeout – timeout setting for this request. If one number provided, it will be total request timeout. It can also be a pair (tuple) of (connection, read) timeouts.
- Returns:
Returns the result object. If the method is called asynchronously, returns the request thread.
- Return type: