Class: Google::Cloud::Compute::V1::Commitment

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/compute/v1/compute.rb

Overview

Represents a regional resource-based commitment resource. Creating this commitment resource means that you are purchasing a resource-based committed use contract, with an explicit start and end time. You can purchase resource-based commitments for both hardware and software resources. For more information, read Resource-based committed use discounts

Defined Under Namespace

Modules: Category, Plan, Status, Type

Instance Attribute Summary collapse

Instance Attribute Details

#auto_renew::Boolean

Returns Specifies whether to automatically renew the commitment at the end of its current term. The default value is false. If you set the field to true, each time your commitment reaches the end of its term, Compute Engine automatically renews it for another term. You can update this field anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027.

Returns:

  • (::Boolean)

    Specifies whether to automatically renew the commitment at the end of its current term. The default value is false. If you set the field to true, each time your commitment reaches the end of its term, Compute Engine automatically renews it for another term. You can update this field anytime before the commitment expires. For example, if the commitment is set to expire at 12 AM UTC-8 on January 3, 2027, you can update this field until 11:59 PM UTC-8 on January 2, 2027.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#category::String

Returns The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to. Check the Category enum for the list of possible values.

Returns:

  • (::String)

    The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to. Check the Category enum for the list of possible values.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#creation_timestamp::String

Returns [Output Only] Creation timestamp in RFC3339 text format.

Returns:

  • (::String)

    [Output Only] Creation timestamp in RFC3339 text format.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#custom_end_timestamp::String

Returns [Input Only] Optional, specifies the requested commitment end time in RFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration.

Returns:

  • (::String)

    [Input Only] Optional, specifies the requested commitment end time in RFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#description::String

Returns An optional description of the commitment. You can provide this property when you create the resource.

Returns:

  • (::String)

    An optional description of the commitment. You can provide this property when you create the resource.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#end_timestamp::String

Returns [Output Only] Commitment end time in RFC3339 text format.

Returns:

  • (::String)

    [Output Only] Commitment end time in RFC3339 text format.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#existing_reservations::Array<::String>

Returns:

  • (::Array<::String>)


5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#id::Integer

