Class: Google::Apis::AppstateV1::GetResponse

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 resource.

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

Returns a new instance of GetResponse.



50
51
52
# File 'generated/google/apis/appstate_v1/classes.rb', line 50

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

Instance Attribute Details

#current_state_versionString

The current app state version. Corresponds to the JSON property currentStateVersion

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/appstate_v1/classes.rb', line 32

def current_state_version
  @current_state_version
end

#dataString

The requested data. Corresponds to the JSON property data

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/appstate_v1/classes.rb', line 37

def data
  @data
end

#kindString

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

Returns:

  • (String)


43
44
45
# File 'generated/google/apis/appstate_v1/classes.rb', line 43

def kind
  @kind
end

#state_keyFixnum

The key for the data. Corresponds to the JSON property stateKey

Returns:

  • (Fixnum)


48
49
50
# File 'generated/google/apis/appstate_v1/classes.rb', line 48

def state_key
  @state_key
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



55
56
57
58
59
60
# File 'generated/google/apis/appstate_v1/classes.rb', line 55

def update!(**args)
  @current_state_version = args[:current_state_version] if args.key?(:current_state_version)
  @data = args[:data] if args.key?(:data)
  @kind = args[:kind] if args.key?(:kind)
  @state_key = args[:state_key] if args.key?(:state_key)
end