Image ingestion jobs.
This Python package is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.PythonClientCodegen
Python 2.7 and 3.4+
If the python package is hosted on Github, you can install directly from Github
pip install git+https://github.com//.git
(you may need to run pip
with root permission: sudo pip install git+https://github.com//.git
)
Then import the package:
import cvtool_jobs_client
Install via Setuptools.
python setup.py install --user
(or sudo python setup.py install
to install the package for all users)
Then import the package:
import cvtool_jobs_client
Please follow the installation procedure and then run the following:
from __future__ import print_function
import time
import cvtool_jobs_client
from cvtool_jobs_client.rest import ApiException
from pprint import pprint
# create an instance of the API class
api_instance = cvtool_jobs_client.JobApi()
tenant_id = 'tenant_id_example' # str | tenant id
job_id = 'job_id_example' # str | job id
job_step = cvtool_jobs_client.JobStep() # JobStep | job step
try:
api_instance.add_step(tenant_id, job_id, job_step)
except ApiException as e:
print("Exception when calling JobApi->add_step: %s\n" % e)
All URIs are relative to https://kingpick-image-ingestion-jobs-api.endpoints.ciandt-cognitive-sandbox.cloud.goog/v1
Class | Method | HTTP request | Description |
---|---|---|---|
JobApi | add_step | POST /jobs/{job_id}/steps | |
JobApi | create | POST /jobs | |
JobApi | end_job | POST /jobs/{job_id}/end | |
JobApi | get | GET /jobs/{job_id} | |
JobApi | start_job | POST /jobs/{job_id}/start |
All endpoints do not require authorization.