Class: Google::Apis::ComputeAlpha::UpcomingMaintenanceTimeWindow

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/compute_alpha/classes.rb,
lib/google/apis/compute_alpha/representations.rb,
lib/google/apis/compute_alpha/representations.rb

Overview

Represents a window of time using two timestamps: earliest and latest.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpcomingMaintenanceTimeWindow

Returns a new instance of UpcomingMaintenanceTimeWindow.



59906
59907
59908
# File 'lib/google/apis/compute_alpha/classes.rb', line 59906

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#earliestString

Corresponds to the JSON property earliest

Returns:

  • (String)


59899
59900
59901
# File 'lib/google/apis/compute_alpha/classes.rb', line 59899

def earliest
  @earliest
end

#latestString

Corresponds to the JSON property latest

Returns:

  • (String)


59904
59905
59906
# File 'lib/google/apis/compute_alpha/classes.rb', line 59904

def latest
  @latest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



59911
59912
59913
59914
# File 'lib/google/apis/compute_alpha/classes.rb', line 59911

def update!(**args)
  @earliest = args[:earliest] if args.key?(:earliest)
  @latest = args[:latest] if args.key?(:latest)
end