Class: Google::Apis::AndroidenterpriseV1::KeyedAppState
- Inherits:
-
Object
- Object
- Google::Apis::AndroidenterpriseV1::KeyedAppState
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/androidenterprise_v1/classes.rb,
lib/google/apis/androidenterprise_v1/representations.rb,
lib/google/apis/androidenterprise_v1/representations.rb
Overview
Represents a keyed app state containing a key, timestamp, severity level, optional description, and optional data.
Instance Attribute Summary collapse
-
#data ⇒ String
Additional field intended for machine-readable data.
-
#key ⇒ String
Key indicating what the app is providing a state for.
-
#message ⇒ String
Free-form, human-readable message describing the app state.
-
#severity ⇒ String
Severity of the app state.
-
#state_timestamp_millis ⇒ Fixnum
Timestamp of when the app set the state in milliseconds since epoch.
Instance Method Summary collapse
-
#initialize(**args) ⇒ KeyedAppState
constructor
A new instance of KeyedAppState.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ KeyedAppState
Returns a new instance of KeyedAppState.
1379 1380 1381 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1379 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data ⇒ String
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
1352 1353 1354 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1352 def data @data end |
#key ⇒ String
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
1359 1360 1361 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1359 def key @key end |
#message ⇒ String
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
1366 1367 1368 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1366 def @message end |
#severity ⇒ String
Severity of the app state. This field will always be present.
Corresponds to the JSON property severity
1371 1372 1373 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1371 def severity @severity end |
#state_timestamp_millis ⇒ Fixnum
Timestamp of when the app set the state in milliseconds since epoch. This
field will always be present.
Corresponds to the JSON property stateTimestampMillis
1377 1378 1379 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1377 def @state_timestamp_millis end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1384 1385 1386 1387 1388 1389 1390 |
# File 'lib/google/apis/androidenterprise_v1/classes.rb', line 1384 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 |