Class: Google::Apis::AndroidenterpriseV1::AdministratorWebToken

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/androidenterprise_v1/classes.rb,
generated/google/apis/androidenterprise_v1/representations.rb,
generated/google/apis/androidenterprise_v1/representations.rb

Overview

A token authorizing an administrator to access an iframe.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ AdministratorWebToken


60
61
62
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 60

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " androidenterprise#administratorWebToken". Corresponds to the JSON property kind


53
54
55
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 53

def kind
  @kind
end

#tokenString

An opaque token to be passed to the Play front-end to generate an iframe. Corresponds to the JSON property token


58
59
60
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 58

def token
  @token
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


65
66
67
68
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 65

def update!(**args)
  @kind = args[:kind] if args.key?(:kind)
  @token = args[:token] if args.key?(:token)
end