Class: Google::Apis::AndroidenterpriseV1::EnrollmentToken
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::EnrollmentToken
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb
Overview
A token used to enroll a device.
Instance Attribute Summary collapse
-
#duration ⇒ String
[Optional] The length of time the enrollment token is valid, ranging from 1 minute to
Durations.MAX_VALUE, approximately 10,000 years. -
#enrollment_token_type ⇒ String
[Required] The type of the enrollment token.
-
#token ⇒ String
The token value that's passed to the device and authorizes the device to enroll.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EnrollmentToken
constructor
A new instance of EnrollmentToken.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EnrollmentToken
Returns a new instance of EnrollmentToken.
907 908 909 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 907 def initialize(**args) update!(**args) end |
Instance Attribute Details
#duration ⇒ String
[Optional] The length of time the enrollment token is valid, ranging from 1
minute to Durations.MAX_VALUE,
approximately 10,000 years. If not specified, the default duration is 1 hour.
Corresponds to the JSON property duration
894 895 896 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 894 def duration @duration end |
#enrollment_token_type ⇒ String
[Required] The type of the enrollment token.
Corresponds to the JSON property enrollmentTokenType
899 900 901 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 899 def enrollment_token_type @enrollment_token_type end |
#token ⇒ String
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.
Corresponds to the JSON property token
905 906 907 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 905 def token @token end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
912 913 914 915 916 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 912 def update!(**args) @duration = args[:duration] if args.key?(:duration) @enrollment_token_type = args[:enrollment_token_type] if args.key?(:enrollment_token_type) @token = args[:token] if args.key?(:token) end |