Class: Google::Apis::CloudiotV1::MqttConfig

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

Overview

The configuration of MQTT for a device registry.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MqttConfig

Returns a new instance of MqttConfig.



809
810
811
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 809

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

Instance Attribute Details

#mqtt_enabled_stateString

If enabled, allows connections using the MQTT protocol. Otherwise, MQTT connections to this registry will fail. Corresponds to the JSON property mqttEnabledState

Returns:

  • (String)


807
808
809
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 807

def mqtt_enabled_state
  @mqtt_enabled_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



814
815
816
# File 'lib/google/apis/cloudiot_v1/classes.rb', line 814

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