Class EnterprisesResource.PoliciesResource
The "policies" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidManagement.v1
Assembly: Google.Apis.AndroidManagement.v1.dll
Syntax
public class EnterprisesResource.PoliciesResource
Constructors
PoliciesResource(IClientService)
Constructs a new resource.
Declaration
public PoliciesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Methods
Delete(string)
Deletes a policy. This operation is only permitted if no devices are currently referencing the policy.
Declaration
public virtual EnterprisesResource.PoliciesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.PoliciesResource.DeleteRequest |
Get(string)
Gets a policy.
Declaration
public virtual EnterprisesResource.PoliciesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.PoliciesResource.GetRequest |
List(string)
Lists policies for a given enterprise.
Declaration
public virtual EnterprisesResource.PoliciesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | The name of the enterprise in the form enterprises/{enterpriseId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.PoliciesResource.ListRequest |
Patch(Policy, string)
Updates or creates a policy.
Declaration
public virtual EnterprisesResource.PoliciesResource.PatchRequest Patch(Policy body, string name)
Parameters
Type | Name | Description |
---|---|---|
Policy | body | The body of the request. |
string | name | The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.PoliciesResource.PatchRequest |