Class: Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReservationAffinity
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1beta1::GoogleCloudAiplatformV1beta1ReservationAffinity
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb
Overview
A ReservationAffinity can be used to configure a Vertex AI resource (e.g., a DeployedModel) to draw its Compute Engine resources from a Shared Reservation, or exclusively from on-demand capacity.
Instance Attribute Summary collapse
-
#key ⇒ String
Optional.
-
#reservation_affinity_type ⇒ String
Required.
-
#values ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ReservationAffinity
constructor
A new instance of GoogleCloudAiplatformV1beta1ReservationAffinity.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1beta1ReservationAffinity
Returns a new instance of GoogleCloudAiplatformV1beta1ReservationAffinity.
27750 27751 27752 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27750 def initialize(**args) update!(**args) end |
Instance Attribute Details
#key ⇒ String
Optional. Corresponds to the label key of a reservation resource. To target a
SPECIFIC_RESERVATION 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
27737 27738 27739 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27737 def key @key end |
#reservation_affinity_type ⇒ String
Required. Specifies the reservation affinity type.
Corresponds to the JSON property reservationAffinityType
27742 27743 27744 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27742 def reservation_affinity_type @reservation_affinity_type end |
#values ⇒ Array<String>
Optional. Corresponds to the label values of a reservation resource. This must
be the full resource name of the reservation.
Corresponds to the JSON property values
27748 27749 27750 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27748 def values @values end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
27755 27756 27757 27758 27759 |
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 27755 def update!(**args) @key = args[:key] if args.key?(:key) @reservation_affinity_type = args[:reservation_affinity_type] if args.key?(:reservation_affinity_type) @values = args[:values] if args.key?(:values) end |