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 |
Cancel a data generation job. Cancels the specified data generation job if it is still in progress. |
| create_generation_job |
Create a data generation job. Submits a new data generation job for asynchronous execution. |
| delete_generation_job |
Delete a data generation job. Removes the specified data generation job and its associated output. |
| get_generation_job |
Get a data generation job. Retrieves the specified data generation job and its current status. |
| list_generation_jobs |
List data generation jobs. Returns a list of data generation jobs. |
cancel_generation_job
Cancel a data generation job.
Cancels the specified data generation job if it is still in progress.
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
Create a data generation job.
Submits a new data generation job for asynchronous execution.
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
Delete a data generation job.
Removes the specified data generation job and its associated output.
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 a data generation job.
Retrieves the specified data generation job and its current status.
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
List 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 |
|---|---|