Class: Google::Apis::ComputeBeta::AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState

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

Overview

Info for each topology state.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState

Returns a new instance of AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState.



162
163
164
# File 'lib/google/apis/compute_beta/classes.rb', line 162

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

Instance Attribute Details

#countFixnum

The number of accelerator topologies in this state. Corresponds to the JSON property count

Returns:

  • (Fixnum)


155
156
157
# File 'lib/google/apis/compute_beta/classes.rb', line 155

def count
  @count
end

#stateString

The state of the accelerator topology. Corresponds to the JSON property state

Returns:

  • (String)


160
161
162
# File 'lib/google/apis/compute_beta/classes.rb', line 160

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



167
168
169
170
# File 'lib/google/apis/compute_beta/classes.rb', line 167

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