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

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

Overview

Reservation Affinity for consuming Zonal reservation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ReservationAffinity

Returns a new instance of ReservationAffinity.



2999
3000
3001
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2999

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)


2987
2988
2989
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2987

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)


2992
2993
2994
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2992

def key
  @key
end

#valuesArray<String>

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

Returns:

  • (Array<String>)


2997
2998
2999
# File 'lib/google/apis/dataproc_v1/classes.rb', line 2997

def values
  @values
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3004
3005
3006
3007
3008
# File 'lib/google/apis/dataproc_v1/classes.rb', line 3004

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