target.apidocs.com.google.api.services.androidmanagement.v1.AndroidManagement.Enterprises.Policies.html Maven / Gradle / Ivy
AndroidManagement.Enterprises.Policies (Android Management API v1-rev20241114-2.0.0)
com.google.api.services.androidmanagement.v1
Class AndroidManagement.Enterprises.Policies
- java.lang.Object
-
- com.google.api.services.androidmanagement.v1.AndroidManagement.Enterprises.Policies
-
- Enclosing class:
- AndroidManagement.Enterprises
public class AndroidManagement.Enterprises.Policies
extends Object
The "policies" collection of methods.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
AndroidManagement.Enterprises.Policies.Delete
class
AndroidManagement.Enterprises.Policies.Get
class
AndroidManagement.Enterprises.Policies.List
class
AndroidManagement.Enterprises.Policies.Patch
-
Constructor Summary
Constructors
Constructor and Description
Policies()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
AndroidManagement.Enterprises.Policies.Delete
delete(String name)
Deletes a policy.
AndroidManagement.Enterprises.Policies.Get
get(String name)
Gets a policy.
AndroidManagement.Enterprises.Policies.List
list(String parent)
Lists policies for a given enterprise.
AndroidManagement.Enterprises.Policies.Patch
patch(String name,
Policy content)
Updates or creates a policy.
-
-
Method Detail
-
delete
public AndroidManagement.Enterprises.Policies.Delete delete(String name)
throws IOException
Deletes a policy. This operation is only permitted if no devices are currently referencing the
policy.
Create a request for the method "policies.delete".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
- Returns:
- the request
- Throws:
IOException
-
get
public AndroidManagement.Enterprises.Policies.Get get(String name)
throws IOException
Gets a policy.
Create a request for the method "policies.get".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
- Returns:
- the request
- Throws:
IOException
-
list
public AndroidManagement.Enterprises.Policies.List list(String parent)
throws IOException
Lists policies for a given enterprise.
Create a request for the method "policies.list".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
parent
- The name of the enterprise in the form enterprises/{enterpriseId}.
- Returns:
- the request
- Throws:
IOException
-
patch
public AndroidManagement.Enterprises.Policies.Patch patch(String name,
Policy content)
throws IOException
Updates or creates a policy.
Create a request for the method "policies.patch".
This request holds the parameters needed by the androidmanagement server. After setting any
optional parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
name
- The name of the policy in the form enterprises/{enterpriseId}/policies/{policyId}.
content
- the Policy
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy