blob: e52425698dd58f090cfffa1fe75e62b537663e81 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="androidmanagement_v1.html">Android Management API</a> . <a href="androidmanagement_v1.enterprises.html">enterprises</a> . <a href="androidmanagement_v1.enterprises.enrollmentTokens.html">enrollmentTokens</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates an enrollment token for a given enterprise.</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes an enrollment token. This operation invalidates the token, preventing its future use.</p>
83<h3>Method Details</h3>
84<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -070085 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086 <pre>Creates an enrollment token for a given enterprise.
87
88Args:
89 parent: string, The name of the enterprise in the form enterprises/{enterpriseId}. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -070090 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070091 The object takes the form of:
92
93{ # An enrollment token.
Bu Sun Kim65020912020-05-20 12:08:20 -070094 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070095 &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.
96 &quot;allowPersonalUsage&quot;: &quot;A String&quot;, # Controls personal usage on devices provisioned using this enrollment token.
97 &quot;expirationTimestamp&quot;: &quot;A String&quot;, # The expiration time of the token. This is a read-only field generated by the server.
98 &quot;duration&quot;: &quot;A String&quot;, # The length of time the enrollment token is valid, ranging from 1 minute to 30 days. If not specified, the default duration is 1 hour.
99 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700100 &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.
101 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700103 &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}.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700104 &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.
105 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106 }
107
108 x__xgafv: string, V1 error format.
109 Allowed values
110 1 - v1 error format
111 2 - v2 error format
112
113Returns:
114 An object of the form:
115
116 { # An enrollment token.
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700118 &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.
119 &quot;allowPersonalUsage&quot;: &quot;A String&quot;, # Controls personal usage on devices provisioned using this enrollment token.
120 &quot;expirationTimestamp&quot;: &quot;A String&quot;, # The expiration time of the token. This is a read-only field generated by the server.
121 &quot;duration&quot;: &quot;A String&quot;, # The length of time the enrollment token is valid, ranging from 1 minute to 30 days. If not specified, the default duration is 1 hour.
122 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &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.
124 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700126 &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}.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700127 &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.
128 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700129 }</pre>
130</div>
131
132<div class="method">
133 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
134 <pre>Deletes an enrollment token. This operation invalidates the token, preventing its future use.
135
136Args:
137 name: string, The name of the enrollment token in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}. (required)
138 x__xgafv: string, V1 error format.
139 Allowed values
140 1 - v1 error format
141 2 - v2 error format
142
143Returns:
144 An object of the form:
145
146 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
147 # service Foo {
148 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
149 # }
150 # The JSON representation for Empty is empty JSON object {}.
151 }</pre>
152</div>
153
154</body></html>