Class: Google::Apis::AndroidenterpriseV1::VariableSet

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 variable set is a key-value pair of EMM-provided placeholders and its corresponding value, which is attributed to a user. For example, $FIRSTNAME could be a placeholder, and its value could be Alice. Placeholders should start with a '$' sign and should be alphanumeric only.

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

Returns a new instance of VariableSet



2603
2604
2605
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2603

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

Instance Attribute Details

#kindString

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

Returns:

  • (String)


2591
2592
2593
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2591

def kind
  @kind
end

#placeholderString

The placeholder string; defined by EMM. Corresponds to the JSON property placeholder

Returns:

  • (String)


2596
2597
2598
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2596

def placeholder
  @placeholder
end

#user_valueString

The value of the placeholder, specific to the user. Corresponds to the JSON property userValue

Returns:

  • (String)


2601
2602
2603
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2601

def user_value
  @user_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2608
2609
2610
2611
2612
# File 'generated/google/apis/androidenterprise_v1/classes.rb', line 2608

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