class ProjectsLocationsClientTlsPolicies extends Resource (View source)

The "clientTlsPolicies" collection of methods.

Typical usage is:

 $networksecurityService = new Google\Service\NetworkSecurity(...);
 $clientTlsPolicies = $networksecurityService->projects_locations_clientTlsPolicies;

Methods

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

Creates a new ClientTlsPolicy in a given project and location.

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

Deletes a single ClientTlsPolicy. (clientTlsPolicies.delete)

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

Gets details of a single ClientTlsPolicy. (clientTlsPolicies.get)

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

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

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

Lists ClientTlsPolicies in a given project and location.

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

Updates the parameters of a single ClientTlsPolicy. (clientTlsPolicies.patch)

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

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (clientTlsPolicies.setIamPolicy)

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

Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. Note: This operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking.

Details

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

Creates a new ClientTlsPolicy in a given project and location.

(clientTlsPolicies.create)

Parameters

string $parent

Required. The parent resource of the ClientTlsPolicy. Must be in the format projects/locations/{location}.

ClientTlsPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single ClientTlsPolicy. (clientTlsPolicies.delete)

Parameters

string $name

Required. A name of the ClientTlsPolicy to delete. Must be in the format projects/locations/{location}/clientTlsPolicies.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single ClientTlsPolicy. (clientTlsPolicies.get)

Parameters

string $name

Required. A name of the ClientTlsPolicy to get. Must be in the format projects/locations/{location}/clientTlsPolicies.

array $optParams

Optional parameters.

Return Value

ClientTlsPolicy

Exceptions

Exception

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

Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set.

(clientTlsPolicies.getIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being requested. See Resource names for the appropriate value for this field.

array $optParams

Optional parameters.

Return Value

GoogleIamV1Policy

Exceptions

Exception

ListClientTlsPoliciesResponse listProjectsLocationsClientTlsPolicies(string $parent, array $optParams = [])

Lists ClientTlsPolicies in a given project and location.

(clientTlsPolicies.listProjectsLocationsClientTlsPolicies)

Parameters

string $parent

Required. The project and location from which the ClientTlsPolicies should be listed, specified in the format projects/locations/{location}.

array $optParams

Optional parameters.

Return Value

ListClientTlsPoliciesResponse

Exceptions

Exception

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

Updates the parameters of a single ClientTlsPolicy. (clientTlsPolicies.patch)

Parameters

string $name

Required. Name of the ClientTlsPolicy resource. It matches the pattern projects/locations/{location}/clientTlsPolicies/{client_tls_policy}

ClientTlsPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Sets the access control policy on the specified resource. Replaces any existing policy. Can return NOT_FOUND, INVALID_ARGUMENT, and PERMISSION_DENIED errors. (clientTlsPolicies.setIamPolicy)

Parameters

string $resource

REQUIRED: The resource for which the policy is being specified. See 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 permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a NOT_FOUND error. 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. (clientTlsPolicies.testIamPermissions)

Parameters

string $resource

REQUIRED: The resource for which the policy detail is being requested. See Resource names for the appropriate value for this field.

GoogleIamV1TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleIamV1TestIamPermissionsResponse

Exceptions

Exception