Skip to content

Commit e6ea50e

Browse files
yoshi-automationsofisl
authored andcommitted
feat(androidmanagement): update the API
#### androidmanagement:v1 The following keys were added: - schemas.Command.properties.requestDeviceInfoParams.$ref - schemas.Command.properties.requestDeviceInfoParams.description - schemas.Command.properties.requestDeviceInfoStatus.$ref - schemas.Command.properties.requestDeviceInfoStatus.description - schemas.Command.properties.requestDeviceInfoStatus.readOnly - schemas.Eid.description - schemas.Eid.id - schemas.Eid.properties.eid.description - schemas.Eid.properties.eid.readOnly - schemas.Eid.properties.eid.type - schemas.Eid.type - schemas.EidInfo.description - schemas.EidInfo.id - schemas.EidInfo.properties.eids.description - schemas.EidInfo.properties.eids.items.$ref - schemas.EidInfo.properties.eids.readOnly - schemas.EidInfo.properties.eids.type - schemas.EidInfo.type - schemas.EuiccChipInfo.description - schemas.EuiccChipInfo.id - schemas.EuiccChipInfo.properties.eid.description - schemas.EuiccChipInfo.properties.eid.readOnly - schemas.EuiccChipInfo.properties.eid.type - schemas.EuiccChipInfo.type - schemas.HardwareInfo.properties.euiccChipInfo.description - schemas.HardwareInfo.properties.euiccChipInfo.items.$ref - schemas.HardwareInfo.properties.euiccChipInfo.readOnly - schemas.HardwareInfo.properties.euiccChipInfo.type - schemas.RequestDeviceInfoParams.description - schemas.RequestDeviceInfoParams.id - schemas.RequestDeviceInfoParams.properties.deviceInfo.description - schemas.RequestDeviceInfoParams.properties.deviceInfo.enum - schemas.RequestDeviceInfoParams.properties.deviceInfo.enumDescriptions - schemas.RequestDeviceInfoParams.properties.deviceInfo.type - schemas.RequestDeviceInfoParams.type - schemas.RequestDeviceInfoStatus.description - schemas.RequestDeviceInfoStatus.id - schemas.RequestDeviceInfoStatus.properties.eidInfo.$ref - schemas.RequestDeviceInfoStatus.properties.eidInfo.description - schemas.RequestDeviceInfoStatus.properties.status.description - schemas.RequestDeviceInfoStatus.properties.status.enum - schemas.RequestDeviceInfoStatus.properties.status.enumDescriptions - schemas.RequestDeviceInfoStatus.properties.status.readOnly - schemas.RequestDeviceInfoStatus.properties.status.type - schemas.RequestDeviceInfoStatus.type The following keys were changed: - schemas.Command.properties.errorCode.description
1 parent 048f2f4 commit e6ea50e

File tree

2 files changed

+169
-3
lines changed

2 files changed

+169
-3
lines changed

‎discovery/androidmanagement-v1.json

