Class EnterprisesResource.DevicesResource
The "devices" collection of methods.
Inherited Members
Namespace: Google.Apis.AndroidManagement.v1
Assembly: Google.Apis.AndroidManagement.v1.dll
Syntax
public class EnterprisesResource.DevicesResource
Constructors
DevicesResource(IClientService)
Constructs a new resource.
Declaration
public DevicesResource(IClientService service)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service |
Properties
Operations
Gets the Operations resource.
Declaration
public virtual EnterprisesResource.DevicesResource.OperationsResource Operations { get; }
Property Value
Type | Description |
---|---|
EnterprisesResource.DevicesResource.OperationsResource |
Methods
Delete(string)
Deletes a device. This operation wipes the device. Deleted devices do not show up in enterprises.devices.list calls and a 404 is returned from enterprises.devices.get.
Declaration
public virtual EnterprisesResource.DevicesResource.DeleteRequest Delete(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.DevicesResource.DeleteRequest |
Get(string)
Gets a device. Deleted devices will respond with a 404 error.
Declaration
public virtual EnterprisesResource.DevicesResource.GetRequest Get(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.DevicesResource.GetRequest |
IssueCommand(Command, string)
Issues a command to a device. The Operation resource returned contains a Command in its metadata field. Use the get operation method to get the status of the command.
Declaration
public virtual EnterprisesResource.DevicesResource.IssueCommandRequest IssueCommand(Command body, string name)
Parameters
Type | Name | Description |
---|---|---|
Command | body | The body of the request. |
string | name | The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.DevicesResource.IssueCommandRequest |
List(string)
Lists devices for a given enterprise. Deleted devices are not returned in the response.
Declaration
public virtual EnterprisesResource.DevicesResource.ListRequest List(string parent)
Parameters
Type | Name | Description |
---|---|---|
string | parent | The name of the enterprise in the form enterprises/{enterpriseId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.DevicesResource.ListRequest |
Patch(Device, string)
Updates a device.
Declaration
public virtual EnterprisesResource.DevicesResource.PatchRequest Patch(Device body, string name)
Parameters
Type | Name | Description |
---|---|---|
Device | body | The body of the request. |
string | name | The name of the device in the form enterprises/{enterpriseId}/devices/{deviceId}. |
Returns
Type | Description |
---|---|
EnterprisesResource.DevicesResource.PatchRequest |