Class: Google::Apis::CloudiotV1beta1::DeviceRegistry

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

A container for a group of devices.

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

Returns a new instance of DeviceRegistry



452
453
454
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 452

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

Instance Attribute Details

#event_notification_configGoogle::Apis::CloudiotV1beta1::NotificationConfig

Configuration to forward messages such as telemetry events. Corresponds to the JSON property eventNotificationConfig



434
435
436
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 434

def event_notification_config
  @event_notification_config
end

#idString

The identifier of this device registry. For example, myRegistry. Corresponds to the JSON property id

Returns:

  • (String)


439
440
441
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 439

def id
  @id
end

#mqtt_configGoogle::Apis::CloudiotV1beta1::MqttConfig

The configuration of MQTT for a device registry. Corresponds to the JSON property mqttConfig



444
445
446
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 444

def mqtt_config
  @mqtt_config
end

#nameString

The resource path name. For example, projects/example-project/locations/us-central1/registries/my-registry. Corresponds to the JSON property name

Returns:

  • (String)


450
451
452
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 450

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



457
458
459
460
461
462
# File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 457

def update!(**args)
  @event_notification_config = args[:event_notification_config] if args.key?(:event_notification_config)
  @id = args[:id] if args.key?(:id)
  @mqtt_config = args[:mqtt_config] if args.key?(:mqtt_config)
  @name = args[:name] if args.key?(:name)
end