Class: Google::Cloud::Notebooks::V1::ReservationAffinity

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

Overview

Reservation Affinity for consuming Zonal reservation.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#consume_reservation_type::Google::Cloud::Notebooks::V1::ReservationAffinity::Type

Returns Optional. Type of reservation to consume.

Returns:



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'proto_docs/google/cloud/notebooks/v1/instance.rb', line 34

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

  # Indicates whether to consume capacity from an reservation or not.
  module Type
    # Default type.
    TYPE_UNSPECIFIED = 0

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

    # Consume any reservation available.
    ANY_RESERVATION = 2

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

#key::String

Returns Optional. Corresponds to the label key of reservation resource.

Returns:

  • (::String)

    Optional. Corresponds to the label key of reservation resource.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'proto_docs/google/cloud/notebooks/v1/instance.rb', line 34

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

  # Indicates whether to consume capacity from an reservation or not.
  module Type
    # Default type.
    TYPE_UNSPECIFIED = 0

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

    # Consume any reservation available.
    ANY_RESERVATION = 2

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

#values::Array<::String>

Returns Optional. Corresponds to the label values of reservation resource.

Returns:

  • (::Array<::String>)

    Optional. Corresponds to the label values of reservation resource.



34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# File 'proto_docs/google/cloud/notebooks/v1/instance.rb', line 34

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

  # Indicates whether to consume capacity from an reservation or not.
  module Type
    # Default type.
    TYPE_UNSPECIFIED = 0

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

    # Consume any reservation available.
    ANY_RESERVATION = 2

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