class ProjectsLocationsLakesContentitems extends Resource (View source)

The "contentitems" collection of methods.

Typical usage is:

 $dataplexService = new Google\Service\CloudDataplex(...);
 $contentitems = $dataplexService->projects_locations_lakes_contentitems;

Methods

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

Create a content. (contentitems.create)

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

Delete a content. (contentitems.delete)

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

Get a content resource. (contentitems.get)

getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a contentitem resource. A NOT_FOUND error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.Caller must have Google IAM dataplex.content.getIamPolicy permission on the resource.

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

List content. (contentitems.listProjectsLocationsLakesContentitems)

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

Update a content. Only supports full resource update. (contentitems.patch)

setIamPolicy(string $resource, GoogleIamV1SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified contentitem resource.

testIamPermissions(string $resource, GoogleIamV1TestIamPermissionsRequest $postBody, array $optParams = [])

Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (a NOT_FOUND error is not returned).A caller is not required to have Google IAM permission to make this request.Note: This operation is designed to be used for building permission- aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. (contentitems.testIamPermissions)

Details

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

Create a content. (contentitems.create)

Parameters

string $parent

Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}

GoogleCloudDataplexV1Content $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDataplexV1Content

Exceptions

Exception

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

Delete a content. (contentitems.delete)

Parameters

string $name

Required. The resource name of the content: projects/{pro ject_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}

array $optParams

Optional parameters.

Return Value

DataplexEmpty

Exceptions

Exception

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

Get a content resource. (contentitems.get)

Parameters

string $name

Required. The resource name of the content: projects/{pro ject_id}/locations/{location_id}/lakes/{lake_id}/content/{content_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDataplexV1Content

Exceptions

Exception

GoogleIamV1Policy getIamPolicy(string $resource, array $optParams = [])

Gets the access control policy for a contentitem resource. A NOT_FOUND error is returned if the resource does not exist. An empty policy is returned if the resource exists but does not have a policy set on it.Caller must have Google IAM dataplex.content.getIamPolicy permission on the resource.

(contentitems.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.

array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

Exceptions

Exception

GoogleCloudDataplexV1ListContentResponse listProjectsLocationsLakesContentitems(string $parent, array $optParams = [])

List content. (contentitems.listProjectsLocationsLakesContentitems)

Parameters

string $parent

Required. The resource name of the parent lake: projects/{project_id}/locations/{location_id}/lakes/{lake_id}

array $optParams

Optional parameters.

Return Value

GoogleCloudDataplexV1ListContentResponse

Exceptions

Exception

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

Update a content. Only supports full resource update. (contentitems.patch)

Parameters

string $name

Output only. The relative resource name of the content, of the form: projects/{project_id}/locations/{location_id}/lakes/{lake_id}/co ntent/{content_id}

GoogleCloudDataplexV1Content $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudDataplexV1Content

Exceptions

Exception

GoogleIamV1Policy setIamPolicy(string $resource, GoogleIamV1SetIamPolicyRequest $postBody, array $optParams = [])

Sets the access control policy on the specified contentitem resource.

Replaces any existing policy.Caller must have Google IAM dataplex.content.setIamPolicy permission on the resource. (contentitems.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.

GoogleIamV1SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

Exceptions

Exception

GoogleIamV1TestIamPermissionsResponse testIamPermissions(string $resource, GoogleIamV1TestIamPermissionsRequest $postBody, array $optParams = [])

Returns the caller's permissions on a resource. If the resource does not exist, an empty set of permissions is returned (a NOT_FOUND error is not returned).A caller is not required to have Google IAM permission to make this request.Note: This operation is designed to be used for building permission- aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning. (contentitems.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names (https://cloud.google.com/apis/design/resource_names) for the appropriate value for this field.

GoogleIamV1TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1TestIamPermissionsResponse

Exceptions

Exception