Class: Google::Apis::AndroidmanagementV1::ManagedProperty

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

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

Returns a new instance of ManagedProperty



1115
1116
1117
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1115

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

Instance Attribute Details

#default_valueObject

The default value of the property. BUNDLE_ARRAY properties don't have a default value. Corresponds to the JSON property defaultValue

Returns:

  • (Object)


1080
1081
1082
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1080

def default_value
  @default_value
end

#descriptionString

A longer description of the property, providing more detail of what it affects. Localized. Corresponds to the JSON property description

Returns:

  • (String)


1086
1087
1088
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1086

def description
  @description
end

#entriesArray<Google::Apis::AndroidmanagementV1::ManagedPropertyEntry>

For CHOICE or MULTISELECT properties, the list of possible entries. Corresponds to the JSON property entries



1091
1092
1093
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1091

def entries
  @entries
end

#keyString

The unique key that the app uses to identify the property, e.g. "com.google. android.gm.fieldname". Corresponds to the JSON property key

Returns:

  • (String)


1097
1098
1099
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1097

def key
  @key
end

#nested_propertiesArray<Google::Apis::AndroidmanagementV1::ManagedProperty>

For BUNDLE_ARRAY properties, the list of nested properties. A BUNDLE_ARRAY property is at most two levels deep. Corresponds to the JSON property nestedProperties



1103
1104
1105
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1103

def nested_properties
  @nested_properties
end

#titleString

The name of the property. Localized. Corresponds to the JSON property title

Returns:

  • (String)


1108
1109
1110
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1108

def title
  @title
end

#typeString

The type of the property. Corresponds to the JSON property type

Returns:

  • (String)


1113
1114
1115
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1113

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1120
1121
1122
1123
1124
1125
1126
1127
1128
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1120

def update!(**args)
  @default_value = args[:default_value] if args.key?(:default_value)
  @description = args[:description] if args.key?(:description)
  @entries = args[:entries] if args.key?(:entries)
  @key = args[:key] if args.key?(:key)
  @nested_properties = args[:nested_properties] if args.key?(:nested_properties)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
end