Skip to content

Commit 442e22f

Browse files
feat(androidmanagement): update the api
#### androidmanagement:v1 The following keys were added: - resources.enterprises.resources.enrollmentTokens.methods.get (Total Keys: 11) - resources.enterprises.resources.enrollmentTokens.methods.list (Total Keys: 16) - schemas.ListEnrollmentTokensResponse (Total Keys: 5)
1 parent 0b384d8 commit 442e22f

File tree

3 files changed

+185
-16
lines changed

3 files changed

+185
-16
lines changed

docs/dyn/androidmanagement_v1.enterprises.devices.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -324,9 +324,9 @@ <h3>Method Details</h3>
324324
&quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
325325
&quot;specificNonComplianceContext&quot;: { # Additional context for SpecificNonComplianceReason. # Additional context for specific_non_compliance_reason.
326326
&quot;oncWifiContext&quot;: { # Additional context for non-compliance related to Wi-Fi configuration. # Additional context for non-compliance related to Wi-Fi configuration. See ONC_WIFI_INVALID_VALUE.
327-
&quot;wifiGuid&quot;: &quot;A String&quot;, # The guid of non-compliant Wi-Fi configuration.
327+
&quot;wifiGuid&quot;: &quot;A String&quot;, # The GUID of non-compliant Wi-Fi configuration.
328328
},
329-
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED, and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
329+
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
330330
&quot;passwordPolicyScope&quot;: &quot;A String&quot;, # The scope of non-compliant password.
331331
},
332332
},
@@ -649,9 +649,9 @@ <h3>Method Details</h3>
649649
&quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
650650
&quot;specificNonComplianceContext&quot;: { # Additional context for SpecificNonComplianceReason. # Additional context for specific_non_compliance_reason.
651651
&quot;oncWifiContext&quot;: { # Additional context for non-compliance related to Wi-Fi configuration. # Additional context for non-compliance related to Wi-Fi configuration. See ONC_WIFI_INVALID_VALUE.
652-
&quot;wifiGuid&quot;: &quot;A String&quot;, # The guid of non-compliant Wi-Fi configuration.
652+
&quot;wifiGuid&quot;: &quot;A String&quot;, # The GUID of non-compliant Wi-Fi configuration.
653653
},
654-
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED, and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
654+
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
655655
&quot;passwordPolicyScope&quot;: &quot;A String&quot;, # The scope of non-compliant password.
656656
},
657657
},
@@ -920,9 +920,9 @@ <h3>Method Details</h3>
920920
&quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
921921
&quot;specificNonComplianceContext&quot;: { # Additional context for SpecificNonComplianceReason. # Additional context for specific_non_compliance_reason.
922922
&quot;oncWifiContext&quot;: { # Additional context for non-compliance related to Wi-Fi configuration. # Additional context for non-compliance related to Wi-Fi configuration. See ONC_WIFI_INVALID_VALUE.
923-
&quot;wifiGuid&quot;: &quot;A String&quot;, # The guid of non-compliant Wi-Fi configuration.
923+
&quot;wifiGuid&quot;: &quot;A String&quot;, # The GUID of non-compliant Wi-Fi configuration.
924924
},
925-
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED, and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
925+
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
926926
&quot;passwordPolicyScope&quot;: &quot;A String&quot;, # The scope of non-compliant password.
927927
},
928928
},
@@ -1173,9 +1173,9 @@ <h3>Method Details</h3>
11731173
&quot;settingName&quot;: &quot;A String&quot;, # The name of the policy setting. This is the JSON field name of a top-level Policy field.
11741174
&quot;specificNonComplianceContext&quot;: { # Additional context for SpecificNonComplianceReason. # Additional context for specific_non_compliance_reason.
11751175
&quot;oncWifiContext&quot;: { # Additional context for non-compliance related to Wi-Fi configuration. # Additional context for non-compliance related to Wi-Fi configuration. See ONC_WIFI_INVALID_VALUE.
1176-
&quot;wifiGuid&quot;: &quot;A String&quot;, # The guid of non-compliant Wi-Fi configuration.
1176+
&quot;wifiGuid&quot;: &quot;A String&quot;, # The GUID of non-compliant Wi-Fi configuration.
11771177
},
1178-
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED, and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
1178+
&quot;passwordPoliciesContext&quot;: { # Additional context for non-compliance related to password policies. # Additional context for non-compliance related to password policies. See PASSWORD_POLICIES_PASSWORD_EXPIRED and PASSWORD_POLICIES_PASSWORD_NOT_SUFFICIENT.
11791179
&quot;passwordPolicyScope&quot;: &quot;A String&quot;, # The scope of non-compliant password.
11801180
},
11811181
},

