Class: Google::Apis::NetworkconnectivityV1::SpokeStateReasonCount
- Inherits:
-
Object
- Object
- Google::Apis::NetworkconnectivityV1::SpokeStateReasonCount
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/networkconnectivity_v1/classes.rb,
lib/google/apis/networkconnectivity_v1/representations.rb,
lib/google/apis/networkconnectivity_v1/representations.rb
Overview
The number of spokes in the hub that are inactive for this reason.
Instance Attribute Summary collapse
-
#count ⇒ Fixnum
Output only.
-
#state_reason_code ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ SpokeStateReasonCount
constructor
A new instance of SpokeStateReasonCount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ SpokeStateReasonCount
Returns a new instance of SpokeStateReasonCount.
2832 2833 2834 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2832 def initialize(**args) update!(**args) end |
Instance Attribute Details
#count ⇒ Fixnum
Output only. The total number of spokes that are inactive for a particular
reason and associated with a given hub.
Corresponds to the JSON property count
2825 2826 2827 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2825 def count @count end |
#state_reason_code ⇒ String
Output only. The reason that a spoke is inactive.
Corresponds to the JSON property stateReasonCode
2830 2831 2832 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2830 def state_reason_code @state_reason_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2837 2838 2839 2840 |
# File 'lib/google/apis/networkconnectivity_v1/classes.rb', line 2837 def update!(**args) @count = args[:count] if args.key?(:count) @state_reason_code = args[:state_reason_code] if args.key?(:state_reason_code) end |