Skip to content

Commit b2db0a3

Browse files
feat(androidenterprise): update the api
#### androidenterprise:v1 The following keys were deleted: - resources.enterprises.methods.createEnrollmentToken.parameters.deviceType (Total Keys: 3) - resources.enterprises.methods.createEnrollmentToken.parameters.enrollmentToken.duration (Total Keys: 3) - resources.enterprises.methods.createEnrollmentToken.parameters.enrollmentToken.enrollmentTokenType (Total Keys: 2) - resources.enterprises.methods.createEnrollmentToken.parameters.enrollmentToken.token (Total Keys: 2) - schemas.CreateEnrollmentTokenResponse (Total Keys: 5) The following keys were added: - resources.enterprises.methods.createEnrollmentToken.request.$ref (Total Keys: 1) The following keys were changed: - resources.enterprises.methods.createEnrollmentToken.response.$ref (Total Keys: 1)
1 parent be62507 commit b2db0a3

File tree

2 files changed

+20
-81
lines changed

2 files changed

+20
-81
lines changed

docs/dyn/androidenterprise_v1.enterprises.html

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ <h2>Instance Methods</h2>
8484
<code><a href="#completeSignup">completeSignup(completionToken=None, enterpriseToken=None, x__xgafv=None)</a></code></p>
8585
<p class="firstline">Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.</p>
8686
<p class="toc_element">
87-
<code><a href="#createEnrollmentToken">createEnrollmentToken(enterpriseId, deviceType=None, enrollmentToken_duration=None, enrollmentToken_enrollmentTokenType=None, enrollmentToken_token=None, x__xgafv=None)</a></code></p>
87+
<code><a href="#createEnrollmentToken">createEnrollmentToken(enterpriseId, body=None, x__xgafv=None)</a></code></p>
8888
<p class="firstline">Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.</p>
8989
<p class="toc_element">
9090
<code><a href="#createWebToken">createWebToken(enterpriseId, body=None, x__xgafv=None)</a></code></p>
@@ -173,23 +173,20 @@ <h3>Method Details</h3>
173173
</div>
174174

175175
<div class="method">
176-
<code class="details" id="createEnrollmentToken">createEnrollmentToken(enterpriseId, deviceType=None, enrollmentToken_duration=None, enrollmentToken_enrollmentTokenType=None, enrollmentToken_token=None, x__xgafv=None)</code>
176+
<code class="details" id="createEnrollmentToken">createEnrollmentToken(enterpriseId, body=None, x__xgafv=None)</code>
177177
<pre>Returns a token for device enrollment. The DPC can encode this token within the QR/NFC/zero-touch enrollment payload or fetch it before calling the on-device API to authenticate the user. The token can be generated for each device or reused across multiple devices.
178178

179179
Args:
180180
enterpriseId: string, Required. The ID of the enterprise. (required)
181-
deviceType: string, Deprecated: Use enrollment_token instead. this field will be removed in the future.
182-
Allowed values
183-
unknown - This value is unused
184-
dedicatedDevice - This device is a dedicated device.
185-
knowledgeWorker - This device is required to have an authenticated user.
186-
enrollmentToken_duration: string, [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.
187-
enrollmentToken_enrollmentTokenType: string, [Required] The type of the enrollment token.
188-
Allowed values
189-
enrollmentTokenTypeUnspecified - The value is unused.
190-
userlessDevice - The enrollment token is for a userless device.
191-
userDevice - The enrollment token is for a user device.
192-
enrollmentToken_token: string, The token value that&#x27;s passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
181+
body: object, The request body.
182+
The object takes the form of:
183+
184+
{ # A token used to enroll a device.
185+
&quot;duration&quot;: &quot;A String&quot;, # [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.
186+
&quot;enrollmentTokenType&quot;: &quot;A String&quot;, # [Required] The type of the enrollment token.
187+
&quot;token&quot;: &quot;A String&quot;, # The token value that&#x27;s passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
188+
}
189+
193190
x__xgafv: string, V1 error format.
194191
Allowed values
195192
1 - v1 error format
@@ -198,13 +195,10 @@ <h3>Method Details</h3>
198195
Returns:
199196
An object of the form:
200197

201-
{ # Response message for create enrollment token.
202-
&quot;enrollmentToken&quot;: &quot;A String&quot;, # Deprecated: Use token instead. This field will be removed in the future.
203-
&quot;token&quot;: { # A token used to enroll a device. # [Required] The created enrollment token.
204-
&quot;duration&quot;: &quot;A String&quot;, # [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.
205-
&quot;enrollmentTokenType&quot;: &quot;A String&quot;, # [Required] The type of the enrollment token.
206-
&quot;token&quot;: &quot;A String&quot;, # The token value that&#x27;s passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
207-
},
198+
{ # A token used to enroll a device.
199+
&quot;duration&quot;: &quot;A String&quot;, # [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.
200+
&quot;enrollmentTokenType&quot;: &quot;A String&quot;, # [Required] The type of the enrollment token.
201+
&quot;token&quot;: &quot;A String&quot;, # The token value that&#x27;s passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
208202
}</pre>
209203
</div>
210204

googleapiclient/discovery_cache/documents/androidenterprise.v1.json

Lines changed: 5 additions & 60 deletions
Original file line numberDiff line numberDiff line change
@@ -392,48 +392,6 @@
392392
"enterpriseId"
393393
],
394394
"parameters": {
395-
"deviceType": {
396-
"deprecated": true,
397-
"description": "Deprecated: Use enrollment_token instead. this field will be removed in the future.",
398-
"enum": [
399-
"unknown",
400-
"dedicatedDevice",
401-
"knowledgeWorker"
402-
],
403-
"enumDescriptions": [
404-
"This value is unused",
405-
"This device is a dedicated device.",
406-
"This device is required to have an authenticated user."
407-
],
408-
"location": "query",
409-
"type": "string"
410-
},
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-
},
437395
"enterpriseId": {
438396
"description": "Required. The ID of the enterprise.",
439397
"location": "path",
@@ -442,8 +400,11 @@
442400
}
443401
},
444402
"path": "androidenterprise/v1/enterprises/{enterpriseId}/createEnrollmentToken",
403+
"request": {
404+
"$ref": "EnrollmentToken"
405+
},
445406
"response": {
446-
"$ref": "CreateEnrollmentTokenResponse"
407+
"$ref": "EnrollmentToken"
447408
},
448409
"scopes": [
449410
"https://www.googleapis.com/auth/androidenterprise"
@@ -2681,7 +2642,7 @@
26812642
}
26822643
}
26832644
},
2684-
"revision": "20241113",
2645+
"revision": "20250102",
26852646
"rootUrl": "https://androidenterprise.googleapis.com/",
26862647
"schemas": {
26872648
"Administrator": {
@@ -3175,22 +3136,6 @@
31753136
},
31763137
"type": "object"
31773138
},
3178-
"CreateEnrollmentTokenResponse": {
3179-
"description": "Response message for create enrollment token.",
3180-
"id": "CreateEnrollmentTokenResponse",
3181-
"properties": {
3182-
"enrollmentToken": {
3183-
"deprecated": true,
3184-
"description": "Deprecated: Use token instead. This field will be removed in the future.",
3185-
"type": "string"
3186-
},
3187-
"token": {
3188-
"$ref": "EnrollmentToken",
3189-
"description": "[Required] The created enrollment token."
3190-
}
3191-
},
3192-
"type": "object"
3193-
},
31943139
"Device": {
31953140
"description": "A Devices resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.",
31963141
"id": "Device",

0 commit comments

Comments
 (0)