Show / Hide Table of Contents

Class PartnersResource.DevicesResource

The "devices" collection of methods.

Inheritance
object
PartnersResource.DevicesResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.AndroidProvisioningPartner.v1
Assembly: Google.Apis.AndroidProvisioningPartner.v1.dll
Syntax
public class PartnersResource.DevicesResource

Constructors

DevicesResource(IClientService)

Constructs a new resource.

Declaration
public DevicesResource(IClientService service)
Parameters
Type Name Description
IClientService service

Methods

Claim(ClaimDeviceRequest, long)

Claims a device for a customer and adds it to zero-touch enrollment. If the device is already claimed by another customer, the call returns an error.

Declaration
public virtual PartnersResource.DevicesResource.ClaimRequest Claim(ClaimDeviceRequest body, long partnerId)
Parameters
Type Name Description
ClaimDeviceRequest body

The body of the request.

long partnerId

Required. The ID of the reseller partner.

Returns
Type Description
PartnersResource.DevicesResource.ClaimRequest

ClaimAsync(ClaimDevicesRequest, long)

Claims a batch of devices for a customer asynchronously. Adds the devices to zero-touch enrollment. To learn more, read Long‑running batch operations.

Declaration
public virtual PartnersResource.DevicesResource.ClaimAsyncRequest ClaimAsync(ClaimDevicesRequest body, long partnerId)
Parameters
Type Name Description
ClaimDevicesRequest body

The body of the request.

long partnerId

Required. The ID of the reseller partner.

Returns
Type Description
PartnersResource.DevicesResource.ClaimAsyncRequest

FindByIdentifier(FindDevicesByDeviceIdentifierRequest, long)

Finds devices by hardware identifiers, such as IMEI.

Declaration
public virtual PartnersResource.DevicesResource.FindByIdentifierRequest FindByIdentifier(FindDevicesByDeviceIdentifierRequest body, long partnerId)
Parameters
Type Name Description
FindDevicesByDeviceIdentifierRequest body

The body of the request.

long partnerId

Required. The ID of the reseller partner.

Returns
Type Description
PartnersResource.DevicesResource.FindByIdentifierRequest

FindByOwner(FindDevicesByOwnerRequest, long)

Finds devices claimed for customers. The results only contain devices registered to the reseller that's identified by the partnerId argument. The customer's devices purchased from other resellers don't appear in the results.

Declaration
public virtual PartnersResource.DevicesResource.FindByOwnerRequest FindByOwner(FindDevicesByOwnerRequest body, long partnerId)
Parameters
Type Name Description
FindDevicesByOwnerRequest body

The body of the request.

long partnerId

Required. The ID of the reseller partner.

Returns
Type Description
PartnersResource.DevicesResource.FindByOwnerRequest

Get(string)

Gets a device.

Declaration
public virtual PartnersResource.DevicesResource.GetRequest Get(string name)
Parameters
Type Name Description
string name

Required. The device API resource name in the format partners/[PARTNER_ID]/devices/[DEVICE_ID].

Returns
Type Description
PartnersResource.DevicesResource.GetRequest

GetSimLockState(GetDeviceSimLockStateRequest, long)

Gets a device's SIM lock state.

Declaration
public virtual PartnersResource.DevicesResource.GetSimLockStateRequest GetSimLockState(GetDeviceSimLockStateRequest body, long partnerId)
Parameters
Type Name Description
GetDeviceSimLockStateRequest body

The body of the request.

long partnerId

Required. The ID of the partner.

Returns
Type Description
PartnersResource.DevicesResource.GetSimLockStateRequest

Metadata(UpdateDeviceMetadataRequest, long, long)

Updates reseller metadata associated with the device. Android devices only.

Declaration
public virtual PartnersResource.DevicesResource.MetadataRequest Metadata(UpdateDeviceMetadataRequest body, long metadataOwnerId, long deviceId)
Parameters
Type Name Description
UpdateDeviceMetadataRequest body

The body of the request.

long metadataOwnerId

Required. The owner of the newly set metadata. Set this to the partner ID.

long deviceId

Required. The ID of the device.

Returns
Type Description
PartnersResource.DevicesResource.MetadataRequest

Unclaim(UnclaimDeviceRequest, long)

Unclaims a device from a customer and removes it from zero-touch enrollment.

Declaration
public virtual PartnersResource.DevicesResource.UnclaimRequest Unclaim(UnclaimDeviceRequest body, long partnerId)
Parameters
Type Name Description
UnclaimDeviceRequest body

The body of the request.

long partnerId

Required. The ID of the reseller partner.

Returns
Type Description
PartnersResource.DevicesResource.UnclaimRequest

UnclaimAsync(UnclaimDevicesRequest, long)

Unclaims a batch of devices for a customer asynchronously. Removes the devices from zero-touch enrollment. To learn more, read Long‑running batch operations.

Declaration
public virtual PartnersResource.DevicesResource.UnclaimAsyncRequest UnclaimAsync(UnclaimDevicesRequest body, long partnerId)
Parameters
Type Name Description
UnclaimDevicesRequest body

The body of the request.

long partnerId

Required. The reseller partner ID.

Returns
Type Description
PartnersResource.DevicesResource.UnclaimAsyncRequest

UpdateMetadataAsync(UpdateDeviceMetadataInBatchRequest, long)

Updates the reseller metadata attached to a batch of devices. This method updates devices asynchronously and returns an Operation that can be used to track progress. Read Long‑running batch operations. Android Devices only.

Declaration
public virtual PartnersResource.DevicesResource.UpdateMetadataAsyncRequest UpdateMetadataAsync(UpdateDeviceMetadataInBatchRequest body, long partnerId)
Parameters
Type Name Description
UpdateDeviceMetadataInBatchRequest body

The body of the request.

long partnerId

Required. The reseller partner ID.

Returns
Type Description
PartnersResource.DevicesResource.UpdateMetadataAsyncRequest
In this article
Back to top Generated by DocFX