Class: Google::Apis::VmmigrationV1alpha1::Expiration

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

Instance Method Summary collapse

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_timeString

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

Returns:

  • (String)


2523
2524
2525
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2523

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)


2528
2529
2530
# File 'lib/google/apis/vmmigration_v1alpha1/classes.rb', line 2528

def extendable
  @extendable
end

#extension_countFixnum

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

Returns:

  • (Fixnum)


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