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.



1371
1372
1373
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1371

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)


1329
1330
1331
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1329

def asset_type
  @asset_type
end

#available_countFixnum

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

Returns:

  • (Fixnum)


1334
1335
1336
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1334

def available_count
  @available_count
end

#gcp_serviceString

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

Returns:

  • (String)


1339
1340
1341
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1339

def gcp_service
  @gcp_service
end

#instance_quotaGoogle::Apis::BaremetalsolutionV2::InstanceQuota

A resource budget. Corresponds to the JSON property instanceQuota



1344
1345
1346
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1344

def instance_quota
  @instance_quota
end

#locationString

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

Returns:

  • (String)


1349
1350
1351
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1349

def location
  @location
end

#nameString

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

Returns:

  • (String)


1354
1355
1356
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1354

def name
  @name
end

#network_bandwidthFixnum

Network bandwidth, Gbps Corresponds to the JSON property networkBandwidth

Returns:

  • (Fixnum)


1359
1360
1361
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1359

def network_bandwidth
  @network_bandwidth
end

#server_countFixnum

Server count. Corresponds to the JSON property serverCount

Returns:

  • (Fixnum)


1364
1365
1366
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1364

def server_count
  @server_count
end

#storage_gibFixnum

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

Returns:

  • (Fixnum)


1369
1370
1371
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1369

def storage_gib
  @storage_gib
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1376

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