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.



1206
1207
1208
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1206

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)


1179
1180
1181
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1179

def asset_type
  @asset_type
end

#available_countFixnum

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

Returns:

  • (Fixnum)


1184
1185
1186
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1184

def available_count
  @available_count
end

#gcp_serviceString

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

Returns:

  • (String)


1189
1190
1191
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1189

def gcp_service
  @gcp_service
end

#instance_quotaGoogle::Apis::BaremetalsolutionV2::InstanceQuota

A resource budget. Corresponds to the JSON property instanceQuota



1194
1195
1196
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1194

def instance_quota
  @instance_quota
end

#locationString

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

Returns:

  • (String)


1199
1200
1201
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1199

def location
  @location
end

#nameString

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

Returns:

  • (String)


1204
1205
1206
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1204

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1211
1212
1213
1214
1215
1216
1217
1218
# File 'lib/google/apis/baremetalsolution_v2/classes.rb', line 1211

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)
end