Class: Google::Apis::VmmigrationV1::Expiration
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1::Expiration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1/classes.rb,
lib/google/apis/vmmigration_v1/representations.rb,
lib/google/apis/vmmigration_v1/representations.rb
Overview
Expiration holds information about the expiration of a MigratingVm.
Instance Attribute Summary collapse
-
#expire_time ⇒ String
Output only.
-
#extendable ⇒ Boolean
(also: #extendable?)
Output only.
-
#extension_count ⇒ Fixnum
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Expiration
constructor
A new instance of Expiration.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Expiration
Returns a new instance of Expiration.
2495 2496 2497 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2495 def initialize(**args) update!(**args) end |
Instance Attribute Details
#expire_time ⇒ String
Output only. Timestamp of when this resource is considered expired.
Corresponds to the JSON property expireTime
2482 2483 2484 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2482 def expire_time @expire_time end |
#extendable ⇒ Boolean Also known as: extendable?
Output only. Describes whether the expiration can be extended.
Corresponds to the JSON property extendable
2487 2488 2489 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2487 def extendable @extendable end |
#extension_count ⇒ Fixnum
Output only. The number of times expiration was extended.
Corresponds to the JSON property extensionCount
2493 2494 2495 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2493 def extension_count @extension_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2500 2501 2502 2503 2504 |
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2500 def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) @extendable = args[:extendable] if args.key?(:extendable) @extension_count = args[:extension_count] if args.key?(:extension_count) end |