Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1NotebookReservationAffinity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Overview
Notebook Reservation Affinity for consuming Zonal reservation.
Instance Attribute Summary collapse
-
#consume_reservation_type ⇒ String
Required.
-
#key ⇒ String
Optional.
-
#values ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1NotebookReservationAffinity
constructor
A new instance of GoogleCloudAiplatformV1NotebookReservationAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1NotebookReservationAffinity
Returns a new instance of GoogleCloudAiplatformV1NotebookReservationAffinity.
15663 15664 15665 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15663 def initialize(**args) update!(**args) end |
Instance Attribute Details
#consume_reservation_type ⇒ String
Required. Specifies the type of reservation from which this instance can
consume resources: RESERVATION_ANY (default), RESERVATION_SPECIFIC, or
RESERVATION_NONE. See Consuming reserved instances for examples.
Corresponds to the JSON property consumeReservationType
15648 15649 15650 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15648 def consume_reservation_type @consume_reservation_type end |
#key ⇒ String
Optional. Corresponds to the label key of a reservation resource. To target a
RESERVATION_SPECIFIC by name, use compute.googleapis.com/reservation-name as
the key and specify the name of your reservation as its value.
Corresponds to the JSON property key
15655 15656 15657 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15655 def key @key end |
#values ⇒ Array<String>
Optional. Corresponds to the label values of a reservation resource. This must
be the full path name of Reservation.
Corresponds to the JSON property values
15661 15662 15663 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15661 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15668 15669 15670 15671 15672 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 15668 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 |