Class: Google::Apis::ComputeAlpha::AcceleratorTopologiesInfoAcceleratorTopologyInfoInfoPerTopologyState

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



365
366
367
# File 'lib/google/apis/compute_alpha/classes.rb', line 365

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)


358
359
360
# File 'lib/google/apis/compute_alpha/classes.rb', line 358

def count
  @count
end

#stateString

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

Returns:

  • (String)


363
364
365
# File 'lib/google/apis/compute_alpha/classes.rb', line 363

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



370
371
372
373
# File 'lib/google/apis/compute_alpha/classes.rb', line 370

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