Class: Google::Apis::DataprocV1::ReservationAffinity

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dataproc_v1/classes.rb,
generated/google/apis/dataproc_v1/representations.rb,
generated/google/apis/dataproc_v1/representations.rb

Overview

Reservation Affinity for consuming Zonal reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ReservationAffinity

Returns a new instance of ReservationAffinity.



2669
2670
2671
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2669

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#consume_reservation_typeString

Optional. Type of reservation to consume Corresponds to the JSON property consumeReservationType

Returns:

  • (String)


2657
2658
2659
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2657

def consume_reservation_type
  @consume_reservation_type
end

#keyString

Optional. Corresponds to the label key of reservation resource. Corresponds to the JSON property key

Returns:

  • (String)


2662
2663
2664
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2662

def key
  @key
end

#valuesArray<String>

Optional. Corresponds to the label values of reservation resource. Corresponds to the JSON property values

Returns:

  • (Array<String>)


2667
2668
2669
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2667

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2674
2675
2676
2677
2678
# File 'generated/google/apis/dataproc_v1/classes.rb', line 2674

def update!(**args)
  @consume_reservation_type = args[:consume_reservation_type] if args.key?(:consume_reservation_type)
  @key = args[:key] if args.key?(:key)
  @values = args[:values] if args.key?(:values)
end