Class: Google::Apis::VmmigrationV1::Expiration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeString

Output only. Timestamp of when this resource is considered expired. Corresponds to the JSON property expireTime

Returns:

  • (String)


2482
2483
2484
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2482

def expire_time
  @expire_time
end

#extendableBoolean Also known as: extendable?

Output only. Describes whether the expiration can be extended. Corresponds to the JSON property extendable

Returns:

  • (Boolean)


2487
2488
2489
# File 'lib/google/apis/vmmigration_v1/classes.rb', line 2487

def extendable
  @extendable
end

#extension_countFixnum

Output only. The number of times expiration was extended. Corresponds to the JSON property extensionCount

Returns:

  • (Fixnum)


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