Skip to content

Commit

Permalink
fix(admin): update the API
Browse files Browse the repository at this point in the history
#### admin:directory_v1

The following keys were changed:
- resources.chromeosdevices.methods.action.description
- resources.customer.resources.devices.resources.chromeos.methods.batchChangeStatus.description
- resources.customer.resources.devices.resources.chromeos.methods.batchChangeStatus.parameters.customerId.description
- schemas.BatchChangeChromeOsDeviceStatusRequest.properties.changeChromeOsDeviceStatusAction.description
- schemas.BatchChangeChromeOsDeviceStatusRequest.properties.changeChromeOsDeviceStatusAction.enumDescriptions
- schemas.BatchChangeChromeOsDeviceStatusRequest.properties.deprovisionReason.description
- schemas.BatchChangeChromeOsDeviceStatusRequest.properties.deviceIds.description
  • Loading branch information
yoshi-automation authored and sofisl committed Jan 5, 2024
1 parent 845c716 commit 4664d6b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
20 changes: 10 additions & 10 deletions discovery/admin-directory_v1.json
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@
"methods": {
"action": {
"deprecated": true,
"description": "DEPRECATED: 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](https://support.google.com/chrome/a/answer/3523633).",
"description": "Use [BatchChangeChromeOsDeviceStatus](/admin-sdk/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) 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](https://support.google.com/chrome/a/answer/3523633).",
"flatPath": "admin/directory/v1/customer/{customerId}/devices/chromeos/{resourceId}/action",
"httpMethod": "POST",
"id": "directory.chromeosdevices.action",
Expand Down Expand Up @@ -615,7 +615,7 @@
"chromeos": {
"methods": {
"batchChangeStatus": {
"description": "Changes the status of a batch of ChromeOS devices.",
"description": "Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633).",
"flatPath": "admin/directory/v1/customer/{customerId}/devices/chromeos:batchChangeStatus",
"httpMethod": "POST",
"id": "admin.customer.devices.chromeos.batchChangeStatus",
Expand All @@ -624,7 +624,7 @@
],
"parameters": {
"customerId": {
"description": "Required. Immutable ID of the G Suite account.",
"description": "Required. Immutable ID of the Google Workspace account.",
"location": "path",
"required": true,
"type": "string"
Expand Down Expand Up @@ -4671,7 +4671,7 @@
}
}
},
"revision": "20231219",
"revision": "20240102",
"rootUrl": "https://admin.googleapis.com/",
"schemas": {
"Alias": {
Expand Down Expand Up @@ -4815,7 +4815,7 @@
"id": "BatchChangeChromeOsDeviceStatusRequest",
"properties": {
"changeChromeOsDeviceStatusAction": {
"description": "Required. The Action to take on the ChromeOS device in order to change its status.",
"description": "Required. The action to take on the ChromeOS device in order to change its status.",
"enum": [
"CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_UNSPECIFIED",
"CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION",
Expand All @@ -4824,14 +4824,14 @@
],
"enumDescriptions": [
"Default value. Value is unused.",
"If you have ChromeOS devices that are no longer being used in your organization, you should deprovision them so that you’re no longer managing them. Deprovisioning the device removes all policies that were on the device as well as device-level printers and the ability to use the device as a kiosk. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.",
"Use this action if a user loses their device or it’s stolen, this makes it such that the device is still managed, so it will still receive policies, but noone can use it. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.",
"Reenable the device once it's no longer lost or it's been recovered. This allows the device to be used again. Depending on the upgrade associated with the device this might consume one license from the license pool, meaning that if there aren't enough licenses available the operation will fail."
"Deprovisions a ChromeOS device. If you have ChromeOS devices that are no longer being used in your organization, you should deprovision them so that you’re no longer managing them. Deprovisioning the device removes all policies that were on the device as well as device-level printers and the ability to use the device as a kiosk. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.",
"Disables a ChromeOS device. Use this action if a user loses their device or it’s stolen, this makes it such that the device is still managed, so it will still receive policies, but no one can use it. Depending on the upgrade that’s associated with the device this action might release the license back into the license pool; which allows you to use the license on a different device.",
"Reenables a ChromeOS device to be used after being disabled. Reenables the device once it's no longer lost or it's been recovered. This allows the device to be used again. Depending on the upgrade associated with the device this might consume one license from the license pool, meaning that if there aren't enough licenses available the operation will fail."
],
"type": "string"
},
"deprovisionReason": {
"description": "Optional. The reason behind a device deprovision, must be provided for all deprovisions, otherwise it must not be provided. It must be one of the non-deprecated deprovision reasons.",
"description": "Optional. The reason behind a device deprovision. Must be provided if 'changeChromeOsDeviceStatusAction' is set to 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field.",
"enum": [
"DEPROVISION_REASON_UNSPECIFIED",
"DEPROVISION_REASON_SAME_MODEL_REPLACEMENT",
Expand Down Expand Up @@ -4874,7 +4874,7 @@
"type": "string"
},
"deviceIds": {
"description": "Required. List of the IDs of the ChromeOS devices to change.",
"description": "Required. List of the IDs of the ChromeOS devices to change. Maximum 50.",
"items": {
"type": "string"
},
Expand Down
12 changes: 6 additions & 6 deletions src/apis/admin/directory_v1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,15 +249,15 @@ export namespace admin_directory_v1 {
*/
export interface Schema$BatchChangeChromeOsDeviceStatusRequest {
/**
* Required. The Action to take on the ChromeOS device in order to change its status.
* Required. The action to take on the ChromeOS device in order to change its status.
*/
changeChromeOsDeviceStatusAction?: string | null;
/**
* Optional. The reason behind a device deprovision, must be provided for all deprovisions, otherwise it must not be provided. It must be one of the non-deprecated deprovision reasons.
* Optional. The reason behind a device deprovision. Must be provided if 'changeChromeOsDeviceStatusAction' is set to 'CHANGE_CHROME_OS_DEVICE_STATUS_ACTION_DEPROVISION'. Otherwise, omit this field.
*/
deprovisionReason?: string | null;
/**
* Required. List of the IDs of the ChromeOS devices to change.
* Required. List of the IDs of the ChromeOS devices to change. Maximum 50.
*/
deviceIds?: string[] | null;
}
Expand Down Expand Up @@ -3232,7 +3232,7 @@ export namespace admin_directory_v1 {
}

/**
* DEPRECATED: 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](https://support.google.com/chrome/a/answer/3523633).
* Use [BatchChangeChromeOsDeviceStatus](/admin-sdk/directory/reference/rest/v1/customer.devices.chromeos/batchChangeStatus) 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](https://support.google.com/chrome/a/answer/3523633).
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -3906,7 +3906,7 @@ export namespace admin_directory_v1 {
}

/**
* Changes the status of a batch of ChromeOS devices.
* Changes the status of a batch of ChromeOS devices. For more information about changing a ChromeOS device state [Repair, repurpose, or retire ChromeOS devices](https://support.google.com/chrome/a/answer/3523633).
*
* @param params - Parameters for request
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
Expand Down Expand Up @@ -4102,7 +4102,7 @@ export namespace admin_directory_v1 {
export interface Params$Resource$Customer$Devices$Chromeos$Batchchangestatus
extends StandardParameters {
/**
* Required. Immutable ID of the G Suite account.
* Required. Immutable ID of the Google Workspace account.
*/
customerId?: string;

Expand Down

0 comments on commit 4664d6b

Please sign in to comment.