Class: Google::Apis::AppstateV1::UpdateRequest

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 a requests which update app state

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

Returns a new instance of UpdateRequest



110
111
112
# File 'generated/google/apis/appstate_v1/classes.rb', line 110

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

Instance Attribute Details

#dataString

The new app state data that your application is trying to update with. Corresponds to the JSON property data

Returns:

  • (String)


102
103
104
# File 'generated/google/apis/appstate_v1/classes.rb', line 102

def data
  @data
end

#kindString

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

Returns:

  • (String)


108
109
110
# File 'generated/google/apis/appstate_v1/classes.rb', line 108

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



115
116
117
118
# File 'generated/google/apis/appstate_v1/classes.rb', line 115

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