BetaDatasetsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

AIProjectClient's

<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
str

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
DataGenerationJob or <xref:JSON> or IO[bytes]

The job to create. Is one of the following types: DataGenerationJob, JSON, IO[bytes] Required.

Keyword-Only Parameters

Name Description
operation_id
str

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
str

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
str

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
int

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 created_at timestamp of the objects. asc for ascending order anddesc for descending order. Known values are: "asc" and "desc". Default value is None.

Default value: None
before
str

A cursor for use in pagination. before is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with obj_foo, your subsequent call can include before=obj_foo in order to fetch the previous page of the list. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of DataGenerationJob

Exceptions

Type Description