Class: Google::Apis::AppstateV1::WriteResult

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_versionString

The version of the data for this key on the server. Corresponds to the JSON property currentStateVersion

Returns:

  • (String)


128
129
130
# File 'generated/google/apis/appstate_v1/classes.rb', line 128

def current_state_version
  @current_state_version
end

#kindString

Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult. Corresponds to the JSON property kind

Returns:

  • (String)


134
135
136
# File 'generated/google/apis/appstate_v1/classes.rb', line 134

def kind
  @kind
end

#state_keyFixnum

The written key. Corresponds to the JSON property stateKey

Returns:

  • (Fixnum)


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