Class: Google::Cloud::AIPlatform::V1::ReservationAffinity

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

Overview

A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#key::String

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

Returns:

  • (::String)

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



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'proto_docs/google/cloud/aiplatform/v1/reservation_affinity.rb', line 40

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

  # Identifies a type of reservation affinity.
  module Type
    # Default value. This should not be used.
    TYPE_UNSPECIFIED = 0

    # Do not consume from any reserved capacity, only use on-demand.
    NO_RESERVATION = 1

    # Consume any reservation available, falling back to on-demand.
    ANY_RESERVATION = 2

    # Consume from a specific reservation. When chosen, the reservation
    # must be identified via the `key` and `values` fields.
    SPECIFIC_RESERVATION = 3
  end
end

#reservation_affinity_type::Google::Cloud::AIPlatform::V1::ReservationAffinity::Type

Returns Required. Specifies the reservation affinity type.

Returns:



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'proto_docs/google/cloud/aiplatform/v1/reservation_affinity.rb', line 40

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

  # Identifies a type of reservation affinity.
  module Type
    # Default value. This should not be used.
    TYPE_UNSPECIFIED = 0

    # Do not consume from any reserved capacity, only use on-demand.
    NO_RESERVATION = 1

    # Consume any reservation available, falling back to on-demand.
    ANY_RESERVATION = 2

    # Consume from a specific reservation. When chosen, the reservation
    # must be identified via the `key` and `values` fields.
    SPECIFIC_RESERVATION = 3
  end
end

#values::Array<::String>

Returns Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.

Returns:

  • (::Array<::String>)

    Optional. Corresponds to the label values of a reservation resource. This must be the full resource name of the reservation.



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# File 'proto_docs/google/cloud/aiplatform/v1/reservation_affinity.rb', line 40

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

  # Identifies a type of reservation affinity.
  module Type
    # Default value. This should not be used.
    TYPE_UNSPECIFIED = 0

    # Do not consume from any reserved capacity, only use on-demand.
    NO_RESERVATION = 1

    # Consume any reservation available, falling back to on-demand.
    ANY_RESERVATION = 2

    # Consume from a specific reservation. When chosen, the reservation
    # must be identified via the `key` and `values` fields.
    SPECIFIC_RESERVATION = 3
  end
end