Class: Google::Apis::CloudiotV1beta1::DeviceRegistry
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::CloudiotV1beta1::DeviceRegistry
 
- 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
- 
  
    
      #event_notification_config  ⇒ Google::Apis::CloudiotV1beta1::NotificationConfig 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Configuration to forward messages such as telemetry events. 
- 
  
    
      #id  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The identifier of this device registry. 
- 
  
    
      #mqtt_config  ⇒ Google::Apis::CloudiotV1beta1::MqttConfig 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The configuration of MQTT for a device registry. 
- 
  
    
      #name  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The resource path name. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ DeviceRegistry 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of DeviceRegistry. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
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_config ⇒ Google::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 | 
#id ⇒ String
The identifier of this device registry. For example, myRegistry.
Corresponds to the JSON property id
| 439 440 441 | # File 'generated/google/apis/cloudiot_v1beta1/classes.rb', line 439 def id @id end | 
#mqtt_config ⇒ Google::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 | 
#name ⇒ String
The resource path name. For example,
projects/example-project/locations/us-central1/registries/my-registry.
Corresponds to the JSON property name
| 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 |