Struct google_androidmanagement1::EnrollmentToken [−][src]
pub struct EnrollmentToken { pub policy_name: Option<String>, pub qr_code: Option<String>, pub name: Option<String>, pub additional_data: Option<String>, pub duration: Option<String>, pub expiration_timestamp: Option<String>, pub value: Option<String>, }
An enrollment token.
Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- enrollment tokens create enterprises (request|response)
Fields
policy_name: Option<String>
The name of the policy that will be initially applied to the enrolled device in the form enterprises/{enterpriseId}/policies/{policyId}. If not specified, the policy_name for the user that owns the device is applied. If user_name also isn't specified, the policy defaults to enterprises/{enterpriseId}/policies/default. It is permissible to only specify the policyId when updating this field as long as the policyId contains no slashes since the rest of the policy name can be inferred from context.
qr_code: Option<String>
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.
name: Option<String>
The name of the enrollment token, which is generated by the server during creation, in the form enterprises/{enterpriseId}/enrollmentTokens/{enrollmentTokenId}
additional_data: Option<String>
Optional, arbitrary data associated with the enrollment token. This could contain, for example, the id of an org unit to which the device is assigned 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.
duration: Option<String>
The duration of the token. If not specified, the duration will be 1 hour. The allowed range is 1 minute to 30 days.
expiration_timestamp: Option<String>
The expiration time of the token. This is a read-only field generated by the server.
value: Option<String>
The token value which is passed to the device and authorizes the device to enroll. This is a read-only field generated by the server.
Trait Implementations
impl Default for EnrollmentToken
[src]
impl Default for EnrollmentToken
fn default() -> EnrollmentToken
[src]
fn default() -> EnrollmentToken
Returns the "default value" for a type. Read more
impl Clone for EnrollmentToken
[src]
impl Clone for EnrollmentToken
fn clone(&self) -> EnrollmentToken
[src]
fn clone(&self) -> EnrollmentToken
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Debug for EnrollmentToken
[src]
impl Debug for EnrollmentToken
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl RequestValue for EnrollmentToken
[src]
impl RequestValue for EnrollmentToken
impl ResponseResult for EnrollmentToken
[src]
impl ResponseResult for EnrollmentToken
Auto Trait Implementations
impl Send for EnrollmentToken
impl Send for EnrollmentToken
impl Sync for EnrollmentToken
impl Sync for EnrollmentToken