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

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

Overview

Managed property.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ManagedProperty

Returns a new instance of ManagedProperty.



3373
3374
3375
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3373

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)


3338
3339
3340
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3338

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)


3344
3345
3346
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3344

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



3349
3350
3351
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3349

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)


3355
3356
3357
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3355

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



3361
3362
3363
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3361

def nested_properties
  @nested_properties
end

#titleString

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

Returns:

  • (String)


3366
3367
3368
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3366

def title
  @title
end

#typeString

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

Returns:

  • (String)


3371
3372
3373
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3371

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3378
3379
3380
3381
3382
3383
3384
3385
3386
# File 'lib/google/apis/androidmanagement_v1/classes.rb', line 3378

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