Class: Google::Apis::ComputeV1::InterconnectDiagnosticsLinkOpticalPower

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/compute_v1/classes.rb,
generated/google/apis/compute_v1/representations.rb,
generated/google/apis/compute_v1/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



10522
10523
10524
# File 'generated/google/apis/compute_v1/classes.rb', line 10522

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

Instance Attribute Details

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


10512
10513
10514
# File 'generated/google/apis/compute_v1/classes.rb', line 10512

def state
  @state
end

#valueFloat

Value of the current optical power, read in dBm. Take a known good optical value, give it a 10% margin and trigger warnings relative to that value. In general, a -7dBm warning and a -11dBm alarm are good optical value estimates for most links. Corresponds to the JSON property value

Returns:

  • (Float)


10520
10521
10522
# File 'generated/google/apis/compute_v1/classes.rb', line 10520

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10527
10528
10529
10530
# File 'generated/google/apis/compute_v1/classes.rb', line 10527

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