class ProjectsLocationsCertificateTemplates extends Resource (View source)

The "certificateTemplates" collection of methods.

Typical usage is:

 $privatecaService = new Google\Service\CertificateAuthorityService(...);
 $certificateTemplates = $privatecaService->projects_locations_certificateTemplates;

Methods

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

Create a new CertificateTemplate in a given Project and Location.

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

DeleteCertificateTemplate deletes a CertificateTemplate.

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

Returns a CertificateTemplate. (certificateTemplates.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.

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

Lists CertificateTemplates.

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

Update a CertificateTemplate. (certificateTemplates.patch)

setIamPolicy(string $resource, SetIamPolicyRequest $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. (certificateTemplates.setIamPolicy)

testIamPermissions(string $resource, TestIamPermissionsRequest $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, CertificateTemplate $postBody, array $optParams = [])

Create a new CertificateTemplate in a given Project and Location.

(certificateTemplates.create)

Parameters

string $parent

Required. The resource name of the location associated with the CertificateTemplate, in the format projects/locations.

CertificateTemplate $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

DeleteCertificateTemplate deletes a CertificateTemplate.

(certificateTemplates.delete)

Parameters

string $name

Required. The resource name for this CertificateTemplate in the format projects/locations/certificateTemplates.

array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

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

Returns a CertificateTemplate. (certificateTemplates.get)

Parameters

string $name

Required. The name of the CertificateTemplate to get.

array $optParams

Optional parameters.

Return Value

CertificateTemplate

Exceptions

Exception

Policy 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.

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

Policy

Exceptions

Exception

ListCertificateTemplatesResponse listProjectsLocationsCertificateTemplates(string $parent, array $optParams = [])

Lists CertificateTemplates.

(certificateTemplates.listProjectsLocationsCertificateTemplates)

Parameters

string $parent

Required. The resource name of the location associated with the CertificateTemplates, in the format projects/locations.

array $optParams

Optional parameters.

Return Value

ListCertificateTemplatesResponse

Exceptions

Exception

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

Update a CertificateTemplate. (certificateTemplates.patch)

Parameters

string $name

Output only. The resource name for this CertificateTemplate in the format projects/locations/certificateTemplates.

CertificateTemplate $postBody
array $optParams

Optional parameters.

Return Value

Operation

Exceptions

Exception

Policy setIamPolicy(string $resource, SetIamPolicyRequest $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. (certificateTemplates.setIamPolicy)

Parameters

string $resource

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

SetIamPolicyRequest $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

TestIamPermissionsResponse testIamPermissions(string $resource, TestIamPermissionsRequest $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. (certificateTemplates.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.

TestIamPermissionsRequest $postBody
array $optParams

Optional parameters.

Return Value

TestIamPermissionsResponse

Exceptions

Exception