Skip to content

Commit e9ebb69

Browse files
feat(all): auto-regenerate discovery clients (#2874)
1 parent 9147fac commit e9ebb69

29 files changed

+1565
-288
lines changed

androidenterprise/v1/androidenterprise-api.json

Lines changed: 66 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,8 @@
393393
],
394394
"parameters": {
395395
"deviceType": {
396-
"description": "Whether it’s a dedicated device or a knowledge worker device.",
396+
"deprecated": true,
397+
"description": "Deprecated: Use enrollment_token instead. this field will be removed in the future.",
397398
"enum": [
398399
"unknown",
399400
"dedicatedDevice",
@@ -407,8 +408,34 @@
407408
"location": "query",
408409
"type": "string"
409410
},
411+
"enrollmentToken.duration": {
412+
"description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.",
413+
"format": "google-duration",
414+
"location": "query",
415+
"type": "string"
416+
},
417+
"enrollmentToken.enrollmentTokenType": {
418+
"description": "[Required] The type of the enrollment token.",
419+
"enum": [
420+
"enrollmentTokenTypeUnspecified",
421+
"userlessDevice",
422+
"userDevice"
423+
],
424+
"enumDescriptions": [
425+
"The value is unused.",
426+
"The enrollment token is for a userless device.",
427+
"The enrollment token is for a user device."
428+
],
429+
"location": "query",
430+
"type": "string"
431+
},
432+
"enrollmentToken.token": {
433+
"description": "The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.",
434+
"location": "query",
435+
"type": "string"
436+
},
410437
"enterpriseId": {
411-
"description": "The ID of the enterprise.",
438+
"description": "Required. The ID of the enterprise.",
412439
"location": "path",
413440
"required": true,
414441
"type": "string"
@@ -2654,7 +2681,7 @@
26542681
}
26552682
}
26562683
},
2657-
"revision": "20241028",
2684+
"revision": "20241113",
26582685
"rootUrl": "https://androidenterprise.googleapis.com/",
26592686
"schemas": {
26602687
"Administrator": {
@@ -3153,8 +3180,13 @@
31533180
"id": "CreateEnrollmentTokenResponse",
31543181
"properties": {
31553182
"enrollmentToken": {
3156-
"description": "Enrollment token.",
3183+
"deprecated": true,
3184+
"description": "Deprecated: Use token instead. This field will be removed in the future.",
31573185
"type": "string"
3186+
},
3187+
"token": {
3188+
"$ref": "EnrollmentToken",
3189+
"description": "[Required] The created enrollment token."
31583190
}
31593191
},
31603192
"type": "object"
@@ -3293,6 +3325,36 @@
32933325
},
32943326
"type": "object"
32953327
},
3328+
"EnrollmentToken": {
3329+
"description": "A token used to enroll a device.",
3330+
"id": "EnrollmentToken",
3331+
"properties": {
3332+
"duration": {
3333+
"description": "[Optional] The length of time the enrollment token is valid, ranging from 1 minute to [`Durations.MAX_VALUE`](https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE), approximately 10,000 years. If not specified, the default duration is 1 hour.",
3334+
"format": "google-duration",
3335+
"type": "string"
3336+
},
3337+
"enrollmentTokenType": {
3338+
"description": "[Required] The type of the enrollment token.",
3339+
"enum": [
3340+
"enrollmentTokenTypeUnspecified",
3341+
"userlessDevice",
3342+
"userDevice"
3343+
],
3344+
"enumDescriptions": [
3345+
"The value is unused.",
3346+
"The enrollment token is for a userless device.",
3347+
"The enrollment token is for a user device."
3348+
],
3349+
"type": "string"
3350+
},
3351+
"token": {
3352+
"description": "The token value that's passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.",
3353+
"type": "string"
3354+
}
3355+
},
3356+
"type": "object"
3357+
},
32963358
"Enterprise": {
32973359
"description": "An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For managed Google Play Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the managed Google Play sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.",
32983360
"id": "Enterprise",

androidenterprise/v1/androidenterprise-gen.go

Lines changed: 75 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

androidmanagement/v1/androidmanagement-api.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,7 +1168,7 @@
11681168
}
11691169
}
11701170
},
1171-
"revision": "20241104",
1171+
"revision": "20241114",
11721172
"rootUrl": "https://androidmanagement.googleapis.com/",
11731173
"schemas": {
11741174
"AdbShellCommandEvent": {
@@ -1716,7 +1716,7 @@
17161716
"enumDescriptions": [
17171717
"Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.",
17181718
"Prompt the user to grant a permission.",
1719-
"Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)",
1719+
"Automatically grant a permission.On Android 12 and above, READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)",
17201720
"Automatically deny a permission."
17211721
],
17221722
"type": "string"
@@ -4708,7 +4708,7 @@
47084708
"enumDescriptions": [
47094709
"Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.",
47104710
"Prompt the user to grant a permission.",
4711-
"Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)",
4711+
"Automatically grant a permission.On Android 12 and above, READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)",
47124712
"Automatically deny a permission."
47134713
],
47144714
"type": "string"
@@ -5028,7 +5028,7 @@
50285028
"enumDescriptions": [
50295029
"Policy not specified. If no policy is specified for a permission at any level, then the PROMPT behavior is used by default.",
50305030
"Prompt the user to grant a permission.",
5031-
"Automatically grant a permission.On Android 12 and above, Manifest.permission.READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: Manifest.permission.ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) Manifest.permission.ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) Manifest.permission.ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) Manifest.permission.CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) Manifest.permission.RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) Manifest.permission.ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) Manifest.permission.BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)",
5031+
"Automatically grant a permission.On Android 12 and above, READ_SMS (https://developer.android.com/reference/android/Manifest.permission#READ_SMS) and following sensor-related permissions can only be granted on fully managed devices: ACCESS_FINE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_FINE_LOCATION) ACCESS_BACKGROUND_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_BACKGROUND_LOCATION) ACCESS_COARSE_LOCATION (https://developer.android.com/reference/android/Manifest.permission#ACCESS_COARSE_LOCATION) CAMERA (https://developer.android.com/reference/android/Manifest.permission#CAMERA) RECORD_AUDIO (https://developer.android.com/reference/android/Manifest.permission#RECORD_AUDIO) ACTIVITY_RECOGNITION (https://developer.android.com/reference/android/Manifest.permission#ACTIVITY_RECOGNITION) BODY_SENSORS (https://developer.android.com/reference/android/Manifest.permission#BODY_SENSORS)",
50325032
"Automatically deny a permission."
50335033
],
50345034
"type": "string"

0 commit comments

Comments
 (0)