Class: Google::Apis::ComputeBeta::InterconnectDiagnosticsLinkOpticalPower
- Inherits:
-
Object
- Object
- Google::Apis::ComputeBeta::InterconnectDiagnosticsLinkOpticalPower
- 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
-
#state ⇒ String
Corresponds to the JSON property
state. -
#value ⇒ Float
Value of the current optical power, read in dBm.
Instance Method Summary collapse
-
#initialize(**args) ⇒ InterconnectDiagnosticsLinkOpticalPower
constructor
A new instance of InterconnectDiagnosticsLinkOpticalPower.
-
#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) ⇒ InterconnectDiagnosticsLinkOpticalPower
Returns a new instance of InterconnectDiagnosticsLinkOpticalPower
11388 11389 11390 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11388 def initialize(**args) update!(**args) end |
Instance Attribute Details
#state ⇒ String
Corresponds to the JSON property state
11381 11382 11383 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11381 def state @state end |
#value ⇒ Float
Value of the current optical power, read in dBm.
Corresponds to the JSON property value
11386 11387 11388 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11386 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
11393 11394 11395 11396 |
# File 'generated/google/apis/compute_beta/classes.rb', line 11393 def update!(**args) @state = args[:state] if args.key?(:state) @value = args[:value] if args.key?(:value) end |