class ProjectsLocationsServerTlsPolicies extends Resource (View source)

The "serverTlsPolicies" collection of methods.

Typical usage is:

 $networksecurityService = new Google\Service\NetworkSecurity(...);
 $serverTlsPolicies = $networksecurityService->projects_locations_serverTlsPolicies;

Methods

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

Creates a new ServerTlsPolicy in a given project and location.

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

Deletes a single ServerTlsPolicy. (serverTlsPolicies.delete)

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

Gets details of a single ServerTlsPolicy. (serverTlsPolicies.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.

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

Lists ServerTlsPolicies in a given project and location.

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

Updates the parameters of a single ServerTlsPolicy. (serverTlsPolicies.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. (serverTlsPolicies.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, ServerTlsPolicy $postBody, array $optParams = [])

Creates a new ServerTlsPolicy in a given project and location.

(serverTlsPolicies.create)

Parameters

string $parent

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

ServerTlsPolicy $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Deletes a single ServerTlsPolicy. (serverTlsPolicies.delete)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Gets details of a single ServerTlsPolicy. (serverTlsPolicies.get)

Parameters

string $name

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

array $optParams

Optional parameters.

Return Value

ServerTlsPolicy

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.

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

ListServerTlsPoliciesResponse listProjectsLocationsServerTlsPolicies(string $parent, array $optParams = [])

Lists ServerTlsPolicies in a given project and location.

(serverTlsPolicies.listProjectsLocationsServerTlsPolicies)

Parameters

string $parent

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

array $optParams

Optional parameters.

Return Value

ListServerTlsPoliciesResponse

Exceptions

Exception

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

Updates the parameters of a single ServerTlsPolicy. (serverTlsPolicies.patch)

Parameters

string $name

Required. Name of the ServerTlsPolicy resource. It matches the pattern projects/locations/{location}/serverTlsPolicies/{server_tls_policy}

ServerTlsPolicy $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. (serverTlsPolicies.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. (serverTlsPolicies.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