Lines changed: 107 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1202,7 +1202,7 @@
12021202
}
12031203
}
12041204
},
1205-
"revision": "20250428",
1205+
"revision": "20250501",
12061206
"rootUrl": "https://androidmanagement.googleapis.com/",
12071207
"schemas": {
12081208
"AdbShellCommandEvent": {
@@ -2208,7 +2208,7 @@
22082208
"type": "string"
22092209
},
22102210
"errorCode": {
2211-
"description": "If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.",
2211+
"description": "If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. For reasoning about command errors, prefer fields in the following order (most preferred first): 1. Command-specific fields like clearAppsDataStatus, startLostModeStatus, or similar, if they exist. 2. This field, if set. 3. The generic error field in the Operation that wraps the command.",
22122212
"enum": [
22132213
"COMMAND_ERROR_CODE_UNSPECIFIED",
22142214
"UNKNOWN",
@@ -2231,6 +2231,15 @@
22312231
"description": "For commands of type RESET_PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command will fail with INVALID_VALUE.",
22322232
"type": "string"
22332233
},
2234+
"requestDeviceInfoParams": {
2235+
"$ref": "RequestDeviceInfoParams",
2236+
"description": "Optional. Parameters for the REQUEST_DEVICE_INFO command to get device related information. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to REQUEST_DEVICE_INFO . It is also acceptable to explicitly set type to REQUEST_DEVICE_INFO."
2237+
},
2238+
"requestDeviceInfoStatus": {
2239+
"$ref": "RequestDeviceInfoStatus",
2240+
"description": "Output only. Status of the REQUEST_DEVICE_INFO command.",
2241+
"readOnly": true
2242+
},
22342243
"resetPasswordFlags": {
22352244
"description": "For commands of type RESET_PASSWORD, optionally specifies flags.",
22362245
"items": {
@@ -3133,6 +3142,33 @@
31333142
},
31343143
"type": "object"
31353144
},
3145+
"Eid": {
3146+
"description": "EID information for each eUICC chip.",
3147+
"id": "Eid",
3148+
"properties": {
3149+
"eid": {
3150+
"description": "Output only. The EID",
3151+
"readOnly": true,
3152+
"type": "string"
3153+
}
3154+
},
3155+
"type": "object"
3156+
},
3157+
"EidInfo": {
3158+
"description": "Information related to the EIDs of the device.",
3159+
"id": "EidInfo",
3160+
"properties": {
3161+
"eids": {
3162+
"description": "Output only. EID information for each eUICC chip.",
3163+
"items": {
3164+
"$ref": "Eid"
3165+
},
3166+
"readOnly": true,
3167+
"type": "array"
3168+
}
3169+
},
3170+
"type": "object"
3171+
},
31363172
"Empty": {
31373173
"description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } ",
31383174
"id": "Empty",
@@ -3365,6 +3401,18 @@
33653401
},
33663402
"type": "object"
33673403
},
3404+
"EuiccChipInfo": {
3405+
"description": "Information related to the eUICC chip.",
3406+
"id": "EuiccChipInfo",
3407+
"properties": {
3408+
"eid": {
3409+
"description": "Output only. The Embedded Identity Document (EID) that identifies the eUICC chip for each eUICC chip on the device. This is available on company owned devices running Android 13 and above.",
3410+
"readOnly": true,
3411+
"type": "string"
3412+
}
3413+
},
3414+
"type": "object"
3415+
},
33683416
"ExtensionConfig": {
33693417
"description": "Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 11 and above, extension apps are exempt from battery restrictions so will not be placed into the restricted App Standby Bucket (https://developer.android.com/topic/performance/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the clear app data command on extension apps if needed for Android 11 and above.",
33703418
"id": "ExtensionConfig",
@@ -3535,6 +3583,14 @@
35353583
"readOnly": true,
35363584
"type": "string"
35373585
},
3586+
"euiccChipInfo": {
3587+
"description": "Output only. Information related to the eUICC chip.",
3588+
"items": {
3589+
"$ref": "EuiccChipInfo"
3590+
},
3591+
"readOnly": true,
3592+
"type": "array"
3593+
},
35383594
"gpuShutdownTemperatures": {
35393595
"description": "GPU shutdown temperature thresholds in Celsius for each GPU on the device.",
35403596
"items": {
@@ -5888,6 +5944,55 @@
58885944
},
58895945
"type": "object"
58905946
},
5947+
"RequestDeviceInfoParams": {
5948+
"description": "Parameters associated with the REQUEST_DEVICE_INFO command to get device related information.",
5949+
"id": "RequestDeviceInfoParams",
5950+
"properties": {
5951+
"deviceInfo": {
5952+
"description": "Required. Type of device information to be requested.",
5953+
"enum": [
5954+
"DEVICE_INFO_UNSPECIFIED",
5955+
"EID"
5956+
],
5957+
"enumDescriptions": [
5958+
"This value is disallowed.",
5959+
"Request the identifier for eSIM. The user will be asked to approve the disclosure of the information before the result can be returned. If the user doesn't approve the disclosure, USER_DECLINED will be returned. This is supported only for personally owned devices with work profiles and Android versions 13 and above."
5960+
],
5961+
"type": "string"
5962+
}
5963+
},
5964+
"type": "object"
5965+
},
5966+
"RequestDeviceInfoStatus": {
5967+
"description": "Status of the REQUEST_DEVICE_INFO command.",
5968+
"id": "RequestDeviceInfoStatus",
5969+
"properties": {
5970+
"eidInfo": {
5971+
"$ref": "EidInfo",
5972+
"description": "Information related to the EIDs of the device."
5973+
},
5974+
"status": {
5975+
"description": "Output only. Status of a REQUEST_DEVICE_INFO command.",
5976+
"enum": [
5977+
"STATUS_UNSPECIFIED",
5978+
"SUCCEEDED",
5979+
"PENDING_USER_ACTION",
5980+
"USER_DECLINED",
5981+
"UNSUPPORTED"
5982+
],
5983+
"enumDescriptions": [
5984+
"Unspecified. This value is not used.",
5985+
"Device information has been successfully delivered.",
5986+
"The user has not completed the actions required to share device information.",
5987+
"The user declined sharing device information.",
5988+
"The requested device info is not supported on this device, e.g. eSIM is not supported on the device."
5989+
],
5990+
"readOnly": true,
5991+
"type": "string"
5992+
}
5993+
},
5994+
"type": "object"
5995+
},
58915996
"ScreenBrightnessSettings": {
58925997
"description": "Controls for the screen brightness settings.",
58935998
"id": "ScreenBrightnessSettings",

‎src/apis/androidmanagement/v1.ts

Lines changed: 62 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,13 +692,21 @@ export namespace androidmanagement_v1 {
692692
*/
693693
duration?: string | null;
694694
/**
695-
* If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller.
695+
* If the command failed, an error code explaining the failure. This is not set when the command is cancelled by the caller. For reasoning about command errors, prefer fields in the following order (most preferred first): 1. Command-specific fields like clearAppsDataStatus, startLostModeStatus, or similar, if they exist. 2. This field, if set. 3. The generic error field in the Operation that wraps the command.
696696
*/
697697
errorCode?: string | null;
698698
/**
699699
* For commands of type RESET_PASSWORD, optionally specifies the new password. Note: The new password must be at least 6 characters long if it is numeric in case of Android 14 devices. Else the command will fail with INVALID_VALUE.
700700
*/
701701
newPassword?: string | null;
702+
/**
703+
* Optional. Parameters for the REQUEST_DEVICE_INFO command to get device related information. If this is set, then it is suggested that type should not be set. In this case, the server automatically sets it to REQUEST_DEVICE_INFO . It is also acceptable to explicitly set type to REQUEST_DEVICE_INFO.
704+
*/
705+
requestDeviceInfoParams?: Schema$RequestDeviceInfoParams;
706+
/**
707+
* Output only. Status of the REQUEST_DEVICE_INFO command.
708+
*/
709+
requestDeviceInfoStatus?: Schema$RequestDeviceInfoStatus;
702710
/**
703711
* For commands of type RESET_PASSWORD, optionally specifies flags.
704712
*/
@@ -1200,6 +1208,24 @@ export namespace androidmanagement_v1 {
12001208
*/
12011209
previousDpc?: string | null;
12021210
}
1211+
/**
1212+
* EID information for each eUICC chip.
1213+
*/
1214+
export interface Schema$Eid {
1215+
/**
1216+
* Output only. The EID
1217+
*/
1218+
eid?: string | null;
1219+
}
1220+
/**
1221+
* Information related to the EIDs of the device.
1222+
*/
1223+
export interface Schema$EidInfo {
1224+
/**
1225+
* Output only. EID information for each eUICC chip.
1226+
*/
1227+
eids?: Schema$Eid[];
1228+
}
12031229
/**
12041230
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
12051231
*/
@@ -1327,6 +1353,15 @@ export namespace androidmanagement_v1 {
13271353
*/
13281354
upgradeState?: string | null;
13291355
}
1356+
/**
1357+
* Information related to the eUICC chip.
1358+
*/
1359+
export interface Schema$EuiccChipInfo {
1360+
/**
1361+
* Output only. The Embedded Identity Document (EID) that identifies the eUICC chip for each eUICC chip on the device. This is available on company owned devices running Android 13 and above.
1362+
*/
1363+
eid?: string | null;
1364+
}
13301365
/**
13311366
* Configuration to enable an app as an extension app, with the capability of interacting with Android Device Policy offline. For Android versions 11 and above, extension apps are exempt from battery restrictions so will not be placed into the restricted App Standby Bucket (https://developer.android.com/topic/performance/appstandby#restricted-bucket). Extensions apps are also protected against users clearing their data or force-closing the application, although admins can continue to use the clear app data command on extension apps if needed for Android 11 and above.
13321367
*/
@@ -1447,6 +1482,10 @@ export namespace androidmanagement_v1 {
14471482
* Output only. ID that uniquely identifies a personally-owned device in a particular organization. On the same physical device when enrolled with the same organization, this ID persists across setups and even factory resets. This ID is available on personally-owned devices with a work profile on devices running Android 12 and above.
14481483
*/
14491484
enterpriseSpecificId?: string | null;
1485+
/**
1486+
* Output only. Information related to the eUICC chip.
1487+
*/
1488+
euiccChipInfo?: Schema$EuiccChipInfo[];
14501489
/**
14511490
* GPU shutdown temperature thresholds in Celsius for each GPU on the device.
14521491
*/
@@ -2805,6 +2844,28 @@ export namespace androidmanagement_v1 {
28052844
*/
28062845
targetUserId?: number | null;
28072846
}
2847+
/**
2848+
* Parameters associated with the REQUEST_DEVICE_INFO command to get device related information.
2849+
*/
2850+
export interface Schema$RequestDeviceInfoParams {
2851+
/**
2852+
* Required. Type of device information to be requested.
2853+
*/
2854+
deviceInfo?: string | null;
2855+
}
2856+
/**
2857+
* Status of the REQUEST_DEVICE_INFO command.
2858+
*/
2859+
export interface Schema$RequestDeviceInfoStatus {
2860+
/**
2861+
* Information related to the EIDs of the device.
2862+
*/
2863+
eidInfo?: Schema$EidInfo;
2864+
/**
2865+
* Output only. Status of a REQUEST_DEVICE_INFO command.
2866+
*/
2867+
status?: string | null;
2868+
}
28082869
/**
28092870
* Controls for the screen brightness settings.
28102871
*/

0 commit comments

Comments
 (0)