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
ChromeOsDeviceActionThe body of the request.
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.resourceId
stringThe unique ID of the device. The
resourceId
s are returned in the response from the chromeosdevices.list method.
Returns
Get(string, string)
Retrieves a Chrome OS device's properties.
public virtual ChromeosdevicesResource.GetRequest Get(string customerId, string deviceId)
Parameters
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.deviceId
stringThe unique ID of the device. The
deviceId
s are returned in the response from the chromeosdevices.list method.
Returns
List(string)
Retrieves a paginated list of Chrome OS devices within an account.
public virtual ChromeosdevicesResource.ListRequest List(string customerId)
Parameters
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.
Returns
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
ChromeOsMoveDevicesToOuThe body of the request.
customerId
stringImmutable ID of the Google Workspace account
orgUnitPath
stringFull path of the target organizational unit or its ID
Returns
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
ChromeOsDeviceThe body of the request.
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.deviceId
stringThe unique ID of the device. The
deviceId
s are returned in the response from the chromeosdevices.list method.
Returns
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
ChromeOsDeviceThe body of the request.
customerId
stringThe 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'scustomerId
. ThecustomerId
is also returned as part of the Users resource.deviceId
stringThe unique ID of the device. The
deviceId
s are returned in the response from the chromeosdevices.list method.