Class: Google::Apis::TpuV2alpha1::Reservation
- Inherits:
-
Object
- Object
- Google::Apis::TpuV2alpha1::Reservation
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/tpu_v2alpha1/classes.rb,
lib/google/apis/tpu_v2alpha1/representations.rb,
lib/google/apis/tpu_v2alpha1/representations.rb
Overview
A reservation describes the amount of a resource 'allotted' for a defined period of time.
Instance Attribute Summary collapse
-
#name ⇒ String
The reservation name with the format: projects/
projectID/locations/location/reservations/reservationIDCorresponds to the JSON propertyname. -
#standard ⇒ Google::Apis::TpuV2alpha1::Standard
Details of a standard reservation.
-
#state ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Reservation
constructor
A new instance of Reservation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Reservation
Returns a new instance of Reservation.
1591 1592 1593 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1591 def initialize(**args) update!(**args) end |
Instance Attribute Details
#name ⇒ String
The reservation name with the format: projects/projectID/locations/location
/reservations/reservationID
Corresponds to the JSON property name
1579 1580 1581 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1579 def name @name end |
#standard ⇒ Google::Apis::TpuV2alpha1::Standard
Details of a standard reservation.
Corresponds to the JSON property standard
1584 1585 1586 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1584 def standard @standard end |
#state ⇒ String
Output only. The state of the Reservation.
Corresponds to the JSON property state
1589 1590 1591 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1589 def state @state end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1596 1597 1598 1599 1600 |
# File 'lib/google/apis/tpu_v2alpha1/classes.rb', line 1596 def update!(**args) @name = args[:name] if args.key?(:name) @standard = args[:standard] if args.key?(:standard) @state = args[:state] if args.key?(:state) end |