Class: Google::Apis::VmmigrationV1alpha1::Expiration
- Inherits:
-
Object
- Object
- Google::Apis::VmmigrationV1alpha1::Expiration
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/vmmigration_v1alpha1/classes.rb,
lib/google/apis/vmmigration_v1alpha1/representations.rb,
lib/google/apis/vmmigration_v1alpha1/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.
2536 2537 2538 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2536 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
2523 2524 2525 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2523 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
2528 2529 2530 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2528 def extendable @extendable end |
#extension_count ⇒ Fixnum
Output only. The number of times expiration was extended.
Corresponds to the JSON property extensionCount
2534 2535 2536 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2534 def extension_count @extension_count end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2541 2542 2543 2544 2545 |
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2541 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 |