Table of Contents

Class ChromeosdevicesResource

Namespace
Google.Apis.Admin.Directory.directory_v1
Assembly
Google.Apis.Admin.Directory.directory_v1.dll

The "chromeosdevices" collection of methods.

public class ChromeosdevicesResource
Inheritance
ChromeosdevicesResource
Inherited Members

Constructors

ChromeosdevicesResource(IClientService)

Constructs a new resource.

public ChromeosdevicesResource(IClientService service)

Parameters

service IClientService

Methods

Action(ChromeOsDeviceAction, string, string)

Takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices. Warning: * Deprovisioning a device will stop device policy syncing and remove device-level printers. After a device is deprovisioned, it must be wiped before it can be re-enrolled. * Lost or stolen devices should use the disable action. * Re-enabling a disabled device will consume a device license. If you do not have sufficient licenses available when completing the re-enable action, you will receive an error. For more information about deprovisioning and disabling devices, visit the help center.

public virtual ChromeosdevicesResource.ActionRequest Action(ChromeOsDeviceAction body, string customerId, string resourceId)

Parameters

body ChromeOsDeviceAction

The body of the request.

customerId string

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

resourceId string

The unique ID of the device. The resourceIds are returned in the response from the chromeosdevices.list method.

Returns

ChromeosdevicesResource.ActionRequest

Get(string, string)

Retrieves a Chrome OS device's properties.

public virtual ChromeosdevicesResource.GetRequest Get(string customerId, string deviceId)

Parameters

customerId string

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

deviceId string

The unique ID of the device. The deviceIds are returned in the response from the chromeosdevices.list method.

Returns

ChromeosdevicesResource.GetRequest

List(string)

Retrieves a paginated list of Chrome OS devices within an account.

public virtual ChromeosdevicesResource.ListRequest List(string customerId)

Parameters

customerId string

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

Returns

ChromeosdevicesResource.ListRequest

MoveDevicesToOu(ChromeOsMoveDevicesToOu, string, string)

Move or insert multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once.

public virtual ChromeosdevicesResource.MoveDevicesToOuRequest MoveDevicesToOu(ChromeOsMoveDevicesToOu body, string customerId, string orgUnitPath)

Parameters

body ChromeOsMoveDevicesToOu

The body of the request.

customerId string

Immutable ID of the Google Workspace account

orgUnitPath string

Full path of the target organizational unit or its ID

Returns

ChromeosdevicesResource.MoveDevicesToOuRequest

Patch(ChromeOsDevice, string, string)

Updates a device's updatable properties, such as annotatedUser, annotatedLocation, notes, orgUnitPath, or annotatedAssetId. This method supports patch semantics.

public virtual ChromeosdevicesResource.PatchRequest Patch(ChromeOsDevice body, string customerId, string deviceId)

Parameters

body ChromeOsDevice

The body of the request.

customerId string

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

deviceId string

The unique ID of the device. The deviceIds are returned in the response from the chromeosdevices.list method.

Returns

ChromeosdevicesResource.PatchRequest

Update(ChromeOsDevice, string, string)

Updates a device's updatable properties, such as annotatedUser, annotatedLocation, notes, orgUnitPath, or annotatedAssetId.

public virtual ChromeosdevicesResource.UpdateRequest Update(ChromeOsDevice body, string customerId, string deviceId)

Parameters

body ChromeOsDevice

The body of the request.

customerId string

The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the my_customer alias to represent your account's customerId. The customerId is also returned as part of the Users resource.

deviceId string

The unique ID of the device. The deviceIds are returned in the response from the chromeosdevices.list method.

Returns

ChromeosdevicesResource.UpdateRequest