blob: 1660dfb514495324a03bd238f311b11efeb4f990 [file] [edit]
<html><body>
<style>
body, h1, h2, h3, div, span, p, pre, a {
margin: 0;
padding: 0;
border: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
body {
font-size: 13px;
padding: 1em;
}
h1 {
font-size: 26px;
margin-bottom: 1em;
}
h2 {
font-size: 24px;
margin-bottom: 1em;
}
h3 {
font-size: 20px;
margin-bottom: 1em;
margin-top: 1em;
}
pre, code {
line-height: 1.5;
font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
}
pre {
margin-top: 0.5em;
}
h1, h2, h3, p {
font-family: Arial, sans serif;
}
h1, h2, h3 {
border-bottom: solid #CCC 1px;
}
.toc_element {
margin-top: 0.5em;
}
.firstline {
margin-left: 2 em;
}
.method {
margin-top: 1em;
border: solid 1px #CCC;
padding: 1em;
background: #EEE;
}
.details {
font-weight: bold;
font-size: 14px;
}
</style>
<h1><a href="chromemanagement_v1.html">Chrome Management API</a> . <a href="chromemanagement_v1.customers.html">customers</a> . <a href="chromemanagement_v1.customers.enrollmentTokens.html">enrollmentTokens</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
<code><a href="#close">close()</a></code></p>
<p class="firstline">Close httplib2 connections.</p>
<p class="toc_element">
<code><a href="#create">create(parent, body=None, enrollmentTokenId=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new enrollment token for a browser device. Creation fails if there is already an active token for this customer under the same org unit.</p>
<p class="toc_element">
<code><a href="#get">get(name, x__xgafv=None)</a></code></p>
<p class="firstline">Gets a browser device enrollment token.</p>
<p class="toc_element">
<code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
<p class="firstline">Lists all browser device enrollment tokens.</p>
<p class="toc_element">
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
<code><a href="#revoke">revoke(name, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Revokes a browser device enrollment token.</p>
<h3>Method Details</h3>
<div class="method">
<code class="details" id="close">close()</code>
<pre>Close httplib2 connections.</pre>
</div>
<div class="method">
<code class="details" id="create">create(parent, body=None, enrollmentTokenId=None, x__xgafv=None)</code>
<pre>Creates a new enrollment token for a browser device. Creation fails if there is already an active token for this customer under the same org unit.
Args:
parent: string, Required. The parent resource where this enrollment token will be created. Format: customers/{customer} (required)
body: object, The request body.
The object takes the form of:
{ # Enrollment token for a chrome device.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the token.
&quot;creatorId&quot;: &quot;A String&quot;, # Output only. The id of the user who created the token.
&quot;customerId&quot;: &quot;A String&quot;, # Output only. The obfuscated ID of the customer to whom this token is associated.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{token_permanent_id}
&quot;orgUnitId&quot;: &quot;A String&quot;, # Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.
&quot;revokeTime&quot;: &quot;A String&quot;, # Output only. The revocation time of the token, null if the token is not revoked.
&quot;revokerId&quot;: &quot;A String&quot;, # Output only. The id of the user who revoked the token, null if the token is not revoked.
&quot;state&quot;: &quot;A String&quot;, # Output only. The state of the token.
&quot;token&quot;: &quot;A String&quot;, # Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.
&quot;tokenPermanentId&quot;: &quot;A String&quot;, # Output only. Unique identifier of the enrollment token used to access information on tokens.
&quot;tokenType&quot;: &quot;A String&quot;, # Optional. The device type this token is used for. If not set, defaults to `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`.
}
enrollmentTokenId: string, Optional. The ID to use for the enrollment token, which will become the final component of the enrollment token&#x27;s resource name. This value must be local-unique under the customer and is optional. If not provided, it will be auto-generated. If provided, it must be 1-63 characters long and match the regular expression `[a-zA-Z0-9._-]+`.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Enrollment token for a chrome device.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the token.
&quot;creatorId&quot;: &quot;A String&quot;, # Output only. The id of the user who created the token.
&quot;customerId&quot;: &quot;A String&quot;, # Output only. The obfuscated ID of the customer to whom this token is associated.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{token_permanent_id}
&quot;orgUnitId&quot;: &quot;A String&quot;, # Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.
&quot;revokeTime&quot;: &quot;A String&quot;, # Output only. The revocation time of the token, null if the token is not revoked.
&quot;revokerId&quot;: &quot;A String&quot;, # Output only. The id of the user who revoked the token, null if the token is not revoked.
&quot;state&quot;: &quot;A String&quot;, # Output only. The state of the token.
&quot;token&quot;: &quot;A String&quot;, # Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.
&quot;tokenPermanentId&quot;: &quot;A String&quot;, # Output only. Unique identifier of the enrollment token used to access information on tokens.
&quot;tokenType&quot;: &quot;A String&quot;, # Optional. The device type this token is used for. If not set, defaults to `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`.
}</pre>
</div>
<div class="method">
<code class="details" id="get">get(name, x__xgafv=None)</code>
<pre>Gets a browser device enrollment token.
Args:
name: string, Required. The name of the enrollment token to retrieve. Format: customers/{customer}/enrollmentTokens/{token_permanent_id} (required)
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Enrollment token for a chrome device.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the token.
&quot;creatorId&quot;: &quot;A String&quot;, # Output only. The id of the user who created the token.
&quot;customerId&quot;: &quot;A String&quot;, # Output only. The obfuscated ID of the customer to whom this token is associated.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{token_permanent_id}
&quot;orgUnitId&quot;: &quot;A String&quot;, # Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.
&quot;revokeTime&quot;: &quot;A String&quot;, # Output only. The revocation time of the token, null if the token is not revoked.
&quot;revokerId&quot;: &quot;A String&quot;, # Output only. The id of the user who revoked the token, null if the token is not revoked.
&quot;state&quot;: &quot;A String&quot;, # Output only. The state of the token.
&quot;token&quot;: &quot;A String&quot;, # Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.
&quot;tokenPermanentId&quot;: &quot;A String&quot;, # Output only. Unique identifier of the enrollment token used to access information on tokens.
&quot;tokenType&quot;: &quot;A String&quot;, # Optional. The device type this token is used for. If not set, defaults to `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`.
}</pre>
</div>
<div class="method">
<code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
<pre>Lists all browser device enrollment tokens.
Args:
parent: string, Required. The parent resource where this enrollment token will be created. Format: customers/{customer} (required)
filter: string, Optional. Filter to apply to list results. The following fields can be used in the filter: * `device_type` (currently only `&quot;CHROME_BROWSER&quot;` is supported) * `token_state` (supported values: `&quot;ACTIVE&quot;`, `&quot;EXPIRED&quot;`, `&quot;REVOKED&quot;`) * `org_unit_path` The full path of the org unit, such as `/Montreal/Sales`. * `org_unit_id` The obfuscated id of the org unit, not the full path.
pageSize: integer, Optional. Maximum number of results to return. Maximum and default are 100.
pageToken: string, Optional. Token to specify next page in the list.
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Response that contains a list of tokens.
&quot;enrollmentTokens&quot;: [ # List of Chrome device enrollment tokens.
{ # Enrollment token for a chrome device.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the token.
&quot;creatorId&quot;: &quot;A String&quot;, # Output only. The id of the user who created the token.
&quot;customerId&quot;: &quot;A String&quot;, # Output only. The obfuscated ID of the customer to whom this token is associated.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{token_permanent_id}
&quot;orgUnitId&quot;: &quot;A String&quot;, # Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.
&quot;revokeTime&quot;: &quot;A String&quot;, # Output only. The revocation time of the token, null if the token is not revoked.
&quot;revokerId&quot;: &quot;A String&quot;, # Output only. The id of the user who revoked the token, null if the token is not revoked.
&quot;state&quot;: &quot;A String&quot;, # Output only. The state of the token.
&quot;token&quot;: &quot;A String&quot;, # Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.
&quot;tokenPermanentId&quot;: &quot;A String&quot;, # Output only. Unique identifier of the enrollment token used to access information on tokens.
&quot;tokenType&quot;: &quot;A String&quot;, # Optional. The device type this token is used for. If not set, defaults to `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`.
},
],
&quot;nextPageToken&quot;: &quot;A String&quot;, # Token to retrieve the next page of results, or empty if there are no more results in the list.
}</pre>
</div>
<div class="method">
<code class="details" id="list_next">list_next(previous_request, previous_response)</code>
<pre>Retrieves the next page of results.
Args:
previous_request: The request for the previous page. (required)
previous_response: The response from the request for the previous page. (required)
Returns:
A request object that you can call &#x27;execute()&#x27; on to request the next
page. Returns None if there are no more items in the collection.
</pre>
</div>
<div class="method">
<code class="details" id="revoke">revoke(name, body=None, x__xgafv=None)</code>
<pre>Revokes a browser device enrollment token.
Args:
name: string, Required. The name of the enrollment token to revoke. Format: customers/{customer}/enrollmentTokens/{token_permanent_id} (required)
body: object, The request body.
The object takes the form of:
{ # Request to revoke a token.
}
x__xgafv: string, V1 error format.
Allowed values
1 - v1 error format
2 - v2 error format
Returns:
An object of the form:
{ # Enrollment token for a chrome device.
&quot;createTime&quot;: &quot;A String&quot;, # Output only. The creation time of the token.
&quot;creatorId&quot;: &quot;A String&quot;, # Output only. The id of the user who created the token.
&quot;customerId&quot;: &quot;A String&quot;, # Output only. The obfuscated ID of the customer to whom this token is associated.
&quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the enrollment token. Format: customers/{customer}/enrollmentTokens/{token_permanent_id}
&quot;orgUnitId&quot;: &quot;A String&quot;, # Optional. Obfuscated ID of the organization unit this token is associated with. If not set, the token is created for the root organization unit.
&quot;revokeTime&quot;: &quot;A String&quot;, # Output only. The revocation time of the token, null if the token is not revoked.
&quot;revokerId&quot;: &quot;A String&quot;, # Output only. The id of the user who revoked the token, null if the token is not revoked.
&quot;state&quot;: &quot;A String&quot;, # Output only. The state of the token.
&quot;token&quot;: &quot;A String&quot;, # Output only. The value of the token stored on the device and used to identify it to the management service handling the enrollment request.
&quot;tokenPermanentId&quot;: &quot;A String&quot;, # Output only. Unique identifier of the enrollment token used to access information on tokens.
&quot;tokenType&quot;: &quot;A String&quot;, # Optional. The device type this token is used for. If not set, defaults to `ENROLLMENT_TOKEN_TYPE_CHROME_BROWSER`.
}</pre>
</div>
</body></html>