Class: Google::Apis::AndroidenterpriseV1::AdministratorWebTokenSpec

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

Specification for a token used to generate iframes. The token specifies what data the admin is allowed to modify and the URI the iframe is allowed to communiate with.

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) ⇒ AdministratorWebTokenSpec

Returns a new instance of AdministratorWebTokenSpec.



96
97
98
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 96

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


81
82
83
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 81

def kind
  @kind
end

#parentString

The URI of the parent frame hosting the iframe. To prevent XSS, the iframe may not be hosted at other URIs. This URI must be https. Corresponds to the JSON property parent

Returns:

  • (String)


87
88
89
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 87

def parent
  @parent
end

#permissionArray<String>

The list of permissions the admin is granted within the iframe. The admin will only be allowed to view an iframe if they have all of the permissions associated with it. Corresponds to the JSON property permission

Returns:

  • (Array<String>)


94
95
96
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 94

def permission
  @permission
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



101
102
103
104
105
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 101

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