OLD | NEW |
(Empty) | |
| 1 { |
| 2 "basePath": "", |
| 3 "baseUrl": "https://androidmanagement.googleapis.com/", |
| 4 "batchPath": "batch", |
| 5 "canonicalName": "Android Management", |
| 6 "description": "The Android Management API provides remote enterprise manage
ment of Android devices and apps.", |
| 7 "discoveryVersion": "v1", |
| 8 "documentationLink": "https://developers.google.com/android/management", |
| 9 "icons": { |
| 10 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 11 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 12 }, |
| 13 "id": "androidmanagement:v1", |
| 14 "kind": "discovery#restDescription", |
| 15 "name": "androidmanagement", |
| 16 "ownerDomain": "google.com", |
| 17 "ownerName": "Google", |
| 18 "parameters": { |
| 19 "access_token": { |
| 20 "description": "OAuth access token.", |
| 21 "location": "query", |
| 22 "type": "string" |
| 23 }, |
| 24 "prettyPrint": { |
| 25 "default": "true", |
| 26 "description": "Returns response with indentations and line breaks."
, |
| 27 "location": "query", |
| 28 "type": "boolean" |
| 29 }, |
| 30 "key": { |
| 31 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 32 "location": "query", |
| 33 "type": "string" |
| 34 }, |
| 35 "quotaUser": { |
| 36 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
| 37 "location": "query", |
| 38 "type": "string" |
| 39 }, |
| 40 "pp": { |
| 41 "default": "true", |
| 42 "description": "Pretty-print response.", |
| 43 "location": "query", |
| 44 "type": "boolean" |
| 45 }, |
| 46 "fields": { |
| 47 "description": "Selector specifying which fields to include in a par
tial response.", |
| 48 "location": "query", |
| 49 "type": "string" |
| 50 }, |
| 51 "alt": { |
| 52 "default": "json", |
| 53 "description": "Data format for response.", |
| 54 "enum": [ |
| 55 "json", |
| 56 "media", |
| 57 "proto" |
| 58 ], |
| 59 "enumDescriptions": [ |
| 60 "Responses with Content-Type of application/json", |
| 61 "Media download with context-dependent Content-Type", |
| 62 "Responses with Content-Type of application/x-protobuf" |
| 63 ], |
| 64 "location": "query", |
| 65 "type": "string" |
| 66 }, |
| 67 "$.xgafv": { |
| 68 "description": "V1 error format.", |
| 69 "enum": [ |
| 70 "1", |
| 71 "2" |
| 72 ], |
| 73 "enumDescriptions": [ |
| 74 "v1 error format", |
| 75 "v2 error format" |
| 76 ], |
| 77 "location": "query", |
| 78 "type": "string" |
| 79 }, |
| 80 "callback": { |
| 81 "description": "JSONP", |
| 82 "location": "query", |
| 83 "type": "string" |
| 84 }, |
| 85 "oauth_token": { |
| 86 "description": "OAuth 2.0 token for the current user.", |
| 87 "location": "query", |
| 88 "type": "string" |
| 89 }, |
| 90 "uploadType": { |
| 91 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 92 "location": "query", |
| 93 "type": "string" |
| 94 }, |
| 95 "bearer_token": { |
| 96 "description": "OAuth bearer token.", |
| 97 "location": "query", |
| 98 "type": "string" |
| 99 }, |
| 100 "upload_protocol": { |
| 101 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 102 "location": "query", |
| 103 "type": "string" |
| 104 } |
| 105 }, |
| 106 "protocol": "rest", |
| 107 "resources": { |
| 108 "signupUrls": { |
| 109 "methods": { |
| 110 "create": { |
| 111 "description": "Creates an enterprise signup URL.", |
| 112 "httpMethod": "POST", |
| 113 "id": "androidmanagement.signupUrls.create", |
| 114 "parameterOrder": [], |
| 115 "parameters": { |
| 116 "callbackUrl": { |
| 117 "description": "The callback URL to which the admin
will be redirected after successfully\ncreating an enterprise. Before redirectin
g there the system will add a\nquery parameter to this URL named `enterpriseToke
n` which will\ncontain an opaque token to be used for the\n[create enterprise](/
android/management/reference/rest/v1/enterprises/create)\nrequest. The URL will
be parsed then reformatted in order to add the\n`enterpriseToken` parameter, so
there may be some minor formatting changes.", |
| 118 "location": "query", |
| 119 "type": "string" |
| 120 }, |
| 121 "projectId": { |
| 122 "description": "The id of the Google Cloud Platform
project which will own the enterprise.", |
| 123 "location": "query", |
| 124 "type": "string" |
| 125 } |
| 126 }, |
| 127 "path": "v1/signupUrls", |
| 128 "response": { |
| 129 "$ref": "SignupUrl" |
| 130 } |
| 131 } |
| 132 } |
| 133 }, |
| 134 "enterprises": { |
| 135 "methods": { |
| 136 "create": { |
| 137 "description": "Creates an enterprise by completing the ente
rprise signup flow.", |
| 138 "httpMethod": "POST", |
| 139 "id": "androidmanagement.enterprises.create", |
| 140 "parameterOrder": [], |
| 141 "parameters": { |
| 142 "signupUrlName": { |
| 143 "description": "The name of the\n[`SignupUrl`](/andr
oid/management/reference/rest/v1/signupUrls#SignupUrl)\nused to sign up for the
enterprise.", |
| 144 "location": "query", |
| 145 "type": "string" |
| 146 }, |
| 147 "enterpriseToken": { |
| 148 "description": "The enterprise token appended to the
callback URL.", |
| 149 "location": "query", |
| 150 "type": "string" |
| 151 }, |
| 152 "projectId": { |
| 153 "description": "The id of the Google Cloud Platform
project which will own the enterprise.", |
| 154 "location": "query", |
| 155 "type": "string" |
| 156 } |
| 157 }, |
| 158 "path": "v1/enterprises", |
| 159 "request": { |
| 160 "$ref": "Enterprise" |
| 161 }, |
| 162 "response": { |
| 163 "$ref": "Enterprise" |
| 164 } |
| 165 }, |
| 166 "get": { |
| 167 "description": "Gets an enterprise.", |
| 168 "httpMethod": "GET", |
| 169 "id": "androidmanagement.enterprises.get", |
| 170 "parameterOrder": [ |
| 171 "name" |
| 172 ], |
| 173 "parameters": { |
| 174 "name": { |
| 175 "description": "The name of the enterprise in the fo
rm\n`enterprises/{enterpriseId}`", |
| 176 "location": "path", |
| 177 "pattern": "^enterprises/[^/]+$", |
| 178 "required": true, |
| 179 "type": "string" |
| 180 } |
| 181 }, |
| 182 "path": "v1/{+name}", |
| 183 "response": { |
| 184 "$ref": "Enterprise" |
| 185 } |
| 186 }, |
| 187 "patch": { |
| 188 "description": "Updates an enterprise.", |
| 189 "httpMethod": "PATCH", |
| 190 "id": "androidmanagement.enterprises.patch", |
| 191 "parameterOrder": [ |
| 192 "name" |
| 193 ], |
| 194 "parameters": { |
| 195 "updateMask": { |
| 196 "description": "The field mask indicating the fields
to update.\nIf not set, all modifiable fields will be modified.", |
| 197 "format": "google-fieldmask", |
| 198 "location": "query", |
| 199 "type": "string" |
| 200 }, |
| 201 "name": { |
| 202 "description": "The name of the enterprise in the fo
rm\n`enterprises/{enterpriseId}`", |
| 203 "location": "path", |
| 204 "pattern": "^enterprises/[^/]+$", |
| 205 "required": true, |
| 206 "type": "string" |
| 207 } |
| 208 }, |
| 209 "path": "v1/{+name}", |
| 210 "request": { |
| 211 "$ref": "Enterprise" |
| 212 }, |
| 213 "response": { |
| 214 "$ref": "Enterprise" |
| 215 } |
| 216 } |
| 217 }, |
| 218 "resources": { |
| 219 "policies": { |
| 220 "methods": { |
| 221 "get": { |
| 222 "description": "Gets a policy.", |
| 223 "httpMethod": "GET", |
| 224 "id": "androidmanagement.enterprises.policies.get", |
| 225 "parameterOrder": [ |
| 226 "name" |
| 227 ], |
| 228 "parameters": { |
| 229 "name": { |
| 230 "description": "The name of the policy in th
e form\n`enterprises/{enterpriseId}/policies/{policyId}`", |
| 231 "location": "path", |
| 232 "pattern": "^enterprises/[^/]+/policies/[^/]
+$", |
| 233 "required": true, |
| 234 "type": "string" |
| 235 } |
| 236 }, |
| 237 "path": "v1/{+name}", |
| 238 "response": { |
| 239 "$ref": "Policy" |
| 240 } |
| 241 }, |
| 242 "list": { |
| 243 "description": "Lists policies for a given enterpris
e.", |
| 244 "httpMethod": "GET", |
| 245 "id": "androidmanagement.enterprises.policies.list", |
| 246 "parameterOrder": [ |
| 247 "parent" |
| 248 ], |
| 249 "parameters": { |
| 250 "pageSize": { |
| 251 "description": "The requested page size. The
actual page size may be fixed to a min or max\nvalue.", |
| 252 "format": "int32", |
| 253 "location": "query", |
| 254 "type": "integer" |
| 255 }, |
| 256 "parent": { |
| 257 "description": "The name of the enterprise i
n the form\n`enterprises/{enterpriseId}`", |
| 258 "location": "path", |
| 259 "pattern": "^enterprises/[^/]+$", |
| 260 "required": true, |
| 261 "type": "string" |
| 262 }, |
| 263 "pageToken": { |
| 264 "description": "A token identifying a page o
f results the server should return.", |
| 265 "location": "query", |
| 266 "type": "string" |
| 267 } |
| 268 }, |
| 269 "path": "v1/{+parent}/policies", |
| 270 "response": { |
| 271 "$ref": "ListPoliciesResponse" |
| 272 } |
| 273 }, |
| 274 "patch": { |
| 275 "description": "Updates or creates a policy.", |
| 276 "httpMethod": "PATCH", |
| 277 "id": "androidmanagement.enterprises.policies.patch"
, |
| 278 "parameterOrder": [ |
| 279 "name" |
| 280 ], |
| 281 "parameters": { |
| 282 "updateMask": { |
| 283 "description": "The field mask indicating th
e fields to update.\nIf not set, all modifiable fields will be modified.", |
| 284 "format": "google-fieldmask", |
| 285 "location": "query", |
| 286 "type": "string" |
| 287 }, |
| 288 "name": { |
| 289 "description": "The name of the policy in th
e form\n`enterprises/{enterpriseId}/policies/{policyId}`", |
| 290 "location": "path", |
| 291 "pattern": "^enterprises/[^/]+/policies/[^/]
+$", |
| 292 "required": true, |
| 293 "type": "string" |
| 294 } |
| 295 }, |
| 296 "path": "v1/{+name}", |
| 297 "request": { |
| 298 "$ref": "Policy" |
| 299 }, |
| 300 "response": { |
| 301 "$ref": "Policy" |
| 302 } |
| 303 }, |
| 304 "delete": { |
| 305 "description": "Deletes a policy. This operation is
only permitted if no devices are\ncurrently referencing the policy.", |
| 306 "httpMethod": "DELETE", |
| 307 "id": "androidmanagement.enterprises.policies.delete
", |
| 308 "parameterOrder": [ |
| 309 "name" |
| 310 ], |
| 311 "parameters": { |
| 312 "name": { |
| 313 "description": "The name of the policy in th
e form\n`enterprises/{enterpriseId}/policies/{policyId}`", |
| 314 "location": "path", |
| 315 "pattern": "^enterprises/[^/]+/policies/[^/]
+$", |
| 316 "required": true, |
| 317 "type": "string" |
| 318 } |
| 319 }, |
| 320 "path": "v1/{+name}", |
| 321 "response": { |
| 322 "$ref": "Empty" |
| 323 } |
| 324 } |
| 325 } |
| 326 }, |
| 327 "applications": { |
| 328 "methods": { |
| 329 "get": { |
| 330 "description": "Gets info about an application.", |
| 331 "httpMethod": "GET", |
| 332 "id": "androidmanagement.enterprises.applications.ge
t", |
| 333 "parameterOrder": [ |
| 334 "name" |
| 335 ], |
| 336 "parameters": { |
| 337 "languageCode": { |
| 338 "description": "The preferred language for l
ocalized application info, as a BCP47 tag\n(e.g. \"en-US\", \"de\"). If not spec
ified the default language of the\napplication will be used.", |
| 339 "location": "query", |
| 340 "type": "string" |
| 341 }, |
| 342 "name": { |
| 343 "description": "The name of the application
in the form\n`enterprises/{enterpriseId}/applications/{package_name}`", |
| 344 "location": "path", |
| 345 "pattern": "^enterprises/[^/]+/applications/
[^/]+$", |
| 346 "required": true, |
| 347 "type": "string" |
| 348 } |
| 349 }, |
| 350 "path": "v1/{+name}", |
| 351 "response": { |
| 352 "$ref": "Application" |
| 353 } |
| 354 } |
| 355 } |
| 356 }, |
| 357 "enrollmentTokens": { |
| 358 "methods": { |
| 359 "create": { |
| 360 "description": "Creates an enrollment token for a gi
ven enterprise.", |
| 361 "httpMethod": "POST", |
| 362 "id": "androidmanagement.enterprises.enrollmentToken
s.create", |
| 363 "parameterOrder": [ |
| 364 "parent" |
| 365 ], |
| 366 "parameters": { |
| 367 "parent": { |
| 368 "description": "The name of the enterprise i
n the form\n`enterprises/{enterpriseId}`", |
| 369 "location": "path", |
| 370 "pattern": "^enterprises/[^/]+$", |
| 371 "required": true, |
| 372 "type": "string" |
| 373 } |
| 374 }, |
| 375 "path": "v1/{+parent}/enrollmentTokens", |
| 376 "request": { |
| 377 "$ref": "EnrollmentToken" |
| 378 }, |
| 379 "response": { |
| 380 "$ref": "EnrollmentToken" |
| 381 } |
| 382 }, |
| 383 "delete": { |
| 384 "description": "Deletes an enrollment token, which p
revents future use of the token.", |
| 385 "httpMethod": "DELETE", |
| 386 "id": "androidmanagement.enterprises.enrollmentToken
s.delete", |
| 387 "parameterOrder": [ |
| 388 "name" |
| 389 ], |
| 390 "parameters": { |
| 391 "name": { |
| 392 "description": "The name of the enrollment t
oken in the form\n`enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenI
d}`", |
| 393 "location": "path", |
| 394 "pattern": "^enterprises/[^/]+/enrollmentTok
ens/[^/]+$", |
| 395 "required": true, |
| 396 "type": "string" |
| 397 } |
| 398 }, |
| 399 "path": "v1/{+name}", |
| 400 "response": { |
| 401 "$ref": "Empty" |
| 402 } |
| 403 } |
| 404 } |
| 405 }, |
| 406 "webTokens": { |
| 407 "methods": { |
| 408 "create": { |
| 409 "description": "Creates a web token to access an emb
eddable managed Google Play web UI for\na given enterprise.", |
| 410 "httpMethod": "POST", |
| 411 "id": "androidmanagement.enterprises.webTokens.creat
e", |
| 412 "parameterOrder": [ |
| 413 "parent" |
| 414 ], |
| 415 "parameters": { |
| 416 "parent": { |
| 417 "description": "The name of the enterprise i
n the form\n`enterprises/{enterpriseId}`", |
| 418 "location": "path", |
| 419 "pattern": "^enterprises/[^/]+$", |
| 420 "required": true, |
| 421 "type": "string" |
| 422 } |
| 423 }, |
| 424 "path": "v1/{+parent}/webTokens", |
| 425 "request": { |
| 426 "$ref": "WebToken" |
| 427 }, |
| 428 "response": { |
| 429 "$ref": "WebToken" |
| 430 } |
| 431 } |
| 432 } |
| 433 }, |
| 434 "devices": { |
| 435 "methods": { |
| 436 "get": { |
| 437 "description": "Gets a device.", |
| 438 "httpMethod": "GET", |
| 439 "id": "androidmanagement.enterprises.devices.get", |
| 440 "parameterOrder": [ |
| 441 "name" |
| 442 ], |
| 443 "parameters": { |
| 444 "name": { |
| 445 "description": "The name of the device in th
e form\n`enterprises/{enterpriseId}/devices/{deviceId}`", |
| 446 "location": "path", |
| 447 "pattern": "^enterprises/[^/]+/devices/[^/]+
$", |
| 448 "required": true, |
| 449 "type": "string" |
| 450 } |
| 451 }, |
| 452 "path": "v1/{+name}", |
| 453 "response": { |
| 454 "$ref": "Device" |
| 455 } |
| 456 }, |
| 457 "list": { |
| 458 "description": "Lists devices for a given enterprise
.", |
| 459 "httpMethod": "GET", |
| 460 "id": "androidmanagement.enterprises.devices.list", |
| 461 "parameterOrder": [ |
| 462 "parent" |
| 463 ], |
| 464 "parameters": { |
| 465 "pageSize": { |
| 466 "description": "The requested page size. The
actual page size may be fixed to a min or max\nvalue.", |
| 467 "format": "int32", |
| 468 "location": "query", |
| 469 "type": "integer" |
| 470 }, |
| 471 "parent": { |
| 472 "description": "The name of the enterprise i
n the form\n`enterprises/{enterpriseId}`", |
| 473 "location": "path", |
| 474 "pattern": "^enterprises/[^/]+$", |
| 475 "required": true, |
| 476 "type": "string" |
| 477 }, |
| 478 "pageToken": { |
| 479 "description": "A token identifying a page o
f results the server should return.", |
| 480 "location": "query", |
| 481 "type": "string" |
| 482 } |
| 483 }, |
| 484 "path": "v1/{+parent}/devices", |
| 485 "response": { |
| 486 "$ref": "ListDevicesResponse" |
| 487 } |
| 488 }, |
| 489 "issueCommand": { |
| 490 "description": "Issues a command to a device. The\n[
`Operation`](/android/management/reference/rest/v1/enterprises.devices.operation
s#Operation)\nresource returned contains a\n[`Command`](/android/management/refe
rence/rest/v1/enterprises.devices/issueCommand#Command)\nin its `metadata` field
.\nUse the\n[get operation method](/android/management/reference/rest/v1/enterpr
ises.devices.operations/get)\nto get the status of the command.", |
| 491 "httpMethod": "POST", |
| 492 "id": "androidmanagement.enterprises.devices.issueCo
mmand", |
| 493 "parameterOrder": [ |
| 494 "name" |
| 495 ], |
| 496 "parameters": { |
| 497 "name": { |
| 498 "description": "The name of the device in th
e form\n`enterprises/{enterpriseId}/devices/{deviceId}`", |
| 499 "location": "path", |
| 500 "pattern": "^enterprises/[^/]+/devices/[^/]+
$", |
| 501 "required": true, |
| 502 "type": "string" |
| 503 } |
| 504 }, |
| 505 "path": "v1/{+name}:issueCommand", |
| 506 "request": { |
| 507 "$ref": "Command" |
| 508 }, |
| 509 "response": { |
| 510 "$ref": "Operation" |
| 511 } |
| 512 }, |
| 513 "patch": { |
| 514 "description": "Updates a device.", |
| 515 "httpMethod": "PATCH", |
| 516 "id": "androidmanagement.enterprises.devices.patch", |
| 517 "parameterOrder": [ |
| 518 "name" |
| 519 ], |
| 520 "parameters": { |
| 521 "updateMask": { |
| 522 "description": "The field mask indicating th
e fields to update.\nIf not set, all modifiable fields will be modified.", |
| 523 "format": "google-fieldmask", |
| 524 "location": "query", |
| 525 "type": "string" |
| 526 }, |
| 527 "name": { |
| 528 "description": "The name of the device in th
e form\n`enterprises/{enterpriseId}/devices/{deviceId}`", |
| 529 "location": "path", |
| 530 "pattern": "^enterprises/[^/]+/devices/[^/]+
$", |
| 531 "required": true, |
| 532 "type": "string" |
| 533 } |
| 534 }, |
| 535 "path": "v1/{+name}", |
| 536 "request": { |
| 537 "$ref": "Device" |
| 538 }, |
| 539 "response": { |
| 540 "$ref": "Device" |
| 541 } |
| 542 }, |
| 543 "delete": { |
| 544 "description": "Deletes a device, which causes the d
evice to be wiped.", |
| 545 "httpMethod": "DELETE", |
| 546 "id": "androidmanagement.enterprises.devices.delete"
, |
| 547 "parameterOrder": [ |
| 548 "name" |
| 549 ], |
| 550 "parameters": { |
| 551 "name": { |
| 552 "description": "The name of the device in th
e form\n`enterprises/{enterpriseId}/devices/{deviceId}`", |
| 553 "location": "path", |
| 554 "pattern": "^enterprises/[^/]+/devices/[^/]+
$", |
| 555 "required": true, |
| 556 "type": "string" |
| 557 } |
| 558 }, |
| 559 "path": "v1/{+name}", |
| 560 "response": { |
| 561 "$ref": "Empty" |
| 562 } |
| 563 } |
| 564 }, |
| 565 "resources": { |
| 566 "operations": { |
| 567 "methods": { |
| 568 "get": { |
| 569 "description": "Gets the latest state of a l
ong-running operation. Clients can use this\nmethod to poll the operation resul
t at intervals as recommended by the API\nservice.", |
| 570 "httpMethod": "GET", |
| 571 "id": "androidmanagement.enterprises.devices
.operations.get", |
| 572 "parameterOrder": [ |
| 573 "name" |
| 574 ], |
| 575 "parameters": { |
| 576 "name": { |
| 577 "description": "The name of the oper
ation resource.", |
| 578 "location": "path", |
| 579 "pattern": "^enterprises/[^/]+/devic
es/[^/]+/operations/[^/]+$", |
| 580 "required": true, |
| 581 "type": "string" |
| 582 } |
| 583 }, |
| 584 "path": "v1/{+name}", |
| 585 "response": { |
| 586 "$ref": "Operation" |
| 587 } |
| 588 }, |
| 589 "list": { |
| 590 "description": "Lists operations that match
the specified filter in the request. If the\nserver doesn't support this method,
it returns `UNIMPLEMENTED`.\n\nNOTE: the `name` binding allows API services to
override the binding\nto use different resource name schemes, such as `users/*/o
perations`. To\noverride the binding, API services can add a binding such as\n`\
"/v1/{name=users/*}/operations\"` to their service configuration.\nFor backwards
compatibility, the default name includes the operations\ncollection id, however
overriding users must ensure the name binding\nis the parent resource, without
the operations collection id.", |
| 591 "httpMethod": "GET", |
| 592 "id": "androidmanagement.enterprises.devices
.operations.list", |
| 593 "parameterOrder": [ |
| 594 "name" |
| 595 ], |
| 596 "parameters": { |
| 597 "pageSize": { |
| 598 "description": "The standard list pa
ge size.", |
| 599 "format": "int32", |
| 600 "location": "query", |
| 601 "type": "integer" |
| 602 }, |
| 603 "filter": { |
| 604 "description": "The standard list fi
lter.", |
| 605 "location": "query", |
| 606 "type": "string" |
| 607 }, |
| 608 "name": { |
| 609 "description": "The name of the oper
ation's parent resource.", |
| 610 "location": "path", |
| 611 "pattern": "^enterprises/[^/]+/devic
es/[^/]+/operations$", |
| 612 "required": true, |
| 613 "type": "string" |
| 614 }, |
| 615 "pageToken": { |
| 616 "description": "The standard list pa
ge token.", |
| 617 "location": "query", |
| 618 "type": "string" |
| 619 } |
| 620 }, |
| 621 "path": "v1/{+name}", |
| 622 "response": { |
| 623 "$ref": "ListOperationsResponse" |
| 624 } |
| 625 }, |
| 626 "delete": { |
| 627 "description": "Deletes a long-running opera
tion. This method indicates that the client is\nno longer interested in the oper
ation result. It does not cancel the\noperation. If the server doesn't support t
his method, it returns\n`google.rpc.Code.UNIMPLEMENTED`.", |
| 628 "httpMethod": "DELETE", |
| 629 "id": "androidmanagement.enterprises.devices
.operations.delete", |
| 630 "parameterOrder": [ |
| 631 "name" |
| 632 ], |
| 633 "parameters": { |
| 634 "name": { |
| 635 "description": "The name of the oper
ation resource to be deleted.", |
| 636 "location": "path", |
| 637 "pattern": "^enterprises/[^/]+/devic
es/[^/]+/operations/[^/]+$", |
| 638 "required": true, |
| 639 "type": "string" |
| 640 } |
| 641 }, |
| 642 "path": "v1/{+name}", |
| 643 "response": { |
| 644 "$ref": "Empty" |
| 645 } |
| 646 }, |
| 647 "cancel": { |
| 648 "description": "Starts asynchronous cancella
tion on a long-running operation. The server\nmakes a best effort to cancel the
operation, but success is not\nguaranteed. If the server doesn't support this
method, it returns\n`google.rpc.Code.UNIMPLEMENTED`. Clients can use\nOperation
s.GetOperation or\nother methods to check whether the cancellation succeeded or
whether the\noperation completed despite cancellation. On successful cancellatio
n,\nthe operation is not deleted; instead, it becomes an operation with\nan Oper
ation.error value with a google.rpc.Status.code of 1,\ncorresponding to `Code.CA
NCELLED`.", |
| 649 "httpMethod": "POST", |
| 650 "id": "androidmanagement.enterprises.devices
.operations.cancel", |
| 651 "parameterOrder": [ |
| 652 "name" |
| 653 ], |
| 654 "parameters": { |
| 655 "name": { |
| 656 "description": "The name of the oper
ation resource to be cancelled.", |
| 657 "location": "path", |
| 658 "pattern": "^enterprises/[^/]+/devic
es/[^/]+/operations/[^/]+$", |
| 659 "required": true, |
| 660 "type": "string" |
| 661 } |
| 662 }, |
| 663 "path": "v1/{+name}:cancel", |
| 664 "response": { |
| 665 "$ref": "Empty" |
| 666 } |
| 667 } |
| 668 } |
| 669 } |
| 670 } |
| 671 } |
| 672 } |
| 673 } |
| 674 }, |
| 675 "revision": "20170717", |
| 676 "rootUrl": "https://androidmanagement.googleapis.com/", |
| 677 "schemas": { |
| 678 "Device": { |
| 679 "description": "A device owned by an enterprise.\nUnless otherwise n
oted, all fields are read-only and cannot be modified by\nan update device reque
st.", |
| 680 "id": "Device", |
| 681 "properties": { |
| 682 "userName": { |
| 683 "description": "The resource name of the user of the device
in the form\n`enterprises/{enterpriseId}/users/{userId}`. This is the name of th
e\ndevice account automatically created for this device.", |
| 684 "type": "string" |
| 685 }, |
| 686 "disabledReason": { |
| 687 "$ref": "UserFacingMessage", |
| 688 "description": "If the device state is `DISABLED`, an option
al message that is displayed on\nthe device indicating the reason the device is
disabled. This field may be\nmodified by an update request." |
| 689 }, |
| 690 "policyName": { |
| 691 "description": "The name of the policy that is intended to b
e applied to the device. If\nempty, the policy with id `default` is applied.\nTh
is field may be modified by an update request.\nThe name of the policy is in the
form\n`enterprises/{enterpriseId}/policies/{policyId}`.\nIt is also permissible
to only specify the `policyId` when updating this\nfield as long as the `policy
Id` contains no slashes since the rest of the\npolicy name can be inferred from
context.", |
| 692 "type": "string" |
| 693 }, |
| 694 "lastPolicyComplianceReportTime": { |
| 695 "description": "The last time the device sent a policy compl
iance report.", |
| 696 "format": "google-datetime", |
| 697 "type": "string" |
| 698 }, |
| 699 "nonComplianceDetails": { |
| 700 "description": "Details about policy settings for which the
device is not in compliance.", |
| 701 "items": { |
| 702 "$ref": "NonComplianceDetail" |
| 703 }, |
| 704 "type": "array" |
| 705 }, |
| 706 "lastPolicySyncTime": { |
| 707 "description": "The last time the device fetched its policy.
", |
| 708 "format": "google-datetime", |
| 709 "type": "string" |
| 710 }, |
| 711 "networkInfo": { |
| 712 "$ref": "NetworkInfo", |
| 713 "description": "Device network information. This information
is only available when\n`networkInfoEnabled` is true in the device's policy." |
| 714 }, |
| 715 "appliedState": { |
| 716 "description": "The state that is currently applied by the d
evice.", |
| 717 "enum": [ |
| 718 "DEVICE_STATE_UNSPECIFIED", |
| 719 "ACTIVE", |
| 720 "DISABLED", |
| 721 "DELETED", |
| 722 "PROVISIONING" |
| 723 ], |
| 724 "enumDescriptions": [ |
| 725 "This value is disallowed.", |
| 726 "The device is active.", |
| 727 "The device is disabled.", |
| 728 "The device was deleted. This state will never be return
ed by an API call,\nbut will be used in the final policy compliance report publi
shed to Cloud\nPub/Sub when the device acknowledges the deletion.", |
| 729 "The device is being provisioned. Newly enrolled devices
will be in this\nstate until they have applied policy." |
| 730 ], |
| 731 "type": "string" |
| 732 }, |
| 733 "enrollmentTokenData": { |
| 734 "description": "If this device was enrolled with an enrollme
nt token with additional data\nprovided, this field contains that data.", |
| 735 "type": "string" |
| 736 }, |
| 737 "enrollmentTokenName": { |
| 738 "description": "If this device was enrolled with an enrollme
nt token, this field contains\nthe name of the token.", |
| 739 "type": "string" |
| 740 }, |
| 741 "memoryInfo": { |
| 742 "$ref": "MemoryInfo", |
| 743 "description": "Memory information. This information is only
available when\n`memoryInfoEnabled` is true in the device's policy." |
| 744 }, |
| 745 "state": { |
| 746 "description": "The state that is intended to be applied to
the device. This field may be\nmodified by an update request.\nNote that UpdateD
evice only handles toggling between `ACTIVE` and\n`DISABLED` states. Use the\n[d
elete device method](/android/management/reference/rest/v1/enterprises.devices/d
elete)\nto cause the device to enter the `DELETED` state.", |
| 747 "enum": [ |
| 748 "DEVICE_STATE_UNSPECIFIED", |
| 749 "ACTIVE", |
| 750 "DISABLED", |
| 751 "DELETED", |
| 752 "PROVISIONING" |
| 753 ], |
| 754 "enumDescriptions": [ |
| 755 "This value is disallowed.", |
| 756 "The device is active.", |
| 757 "The device is disabled.", |
| 758 "The device was deleted. This state will never be return
ed by an API call,\nbut will be used in the final policy compliance report publi
shed to Cloud\nPub/Sub when the device acknowledges the deletion.", |
| 759 "The device is being provisioned. Newly enrolled devices
will be in this\nstate until they have applied policy." |
| 760 ], |
| 761 "type": "string" |
| 762 }, |
| 763 "softwareInfo": { |
| 764 "$ref": "SoftwareInfo", |
| 765 "description": "Detailed information about the device softwa
re. This information is only\navailable when `softwareInfoEnabled` is true in th
e device's policy." |
| 766 }, |
| 767 "memoryEvents": { |
| 768 "description": "Events related to memory and storage measure
ments in chronological order.\nThis information is only available when `memoryIn
foEnabled` is true in the\ndevice's policy.", |
| 769 "items": { |
| 770 "$ref": "MemoryEvent" |
| 771 }, |
| 772 "type": "array" |
| 773 }, |
| 774 "previousDeviceNames": { |
| 775 "description": "The previous device names used for the same
physical device when it has\nbeen enrolled multiple times. The serial number is
used as the unique\nidentifier to determine if the same physical device has enro
lled\npreviously. The names are in chronological order.", |
| 776 "items": { |
| 777 "type": "string" |
| 778 }, |
| 779 "type": "array" |
| 780 }, |
| 781 "policyCompliant": { |
| 782 "description": "Whether the device is compliant with its pol
icy.", |
| 783 "type": "boolean" |
| 784 }, |
| 785 "lastStatusReportTime": { |
| 786 "description": "The last time the device sent a status repor
t.", |
| 787 "format": "google-datetime", |
| 788 "type": "string" |
| 789 }, |
| 790 "name": { |
| 791 "description": "The name of the device in the form\n`enterpr
ises/{enterpriseId}/devices/{deviceId}`", |
| 792 "type": "string" |
| 793 }, |
| 794 "hardwareStatusSamples": { |
| 795 "description": "Hardware status samples in chronological ord
er. This information is only\navailable when `hardwareStatusEnabled` is true in
the device's policy.", |
| 796 "items": { |
| 797 "$ref": "HardwareStatus" |
| 798 }, |
| 799 "type": "array" |
| 800 }, |
| 801 "enrollmentTime": { |
| 802 "description": "The time of device enrollment.", |
| 803 "format": "google-datetime", |
| 804 "type": "string" |
| 805 }, |
| 806 "appliedPolicyVersion": { |
| 807 "description": "The version of the policy that is currently
applied by the device.", |
| 808 "format": "int64", |
| 809 "type": "string" |
| 810 }, |
| 811 "apiLevel": { |
| 812 "description": "The API level of the Android platform versio
n running on the device.", |
| 813 "format": "int32", |
| 814 "type": "integer" |
| 815 }, |
| 816 "hardwareInfo": { |
| 817 "$ref": "HardwareInfo", |
| 818 "description": "Detailed information about the device hardwa
re." |
| 819 }, |
| 820 "appliedPolicyName": { |
| 821 "description": "The name of the policy that is currently app
lied by the device.", |
| 822 "type": "string" |
| 823 }, |
| 824 "displays": { |
| 825 "description": "Displays on the device. This information is
only available when\n`displayInfoEnabled` is true in the device's policy.", |
| 826 "items": { |
| 827 "$ref": "Display" |
| 828 }, |
| 829 "type": "array" |
| 830 }, |
| 831 "powerManagementEvents": { |
| 832 "description": "Power management events on the device in chr
onological order. This\ninformation is only available when `powerManagementEvent
sEnabled` is true\nin the device's policy.", |
| 833 "items": { |
| 834 "$ref": "PowerManagementEvent" |
| 835 }, |
| 836 "type": "array" |
| 837 } |
| 838 }, |
| 839 "type": "object" |
| 840 }, |
| 841 "PermissionGrant": { |
| 842 "description": "Configuration for an Android permission and its gran
t state.", |
| 843 "id": "PermissionGrant", |
| 844 "properties": { |
| 845 "permission": { |
| 846 "description": "The android permission, e.g. `android.permis
sion.READ_CALENDAR`.", |
| 847 "type": "string" |
| 848 }, |
| 849 "policy": { |
| 850 "description": "The policy for granting the permission.", |
| 851 "enum": [ |
| 852 "PERMISSION_POLICY_UNSPECIFIED", |
| 853 "PROMPT", |
| 854 "GRANT", |
| 855 "DENY" |
| 856 ], |
| 857 "enumDescriptions": [ |
| 858 "Policy not specified. If no policy is specified for a p
ermission at any\nlevel, then the `PROMPT` behavior is used by default.", |
| 859 "Prompt the user to grant a permission.", |
| 860 "Automatically grant a permission.", |
| 861 "Automatically deny a permission." |
| 862 ], |
| 863 "type": "string" |
| 864 } |
| 865 }, |
| 866 "type": "object" |
| 867 }, |
| 868 "Application": { |
| 869 "description": "Application information.", |
| 870 "id": "Application", |
| 871 "properties": { |
| 872 "managedProperties": { |
| 873 "description": "The set of managed properties available to b
e pre-configured for the\napplication.", |
| 874 "items": { |
| 875 "$ref": "ManagedProperty" |
| 876 }, |
| 877 "type": "array" |
| 878 }, |
| 879 "title": { |
| 880 "description": "The title of the application. Localized.", |
| 881 "type": "string" |
| 882 }, |
| 883 "permissions": { |
| 884 "description": "The permissions required by the app.", |
| 885 "items": { |
| 886 "$ref": "ApplicationPermission" |
| 887 }, |
| 888 "type": "array" |
| 889 }, |
| 890 "name": { |
| 891 "description": "The name of the application in the form\n`en
terprises/{enterpriseId}/applications/{package_name}`", |
| 892 "type": "string" |
| 893 } |
| 894 }, |
| 895 "type": "object" |
| 896 }, |
| 897 "Status": { |
| 898 "description": "The `Status` type defines a logical error model that
is suitable for different\nprogramming environments, including REST APIs and RP
C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig
ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t
o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie
ces of data: error code, error message,\nand error details. The error code shoul
d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes
if needed. The\nerror message should be a developer-facing English message tha
t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa
cing\nerror message is needed, put the localized message in the error details or
\nlocalize it in the client. The optional error details may contain arbitrary\ni
nformation about the error. There is a predefined set of error detail types\nin
the package `google.rpc` that can be used for common error conditions.\n\n# Lang
uage mapping\n\nThe `Status` message is the logical representation of the error
model, but it\nis not necessarily the actual wire format. When the `Status` mess
age is\nexposed in different client libraries and different wire protocols, it c
an be\nmapped differently. For example, it will likely be mapped to some excepti
ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n
\nThe error model and the `Status` message can be used in a variety of\nenvironm
ents, either with or without APIs, to provide a\nconsistent developer experience
across different environments.\n\nExample uses of this error model include:\n\n
- Partial errors. If a service needs to return partial errors to the client,\n
it may embed the `Status` in the normal response to indicate the partial\n
errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m
ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a
client uses batch request and batch response, the\n `Status` message should
be used directly inside batch response, one for\n each error sub-response.\n\
n- Asynchronous operations. If an API call embeds asynchronous operation\n re
sults in its response, the status of those operations should be\n represented
directly using the `Status` message.\n\n- Logging. If some API errors are store
d in logs, the message `Status` could\n be used directly after any stripping
needed for security/privacy reasons.", |
| 899 "id": "Status", |
| 900 "properties": { |
| 901 "code": { |
| 902 "description": "The status code, which should be an enum val
ue of google.rpc.Code.", |
| 903 "format": "int32", |
| 904 "type": "integer" |
| 905 }, |
| 906 "details": { |
| 907 "description": "A list of messages that carry the error deta
ils. There is a common set of\nmessage types for APIs to use.", |
| 908 "items": { |
| 909 "additionalProperties": { |
| 910 "description": "Properties of the object. Contains f
ield @type with type URL.", |
| 911 "type": "any" |
| 912 }, |
| 913 "type": "object" |
| 914 }, |
| 915 "type": "array" |
| 916 }, |
| 917 "message": { |
| 918 "description": "A developer-facing error message, which shou
ld be in English. Any\nuser-facing error message should be localized and sent in
the\ngoogle.rpc.Status.details field, or localized by the client.", |
| 919 "type": "string" |
| 920 } |
| 921 }, |
| 922 "type": "object" |
| 923 }, |
| 924 "ApplicationPolicy": { |
| 925 "description": "Policy for an individual app.", |
| 926 "id": "ApplicationPolicy", |
| 927 "properties": { |
| 928 "lockTaskAllowed": { |
| 929 "description": "Whether the application is allowed to lock i
tself in full-screen mode.", |
| 930 "type": "boolean" |
| 931 }, |
| 932 "permissionGrants": { |
| 933 "description": "Explicit permission grants or denials for th
e app. These values override\nthe `default_permission_policy`.", |
| 934 "items": { |
| 935 "$ref": "PermissionGrant" |
| 936 }, |
| 937 "type": "array" |
| 938 }, |
| 939 "managedConfiguration": { |
| 940 "additionalProperties": { |
| 941 "description": "Properties of the object.", |
| 942 "type": "any" |
| 943 }, |
| 944 "description": "Managed configuration applied to the app. Th
e format for the configuration\nis dictated by the\n[`ManagedProperty`](/android
/management/reference/rest/v1/enterprises.applications#ManagedProperty)\nvalues
supported by the app. Each field name in the managed configuration\nmust match t
he `key` field of the `ManagedProperty`. The field value must\nbe compatible wit
h the `type` of the `ManagedProperty`:\n<table>\n<tr><td><i>type</i></td><td><i>
JSON value</i></td></tr>\n<tr><td>`BOOL`</td><td>`true` or `false`</td></tr>\n<t
r><td>`STRING`</td><td>string</td></tr>\n<tr><td>`INTEGER`</td><td>number</td></
tr>\n<tr><td>`CHOICE`</td><td>string</td></tr>\n<tr><td>`MULTISELECT`</td><td>ar
ray of strings</td></tr>\n<tr><td>`HIDDEN`</td><td>string</td></tr>\n<tr><td>`BU
NDLE_ARRAY`</td><td>array of objects</td></tr>\n</table>", |
| 945 "type": "object" |
| 946 }, |
| 947 "packageName": { |
| 948 "description": "The package name of the app, e.g. `com.googl
e.android.youtube` for the\nYouTube app.", |
| 949 "type": "string" |
| 950 }, |
| 951 "installType": { |
| 952 "description": "The type of installation to perform.", |
| 953 "enum": [ |
| 954 "INSTALL_TYPE_UNSPECIFIED", |
| 955 "PREINSTALLED", |
| 956 "FORCE_INSTALLED" |
| 957 ], |
| 958 "enumDescriptions": [ |
| 959 "No automatic installation is performed. Any other app p
olicies will be\napplied if the user installs the app.", |
| 960 "The application is automatically installed and can be r
emoved by the\nuser.", |
| 961 "The application is automatically installed and cannot b
e removed by the\nuser." |
| 962 ], |
| 963 "type": "string" |
| 964 }, |
| 965 "defaultPermissionPolicy": { |
| 966 "description": "The default policy for all permissions reque
sted by the app. If specified,\nthis overrides the policy-level `default_permiss
ion_policy` which applies\nto all apps.", |
| 967 "enum": [ |
| 968 "PERMISSION_POLICY_UNSPECIFIED", |
| 969 "PROMPT", |
| 970 "GRANT", |
| 971 "DENY" |
| 972 ], |
| 973 "enumDescriptions": [ |
| 974 "Policy not specified. If no policy is specified for a p
ermission at any\nlevel, then the `PROMPT` behavior is used by default.", |
| 975 "Prompt the user to grant a permission.", |
| 976 "Automatically grant a permission.", |
| 977 "Automatically deny a permission." |
| 978 ], |
| 979 "type": "string" |
| 980 } |
| 981 }, |
| 982 "type": "object" |
| 983 }, |
| 984 "ApplicationPermission": { |
| 985 "description": "Application permission.", |
| 986 "id": "ApplicationPermission", |
| 987 "properties": { |
| 988 "description": { |
| 989 "description": "A longer description of the permission, givi
ng more details of\nwhat it affects. Localized.", |
| 990 "type": "string" |
| 991 }, |
| 992 "permissionId": { |
| 993 "description": "An opaque string uniquely identifying the pe
rmission. Not localized.", |
| 994 "type": "string" |
| 995 }, |
| 996 "name": { |
| 997 "description": "The name of the permission. Localized.", |
| 998 "type": "string" |
| 999 } |
| 1000 }, |
| 1001 "type": "object" |
| 1002 }, |
| 1003 "ManagedProperty": { |
| 1004 "description": "Managed property.", |
| 1005 "id": "ManagedProperty", |
| 1006 "properties": { |
| 1007 "nestedProperties": { |
| 1008 "description": "For `BUNDLE_ARRAY` properties, the list of n
ested properties. A\n`BUNDLE_ARRAY` property is at most two levels deep.", |
| 1009 "items": { |
| 1010 "$ref": "ManagedProperty" |
| 1011 }, |
| 1012 "type": "array" |
| 1013 }, |
| 1014 "description": { |
| 1015 "description": "A longer description of the property, giving
more detail of what it\naffects. Localized.", |
| 1016 "type": "string" |
| 1017 }, |
| 1018 "defaultValue": { |
| 1019 "description": "The default value of the properties. `BUNDLE
_ARRAY` properties\nnever have a default value.", |
| 1020 "type": "any" |
| 1021 }, |
| 1022 "title": { |
| 1023 "description": "The name of the property. Localized.", |
| 1024 "type": "string" |
| 1025 }, |
| 1026 "key": { |
| 1027 "description": "The unique key that the application uses to
identify the property,\ne.g. \"com.google.android.gm.fieldname\".", |
| 1028 "type": "string" |
| 1029 }, |
| 1030 "entries": { |
| 1031 "description": "For `CHOICE` or `MULTISELECT` properties, th
e list\nof possible entries.", |
| 1032 "items": { |
| 1033 "$ref": "ManagedPropertyEntry" |
| 1034 }, |
| 1035 "type": "array" |
| 1036 }, |
| 1037 "type": { |
| 1038 "description": "The type of the property.", |
| 1039 "enum": [ |
| 1040 "MANAGED_PROPERTY_TYPE_UNSPECIFIED", |
| 1041 "BOOL", |
| 1042 "STRING", |
| 1043 "INTEGER", |
| 1044 "CHOICE", |
| 1045 "MULTISELECT", |
| 1046 "HIDDEN", |
| 1047 "BUNDLE_ARRAY" |
| 1048 ], |
| 1049 "enumDescriptions": [ |
| 1050 "Not used.", |
| 1051 "A property of boolean type.", |
| 1052 "A property of string type.", |
| 1053 "A property of integer type.", |
| 1054 "A choice of one item from a set.", |
| 1055 "A choice of multiple items from a set.", |
| 1056 "A hidden restriction of string type (the default value
can be used\nto pass along information that cannot be modified, such as a versio
n\ncode).", |
| 1057 "An array of property bundles." |
| 1058 ], |
| 1059 "type": "string" |
| 1060 } |
| 1061 }, |
| 1062 "type": "object" |
| 1063 }, |
| 1064 "Operation": { |
| 1065 "description": "This resource represents a long-running operation th
at is the result of a\nnetwork API call.", |
| 1066 "id": "Operation", |
| 1067 "properties": { |
| 1068 "error": { |
| 1069 "$ref": "Status", |
| 1070 "description": "The error result of the operation in case of
failure or cancellation." |
| 1071 }, |
| 1072 "done": { |
| 1073 "description": "If the value is `false`, it means the operat
ion is still in progress.\nIf true, the operation is completed, and either `erro
r` or `response` is\navailable.", |
| 1074 "type": "boolean" |
| 1075 }, |
| 1076 "metadata": { |
| 1077 "additionalProperties": { |
| 1078 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1079 "type": "any" |
| 1080 }, |
| 1081 "description": "Service-specific metadata associated with th
e operation. It typically\ncontains progress information and common metadata su
ch as create time.\nSome services might not provide such metadata. Any method t
hat returns a\nlong-running operation should document the metadata type, if any.
", |
| 1082 "type": "object" |
| 1083 }, |
| 1084 "response": { |
| 1085 "additionalProperties": { |
| 1086 "description": "Properties of the object. Contains field
@type with type URL.", |
| 1087 "type": "any" |
| 1088 }, |
| 1089 "description": "The normal response of the operation in case
of success. If the original\nmethod returns no data on success, such as `Delet
e`, the response is\n`google.protobuf.Empty`. If the original method is standar
d\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmet
hods, the response should have the type `XxxResponse`, where `Xxx`\nis the origi
nal method name. For example, if the original method name\nis `TakeSnapshot()`,
the inferred response type is\n`TakeSnapshotResponse`.", |
| 1090 "type": "object" |
| 1091 }, |
| 1092 "name": { |
| 1093 "description": "The server-assigned name, which is only uniq
ue within the same service that\noriginally returns it. If you use the default H
TTP mapping, the\n`name` should have the format of `operations/some/unique/name`
.", |
| 1094 "type": "string" |
| 1095 } |
| 1096 }, |
| 1097 "type": "object" |
| 1098 }, |
| 1099 "NonComplianceDetailCondition": { |
| 1100 "description": "A compliance rule condition which is satisfied if th
ere exists *any*\nmatching\n[`NonComplianceDetail`](/android/management/referenc
e/rest/v1/enterprises.devices#NonComplianceDetail)\nfor the device. A `NonCompli
anceDetail` matches a\n`NonComplianceDetailCondition` if *all* the fields which
are set within the\n`NonComplianceDetailCondition` match the corresponding `NonC
omplianceDetail`\nfields.", |
| 1101 "id": "NonComplianceDetailCondition", |
| 1102 "properties": { |
| 1103 "nonComplianceReason": { |
| 1104 "description": "The reason the device is not in compliance w
ith the setting. If not set,\nthen this condition matches any reason.", |
| 1105 "enum": [ |
| 1106 "NON_COMPLIANCE_REASON_UNSPECIFIED", |
| 1107 "API_LEVEL", |
| 1108 "ADMIN_TYPE", |
| 1109 "USER_ACTION", |
| 1110 "INVALID_VALUE", |
| 1111 "APP_NOT_INSTALLED", |
| 1112 "UNSUPPORTED", |
| 1113 "APP_INSTALLED", |
| 1114 "PENDING", |
| 1115 "APP_INCOMPATIBLE" |
| 1116 ], |
| 1117 "enumDescriptions": [ |
| 1118 "This value is disallowed.", |
| 1119 "The setting is not supported in the API level of Androi
d OS version the\ndevice is running.", |
| 1120 "The admin type (profile owner, device owner, etc.) does
not support the\nsetting.", |
| 1121 "The user has not taken required action to comply with t
he setting.", |
| 1122 "The setting has an invalid value.", |
| 1123 "The application required to implement the policy is not
installed.", |
| 1124 "The policy is not supported by the version of Android D
evice Policy on\nthe device.", |
| 1125 "A blocked application is installed.", |
| 1126 "The setting was not applied yet at the time of the repo
rt, but is\nexpected to be applied shortly.", |
| 1127 "The setting cannot be applied to the application becaus
e its target SDK\nversion is not high enough." |
| 1128 ], |
| 1129 "type": "string" |
| 1130 }, |
| 1131 "settingName": { |
| 1132 "description": "The name of the policy setting. This is the
JSON field name of a top-level\n[`Policy`](/android/management/reference/rest/v1
/enterprises.policies#Policy)\nfield. If not set, then this condition matches an
y setting name.", |
| 1133 "type": "string" |
| 1134 }, |
| 1135 "packageName": { |
| 1136 "description": "The package name indicating which applicatio
n is out of compliance. If not\nset, then this condition matches any package nam
e. If this field is set,\nthen `setting_name` must be unset or set to `applicati
ons`; otherwise, the\ncondition would never be satisfied.", |
| 1137 "type": "string" |
| 1138 } |
| 1139 }, |
| 1140 "type": "object" |
| 1141 }, |
| 1142 "NonComplianceDetail": { |
| 1143 "description": "Provides detail about non-compliance with a policy s
etting.", |
| 1144 "id": "NonComplianceDetail", |
| 1145 "properties": { |
| 1146 "settingName": { |
| 1147 "description": "The name of the policy setting. This is the
JSON field name of a top-level\n[`Policy`](/android/management/reference/rest/v1
/enterprises.policies#Policy)\n field.", |
| 1148 "type": "string" |
| 1149 }, |
| 1150 "currentValue": { |
| 1151 "description": "If the policy setting could not be applied,
the current value of the\nsetting on the device.", |
| 1152 "type": "any" |
| 1153 }, |
| 1154 "packageName": { |
| 1155 "description": "The package name indicating which applicatio
n is out of compliance, if\napplicable.", |
| 1156 "type": "string" |
| 1157 }, |
| 1158 "installationFailureReason": { |
| 1159 "description": "If `package_name` is set and the non-complia
nce reason is\n`APP_NOT_INSTALLED`, the detailed reason the app cannot be instal
led.", |
| 1160 "enum": [ |
| 1161 "INSTALLATION_FAILURE_REASON_UNSPECIFIED", |
| 1162 "INSTALLATION_FAILURE_REASON_UNKNOWN", |
| 1163 "IN_PROGRESS", |
| 1164 "NOT_FOUND", |
| 1165 "NOT_COMPATIBLE_WITH_DEVICE", |
| 1166 "NOT_APPROVED", |
| 1167 "PERMISSIONS_NOT_ACCEPTED", |
| 1168 "NOT_AVAILABLE_IN_COUNTRY", |
| 1169 "NO_LICENSES_REMAINING", |
| 1170 "NOT_ENROLLED" |
| 1171 ], |
| 1172 "enumDescriptions": [ |
| 1173 "This value is disallowed.", |
| 1174 "An unknown condition is preventing the app from being i
nstalled. Some\npotential reaons are that the device does not have enough storag
e, the\ndevice network connection is unreliable, or the installation is taking\n
longer than expected. The installation will be retried automatically.", |
| 1175 "The installation is still in progress.", |
| 1176 "The app was not found in Play.", |
| 1177 "The app is incompatible with the device.", |
| 1178 "The app has not been approved by the admin.", |
| 1179 "The app has new permissions that have not been accepted
by the admin.", |
| 1180 "The app is not available in the user's country.", |
| 1181 "There are no more licenses to assign to the user.", |
| 1182 "The enterprise is no longer enrolled with Play for Work
or Android Device\nPolicy is not enabled for the enterprise." |
| 1183 ], |
| 1184 "type": "string" |
| 1185 }, |
| 1186 "fieldPath": { |
| 1187 "description": "For settings with nested fields, if a partic
ular nested field is out of\ncompliance, this specifies the full path to the off
ending field. The path\nis formatted in the same way the policy JSON field would
be referenced in\nJavaScript, that is:\n1) For object-typed fields, the field n
ame is followed by a dot then by a\n subfield name.\n2) For array-typed fields
, the field name is followed by the array index\n enclosed in brackets.\nFor e
xample, to indicate a problem with the `url` field in the\n`externalData` field
in the 3rd application, the path would be\n`applications[2].externalData.url`", |
| 1188 "type": "string" |
| 1189 }, |
| 1190 "nonComplianceReason": { |
| 1191 "description": "The reason the device is not in compliance w
ith the setting.", |
| 1192 "enum": [ |
| 1193 "NON_COMPLIANCE_REASON_UNSPECIFIED", |
| 1194 "API_LEVEL", |
| 1195 "ADMIN_TYPE", |
| 1196 "USER_ACTION", |
| 1197 "INVALID_VALUE", |
| 1198 "APP_NOT_INSTALLED", |
| 1199 "UNSUPPORTED", |
| 1200 "APP_INSTALLED", |
| 1201 "PENDING", |
| 1202 "APP_INCOMPATIBLE" |
| 1203 ], |
| 1204 "enumDescriptions": [ |
| 1205 "This value is disallowed.", |
| 1206 "The setting is not supported in the API level of Androi
d OS version the\ndevice is running.", |
| 1207 "The admin type (profile owner, device owner, etc.) does
not support the\nsetting.", |
| 1208 "The user has not taken required action to comply with t
he setting.", |
| 1209 "The setting has an invalid value.", |
| 1210 "The application required to implement the policy is not
installed.", |
| 1211 "The policy is not supported by the version of Android D
evice Policy on\nthe device.", |
| 1212 "A blocked application is installed.", |
| 1213 "The setting was not applied yet at the time of the repo
rt, but is\nexpected to be applied shortly.", |
| 1214 "The setting cannot be applied to the application becaus
e its target SDK\nversion is not high enough." |
| 1215 ], |
| 1216 "type": "string" |
| 1217 } |
| 1218 }, |
| 1219 "type": "object" |
| 1220 }, |
| 1221 "ListDevicesResponse": { |
| 1222 "description": "Response to a request to list devices for a given en
terprise.", |
| 1223 "id": "ListDevicesResponse", |
| 1224 "properties": { |
| 1225 "nextPageToken": { |
| 1226 "description": "If there are more results, a token to retrie
ve next page of results.", |
| 1227 "type": "string" |
| 1228 }, |
| 1229 "devices": { |
| 1230 "description": "The list of devices.", |
| 1231 "items": { |
| 1232 "$ref": "Device" |
| 1233 }, |
| 1234 "type": "array" |
| 1235 } |
| 1236 }, |
| 1237 "type": "object" |
| 1238 }, |
| 1239 "PersistentPreferredActivity": { |
| 1240 "description": "A default activity for handling intents that match a
particular intent\nfilter.", |
| 1241 "id": "PersistentPreferredActivity", |
| 1242 "properties": { |
| 1243 "receiverActivity": { |
| 1244 "description": "The activity that should be the default inte
nt handler. This should be an\nAndroid component name, e.g. `com.android.enterpr
ise.app/.MainActivity`.\nAlternatively, the value may be the package name of an
app, which causes\nAndroid Device Policy to choose an appropriate activity from
the app to\nhandle the intent.", |
| 1245 "type": "string" |
| 1246 }, |
| 1247 "actions": { |
| 1248 "description": "The intent actions to match in the filter.
If any actions are included in\nthe filter, then an intent's action must be one
of those values for it to\nmatch. If no actions are included, the intent action
is ignored.", |
| 1249 "items": { |
| 1250 "type": "string" |
| 1251 }, |
| 1252 "type": "array" |
| 1253 }, |
| 1254 "categories": { |
| 1255 "description": "The intent categories to match in the filter
. An intent includes the\ncategories that it requires, all of which must be inc
luded in the filter in\norder to match. In other words, adding a category to the
filter has no\nimpact on matching unless that category is specified in the inte
nt.", |
| 1256 "items": { |
| 1257 "type": "string" |
| 1258 }, |
| 1259 "type": "array" |
| 1260 } |
| 1261 }, |
| 1262 "type": "object" |
| 1263 }, |
| 1264 "Policy": { |
| 1265 "description": "A policy, which governs behavior for a device.", |
| 1266 "id": "Policy", |
| 1267 "properties": { |
| 1268 "openNetworkConfiguration": { |
| 1269 "additionalProperties": { |
| 1270 "description": "Properties of the object.", |
| 1271 "type": "any" |
| 1272 }, |
| 1273 "description": "Network configuration for the device. See\n[
configure networks](/android/management/configure-networks)\nfor more informatio
n.", |
| 1274 "type": "object" |
| 1275 }, |
| 1276 "adjustVolumeDisabled": { |
| 1277 "description": "Whether adjusting the master volume is disab
led.", |
| 1278 "type": "boolean" |
| 1279 }, |
| 1280 "passwordRequirements": { |
| 1281 "$ref": "PasswordRequirements", |
| 1282 "description": "Password requirements." |
| 1283 }, |
| 1284 "modifyAccountsDisabled": { |
| 1285 "description": "Whether adding or removing accounts is disab
led.", |
| 1286 "type": "boolean" |
| 1287 }, |
| 1288 "statusReportingSettings": { |
| 1289 "$ref": "StatusReportingSettings", |
| 1290 "description": "Status reporting settings" |
| 1291 }, |
| 1292 "factoryResetDisabled": { |
| 1293 "description": "Whether factory resetting from settings is d
isabled.", |
| 1294 "type": "boolean" |
| 1295 }, |
| 1296 "applications": { |
| 1297 "description": "Policy applied to apps.", |
| 1298 "items": { |
| 1299 "$ref": "ApplicationPolicy" |
| 1300 }, |
| 1301 "type": "array" |
| 1302 }, |
| 1303 "safeBootDisabled": { |
| 1304 "description": "Whether rebooting the device into safe boot
is disabled.", |
| 1305 "type": "boolean" |
| 1306 }, |
| 1307 "complianceRules": { |
| 1308 "description": "Rules declaring which mitigating actions to
take when a device is not\ncompliant with its policy. When the conditions for mu
ltiple rules are\nsatisfied, all of the mitigating actions for the rules are tak
en. There is\na maximum limit of 100 rules.", |
| 1309 "items": { |
| 1310 "$ref": "ComplianceRule" |
| 1311 }, |
| 1312 "type": "array" |
| 1313 }, |
| 1314 "unmuteMicrophoneDisabled": { |
| 1315 "description": "Whether the microphone is muted and adjustin
g microphone volume is\ndisabled.", |
| 1316 "type": "boolean" |
| 1317 }, |
| 1318 "installUnknownSourcesAllowed": { |
| 1319 "description": "Whether the user is allowed to enable the \"
Unknown Sources\" setting,\nwhich allows installation of apps from unknown sourc
es.", |
| 1320 "type": "boolean" |
| 1321 }, |
| 1322 "removeUserDisabled": { |
| 1323 "description": "Whether removing other users is disabled.", |
| 1324 "type": "boolean" |
| 1325 }, |
| 1326 "statusBarDisabled": { |
| 1327 "description": "Whether the status bar is disabled. This dis
ables notifications, quick\nsettings and other screen overlays that allow escape
from full-screen mode.", |
| 1328 "type": "boolean" |
| 1329 }, |
| 1330 "stayOnPluggedModes": { |
| 1331 "description": "The battery plugged in modes for which the d
evice stays on. When using this\nsetting, it is recommended to clear `maximum_ti
me_to_lock` so that the\ndevice doesn't lock itself while it stays on.", |
| 1332 "enumDescriptions": [ |
| 1333 "This value is ignored.", |
| 1334 "Power source is an AC charger.", |
| 1335 "Power source is a USB port.", |
| 1336 "Power source is wireless." |
| 1337 ], |
| 1338 "items": { |
| 1339 "enum": [ |
| 1340 "BATTERY_PLUGGED_MODE_UNSPECIFIED", |
| 1341 "AC", |
| 1342 "USB", |
| 1343 "WIRELESS" |
| 1344 ], |
| 1345 "type": "string" |
| 1346 }, |
| 1347 "type": "array" |
| 1348 }, |
| 1349 "cameraDisabled": { |
| 1350 "description": "Whether all cameras on the device are disabl
ed.", |
| 1351 "type": "boolean" |
| 1352 }, |
| 1353 "blockApplicationsEnabled": { |
| 1354 "description": "Whether applications other than the ones con
figured in `applications` are\nblocked from being installed. When set, applicati
ons that were\ninstalled under a previous policy but no longer appear in the pol
icy are\nautomatically uninstalled.", |
| 1355 "type": "boolean" |
| 1356 }, |
| 1357 "debuggingFeaturesAllowed": { |
| 1358 "description": "Whether the user is allowed to enable debugg
ing features.", |
| 1359 "type": "boolean" |
| 1360 }, |
| 1361 "maximumTimeToLock": { |
| 1362 "description": "Maximum time in milliseconds for user activi
ty until the device will lock.\nA value of 0 means there is no restriction.", |
| 1363 "format": "int64", |
| 1364 "type": "string" |
| 1365 }, |
| 1366 "name": { |
| 1367 "description": "The name of the policy in the form\n`enterpr
ises/{enterpriseId}/policies/{policyId}`", |
| 1368 "type": "string" |
| 1369 }, |
| 1370 "defaultPermissionPolicy": { |
| 1371 "description": "The default permission policy for requests f
or runtime permissions.", |
| 1372 "enum": [ |
| 1373 "PERMISSION_POLICY_UNSPECIFIED", |
| 1374 "PROMPT", |
| 1375 "GRANT", |
| 1376 "DENY" |
| 1377 ], |
| 1378 "enumDescriptions": [ |
| 1379 "Policy not specified. If no policy is specified for a p
ermission at any\nlevel, then the `PROMPT` behavior is used by default.", |
| 1380 "Prompt the user to grant a permission.", |
| 1381 "Automatically grant a permission.", |
| 1382 "Automatically deny a permission." |
| 1383 ], |
| 1384 "type": "string" |
| 1385 }, |
| 1386 "persistentPreferredActivities": { |
| 1387 "description": "Default intent handler activities.", |
| 1388 "items": { |
| 1389 "$ref": "PersistentPreferredActivity" |
| 1390 }, |
| 1391 "type": "array" |
| 1392 }, |
| 1393 "networkEscapeHatchEnabled": { |
| 1394 "description": "Flag to specify if network escape hatch is e
nabled. If this flag has been\nenabled then upon device boot if device has no ne
twork connection, then an\nactivity will be shown that allows the user to tempor
arily connect to a\nnetwork to fetch the latest policy. The launched activity wi
ll time out if\nno network has been connected for a given while and will return
to the\nprevious activity that was shown.", |
| 1395 "type": "boolean" |
| 1396 }, |
| 1397 "systemUpdate": { |
| 1398 "$ref": "SystemUpdate", |
| 1399 "description": "The system update policy, which controls how
OS updates are applied. If the\nupdate type is `WINDOWED` and the device has a
device account, the update\nwindow will automatically apply to Play app updates
as well." |
| 1400 }, |
| 1401 "frpAdminEmails": { |
| 1402 "description": "Email addresses of device administrators for
factory reset protection.\nWhen the device is factory reset, it will require on
e of these admins to\nlog in with the Google account email and password to unloc
k the device.\nIf no admins are specified, the device will not provide factory r
eset\nprotection.", |
| 1403 "items": { |
| 1404 "type": "string" |
| 1405 }, |
| 1406 "type": "array" |
| 1407 }, |
| 1408 "version": { |
| 1409 "description": "The version of the policy. This is a read-on
ly field. The version is\nincremented each time the policy is updated.", |
| 1410 "format": "int64", |
| 1411 "type": "string" |
| 1412 }, |
| 1413 "screenCaptureDisabled": { |
| 1414 "description": "Whether screen capture is disabled.", |
| 1415 "type": "boolean" |
| 1416 }, |
| 1417 "keyguardDisabled": { |
| 1418 "description": "Whether the keyguard is disabled.", |
| 1419 "type": "boolean" |
| 1420 }, |
| 1421 "addUserDisabled": { |
| 1422 "description": "Whether adding new users and profiles is dis
abled.", |
| 1423 "type": "boolean" |
| 1424 } |
| 1425 }, |
| 1426 "type": "object" |
| 1427 }, |
| 1428 "Command": { |
| 1429 "description": "A command.", |
| 1430 "id": "Command", |
| 1431 "properties": { |
| 1432 "duration": { |
| 1433 "description": "The duration for which the command is valid.
The command will expire if not\nexecuted by the device during this time. The d
efault duration if\nunspecified is ten minutes. There is no maximum duration.", |
| 1434 "format": "google-duration", |
| 1435 "type": "string" |
| 1436 }, |
| 1437 "newPassword": { |
| 1438 "description": "For commands of type `RESET_PASSWORD`, optio
nally specifies the new\npassword.", |
| 1439 "type": "string" |
| 1440 }, |
| 1441 "type": { |
| 1442 "description": "The type of the command.", |
| 1443 "enum": [ |
| 1444 "COMMAND_TYPE_UNSPECIFIED", |
| 1445 "LOCK", |
| 1446 "RESET_PASSWORD", |
| 1447 "REBOOT" |
| 1448 ], |
| 1449 "enumDescriptions": [ |
| 1450 "This value is disallowed.", |
| 1451 "Lock the device, as if the lock screen timeout had expi
red.", |
| 1452 "Reset the user's password.", |
| 1453 "Reboot the device. Only supported on API level 24+." |
| 1454 ], |
| 1455 "type": "string" |
| 1456 }, |
| 1457 "createTime": { |
| 1458 "description": "The timestamp at which the command was creat
ed. The timestamp is\nautomatically generated by the server.", |
| 1459 "format": "google-datetime", |
| 1460 "type": "string" |
| 1461 }, |
| 1462 "resetPasswordFlags": { |
| 1463 "description": "For commands of type `RESET_PASSWORD`, optio
nally specifies flags.", |
| 1464 "enumDescriptions": [ |
| 1465 "This value is ignored.", |
| 1466 "Don't allow other admins to change the password again u
ntil the user has\nentered it.", |
| 1467 "Don't ask for user credentials on device boot." |
| 1468 ], |
| 1469 "items": { |
| 1470 "enum": [ |
| 1471 "RESET_PASSWORD_FLAG_UNSPECIFIED", |
| 1472 "REQUIRE_ENTRY", |
| 1473 "DO_NOT_ASK_CREDENTIALS_ON_BOOT" |
| 1474 ], |
| 1475 "type": "string" |
| 1476 }, |
| 1477 "type": "array" |
| 1478 } |
| 1479 }, |
| 1480 "type": "object" |
| 1481 }, |
| 1482 "ComplianceRule": { |
| 1483 "description": "A rule declaring which mitigating actions to take wh
en a device is not\ncompliant with its policy. For every rule, there is always a
n implicit\nmitigating action to set `policy_compliant` to false for the\n[`Devi
ce`](/android/management/reference/rest/v1/enterprises.devices#Device)\nresource
, and display a message on the device indicating that the device is\nnot complia
nt with its policy. Other mitigating actions may optionally be\ntaken as well, d
epending on the field values in the rule.", |
| 1484 "id": "ComplianceRule", |
| 1485 "properties": { |
| 1486 "nonComplianceDetailCondition": { |
| 1487 "$ref": "NonComplianceDetailCondition", |
| 1488 "description": "A condition which is satisfied if there exis
ts *any* matching\n[`NonComplianceDetail`](/android/management/reference/rest/v1
/enterprises.devices#NonComplianceDetail)\nfor the device." |
| 1489 }, |
| 1490 "disableApps": { |
| 1491 "description": "If set to true, the rule includes a mitigati
ng action to disable\napplications so that the device is effectively disabled, b
ut application\ndata is preserved. If the device is running an app in locked tas
k mode, the\napp will be closed and a UI showing the reason for non-compliance w
ill be\ndisplayed.", |
| 1492 "type": "boolean" |
| 1493 }, |
| 1494 "apiLevelCondition": { |
| 1495 "$ref": "ApiLevelCondition", |
| 1496 "description": "A condition which is satisfied if the Androi
d Framework API level on the\ndevice does not meet a minimum requirement." |
| 1497 } |
| 1498 }, |
| 1499 "type": "object" |
| 1500 }, |
| 1501 "ListPoliciesResponse": { |
| 1502 "description": "Response to a request to list policies for a given e
nterprise.", |
| 1503 "id": "ListPoliciesResponse", |
| 1504 "properties": { |
| 1505 "policies": { |
| 1506 "description": "The list of policies.", |
| 1507 "items": { |
| 1508 "$ref": "Policy" |
| 1509 }, |
| 1510 "type": "array" |
| 1511 }, |
| 1512 "nextPageToken": { |
| 1513 "description": "If there are more results, a token to retrie
ve next page of results.", |
| 1514 "type": "string" |
| 1515 } |
| 1516 }, |
| 1517 "type": "object" |
| 1518 }, |
| 1519 "StatusReportingSettings": { |
| 1520 "description": "Settings controlling the behavior of status reports.
", |
| 1521 "id": "StatusReportingSettings", |
| 1522 "properties": { |
| 1523 "displayInfoEnabled": { |
| 1524 "description": "Whether displays reporting is enabled.", |
| 1525 "type": "boolean" |
| 1526 }, |
| 1527 "hardwareStatusEnabled": { |
| 1528 "description": "Whether hardware status reporting is enabled
.", |
| 1529 "type": "boolean" |
| 1530 }, |
| 1531 "softwareInfoEnabled": { |
| 1532 "description": "Whether software info reporting is enabled."
, |
| 1533 "type": "boolean" |
| 1534 }, |
| 1535 "memoryInfoEnabled": { |
| 1536 "description": "Whether memory info reporting is enabled.", |
| 1537 "type": "boolean" |
| 1538 }, |
| 1539 "powerManagementEventsEnabled": { |
| 1540 "description": "Whether power management event reporting is
enabled.", |
| 1541 "type": "boolean" |
| 1542 }, |
| 1543 "networkInfoEnabled": { |
| 1544 "description": "Whether network info reporting is enabled.", |
| 1545 "type": "boolean" |
| 1546 } |
| 1547 }, |
| 1548 "type": "object" |
| 1549 }, |
| 1550 "Display": { |
| 1551 "description": "Device display information.", |
| 1552 "id": "Display", |
| 1553 "properties": { |
| 1554 "refreshRate": { |
| 1555 "description": "Refresh rate of the display in frames per se
cond.", |
| 1556 "format": "int32", |
| 1557 "type": "integer" |
| 1558 }, |
| 1559 "state": { |
| 1560 "description": "State of the display.", |
| 1561 "enum": [ |
| 1562 "DISPLAY_STATE_UNSPECIFIED", |
| 1563 "OFF", |
| 1564 "ON", |
| 1565 "DOZE", |
| 1566 "SUSPENDED" |
| 1567 ], |
| 1568 "enumDescriptions": [ |
| 1569 "This value is disallowed.", |
| 1570 "Display is off.", |
| 1571 "Display is on.", |
| 1572 "Display is dozing in a low power state", |
| 1573 "Display is dozing in a suspended low power state." |
| 1574 ], |
| 1575 "type": "string" |
| 1576 }, |
| 1577 "width": { |
| 1578 "description": "Display width in pixels.", |
| 1579 "format": "int32", |
| 1580 "type": "integer" |
| 1581 }, |
| 1582 "displayId": { |
| 1583 "description": "Unique display id.", |
| 1584 "format": "int32", |
| 1585 "type": "integer" |
| 1586 }, |
| 1587 "name": { |
| 1588 "description": "Name of the display.", |
| 1589 "type": "string" |
| 1590 }, |
| 1591 "density": { |
| 1592 "description": "Display density expressed as dots-per-inch."
, |
| 1593 "format": "int32", |
| 1594 "type": "integer" |
| 1595 }, |
| 1596 "height": { |
| 1597 "description": "Display height in pixels.", |
| 1598 "format": "int32", |
| 1599 "type": "integer" |
| 1600 } |
| 1601 }, |
| 1602 "type": "object" |
| 1603 }, |
| 1604 "SignupUrl": { |
| 1605 "description": "An enterprise signup URL.", |
| 1606 "id": "SignupUrl", |
| 1607 "properties": { |
| 1608 "url": { |
| 1609 "description": "A URL under which the Admin can sign up for
an enterprise.\nThe page pointed to cannot be rendered in an iframe.", |
| 1610 "type": "string" |
| 1611 }, |
| 1612 "name": { |
| 1613 "description": "The name of the resource. This must be inclu
ded in the\n[create enterprise](/android/management/reference/rest/v1/enterprise
s/create)\nrequest at the end of the signup flow.", |
| 1614 "type": "string" |
| 1615 } |
| 1616 }, |
| 1617 "type": "object" |
| 1618 }, |
| 1619 "EnrollmentToken": { |
| 1620 "description": "An enrollment token.", |
| 1621 "id": "EnrollmentToken", |
| 1622 "properties": { |
| 1623 "expirationTimestamp": { |
| 1624 "description": "The expiration time of the token. This is a
read-only field generated by\nthe server.", |
| 1625 "format": "google-datetime", |
| 1626 "type": "string" |
| 1627 }, |
| 1628 "policyName": { |
| 1629 "description": "The name of the policy that will be initiall
y applied to the enrolled\ndevice in the form `enterprises/{enterpriseId}/polici
es/{policyId}`.\nIf not specified, the policy with id `default` is applied.\nIt
is permissible to only specify the `policyId` when updating this\nfield as long
as the `policyId` contains no slashes since the rest of the\npolicy name can be
inferred from context.", |
| 1630 "type": "string" |
| 1631 }, |
| 1632 "name": { |
| 1633 "description": "The name of the enrollment token, which is g
enerated by the server during\ncreation, in the form\n`enterprises/{enterpriseId
}/enrollmentTokens/{enrollmentTokenId}`", |
| 1634 "type": "string" |
| 1635 }, |
| 1636 "duration": { |
| 1637 "description": "The duration of the token. If not specified,
the duration will be 1 hour.\nThe allowed range is 1 minute to 30 days.", |
| 1638 "format": "google-duration", |
| 1639 "type": "string" |
| 1640 }, |
| 1641 "value": { |
| 1642 "description": "The token value which is passed to the devic
e and authorizes the device to\nenroll. This is a read-only field generated by t
he server.", |
| 1643 "type": "string" |
| 1644 }, |
| 1645 "additionalData": { |
| 1646 "description": "Optional, arbitrary data associated with the
enrollment token.\nThis could contain, for example, the id of an org unit to wh
ich the device\nis assigned after enrollment.\nAfter a device enrolls with the t
oken, this data will be exposed in the\n`enrollment_token_data` field of the\n[`
Device`](/android/management/reference/rest/v1/enterprises.devices#Device)\nreso
urce. The data must be 1024 characters or less; otherwise, the creation\nrequest
will fail.", |
| 1647 "type": "string" |
| 1648 }, |
| 1649 "qrCode": { |
| 1650 "description": "A JSON string whose UTF-8 representation can
be used to generate a QR code\nto enroll a device with this enrollment token. T
o enroll a device using\nNFC, the NFC record must contain a serialized `java.uti
l.Properties`\nrepresentation of the properties in the JSON.", |
| 1651 "type": "string" |
| 1652 } |
| 1653 }, |
| 1654 "type": "object" |
| 1655 }, |
| 1656 "SoftwareInfo": { |
| 1657 "description": "Information about device software.", |
| 1658 "id": "SoftwareInfo", |
| 1659 "properties": { |
| 1660 "androidVersion": { |
| 1661 "description": "The user visible Android version string, e.g
. `6.0.1`.", |
| 1662 "type": "string" |
| 1663 }, |
| 1664 "androidBuildNumber": { |
| 1665 "description": "Android build Id string meant for displaying
to the user,\ne.g. `shamu-userdebug 6.0.1 MOB30I 2756745 dev-keys`.", |
| 1666 "type": "string" |
| 1667 }, |
| 1668 "androidBuildTime": { |
| 1669 "description": "Build time.", |
| 1670 "format": "google-datetime", |
| 1671 "type": "string" |
| 1672 }, |
| 1673 "bootloaderVersion": { |
| 1674 "description": "The system bootloader version number, e.g. `
0.6.7`.", |
| 1675 "type": "string" |
| 1676 }, |
| 1677 "securityPatchLevel": { |
| 1678 "description": "Security patch level, e.g. `2016-05-01`.", |
| 1679 "type": "string" |
| 1680 }, |
| 1681 "deviceKernelVersion": { |
| 1682 "description": "Kernel version, e.g. `2.6.32.9-g103d848`.", |
| 1683 "type": "string" |
| 1684 } |
| 1685 }, |
| 1686 "type": "object" |
| 1687 }, |
| 1688 "ManagedPropertyEntry": { |
| 1689 "description": "An entry of a managed property.", |
| 1690 "id": "ManagedPropertyEntry", |
| 1691 "properties": { |
| 1692 "value": { |
| 1693 "description": "The machine-readable value of the entry, whi
ch should be used in the\nconfiguration. Not localized.", |
| 1694 "type": "string" |
| 1695 }, |
| 1696 "name": { |
| 1697 "description": "The human-readable name of the value. Locali
zed.", |
| 1698 "type": "string" |
| 1699 } |
| 1700 }, |
| 1701 "type": "object" |
| 1702 }, |
| 1703 "WebToken": { |
| 1704 "description": "A web token used to access an embeddable managed Goo
gle Play web UI.", |
| 1705 "id": "WebToken", |
| 1706 "properties": { |
| 1707 "value": { |
| 1708 "description": "The token value which is used in the hosting
page to generate the iframe\nwith the embedded UI. This is a read-only field ge
nerated by the server.", |
| 1709 "type": "string" |
| 1710 }, |
| 1711 "permissions": { |
| 1712 "description": "Permissions the admin may exercise in the em
bedded UI. The admin must have\nall of these permissions in order to view the UI
.", |
| 1713 "enumDescriptions": [ |
| 1714 "This value is ignored.", |
| 1715 "The permission to approve apps for the enterprise." |
| 1716 ], |
| 1717 "items": { |
| 1718 "enum": [ |
| 1719 "WEB_TOKEN_PERMISSION_UNSPECIFIED", |
| 1720 "APPROVE_APPS" |
| 1721 ], |
| 1722 "type": "string" |
| 1723 }, |
| 1724 "type": "array" |
| 1725 }, |
| 1726 "name": { |
| 1727 "description": "The name of the web token, which is generate
d by the server during\ncreation, in the form\n`enterprises/{enterpriseId}/webTo
kens/{webTokenId}`.", |
| 1728 "type": "string" |
| 1729 }, |
| 1730 "parentFrameUrl": { |
| 1731 "description": "The URL of the parent frame hosting the ifra
me with the embedded UI. To\nprevent XSS, the iframe may not be hosted at other
URLs. The URL must use\nthe https scheme.", |
| 1732 "type": "string" |
| 1733 } |
| 1734 }, |
| 1735 "type": "object" |
| 1736 }, |
| 1737 "Enterprise": { |
| 1738 "description": "The configuration applied to an enterprise.", |
| 1739 "id": "Enterprise", |
| 1740 "properties": { |
| 1741 "pubsubTopic": { |
| 1742 "description": "When Cloud Pub/Sub notifications are enabled
, this field is required to\nindicate the topic to which the notifications will
be published. The format\nof this field is `projects/{project}/topics/{topic}`.
You must have granted\nthe publish permission on this topic to\nandroid-cloud-po
licy@system.gserviceaccount.com", |
| 1743 "type": "string" |
| 1744 }, |
| 1745 "logo": { |
| 1746 "$ref": "ExternalData", |
| 1747 "description": "An image displayed as a logo during device p
rovisioning. Supported types\nare: image/bmp, image/gif, image/x-ico, image/jpeg
, image/png, image/webp,\nimage/vnd.wap.wbmp, image/x-adobe-dng." |
| 1748 }, |
| 1749 "enabledNotificationTypes": { |
| 1750 "description": "The notification types to enable via Google
Cloud Pub/Sub.", |
| 1751 "enumDescriptions": [ |
| 1752 "This value is ignored.", |
| 1753 "A notification sent when a device enrolls.", |
| 1754 "A notification sent when a device issues a policy compl
iance report.", |
| 1755 "A notification sent when a device issues a status repor
t.", |
| 1756 "A notification sent when a device command has completed
." |
| 1757 ], |
| 1758 "items": { |
| 1759 "enum": [ |
| 1760 "NOTIFICATION_TYPE_UNSPECIFIED", |
| 1761 "ENROLLMENT", |
| 1762 "COMPLIANCE_REPORT", |
| 1763 "STATUS_REPORT", |
| 1764 "COMMAND" |
| 1765 ], |
| 1766 "type": "string" |
| 1767 }, |
| 1768 "type": "array" |
| 1769 }, |
| 1770 "name": { |
| 1771 "description": "The name of the enterprise which is generate
d by the server during\ncreation, in the form\n`enterprises/{enterpriseId}`", |
| 1772 "type": "string" |
| 1773 }, |
| 1774 "primaryColor": { |
| 1775 "description": "A color in RGB format indicating the predomi
nant color to display in the\ndevice management app UI. The color components are
stored as follows:\n`(red << 16) | (green << 8) | blue`, where each component m
ay take a value\nbetween 0 and 255 inclusive.", |
| 1776 "format": "int32", |
| 1777 "type": "integer" |
| 1778 }, |
| 1779 "appAutoApprovalEnabled": { |
| 1780 "description": "Whether app auto-approval is enabled. When e
nabled, apps installed via\npolicy for this enterprise have all permissions auto
matically approved.\nWhen enabled, it is the caller's responsibility to display
the permissions\nrequired by an app to the enterprise admin before setting the a
pp to be\ninstalled in a policy.", |
| 1781 "type": "boolean" |
| 1782 }, |
| 1783 "enterpriseDisplayName": { |
| 1784 "description": "The name of the enterprise as it will appear
to users.", |
| 1785 "type": "string" |
| 1786 } |
| 1787 }, |
| 1788 "type": "object" |
| 1789 }, |
| 1790 "ListOperationsResponse": { |
| 1791 "description": "The response message for Operations.ListOperations."
, |
| 1792 "id": "ListOperationsResponse", |
| 1793 "properties": { |
| 1794 "nextPageToken": { |
| 1795 "description": "The standard List next-page token.", |
| 1796 "type": "string" |
| 1797 }, |
| 1798 "operations": { |
| 1799 "description": "A list of operations that matches the specif
ied filter in the request.", |
| 1800 "items": { |
| 1801 "$ref": "Operation" |
| 1802 }, |
| 1803 "type": "array" |
| 1804 } |
| 1805 }, |
| 1806 "type": "object" |
| 1807 }, |
| 1808 "MemoryEvent": { |
| 1809 "description": "An event related to memory and storage measurements.
", |
| 1810 "id": "MemoryEvent", |
| 1811 "properties": { |
| 1812 "byteCount": { |
| 1813 "description": "The number of free bytes in the medium, or f
or `EXTERNAL_STORAGE_DETECTED`,\nthe total capacity in bytes of the storage medi
um.", |
| 1814 "format": "int64", |
| 1815 "type": "string" |
| 1816 }, |
| 1817 "eventType": { |
| 1818 "description": "Event type.", |
| 1819 "enum": [ |
| 1820 "MEMORY_EVENT_TYPE_UNSPECIFIED", |
| 1821 "RAM_MEASURED", |
| 1822 "INTERNAL_STORAGE_MEASURED", |
| 1823 "EXTERNAL_STORAGE_DETECTED", |
| 1824 "EXTERNAL_STORAGE_REMOVED", |
| 1825 "EXTERNAL_STORAGE_MEASURED" |
| 1826 ], |
| 1827 "enumDescriptions": [ |
| 1828 "Unspecified. No events have this type.", |
| 1829 "Free space in RAM was measured.", |
| 1830 "Free space in internal storage was measured.", |
| 1831 "A new external storage medium was detected. The reporte
d byte count is\nthe total capacity of the storage medium.", |
| 1832 "An external storage medium was removed. The reported by
te count is zero.", |
| 1833 "Free space in an external storage medium was measured." |
| 1834 ], |
| 1835 "type": "string" |
| 1836 }, |
| 1837 "createTime": { |
| 1838 "description": "The creation time of the event.", |
| 1839 "format": "google-datetime", |
| 1840 "type": "string" |
| 1841 } |
| 1842 }, |
| 1843 "type": "object" |
| 1844 }, |
| 1845 "ExternalData": { |
| 1846 "description": "Data hosted at an external location. The data is to
be downloaded by Android\nDevice Policy and verified against the hash.", |
| 1847 "id": "ExternalData", |
| 1848 "properties": { |
| 1849 "url": { |
| 1850 "description": "The absolute URL to the data, which must use
either the http or https\nscheme. Android Device Policy does not provide any cr
edentials in the GET\nrequest, so the URL must be publicly accessible. Including
a long, random\ncomponent in the URL may be used to prevent attackers from disc
overing the\nURL.", |
| 1851 "type": "string" |
| 1852 }, |
| 1853 "sha256Hash": { |
| 1854 "description": "The base-64 encoded SHA-256 hash of the cont
ent hosted at url. If the\ncontent does not match this hash, Android Device Poli
cy will not use the\ndata.", |
| 1855 "type": "string" |
| 1856 } |
| 1857 }, |
| 1858 "type": "object" |
| 1859 }, |
| 1860 "UserFacingMessage": { |
| 1861 "description": "Provides user facing message with locale info. The m
aximum message length is\n4096 characters.", |
| 1862 "id": "UserFacingMessage", |
| 1863 "properties": { |
| 1864 "localizedMessages": { |
| 1865 "additionalProperties": { |
| 1866 "type": "string" |
| 1867 }, |
| 1868 "description": "A map which contains <locale, message> pairs
.\nThe locale is a BCP 47 language code, e.g. en-US, es-ES, fr.", |
| 1869 "type": "object" |
| 1870 }, |
| 1871 "defaultMessage": { |
| 1872 "description": "The default message that gets displayed if n
o localized message is\nspecified, or the user's locale does not match with any
of the localized\nmessages. A default message must be provided if any localized
messages are\nprovided.", |
| 1873 "type": "string" |
| 1874 } |
| 1875 }, |
| 1876 "type": "object" |
| 1877 }, |
| 1878 "PowerManagementEvent": { |
| 1879 "description": "A power management event.", |
| 1880 "id": "PowerManagementEvent", |
| 1881 "properties": { |
| 1882 "batteryLevel": { |
| 1883 "description": "For `BATTERY_LEVEL_COLLECTED` events, the ba
ttery level as a percentage.", |
| 1884 "format": "float", |
| 1885 "type": "number" |
| 1886 }, |
| 1887 "eventType": { |
| 1888 "description": "Event type.", |
| 1889 "enum": [ |
| 1890 "POWER_MANAGEMENT_EVENT_TYPE_UNSPECIFIED", |
| 1891 "BATTERY_LEVEL_COLLECTED", |
| 1892 "POWER_CONNECTED", |
| 1893 "POWER_DISCONNECTED", |
| 1894 "BATTERY_LOW", |
| 1895 "BATTERY_OKAY", |
| 1896 "BOOT_COMPLETED", |
| 1897 "SHUTDOWN" |
| 1898 ], |
| 1899 "enumDescriptions": [ |
| 1900 "Unspecified. No events have this type.", |
| 1901 "Battery level was measured.", |
| 1902 "The device started charging.", |
| 1903 "The device stopped charging.", |
| 1904 "The device entered low-power mode.", |
| 1905 "The device exited low-power mode.", |
| 1906 "The device booted.", |
| 1907 "The device shut down." |
| 1908 ], |
| 1909 "type": "string" |
| 1910 }, |
| 1911 "createTime": { |
| 1912 "description": "The creation time of the event.", |
| 1913 "format": "google-datetime", |
| 1914 "type": "string" |
| 1915 } |
| 1916 }, |
| 1917 "type": "object" |
| 1918 }, |
| 1919 "PasswordRequirements": { |
| 1920 "description": "Requirements for the password used to unlock a devic
e.", |
| 1921 "id": "PasswordRequirements", |
| 1922 "properties": { |
| 1923 "passwordMinimumNumeric": { |
| 1924 "description": "Minimum number of numerical digits required
in the password.\nOnly enforced when `password_quality` is `COMPLEX`.", |
| 1925 "format": "int32", |
| 1926 "type": "integer" |
| 1927 }, |
| 1928 "passwordMinimumNonLetter": { |
| 1929 "description": "Minimum number of non-letter characters (num
erical digits or symbols)\nrequired in the password.\nOnly enforced when `passwo
rd_quality` is `COMPLEX`.", |
| 1930 "format": "int32", |
| 1931 "type": "integer" |
| 1932 }, |
| 1933 "maximumFailedPasswordsForWipe": { |
| 1934 "description": "A device will be wiped after too many incorr
ect device-unlock passwords\nhave been entered. A value of 0 means there is no r
estriction.", |
| 1935 "format": "int32", |
| 1936 "type": "integer" |
| 1937 }, |
| 1938 "passwordMinimumLetters": { |
| 1939 "description": "Minimum number of letters required in the pa
ssword.\nOnly enforced when `password_quality` is `COMPLEX`.", |
| 1940 "format": "int32", |
| 1941 "type": "integer" |
| 1942 }, |
| 1943 "passwordMinimumUpperCase": { |
| 1944 "description": "Minimum number of upper case letters require
d in the password.\nOnly enforced when `password_quality` is `COMPLEX`.", |
| 1945 "format": "int32", |
| 1946 "type": "integer" |
| 1947 }, |
| 1948 "passwordQuality": { |
| 1949 "description": "The required password quality.", |
| 1950 "enum": [ |
| 1951 "PASSWORD_QUALITY_UNSPECIFIED", |
| 1952 "SOMETHING", |
| 1953 "NUMERIC", |
| 1954 "NUMERIC_COMPLEX", |
| 1955 "ALPHABETIC", |
| 1956 "ALPHANUMERIC", |
| 1957 "COMPLEX" |
| 1958 ], |
| 1959 "enumDescriptions": [ |
| 1960 "There are no requirements for the password.", |
| 1961 "There must be a password, but there are no restrictions
on its\ncharacters.", |
| 1962 "The password must contain numeric characters.", |
| 1963 "The password must contain numeric characters with no re
peating (4444) or\nordered (1234, 4321, 2468) sequences.", |
| 1964 "The password must contain alphabetic (or symbol) charac
ters.", |
| 1965 "The password must contain at both numeric and alphabeti
c (or symbol)\ncharacters.", |
| 1966 "The password must contain at least a letter, a numerica
l digit and a\nspecial symbol. Other password constraints, for example,\n`passwo
rd_minimum_letters` are enforced." |
| 1967 ], |
| 1968 "type": "string" |
| 1969 }, |
| 1970 "passwordMinimumLength": { |
| 1971 "description": "The minimum allowed password length. A value
of 0 means there is no\nrestriction.\nOnly enforced when `password_quality` is
`NUMERIC`, `NUMERIC_COMPLEX`,\n`ALPHABETIC`, `ALPHANUMERIC`, or `COMPLEX`.", |
| 1972 "format": "int32", |
| 1973 "type": "integer" |
| 1974 }, |
| 1975 "passwordExpirationTimeout": { |
| 1976 "description": "Password expiration timeout.", |
| 1977 "format": "google-duration", |
| 1978 "type": "string" |
| 1979 }, |
| 1980 "passwordMinimumSymbols": { |
| 1981 "description": "Minimum number of symbols required in the pa
ssword.\nOnly enforced when `password_quality` is `COMPLEX`.", |
| 1982 "format": "int32", |
| 1983 "type": "integer" |
| 1984 }, |
| 1985 "passwordHistoryLength": { |
| 1986 "description": "The length of the password history. After se
tting this, the user will\nnot be able to enter a new password that is the same
as any password in\nthe history. A value of 0 means there is no restriction.", |
| 1987 "format": "int32", |
| 1988 "type": "integer" |
| 1989 }, |
| 1990 "passwordMinimumLowerCase": { |
| 1991 "description": "Minimum number of lower case letters require
d in the password.\nOnly enforced when `password_quality` is `COMPLEX`.", |
| 1992 "format": "int32", |
| 1993 "type": "integer" |
| 1994 } |
| 1995 }, |
| 1996 "type": "object" |
| 1997 }, |
| 1998 "HardwareInfo": { |
| 1999 "description": "Information about device hardware. The fields relate
d to temperature\nthresholds are only available when hardwareStatusEnabled is tr
ue in the\ndevice's policy.", |
| 2000 "id": "HardwareInfo", |
| 2001 "properties": { |
| 2002 "gpuThrottlingTemperatures": { |
| 2003 "description": "GPU throttling temperature thresholds in Cel
sius for each GPU on the\ndevice.", |
| 2004 "items": { |
| 2005 "format": "float", |
| 2006 "type": "number" |
| 2007 }, |
| 2008 "type": "array" |
| 2009 }, |
| 2010 "cpuShutdownTemperatures": { |
| 2011 "description": "CPU shutdown temperature thresholds in Celsi
us for each CPU on the device.", |
| 2012 "items": { |
| 2013 "format": "float", |
| 2014 "type": "number" |
| 2015 }, |
| 2016 "type": "array" |
| 2017 }, |
| 2018 "gpuShutdownTemperatures": { |
| 2019 "description": "GPU shutdown temperature thresholds in Celsi
us for each GPU on the device.", |
| 2020 "items": { |
| 2021 "format": "float", |
| 2022 "type": "number" |
| 2023 }, |
| 2024 "type": "array" |
| 2025 }, |
| 2026 "manufacturer": { |
| 2027 "description": "Manufacturer, e.g. `Motorola`.", |
| 2028 "type": "string" |
| 2029 }, |
| 2030 "model": { |
| 2031 "description": "The model of the device, e.g. `Asus Nexus 7`
.", |
| 2032 "type": "string" |
| 2033 }, |
| 2034 "serialNumber": { |
| 2035 "description": "The device serial number.", |
| 2036 "type": "string" |
| 2037 }, |
| 2038 "brand": { |
| 2039 "description": "Brand of the device, e.g. `Google`.", |
| 2040 "type": "string" |
| 2041 }, |
| 2042 "cpuThrottlingTemperatures": { |
| 2043 "description": "CPU throttling temperature thresholds in Cel
sius for each CPU on the\ndevice.", |
| 2044 "items": { |
| 2045 "format": "float", |
| 2046 "type": "number" |
| 2047 }, |
| 2048 "type": "array" |
| 2049 }, |
| 2050 "skinThrottlingTemperatures": { |
| 2051 "description": "Device skin throttling temperature threshold
s in Celsius.", |
| 2052 "items": { |
| 2053 "format": "float", |
| 2054 "type": "number" |
| 2055 }, |
| 2056 "type": "array" |
| 2057 }, |
| 2058 "deviceBasebandVersion": { |
| 2059 "description": "Baseband version, e.g. `MDM9625_104662.22.05
.34p`.", |
| 2060 "type": "string" |
| 2061 }, |
| 2062 "hardware": { |
| 2063 "description": "Name of the hardware, e.g. `Angler`.", |
| 2064 "type": "string" |
| 2065 }, |
| 2066 "skinShutdownTemperatures": { |
| 2067 "description": "Device skin shutdown temperature thresholds
in Celsius.", |
| 2068 "items": { |
| 2069 "format": "float", |
| 2070 "type": "number" |
| 2071 }, |
| 2072 "type": "array" |
| 2073 }, |
| 2074 "batteryShutdownTemperatures": { |
| 2075 "description": "Battery shutdown temperature thresholds in C
elsius for each battery on the\ndevice.", |
| 2076 "items": { |
| 2077 "format": "float", |
| 2078 "type": "number" |
| 2079 }, |
| 2080 "type": "array" |
| 2081 }, |
| 2082 "batteryThrottlingTemperatures": { |
| 2083 "description": "Battery throttling temperature thresholds in
Celsius for each battery on\nthe device.", |
| 2084 "items": { |
| 2085 "format": "float", |
| 2086 "type": "number" |
| 2087 }, |
| 2088 "type": "array" |
| 2089 } |
| 2090 }, |
| 2091 "type": "object" |
| 2092 }, |
| 2093 "Empty": { |
| 2094 "description": "A generic empty message that you can re-use to avoid
defining duplicated\nempty messages in your APIs. A typical example is to use i
t as the request\nor the response type of an API method. For instance:\n\n se
rvice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty
);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
| 2095 "id": "Empty", |
| 2096 "properties": {}, |
| 2097 "type": "object" |
| 2098 }, |
| 2099 "NetworkInfo": { |
| 2100 "description": "Device network info.", |
| 2101 "id": "NetworkInfo", |
| 2102 "properties": { |
| 2103 "meid": { |
| 2104 "description": "MEID number of the CDMA device, e.g. `A00000
292788E1`.", |
| 2105 "type": "string" |
| 2106 }, |
| 2107 "wifiMacAddress": { |
| 2108 "description": "WiFi MAC address of the device, e.g. `7c:11:
11:11:11:11`.", |
| 2109 "type": "string" |
| 2110 }, |
| 2111 "imei": { |
| 2112 "description": "IMEI number of the GSM device, e.g. `A100003
1212`.", |
| 2113 "type": "string" |
| 2114 } |
| 2115 }, |
| 2116 "type": "object" |
| 2117 }, |
| 2118 "MemoryInfo": { |
| 2119 "description": "Information about device memory and storage.", |
| 2120 "id": "MemoryInfo", |
| 2121 "properties": { |
| 2122 "totalRam": { |
| 2123 "description": "Total RAM on device in bytes.", |
| 2124 "format": "int64", |
| 2125 "type": "string" |
| 2126 }, |
| 2127 "totalInternalStorage": { |
| 2128 "description": "Total internal storage on device in bytes.", |
| 2129 "format": "int64", |
| 2130 "type": "string" |
| 2131 } |
| 2132 }, |
| 2133 "type": "object" |
| 2134 }, |
| 2135 "ApiLevelCondition": { |
| 2136 "description": "A compliance rule condition which is satisfied if th
e Android Framework API\nlevel on the device does not meet a minimum requirement
. There can only be\none rule with this type of condition per policy.", |
| 2137 "id": "ApiLevelCondition", |
| 2138 "properties": { |
| 2139 "minApiLevel": { |
| 2140 "description": "The minimum desired Android Framework API le
vel. If the device does not\nmeet the minimum requirement, this condition is sat
isfied. Must be greater\nthan zero.", |
| 2141 "format": "int32", |
| 2142 "type": "integer" |
| 2143 } |
| 2144 }, |
| 2145 "type": "object" |
| 2146 }, |
| 2147 "SystemUpdate": { |
| 2148 "description": "Configuration for managing system updates", |
| 2149 "id": "SystemUpdate", |
| 2150 "properties": { |
| 2151 "startMinutes": { |
| 2152 "description": "If the type is `WINDOWED`, the start of the
maintenance window, measured as\nthe number of minutes after midnight in device
local time. This value must\nbe between 0 and 1439, inclusive.", |
| 2153 "format": "int32", |
| 2154 "type": "integer" |
| 2155 }, |
| 2156 "type": { |
| 2157 "description": "The type of system update to configure.", |
| 2158 "enum": [ |
| 2159 "SYSTEM_UPDATE_TYPE_UNSPECIFIED", |
| 2160 "AUTOMATIC", |
| 2161 "WINDOWED", |
| 2162 "POSTPONE" |
| 2163 ], |
| 2164 "enumDescriptions": [ |
| 2165 "Follow the default update behavior for the device, whic
h typically\nrequires the user to accept system updates.", |
| 2166 "Install automatically as soon as an update is available
.", |
| 2167 "Install automatically within a daily maintenance window
. If the device\nhas a device account, this also configures Play apps to be upda
ted within\nthe window. This is strongly recommended for kiosk devices because t
his\nis the only way apps persistently pinned to the foreground can be updated\n
by Play.", |
| 2168 "Postpone automatic install up to a maximum of 30 days." |
| 2169 ], |
| 2170 "type": "string" |
| 2171 }, |
| 2172 "endMinutes": { |
| 2173 "description": "If the type is `WINDOWED`, the end of the ma
intenance window, measured as\nthe number of minutes after midnight in device lo
cal time. This value must\nbe between 0 and 1439, inclusive. If this value is le
ss than\n`start_minutes`, then the maintenance window spans midnight. If the\nma
intenance window specified is smaller than 30 minutes, the actual window\nis ext
ended to 30 minutes beyond the start time.", |
| 2174 "format": "int32", |
| 2175 "type": "integer" |
| 2176 } |
| 2177 }, |
| 2178 "type": "object" |
| 2179 }, |
| 2180 "HardwareStatus": { |
| 2181 "description": "Hardware status. Temperatures may be compared to the
temperature thresholds\navailable in `hardwareInfo` to determine hardware healt
h.", |
| 2182 "id": "HardwareStatus", |
| 2183 "properties": { |
| 2184 "fanSpeeds": { |
| 2185 "description": "Fan speeds in RPM for each fan on the device
. Empty array means that there\nare no fans or fan speed is not supported on the
system.", |
| 2186 "items": { |
| 2187 "format": "float", |
| 2188 "type": "number" |
| 2189 }, |
| 2190 "type": "array" |
| 2191 }, |
| 2192 "skinTemperatures": { |
| 2193 "description": "Current device skin temperatures in Celsius.
", |
| 2194 "items": { |
| 2195 "format": "float", |
| 2196 "type": "number" |
| 2197 }, |
| 2198 "type": "array" |
| 2199 }, |
| 2200 "createTime": { |
| 2201 "description": "The time the measurements were taken.", |
| 2202 "format": "google-datetime", |
| 2203 "type": "string" |
| 2204 }, |
| 2205 "batteryTemperatures": { |
| 2206 "description": "Current battery temperatures in Celsius for
each battery on the device.", |
| 2207 "items": { |
| 2208 "format": "float", |
| 2209 "type": "number" |
| 2210 }, |
| 2211 "type": "array" |
| 2212 }, |
| 2213 "cpuTemperatures": { |
| 2214 "description": "Current CPU temperatures in Celsius for each
CPU on the device.", |
| 2215 "items": { |
| 2216 "format": "float", |
| 2217 "type": "number" |
| 2218 }, |
| 2219 "type": "array" |
| 2220 }, |
| 2221 "gpuTemperatures": { |
| 2222 "description": "Current GPU temperatures in Celsius for each
GPU on the device.", |
| 2223 "items": { |
| 2224 "format": "float", |
| 2225 "type": "number" |
| 2226 }, |
| 2227 "type": "array" |
| 2228 }, |
| 2229 "cpuUsages": { |
| 2230 "description": "CPU usages in percentage for each core avail
able on the device.\nUsage is 0 for each unplugged core. Empty array implies tha
t CPU usage\nis not supported in the system.", |
| 2231 "items": { |
| 2232 "format": "float", |
| 2233 "type": "number" |
| 2234 }, |
| 2235 "type": "array" |
| 2236 } |
| 2237 }, |
| 2238 "type": "object" |
| 2239 } |
| 2240 }, |
| 2241 "servicePath": "", |
| 2242 "title": "Android Management API", |
| 2243 "version": "v1" |
| 2244 } |
OLD | NEW |