Class: Google::Apis::AndroidenterpriseV1::VariableSet
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::VariableSet
- 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 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
-
#placeholder ⇒ String
The placeholder string; defined by EMM.
-
#user_value ⇒ String
The value of the placeholder, specific to the user.
Instance Method Summary collapse
-
#initialize(**args) ⇒ VariableSet
constructor
A new instance of VariableSet.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ VariableSet
Returns a new instance of VariableSet.
2958 2959 2960 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2958 def initialize(**args) update!(**args) end |
Instance Attribute Details
#placeholder ⇒ String
The placeholder string; defined by EMM.
Corresponds to the JSON property placeholder
2951 2952 2953 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2951 def placeholder @placeholder end |
#user_value ⇒ String
The value of the placeholder, specific to the user.
Corresponds to the JSON property userValue
2956 2957 2958 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2956 def user_value @user_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2963 2964 2965 2966 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 2963 def update!(**args) @placeholder = args[:placeholder] if args.key?(:placeholder) @user_value = args[:user_value] if args.key?(:user_value) end |