Class: Google::Apis::ComputeBeta::InterconnectDiagnosticsLinkOpticalPower

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

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

Returns a new instance of InterconnectDiagnosticsLinkOpticalPower



11293
11294
11295
# File 'generated/google/apis/compute_beta/classes.rb', line 11293

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

Instance Attribute Details

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


11286
11287
11288
# File 'generated/google/apis/compute_beta/classes.rb', line 11286

def state
  @state
end

#valueFloat

Value of the current optical power, read in dBm. Corresponds to the JSON property value

Returns:

  • (Float)


11291
11292
11293
# File 'generated/google/apis/compute_beta/classes.rb', line 11291

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11298
11299
11300
11301
# File 'generated/google/apis/compute_beta/classes.rb', line 11298

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