class ProjectsLocationsLakesContent extends Resource (View source)

The "content" collection of methods.

Typical usage is:

 $dataplexService = new Google\Service\CloudDataplex(...);
 $content = $dataplexService->projects_locations_lakes_content;

Methods

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

Create a content. (content.create)

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

Delete a content. (content.delete)

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

Get a content resource. (content.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.

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

List content. (content.listProjectsLocationsLakesContent)

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

Update a content. Only supports full resource update. (content.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. (content.testIamPermissions)

Details

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

Create a content. (content.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. (content.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. (content.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.

(content.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 listProjectsLocationsLakesContent(string $parent, array $optParams = [])

List content. (content.listProjectsLocationsLakesContent)

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. (content.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. (content.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. (content.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