BetaDatasetsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:datasets> attribute.
Constructor
BetaDatasetsOperations(*args, **kwargs)
Methods
| cancel_generation_job |
Cancels a data generation job. Cancels a data generation job by its ID. |
| create_generation_job |
Creates a data generation job. Creates a data generation job. |
| delete_generation_job |
Deletes a data generation job. Deletes a data generation job by its ID. |
| get_generation_job |
Get info about a data generation job. Gets the details of a data generation job by its ID. |
| list_generation_jobs |
Returns a list of data generation jobs. Returns a list of data generation jobs. |
cancel_generation_job
Cancels a data generation job.
Cancels a data generation job by its ID.
cancel_generation_job(job_id: str, **kwargs: Any) -> DataGenerationJob
Parameters
| Name | Description |
|---|---|
|
job_id
Required
|
The ID of the job to cancel. Required. |
Returns
| Type | Description |
|---|---|
|
DataGenerationJob. The DataGenerationJob is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
create_generation_job
Creates a data generation job.
Creates a data generation job.
create_generation_job(job: _models.DataGenerationJob, *, operation_id: str | None = None, content_type: str = 'application/json', **kwargs: Any) -> _models.DataGenerationJob
Parameters
| Name | Description |
|---|---|
|
job
Required
|
The job to create. Is one of the following types: DataGenerationJob, JSON, IO[bytes] Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
operation_id
|
Client-generated unique ID for idempotent retries. When absent, the server creates the job unconditionally. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
DataGenerationJob. The DataGenerationJob is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
delete_generation_job
Deletes a data generation job.
Deletes a data generation job by its ID.
delete_generation_job(job_id: str, **kwargs: Any) -> None
Parameters
| Name | Description |
|---|---|
|
job_id
Required
|
The ID of the job to delete. Required. |
Returns
| Type | Description |
|---|---|
|
None |
Exceptions
| Type | Description |
|---|---|
get_generation_job
Get info about a data generation job.
Gets the details of a data generation job by its ID.
get_generation_job(job_id: str, **kwargs: Any) -> DataGenerationJob
Parameters
| Name | Description |
|---|---|
|
job_id
Required
|
The ID of the job. Required. |
Returns
| Type | Description |
|---|---|
|
DataGenerationJob. The DataGenerationJob is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list_generation_jobs
Returns a list of data generation jobs.
Returns a list of data generation jobs.
list_generation_jobs(*, limit: int | None = None, order: str | PageOrder | None = None, before: str | None = None, **kwargs: Any) -> ItemPaged[DataGenerationJob]
Keyword-Only Parameters
| Name | Description |
|---|---|
|
limit
|
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 20. Default value is None. Default value: None
|
|
order
|
Sort order by the Default value: None
|
|
before
|
A cursor for use in pagination. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of DataGenerationJob |
Exceptions
| Type | Description |
|---|---|