Class: Google::Apis::BaremetalsolutionV2::ProvisioningQuota

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

Overview

A provisioning quota for a given project.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ProvisioningQuota

Returns a new instance of ProvisioningQuota.



1493
1494
1495
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1493

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

Instance Attribute Details

#asset_typeString

The asset type of this provisioning quota. Corresponds to the JSON property assetType

Returns:

  • (String)


1451
1452
1453
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1451

def asset_type
  @asset_type
end

#available_countFixnum

The available count of the provisioning quota. Corresponds to the JSON property availableCount

Returns:

  • (Fixnum)


1456
1457
1458
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1456

def available_count
  @available_count
end

#gcp_serviceString

The gcp service of the provisioning quota. Corresponds to the JSON property gcpService

Returns:

  • (String)


1461
1462
1463
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1461

def gcp_service
  @gcp_service
end

#instance_quotaGoogle::Apis::BaremetalsolutionV2::InstanceQuota

A resource budget. Corresponds to the JSON property instanceQuota



1466
1467
1468
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1466

def instance_quota
  @instance_quota
end

#locationString

The specific location of the provisioining quota. Corresponds to the JSON property location

Returns:

  • (String)


1471
1472
1473
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1471

def location
  @location
end

#nameString

Output only. The name of the provisioning quota. Corresponds to the JSON property name

Returns:

  • (String)


1476
1477
1478
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1476

def name
  @name
end

#network_bandwidthFixnum

Network bandwidth, Gbps Corresponds to the JSON property networkBandwidth

Returns:

  • (Fixnum)


1481
1482
1483
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1481

def network_bandwidth
  @network_bandwidth
end

#server_countFixnum

Server count. Corresponds to the JSON property serverCount

Returns:

  • (Fixnum)


1486
1487
1488
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1486

def server_count
  @server_count
end

#storage_gibFixnum

Storage size (GB). Corresponds to the JSON property storageGib

Returns:

  • (Fixnum)


1491
1492
1493
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1491

def storage_gib
  @storage_gib
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1498

def update!(**args)
  @asset_type = args[:asset_type] if args.key?(:asset_type)
  @available_count = args[:available_count] if args.key?(:available_count)
  @gcp_service = args[:gcp_service] if args.key?(:gcp_service)
  @instance_quota = args[:instance_quota] if args.key?(:instance_quota)
  @location = args[:location] if args.key?(:location)
  @name = args[:name] if args.key?(:name)
  @network_bandwidth = args[:network_bandwidth] if args.key?(:network_bandwidth)
  @server_count = args[:server_count] if args.key?(:server_count)
  @storage_gib = args[:storage_gib] if args.key?(:storage_gib)
end