Class: Google::Apis::ComputeAlpha::ReservationSubBlockPhysicalTopology

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReservationSubBlockPhysicalTopology

Returns a new instance of ReservationSubBlockPhysicalTopology.



51213
51214
51215
# File 'lib/google/apis/compute_alpha/classes.rb', line 51213

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

Instance Attribute Details

#blockString

The hash of the capacity block within the cluster. Corresponds to the JSON property block

Returns:

  • (String)


51201
51202
51203
# File 'lib/google/apis/compute_alpha/classes.rb', line 51201

def block
  @block
end

#clusterString

The cluster name of the reservation subBlock. Corresponds to the JSON property cluster

Returns:

  • (String)


51206
51207
51208
# File 'lib/google/apis/compute_alpha/classes.rb', line 51206

def cluster
  @cluster
end

#sub_blockString

The hash of the capacity sub-block within the capacity block. Corresponds to the JSON property subBlock

Returns:

  • (String)


51211
51212
51213
# File 'lib/google/apis/compute_alpha/classes.rb', line 51211

def sub_block
  @sub_block
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



51218
51219
51220
51221
51222
# File 'lib/google/apis/compute_alpha/classes.rb', line 51218

def update!(**args)
  @block = args[:block] if args.key?(:block)
  @cluster = args[:cluster] if args.key?(:cluster)
  @sub_block = args[:sub_block] if args.key?(:sub_block)
end