class ProjectsLocationsServicesMetadataImports extends Resource (View source)

The "metadataImports" collection of methods.

Typical usage is:

 $metastoreService = new Google\Service\DataprocMetastore(...);
 $metadataImports = $metastoreService->projects_locations_services_metadataImports;

Methods

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

Creates a new MetadataImport in a given project and location.

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

Gets details of a single import. (metadataImports.get)

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

Lists imports in a service.

patch(string $name, MetadataImport $postBody, array $optParams = [])

Updates a single import. Only the description field of MetadataImport is supported to be updated. (metadataImports.patch)

Details

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

Creates a new MetadataImport in a given project and location.

(metadataImports.create)

Parameters

string $parent

Required. The relative resource name of the service in which to create a metastore import, in the following form:projects/{project_number}/locations/{location_id}/services/{service_id}.

MetadataImport $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single import. (metadataImports.get)

Parameters

string $name

Required. The relative resource name of the metadata import to retrieve, in the following form:projects/{project_number}/locations /{location_id}/services/{service_id}/metadataImports/{import_id}.

array $optParams

Optional parameters.

Return Value

MetadataImport

Exceptions

Exception

ListMetadataImportsResponse listProjectsLocationsServicesMetadataImports(string $parent, array $optParams = [])

Lists imports in a service.

(metadataImports.listProjectsLocationsServicesMetadataImports)

Parameters

string $parent

Required. The relative resource name of the service whose metadata imports to list, in the following form:projects/{project_numbe r}/locations/{location_id}/services/{service_id}/metadataImports.

array $optParams

Optional parameters.

Return Value

ListMetadataImportsResponse

Exceptions

Exception

Operation patch(string $name, MetadataImport $postBody, array $optParams = [])

Updates a single import. Only the description field of MetadataImport is supported to be updated. (metadataImports.patch)

Parameters

string $name

Immutable. The relative resource name of the metadata import, of the form:projects/{project_number}/locations/{location_id}/service s/{service_id}/metadataImports/{metadata_import_id}.

MetadataImport $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception