Class: Google::Apis::AndroidmanagementV1::KeyedAppState

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

Keyed app state reported by the app.

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

Returns a new instance of KeyedAppState.


1488
1489
1490
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1488

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

Instance Attribute Details

#create_timeString

The creation time of the app state on the device. Corresponds to the JSON property createTime

Returns:

  • (String)

1455
1456
1457
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1455

def create_time
  @create_time
end

#dataString

Optionally, a machine-readable value to be read by the EMM. For example, setting values that the admin can choose to query against in the EMM console ( e.g. “notify me if the battery_warning data < 10”). Corresponds to the JSON property data

Returns:

  • (String)

1462
1463
1464
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1462

def data
  @data
end

#keyString

The key for the app state. Acts as a point of reference for what the app is providing state for. For example, when providing managed configuration feedback, this key could be the managed configuration key. Corresponds to the JSON property key

Returns:

  • (String)

1469
1470
1471
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1469

def key
  @key
end

#last_update_timeString

The time the app state was most recently updated. Corresponds to the JSON property lastUpdateTime

Returns:

  • (String)

1474
1475
1476
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1474

def last_update_time
  @last_update_time
end

#messageString

Optionally, a free-form message string to explain the app state. If the state was triggered by a particular value (e.g. a managed configuration value), it should be included in the message. Corresponds to the JSON property message

Returns:

  • (String)

1481
1482
1483
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1481

def message
  @message
end

#severityString

The severity of the app state. Corresponds to the JSON property severity

Returns:

  • (String)

1486
1487
1488
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1486

def severity
  @severity
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1493
1494
1495
1496
1497
1498
1499
1500
# File 'generated/google/apis/androidmanagement_v1/classes.rb', line 1493

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @data = args[:data] if args.key?(:data)
  @key = args[:key] if args.key?(:key)
  @last_update_time = args[:last_update_time] if args.key?(:last_update_time)
  @message = args[:message] if args.key?(:message)
  @severity = args[:severity] if args.key?(:severity)
end