Class ChromeosdevicesResource
The "chromeosdevices" collection of methods.
Inherited Members
Namespace: Google.Apis.Admin.Directory.directory_v1
Assembly: Google.Apis.Admin.Directory.directory_v1.dll
Syntax
public class ChromeosdevicesResource
Constructors
ChromeosdevicesResource(IClientService)
Constructs a new resource.
Declaration
public ChromeosdevicesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Action(ChromeOsDeviceAction, string, string)
Use BatchChangeChromeOsDeviceStatus instead. 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.
Declaration
public virtual ChromeosdevicesResource.ActionRequest Action(ChromeOsDeviceAction body, string customerId, string resourceId)
Parameters
| Type | Name | Description |
|---|---|---|
| ChromeOsDeviceAction | body | The body of the request. |
| string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
| string | resourceId | The unique ID of the device. The |
Returns
| Type | Description |
|---|---|
| ChromeosdevicesResource.ActionRequest |
Get(string, string)
Retrieves a Chrome OS device's properties.
Declaration
public virtual ChromeosdevicesResource.GetRequest Get(string customerId, string deviceId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
| string | deviceId | The unique ID of the device. The |
Returns
| Type | Description |
|---|---|
| ChromeosdevicesResource.GetRequest |
List(string)
Retrieves a paginated list of Chrome OS devices within an account.
Declaration
public virtual ChromeosdevicesResource.ListRequest List(string customerId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
Returns
| Type | Description |
|---|---|
| ChromeosdevicesResource.ListRequest |
MoveDevicesToOu(ChromeOsMoveDevicesToOu, string, string)
Moves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once.
Declaration
public virtual ChromeosdevicesResource.MoveDevicesToOuRequest MoveDevicesToOu(ChromeOsMoveDevicesToOu body, string customerId, string orgUnitPath)
Parameters
| Type | Name | Description |
|---|---|---|
| ChromeOsMoveDevicesToOu | body | The body of the request. |
| string | customerId | Immutable. ID of the Google Workspace account |
| string | orgUnitPath | Full path of the target organizational unit or its ID |
Returns
| Type | Description |
|---|---|
| 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.
Declaration
public virtual ChromeosdevicesResource.PatchRequest Patch(ChromeOsDevice body, string customerId, string deviceId)
Parameters
| Type | Name | Description |
|---|---|---|
| ChromeOsDevice | body | The body of the request. |
| string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
| string | deviceId | The unique ID of the device. The |
Returns
| Type | Description |
|---|---|
| ChromeosdevicesResource.PatchRequest |
Update(ChromeOsDevice, string, string)
Updates a device's updatable properties, such as annotatedUser, annotatedLocation, notes,
orgUnitPath, or annotatedAssetId.
Declaration
public virtual ChromeosdevicesResource.UpdateRequest Update(ChromeOsDevice body, string customerId, string deviceId)
Parameters
| Type | Name | Description |
|---|---|---|
| ChromeOsDevice | body | The body of the request. |
| string | customerId | The unique ID for the customer's Google Workspace account. As an account administrator, you can also use the
|
| string | deviceId | The unique ID of the device. The |
Returns
| Type | Description |
|---|---|
| ChromeosdevicesResource.UpdateRequest |