Class: Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower
- Inherits:
-
Object
- Object
- Google::Apis::ComputeAlpha::InterconnectDiagnosticsLinkOpticalPower
- Defined in:
- generated/google/apis/compute_alpha/classes.rb,
generated/google/apis/compute_alpha/representations.rb,
generated/google/apis/compute_alpha/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
13200 13201 13202 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 13200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#state ⇒ String
Corresponds to the JSON property state
13193 13194 13195 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 13193 def state @state end |
#value ⇒ Float
Value of the current optical power, read in dBm.
Corresponds to the JSON property value
13198 13199 13200 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 13198 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
13205 13206 13207 13208 |
# File 'generated/google/apis/compute_alpha/classes.rb', line 13205 def update!(**args) @state = args[:state] if args.key?(:state) @value = args[:value] if args.key?(:value) end |