Class: Google::Apis::AppstateV1::WriteResult
- Inherits:
-
Object
- Object
- Google::Apis::AppstateV1::WriteResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/appstate_v1/classes.rb,
generated/google/apis/appstate_v1/representations.rb,
generated/google/apis/appstate_v1/representations.rb
Overview
This is a JSON template for an app state write result.
Instance Attribute Summary collapse
-
#current_state_version ⇒ String
The version of the data for this key on the server.
-
#kind ⇒ String
Uniquely identifies the type of this resource.
-
#state_key ⇒ Fixnum
The written key.
Instance Method Summary collapse
-
#initialize(**args) ⇒ WriteResult
constructor
A new instance of WriteResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ WriteResult
Returns a new instance of WriteResult.
141 142 143 |
# File 'generated/google/apis/appstate_v1/classes.rb', line 141 def initialize(**args) update!(**args) end |
Instance Attribute Details
#current_state_version ⇒ String
The version of the data for this key on the server.
Corresponds to the JSON property currentStateVersion
128 129 130 |
# File 'generated/google/apis/appstate_v1/classes.rb', line 128 def current_state_version @current_state_version end |
#kind ⇒ String
Uniquely identifies the type of this resource. Value is always the fixed
string appstate#writeResult.
Corresponds to the JSON property kind
134 135 136 |
# File 'generated/google/apis/appstate_v1/classes.rb', line 134 def kind @kind end |
#state_key ⇒ Fixnum
The written key.
Corresponds to the JSON property stateKey
139 140 141 |
# File 'generated/google/apis/appstate_v1/classes.rb', line 139 def state_key @state_key end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
146 147 148 149 150 |
# File 'generated/google/apis/appstate_v1/classes.rb', line 146 def update!(**args) @current_state_version = args[:current_state_version] if args.key?(:current_state_version) @kind = args[:kind] if args.key?(:kind) @state_key = args[:state_key] if args.key?(:state_key) end |