Class: Google::Apis::CloudiotV1beta1::HttpDeviceState

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

The device state reported to Cloud IoT Core.

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

Returns a new instance of HttpDeviceState



580
581
582
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 580

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

Instance Attribute Details

#binary_dataString

Data in binary format. Corresponds to the JSON property binaryData NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


578
579
580
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 578

def binary_data
  @binary_data
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



585
586
587
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 585

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