Class: Google::Apis::MigrationcenterV1alpha1::ReportSummarySoleTenantNodeAllocation

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

Overview

Represents the assets allocated to a specific Sole-Tenant node type.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReportSummarySoleTenantNodeAllocation

Returns a new instance of ReportSummarySoleTenantNodeAllocation.



5742
5743
5744
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5742

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

Instance Attribute Details

#allocated_asset_countFixnum

Count of assets allocated to these nodes Corresponds to the JSON property allocatedAssetCount

Returns:

  • (Fixnum)


5730
5731
5732
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5730

def allocated_asset_count
  @allocated_asset_count
end

#nodeGoogle::Apis::MigrationcenterV1alpha1::SoleTenantNodeType

A Sole Tenant node type. Corresponds to the JSON property node



5735
5736
5737
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5735

def node
  @node
end

#node_countFixnum

Count of this node type to be provisioned Corresponds to the JSON property nodeCount

Returns:

  • (Fixnum)


5740
5741
5742
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5740

def node_count
  @node_count
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5747
5748
5749
5750
5751
# File 'lib/google/apis/migrationcenter_v1alpha1/classes.rb', line 5747

def update!(**args)
  @allocated_asset_count = args[:allocated_asset_count] if args.key?(:allocated_asset_count)
  @node = args[:node] if args.key?(:node)
  @node_count = args[:node_count] if args.key?(:node_count)
end