docs/dyn/androidmanagement_v1.enterprises.enrollmentTokens.html

Lines changed: 92 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,19 @@ <h2>Instance Methods</h2>
7979
<p class="firstline">Close httplib2 connections.</p>
8080
<p class="toc_element">
8181
<code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
82-
<p class="firstline">Creates an enrollment token for a given enterprise.</p>
82+
<p class="firstline">Creates an enrollment token for a given enterprise. It's up to the caller's responsibility to manage the lifecycle of newly created tokens and deleting them when they're not intended to be used anymore. Once an enrollment token has been created, it's not possible to retrieve the token's content anymore using AM API. It is recommended for EMMs to securely store the token if it's intended to be reused.</p>
8383
<p class="toc_element">
8484
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
8585
<p class="firstline">Deletes an enrollment token. This operation invalidates the token, preventing its future use.</p>
86+
<p class="toc_element">
87+
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88+
<p class="firstline">Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore.</p>
89+
<p class="toc_element">
90+
<code><a href="#list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91+
<p class="firstline">Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it's recommended to delete active enrollment tokens as soon as they're not intended to be used anymore.</p>
92+
<p class="toc_element">
93+
<code><a href="#list_next">list_next()</a></code></p>
94+
<p class="firstline">Retrieves the next page of results.</p>
8695
<h3>Method Details</h3>
8796
<div class="method">
8897
<code class="details" id="close">close()</code>
@@ -91,7 +100,7 @@ <h3>Method Details</h3>
91100

92101
<div class="method">
93102
<code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
94-
<pre>Creates an enrollment token for a given enterprise.
103+
<pre>Creates an enrollment token for a given enterprise. It&#x27;s up to the caller&#x27;s responsibility to manage the lifecycle of newly created tokens and deleting them when they&#x27;re not intended to be used anymore. Once an enrollment token has been created, it&#x27;s not possible to retrieve the token&#x27;s content anymore using AM API. It is recommended for EMMs to securely store the token if it&#x27;s intended to be reused.
95104

96105
Args:
97106
parent: string, The name of the enterprise in the form enterprises/{enterpriseId}. (required)
@@ -155,4 +164,85 @@ <h3>Method Details</h3>
155164
}</pre>
156165
</div>
157166

