class Google::Apis::AndroidenterpriseV1::KeyedAppState

Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.

Attributes

data[RW]

Additional field intended for machine-readable data. For example, a number or JSON object. To prevent XSS, we recommend removing any HTML from the data before displaying it. Corresponds to the JSON property `data` @return [String]

key[RW]

Key indicating what the app is providing a state for. The content of the key is set by the app's developer. To prevent XSS, we recommend removing any HTML from the key before displaying it. This field will always be present. Corresponds to the JSON property `key` @return [String]

message[RW]

Free-form, human-readable message describing the app state. For example, an error message. To prevent XSS, we recommend removing any HTML from the message before displaying it. Corresponds to the JSON property `message` @return [String]

severity[RW]

Severity of the app state. This field will always be present. Corresponds to the JSON property `severity` @return [String]

state_timestamp_millis[RW]

Timestamp of when the app set the state in milliseconds since epoch. This field will always be present. Corresponds to the JSON property `stateTimestampMillis` @return [Fixnum]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/androidenterprise_v1/classes.rb, line 1257
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/androidenterprise_v1/classes.rb, line 1262
def update!(**args)
  @data = args[:data] if args.key?(:data)
  @key = args[:key] if args.key?(:key)
  @message = args[:message] if args.key?(:message)
  @severity = args[:severity] if args.key?(:severity)
  @state_timestamp_millis = args[:state_timestamp_millis] if args.key?(:state_timestamp_millis)
end