class Projects extends Resource (View source)

The "projects" collection of methods.

Typical usage is:

 $accessapprovalService = new Google\Service\AccessApproval(...);
 $projects = $accessapprovalService->projects;

Methods

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

Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled.

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

Gets the settings associated with a project, folder, or organization.

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

Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests. (projects.getServiceAccount)

updateAccessApprovalSettings(string $name, AccessApprovalSettings $postBody, array $optParams = [])

Updates the settings associated with a project, folder, or organization.

Details

AccessapprovalEmpty deleteAccessApprovalSettings(string $name, array $optParams = [])

Deletes the settings associated with a project, folder, or organization. This will have the effect of disabling Access Approval for the project, folder, or organization, but only if all ancestors also have Access Approval disabled.

If Access Approval is enabled at a higher level of the hierarchy, then Access Approval will still be enabled at this level as the settings are inherited. (projects.deleteAccessApprovalSettings)

Parameters

string $name

Name of the AccessApprovalSettings to delete.

array $optParams

Optional parameters.

Return Value

AccessapprovalEmpty

Exceptions

Exception

AccessApprovalSettings getAccessApprovalSettings(string $name, array $optParams = [])

Gets the settings associated with a project, folder, or organization.

(projects.getAccessApprovalSettings)

Parameters

string $name

The name of the AccessApprovalSettings to retrieve. Format: "{projects|folders|organizations}/{id}/accessApprovalSettings"

array $optParams

Optional parameters.

Return Value

AccessApprovalSettings

Exceptions

Exception

AccessApprovalServiceAccount getServiceAccount(string $name, array $optParams = [])

Retrieves the service account that is used by Access Approval to access KMS keys for signing approved approval requests. (projects.getServiceAccount)

Parameters

string $name

Name of the AccessApprovalServiceAccount to retrieve.

array $optParams

Optional parameters.

Return Value

AccessApprovalServiceAccount

Exceptions

Exception

AccessApprovalSettings updateAccessApprovalSettings(string $name, AccessApprovalSettings $postBody, array $optParams = [])

Updates the settings associated with a project, folder, or organization.

Settings to update are determined by the value of field_mask. (projects.updateAccessApprovalSettings)

Parameters

string $name

The resource name of the settings. Format is one of: "projects/{project}/accessApprovalSettings" "folders/{folder}/accessApprovalSettings" * "organizations/{organization}/accessApprovalSettings"

AccessApprovalSettings $postBody
array $optParams

Optional parameters.

Return Value

AccessApprovalSettings

Exceptions

Exception