Class: Google::Apis::CloudiotV1beta1::MqttConfig

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 configuration of MQTT for a device registry.

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

Returns a new instance of MqttConfig



656
657
658
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 656

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

Instance Attribute Details

#mqtt_config_stateString

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

Returns:

  • (String)


654
655
656
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 654

def mqtt_config_state
  @mqtt_config_state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



661
662
663
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 661

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