Class: Google::Apis::AndroidmanagementV1::ManagedPropertyEntry

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

An entry of a managed property.

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

Returns a new instance of ManagedPropertyEntry.


1772
1773
1774
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1772

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

Instance Attribute Details

#nameString

The human-readable name of the value. Localized. Corresponds to the JSON property name

Returns:

  • (String)

1764
1765
1766
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1764

def name
  @name
end

#valueString

The machine-readable value of the entry, which should be used in the configuration. Not localized. Corresponds to the JSON property value

Returns:

  • (String)

1770
1771
1772
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1770

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1777
1778
1779
1780
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1777

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