Class: Google::Cloud::Compute::V1::ReservationAffinity

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

Overview

Specifies the reservations that this instance can consume from.

Defined Under Namespace

Modules: ConsumeReservationType

Instance Attribute Summary collapse

Instance Attribute Details

#consume_reservation_type::String

Returns Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.

Returns:

  • (::String)

    Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples. Check the ConsumeReservationType enum for the list of possible values.



19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 19670

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

  # Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
  module ConsumeReservationType
    # A value indicating that the enum field is not set.
    UNDEFINED_CONSUME_RESERVATION_TYPE = 0

    # Consume any allocation available.
    ANY_RESERVATION = 200008121

    # Do not consume from any allocated capacity.
    NO_RESERVATION = 169322030

    # Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
    SPECIFIC_RESERVATION = 229889055

    UNSPECIFIED = 526786327
  end
end

#key::String

Returns Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.

Returns:

  • (::String)

    Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify googleapis.com/reservation-name as the key and specify the name of your reservation as its value.



19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 19670

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

  # Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
  module ConsumeReservationType
    # A value indicating that the enum field is not set.
    UNDEFINED_CONSUME_RESERVATION_TYPE = 0

    # Consume any allocation available.
    ANY_RESERVATION = 200008121

    # Do not consume from any allocated capacity.
    NO_RESERVATION = 169322030

    # Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
    SPECIFIC_RESERVATION = 229889055

    UNSPECIFIED = 526786327
  end
end

#values::Array<::String>

Returns Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.

Returns:

  • (::Array<::String>)

    Corresponds to the label values of a reservation resource. This can be either a name to a reservation in the same project or "projects/different-project/reservations/some-reservation-name" to target a shared reservation in the same zone but in a different project.



19670
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
# File 'proto_docs/google/cloud/compute/v1/compute.rb', line 19670

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

  # Specifies the type of reservation from which this instance can consume resources: ANY_RESERVATION (default), SPECIFIC_RESERVATION, or NO_RESERVATION. See Consuming reserved instances for examples.
  module ConsumeReservationType
    # A value indicating that the enum field is not set.
    UNDEFINED_CONSUME_RESERVATION_TYPE = 0

    # Consume any allocation available.
    ANY_RESERVATION = 200008121

    # Do not consume from any allocated capacity.
    NO_RESERVATION = 169322030

    # Must consume from a specific reservation. Must specify key value fields for specifying the reservations.
    SPECIFIC_RESERVATION = 229889055

    UNSPECIFIED = 526786327
  end
end