167+
<div class="method">
168+
<code class="details" id="get">get(name, x__xgafv=None)</code>
169+
<pre>Gets an active, unexpired enrollment token. Only a partial view of EnrollmentToken is returned: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it&#x27;s recommended to delete active enrollment tokens as soon as they&#x27;re not intended to be used anymore.
170+
171+
Args:
172+
name: string, Required. The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. (required)
173+
x__xgafv: string, V1 error format.
174+
Allowed values
175+
1 - v1 error format
176+
2 - v2 error format
177+
178+
Returns:
179+
An object of the form:
180+
181+
{ # An enrollment token.
182+
&quot;additionalData&quot;: &quot;A String&quot;, # Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail.
183+
&quot;allowPersonalUsage&quot;: &quot;A String&quot;, # Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.
184+
&quot;duration&quot;: &quot;A String&quot;, # The length of time the enrollment token is valid, ranging from 1 minute to 90 days. If not specified, the default duration is 1 hour.
185+
&quot;expirationTimestamp&quot;: &quot;A String&quot;, # The expiration time of the token. This is a read-only field generated by the server.
186+
&quot;name&quot;: &quot;A String&quot;, # The name of the enrollment token, which is generated by the server during creation, in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.
187+
&quot;oneTimeOnly&quot;: True or False, # Whether the enrollment token is for one time use only. If the flag is set to true, only one device can use it for registration.
188+
&quot;policyName&quot;: &quot;A String&quot;, # The name of the policy initially applied to the enrolled device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device’s user is applied. If user_name is also not specified, enterprises/{enterpriseId}/policies/default is applied by default. When updating this field, you can specify only the policyId as long as the policyId doesn’t contain any slashes. The rest of the policy name will be inferred.
189+
&quot;qrCode&quot;: &quot;A String&quot;, # A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON.
190+
&quot;user&quot;: { # A user belonging to an enterprise. # The user associated with this enrollment token. If it&#x27;s specified when the enrollment token is created and the user does not exist, the user will be created. This field must not contain personally identifiable information. Only the account_identifier field needs to be set.
191+
&quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can&#x27;t be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail.
192+
},
193+
&quot;value&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.
194+
}</pre>
195+
</div>
196+
197+
<div class="method">
198+
<code class="details" id="list">list(parent, pageSize=None, pageToken=None, x__xgafv=None)</code>
199+
<pre>Lists active, unexpired enrollment tokens for a given enterprise. The list items contain only a partial view of EnrollmentToken: all the fields but name and expiration_timestamp are empty. This method is meant to help manage active enrollment tokens lifecycle. For security reasons, it&#x27;s recommended to delete active enrollment tokens as soon as they&#x27;re not intended to be used anymore.
200+
201+
Args:
202+
parent: string, Required. The name of the enterprise in the form enterprises/{enterpriseId}. (required)
203+
pageSize: integer, The requested page size. The service may return fewer than this value. If unspecified, at most 10 items will be returned. The maximum value is 100; values above 100 will be coerced to 100.
204+
pageToken: string, A token identifying a page of results returned by the server.
205+
x__xgafv: string, V1 error format.
206+
Allowed values
207+
1 - v1 error format
208+
2 - v2 error format
209+
210+
Returns:
211+
An object of the form:
212+
213+
{ # Response to a request to list enrollment tokens for a given enterprise.
214+
&quot;enrollmentTokens&quot;: [ # The list of enrollment tokens.
215+
{ # An enrollment token.
216+
&quot;additionalData&quot;: &quot;A String&quot;, # Optional, arbitrary data associated with the enrollment token. This could contain, for example, the ID of an org unit the device is assigned to after enrollment. After a device enrolls with the token, this data will be exposed in the enrollment_token_data field of the Device resource. The data must be 1024 characters or less; otherwise, the creation request will fail.
217+
&quot;allowPersonalUsage&quot;: &quot;A String&quot;, # Controls whether personal usage is allowed on a device provisioned with this enrollment token.For company-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage requires the user provision the device as a fully managed device.For personally-owned devices: Enabling personal usage allows the user to set up a work profile on the device. Disabling personal usage will prevent the device from provisioning. Personal usage cannot be disabled on personally-owned device.
218+
&quot;duration&quot;: &quot;A String&quot;, # The length of time the enrollment token is valid, ranging from 1 minute to 90 days. If not specified, the default duration is 1 hour.
219+
&quot;expirationTimestamp&quot;: &quot;A String&quot;, # The expiration time of the token. This is a read-only field generated by the server.
220+
&quot;name&quot;: &quot;A String&quot;, # The name of the enrollment token, which is generated by the server during creation, in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}.
221+
&quot;oneTimeOnly&quot;: True or False, # Whether the enrollment token is for one time use only. If the flag is set to true, only one device can use it for registration.
222+
&quot;policyName&quot;: &quot;A String&quot;, # The name of the policy initially applied to the enrolled device, in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the device’s user is applied. If user_name is also not specified, enterprises/{enterpriseId}/policies/default is applied by default. When updating this field, you can specify only the policyId as long as the policyId doesn’t contain any slashes. The rest of the policy name will be inferred.
223+
&quot;qrCode&quot;: &quot;A String&quot;, # A JSON string whose UTF-8 representation can be used to generate a QR code to enroll a device with this enrollment token. To enroll a device using NFC, the NFC record must contain a serialized java.util.Properties representation of the properties in the JSON.
224+
&quot;user&quot;: { # A user belonging to an enterprise. # The user associated with this enrollment token. If it&#x27;s specified when the enrollment token is created and the user does not exist, the user will be created. This field must not contain personally identifiable information. Only the account_identifier field needs to be set.
225+
&quot;accountIdentifier&quot;: &quot;A String&quot;, # A unique identifier you create for this user, such as user342 or asset#44418. This field must be set when the user is created and can&#x27;t be updated. This field must not contain personally identifiable information (PII). This identifier must be 1024 characters or less; otherwise, the update policy request will fail.
226+
},
227+
&quot;value&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.
228+
},
229+
],
230+
&quot;nextPageToken&quot;: &quot;A String&quot;, # If there are more results, a token to retrieve next page of results.
231+
}</pre>
232+
</div>
233+
234+
<div class="method">
235+
<code class="details" id="list_next">list_next()</code>
236+
<pre>Retrieves the next page of results.
237+
238+
Args:
239+
previous_request: The request for the previous page. (required)
240+
previous_response: The response from the request for the previous page. (required)
241+
242+
Returns:
243+
A request object that you can call &#x27;execute()&#x27; on to request the next
244+
page. Returns None if there are no more items in the collection.
245+
</pre>
246+
</div>
247+
158248
</body></html>

0 commit comments

Comments
 (0)