Class: Google::Apis::CloudiotV1beta1::HttpSetDeviceStateRequest

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudiot_v1beta1/classes.rb,
generated/google/apis/cloudiot_v1beta1/representations.rb,
generated/google/apis/cloudiot_v1beta1/representations.rb

Overview

Request for SetDeviceState.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ HttpSetDeviceStateRequest

Returns a new instance of HttpSetDeviceStateRequest



639
640
641
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 639

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

Instance Attribute Details

#stateGoogle::Apis::CloudiotV1beta1::HttpDeviceState

The device state reported to Cloud IoT Core. Corresponds to the JSON property state



637
638
639
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 637

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



644
645
646
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 644

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