Returns [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns:

  • (::Integer)

    [Output Only] The unique identifier for the resource. This identifier is defined by the server.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#kind::String

Returns [Output Only] Type of the resource. Always compute#commitment for commitments.

Returns:

  • (::String)

    [Output Only] Type of the resource. Always compute#commitment for commitments.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#license_resource::Google::Cloud::Compute::V1::LicenseResourceCommitment

Returns The license specification required as part of a license commitment.

Returns:



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#merge_source_commitments::Array<::String>

Returns The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments.

Returns:

  • (::Array<::String>)

    The list of source commitments that you are merging to create the new merged commitment. For more information, see Merging commitments.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#name::String

Returns Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.

Returns:

  • (::String)

    Name of the commitment. You must specify a name when you purchase the commitment. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#plan::String

Returns The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.

Returns:

  • (::String)

    The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#region::String

Returns [Output Only] URL of the region where the commitment and committed resources are located.

Returns:

  • (::String)

    [Output Only] URL of the region where the commitment and committed resources are located.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#reservations::Array<::Google::Cloud::Compute::V1::Reservation>

Returns The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify the existingReservations property instead.

Returns:

  • (::Array<::Google::Cloud::Compute::V1::Reservation>)

    The list of new reservations that you want to create and attach to this commitment. You must attach reservations to your commitment if your commitment specifies any GPUs or Local SSD disks. For more information, see Attach reservations to resource-based commitments. Specify this property only if you want to create new reservations to attach. To attach existing reservations, specify the existingReservations property instead.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#resource_status::Google::Cloud::Compute::V1::CommitmentResourceStatus

Returns [Output Only] Status information for Commitment resource.

Returns:



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#resources::Array<::Google::Cloud::Compute::V1::ResourceCommitment>

Returns The list of all the hardware resources, with their types and amounts, that you want to commit to. Specify as a separate entry in the list for each individual resource type.

Returns:



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

Returns [Output Only] Server-defined URL for the resource.

Returns:

  • (::String)

    [Output Only] Server-defined URL for the resource.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#split_source_commitment::String

Returns The source commitment from which you are transferring resources to create the new split commitment. For more information, see Split commitments.

Returns:

  • (::String)

    The source commitment from which you are transferring resources to create the new split commitment. For more information, see Split commitments.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#start_timestamp::String

Returns [Output Only] Commitment start time in RFC3339 text format.

Returns:

  • (::String)

    [Output Only] Commitment start time in RFC3339 text format.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#status::String

Returns [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED. Check the Status enum for the list of possible values.

Returns:

  • (::String)

    [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED. Check the Status enum for the list of possible values.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#status_message::String

Returns [Output Only] An optional, human-readable explanation of the status.

Returns:

  • (::String)

    [Output Only] An optional, human-readable explanation of the status.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end

#type::String

Returns The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series. Check the Type enum for the list of possible values.

Returns:

  • (::String)

    The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series. Check the Type enum for the list of possible values.



5309
5310
5311
5312
5313
5314
5315
5316
5317
5318
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380
5381
5382
5383
5384
5385
5386
5387
5388
5389
5390
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400
5401
5402
5403
5404
5405
5406
5407
5408
5409
5410
5411
5412
5413
5414
5415
5416
5417
5418
5419
5420
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 5309

class Commitment
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # The category of the commitment; specifies whether the commitment is for hardware or software resources. Category MACHINE specifies that you are committing to hardware machine resources such as VCPU or MEMORY, listed in resources. Category LICENSE specifies that you are committing to software licenses, listed in licenseResources. Note that if you specify MACHINE commitments, then you must also specify a type to indicate the machine series of the hardware resource that you are committing to.
  module Category
    # A value indicating that the enum field is not set.
    UNDEFINED_CATEGORY = 0

    CATEGORY_UNSPECIFIED = 509_189_462

    LICENSE = 347_869_217

    MACHINE = 469_553_191
  end

  # The minimum time duration that you commit to purchasing resources. The plan that you choose determines the preset term length of the commitment (which is 1 year or 3 years) and affects the discount rate that you receive for your resources. Committing to a longer time duration typically gives you a higher discount rate. The supported values for this field are TWELVE_MONTH (1 year), and THIRTY_SIX_MONTH (3 years).
  module Plan
    # A value indicating that the enum field is not set.
    UNDEFINED_PLAN = 0

    INVALID = 530_283_991

    THIRTY_SIX_MONTH = 266_295_942

    TWELVE_MONTH = 173_083_962
  end

  # [Output Only] Status of the commitment with regards to eventual expiration (each commitment has an end date defined). Status can be one of the following values: NOT_YET_ACTIVE, ACTIVE, or EXPIRED.
  module Status
    # A value indicating that the enum field is not set.
    UNDEFINED_STATUS = 0

    ACTIVE = 314_733_318

    # Deprecate CANCELED status. Will use separate status to differentiate cancel by mergeCud or manual cancellation.
    CANCELLED = 41_957_681

    CREATING = 455_564_985

    EXPIRED = 482_489_093

    NOT_YET_ACTIVE = 20_607_337
  end

  # The type of commitment; specifies the machine series for which you want to commit to purchasing resources. The choice of machine series affects the discount rate and the eligible resource types. The type must be one of the following: ACCELERATOR_OPTIMIZED, ACCELERATOR_OPTIMIZED_A3, ACCELERATOR_OPTIMIZED_A3_MEGA, COMPUTE_OPTIMIZED, COMPUTE_OPTIMIZED_C2D, COMPUTE_OPTIMIZED_C3, COMPUTE_OPTIMIZED_C3D, COMPUTE_OPTIMIZED_H3, GENERAL_PURPOSE, GENERAL_PURPOSE_C4, GENERAL_PURPOSE_E2, GENERAL_PURPOSE_N2, GENERAL_PURPOSE_N2D, GENERAL_PURPOSE_N4, GENERAL_PURPOSE_T2D, GRAPHICS_OPTIMIZED, MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3, MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3. For example, type MEMORY_OPTIMIZED specifies a commitment that applies only to eligible resources of memory optimized M1 and M2 machine series. Type GENERAL_PURPOSE specifies a commitment that applies only to eligible resources of general purpose N1 machine series.
  module Type
    # A value indicating that the enum field is not set.
    UNDEFINED_TYPE = 0

    ACCELERATOR_OPTIMIZED = 280_848_403

    ACCELERATOR_OPTIMIZED_A3 = 158_574_526

    ACCELERATOR_OPTIMIZED_A3_MEGA = 156_517_459

    ACCELERATOR_OPTIMIZED_A3_ULTRA = 27_812_811

    ACCELERATOR_OPTIMIZED_A4 = 158_574_527

    COMPUTE_OPTIMIZED = 158_349_023

    COMPUTE_OPTIMIZED_C2D = 383_246_453

    COMPUTE_OPTIMIZED_C3 = 428_004_784

    COMPUTE_OPTIMIZED_C3D = 383_246_484

    COMPUTE_OPTIMIZED_H3 = 428_004_939

    COMPUTE_OPTIMIZED_H4D = 383_251_320

    GENERAL_PURPOSE = 299_793_543

    GENERAL_PURPOSE_C4 = 301_911_817

    GENERAL_PURPOSE_C4A = 232_460_888

    GENERAL_PURPOSE_C4D = 232_460_891

    GENERAL_PURPOSE_E2 = 301_911_877

    GENERAL_PURPOSE_N2 = 301_912_156

    GENERAL_PURPOSE_N2D = 232_471_400

    GENERAL_PURPOSE_N4 = 301_912_158

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # Note for internal users: When adding a new enum Type for v1, make sure to also add it in the comment for the `optional Type type` definition. This ensures that the public documentation displays the new enum Type.
    TYPE_UNSPECIFIED = 437_714_322
  end
end