Class: Google::Apis::CloudiotV1::GatewayConfig

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

Overview

Gateway-related configuration and state.

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

Returns a new instance of GatewayConfig



577
578
579
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 577

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

Instance Attribute Details

#gateway_auth_methodString

Indicates how to authorize and/or authenticate devices to access the gateway. Corresponds to the JSON property gatewayAuthMethod

Returns:

  • (String)


559
560
561
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 559

def gateway_auth_method
  @gateway_auth_method
end

#gateway_typeString

Indicates whether the device is a gateway. Corresponds to the JSON property gatewayType

Returns:

  • (String)


564
565
566
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 564

def gateway_type
  @gateway_type
end

#last_accessed_gateway_idString

[Output only] The ID of the gateway the device accessed most recently. Corresponds to the JSON property lastAccessedGatewayId

Returns:

  • (String)


569
570
571
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 569

def last_accessed_gateway_id
  @last_accessed_gateway_id
end

#last_accessed_gateway_timeString

[Output only] The most recent time at which the device accessed the gateway specified in last_accessed_gateway. Corresponds to the JSON property lastAccessedGatewayTime

Returns:

  • (String)


575
576
577
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 575

def last_accessed_gateway_time
  @last_accessed_gateway_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



582
583
584
585
586
587
# File 'generated/google/apis/cloudiot_v1/classes.rb', line 582

def update!(**args)
  @gateway_auth_method = args[:gateway_auth_method] if args.key?(:gateway_auth_method)
  @gateway_type = args[:gateway_type] if args.key?(:gateway_type)
  @last_accessed_gateway_id = args[:last_accessed_gateway_id] if args.key?(:last_accessed_gateway_id)
  @last_accessed_gateway_time = args[:last_accessed_gateway_time] if args.key?(:last_accessed_gateway_time)
end