Class: Google::Cloud::Dataproc::V1::ReservationAffinity

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/clusters.rb

Overview

Reservation Affinity for consuming Zonal reservation.

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Attribute Details

#consume_reservation_typeGoogle::Cloud::Dataproc::V1::ReservationAffinity::Type

Returns Optional. Type of reservation to consume.

Returns:



800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
# File 'lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/clusters.rb', line 800

class ReservationAffinity
  # Indicates whether to consume capacity from an reservation or not.
  module 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

#keyString

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

Returns:

  • (String)

    Optional. Corresponds to the label key of reservation resource.



800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
# File 'lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/clusters.rb', line 800

class ReservationAffinity
  # Indicates whether to consume capacity from an reservation or not.
  module 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

#valuesArray<String>

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

Returns:

  • (Array<String>)

    Optional. Corresponds to the label values of reservation resource.



800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
# File 'lib/google/cloud/dataproc/v1/doc/google/cloud/dataproc/v1/clusters.rb', line 800

class ReservationAffinity
  # Indicates whether to consume capacity from an reservation or not.
  module 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