Class: Google::Apis::AndroidmanagementV1::WebToken

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

Overview

A web token used to access the managed Google Play 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) ⇒ WebToken

Returns a new instance of WebToken



3171
3172
3173
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3171

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

Instance Attribute Details

#nameString

The name of the web token, which is generated by the server during creation in the form enterprises/enterpriseId/webTokens/webTokenId. Corresponds to the JSON property name

Returns:

  • (String)


3150
3151
3152
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3150

def name
  @name
end

#parent_frame_urlString

The URL of the parent frame hosting the iframe with the embedded UI. To prevent XSS, the iframe may not be hosted at other URLs. The URL must use the https scheme. Corresponds to the JSON property parentFrameUrl

Returns:

  • (String)


3157
3158
3159
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3157

def parent_frame_url
  @parent_frame_url
end

#permissionsArray<String>

Permissions available to an admin in the embedded UI. An admin must have all of these permissions in order to view the UI. Corresponds to the JSON property permissions

Returns:

  • (Array<String>)


3163
3164
3165
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3163

def permissions
  @permissions
end

#valueString

The token value which is used in the hosting page to generate the iframe with the embedded UI. This is a read-only field generated by the server. Corresponds to the JSON property value

Returns:

  • (String)


3169
3170
3171
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3169

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3176
3177
3178
3179
3180
3181
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 3176

def update!(**args)
  @name = args[:name] if args.key?(:name)
  @parent_frame_url = args[:parent_frame_url] if args.key?(:parent_frame_url)
  @permissions = args[:permissions] if args.key?(:permissions)
  @value = args[:value] if args.key?(:value)
end