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.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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 asVCPU 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 asVCPU 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.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] Creation timestamp inRFC3339 text format.

Returns:

  • (::String) —

    Output only. [Output Only] Creation timestamp inRFC3339 text format.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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 inRFC3339 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 inRFC3339 text format. Use this option when the desired commitment's end date is later than the start date + term duration.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] Commitment end time inRFC3339 text format.

Returns:

  • (::String) —

    Output only. [Output Only] Commitment end time inRFC3339 text format.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

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


14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] The unique identifier for the resource. This identifier is defined by the server.

Returns:

  • (::Integer) —

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



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] Type of the resource. Always compute#commitment for commitments.

Returns:

  • (::String) —

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



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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:



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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 withRFC1035. 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 withRFC1035. 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.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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

#params ⇒ ::Google::Cloud::Compute::V1::CommitmentParams

Returns Input only. Additional params passed with the request, but not persisted as part of resource payload.

Returns:



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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), andTHIRTY_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), andTHIRTY_SIX_MONTH (3 years). Check the Plan enum for the list of possible values.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] URL of the region where the commitment and committed resources are located.

Returns:

  • (::String) —

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



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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 theexistingReservations 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 theexistingReservations property instead.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] Status information for Commitment resource.

Returns:



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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:



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] Server-defined URL for the resource.

Returns:

  • (::String) —

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



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] Commitment start time inRFC3339 text format.

Returns:

  • (::String) —

    Output only. [Output Only] Commitment start time inRFC3339 text format.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [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, orEXPIRED. Check the Status enum for the list of possible values.

Returns:

  • (::String) —

    Output only. [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, orEXPIRED. Check the Status enum for the list of possible values.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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. [Output Only] An optional, human-readable explanation of the status.

Returns:

  • (::String) —

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



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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.



14532
14533
14534
14535
14536
14537
14538
14539
14540
14541
14542
14543
14544
14545
14546
14547
14548
14549
14550
14551
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561
14562
14563
14564
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695
14696
14697
14698
14699
14700
14701
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 14532

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 asVCPU 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), andTHIRTY_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. [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, orEXPIRED.
  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, GRAPHICS_OPTIMIZED_G4,GRAPHICS_OPTIMIZED_G4_VGPU,MEMORY_OPTIMIZED, MEMORY_OPTIMIZED_M3,MEMORY_OPTIMIZED_X4, STORAGE_OPTIMIZED_Z3,STORAGE_OPTIMIZED_Z4DS, STORAGE_OPTIMIZED_Z4DH,STORAGE_OPTIMIZED_Z4D4T. 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_N4A = 232_471_459

    GENERAL_PURPOSE_N4D = 232_471_462

    GENERAL_PURPOSE_T2D = 232_477_166

    GRAPHICS_OPTIMIZED = 68_500_563

    GRAPHICS_OPTIMIZED_G4 = 54_029_369

    GRAPHICS_OPTIMIZED_G4_VGPU = 298_988_732

    MEMORY_OPTIMIZED = 281_753_417

    MEMORY_OPTIMIZED_M3 = 276_301_372

    MEMORY_OPTIMIZED_M4 = 276_301_373

    MEMORY_OPTIMIZED_M4_6TB = 210_543_650

    # CUD bucket for X4 machine with 1440 vCPUs and 24TB of memory.
    MEMORY_OPTIMIZED_X4_1440_24T = 206_669_823

    MEMORY_OPTIMIZED_X4_16TB = 183_089_120

    # CUD bucket for X4 machine with 1920 vCPUs and 32TB of memory.
    MEMORY_OPTIMIZED_X4_1920_32T = 291_963_529

    MEMORY_OPTIMIZED_X4_24TB = 183_116_989

    MEMORY_OPTIMIZED_X4_32TB = 183_144_858

    # CUD bucket for X4 machine with 480 vCPUs and 6TB of memory.
    MEMORY_OPTIMIZED_X4_480_6T = 478_547_742

    # CUD bucket for X4 machine with 480 vCPUs and 8TB of memory.
    MEMORY_OPTIMIZED_X4_480_8T = 478_547_804

    # CUD bucket for X4 machine with 960 vCPUs and 12TB of memory.
    MEMORY_OPTIMIZED_X4_960_12T = 424_752_410

    # CUD bucket for X4 machine with 960 vCPUs and 16TB of memory.
    MEMORY_OPTIMIZED_X4_960_16T = 424_752_534

    # CUD bucket for C4N (dual Diorite) machines.
    NETWORK_OPTIMIZED_C4N = 147_027_572

    # CUD bucket for NETWORK_OPTIMIZED_U4C machines.
    NETWORK_OPTIMIZED_U4C = 147_044_859

    # CUD bucket for NETWORK_OPTIMIZED_U4P machines.
    NETWORK_OPTIMIZED_U4P = 147_044_872

    # CUD bucket for NETWORK_OPTIMIZED_U4S machines.
    NETWORK_OPTIMIZED_U4S = 147_044_875

    STORAGE_OPTIMIZED_Z3 = 316_796_085

    # CUD bucket for Z4D-4T machines.
    STORAGE_OPTIMIZED_Z4D4T = 18_503_022

    # CUD bucket for Z4DH machines.
    STORAGE_OPTIMIZED_Z4DH = 35_233_722

    # CUD bucket for Z4DS machines.
    STORAGE_OPTIMIZED_Z4DS = 35_233_733

    # 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