class EnterprisesPolicies extends Resource (View source)

The "policies" collection of methods.

Typical usage is:

 $androidmanagementService = new Google\Service\AndroidManagement(...);
 $policies = $androidmanagementService->enterprises_policies;

Methods

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

Deletes a policy. This operation is only permitted if no devices are currently referencing the policy. (policies.delete)

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

Gets a policy. (policies.get)

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

Lists policies for a given enterprise. (policies.listEnterprisesPolicies)

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

Updates or creates a policy. (policies.patch)

Details

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

Deletes a policy. This operation is only permitted if no devices are currently referencing the policy. (policies.delete)

Parameters

string $name

The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.

array $optParams

Optional parameters.

Return Value

AndroidmanagementEmpty

Exceptions

Exception

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

Gets a policy. (policies.get)

Parameters

string $name

The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.

array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception

ListPoliciesResponse listEnterprisesPolicies(string $parent, array $optParams = [])

Lists policies for a given enterprise. (policies.listEnterprisesPolicies)

Parameters

string $parent

The name of the enterprise in the form enterprises/{enterpriseId}.

array $optParams

Optional parameters.

Return Value

ListPoliciesResponse

Exceptions

Exception

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

Updates or creates a policy. (policies.patch)

Parameters

string $name

The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.

Policy $postBody
array $optParams

Optional parameters.

Return Value

Policy

Exceptions

Exception