class ProjectsDatasets extends Resource (View source)

The "datasets" collection of methods.

Typical usage is:

 $datalabelingService = new Google\Service\DataLabeling(...);
 $datasets = $datalabelingService->projects_datasets;

Methods

create(string $parent, GoogleCloudDatalabelingV1beta1CreateDatasetRequest $postBody, array $optParams = [])

Creates dataset. If success return a Dataset resource. (datasets.create)

delete(string $name, array $optParams = [])

Deletes a dataset by resource name. (datasets.delete)

exportData(string $name, GoogleCloudDatalabelingV1beta1ExportDataRequest $postBody, array $optParams = [])

Exports data and annotations from dataset. (datasets.exportData)

get(string $name, array $optParams = [])

Gets dataset by resource name. (datasets.get)

importData(string $name, GoogleCloudDatalabelingV1beta1ImportDataRequest $postBody, array $optParams = [])

Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa. (datasets.importData)

listProjectsDatasets(string $parent, array $optParams = [])

Lists datasets under a project. Pagination is supported.

Details

GoogleCloudDatalabelingV1beta1Dataset create(string $parent, GoogleCloudDatalabelingV1beta1CreateDatasetRequest $postBody, array $optParams = [])

Creates dataset. If success return a Dataset resource. (datasets.create)

Parameters

string $parent

Required. Dataset resource parent, format: projects/{project_id}

GoogleCloudDatalabelingV1beta1CreateDatasetRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1Dataset

Exceptions

Exception

GoogleProtobufEmpty delete(string $name, array $optParams = [])

Deletes a dataset by resource name. (datasets.delete)

Parameters

string $name

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

array $optParams

Optional parameters.

Return Value

GoogleProtobufEmpty

Exceptions

Exception

GoogleLongrunningOperation exportData(string $name, GoogleCloudDatalabelingV1beta1ExportDataRequest $postBody, array $optParams = [])

Exports data and annotations from dataset. (datasets.exportData)

Parameters

string $name

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

GoogleCloudDatalabelingV1beta1ExportDataRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudDatalabelingV1beta1Dataset get(string $name, array $optParams = [])

Gets dataset by resource name. (datasets.get)

Parameters

string $name

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1Dataset

Exceptions

Exception

GoogleLongrunningOperation importData(string $name, GoogleCloudDatalabelingV1beta1ImportDataRequest $postBody, array $optParams = [])

Imports data into dataset based on source locations defined in request. It can be called multiple times for the same dataset. Each dataset can only have one long running operation running on it. For example, no labeling task (also long running operation) can be started while importing is still ongoing. Vice versa. (datasets.importData)

Parameters

string $name

Required. Dataset resource name, format: projects/{project_id}/datasets/{dataset_id}

GoogleCloudDatalabelingV1beta1ImportDataRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudDatalabelingV1beta1ListDatasetsResponse listProjectsDatasets(string $parent, array $optParams = [])

Lists datasets under a project. Pagination is supported.

(datasets.listProjectsDatasets)

Parameters

string $parent

Required. Dataset resource parent, format: projects/{project_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDatalabelingV1beta1ListDatasetsResponse

Exceptions

Exception