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. This timestamp values are in RFC3339 text format.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpcomingMaintenanceTimeWindow

Returns a new instance of UpcomingMaintenanceTimeWindow.



45346
45347
45348
# File 'lib/google/apis/compute_alpha/classes.rb', line 45346

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

Instance Attribute Details

#earliestString

Corresponds to the JSON property earliest

Returns:

  • (String)


45339
45340
45341
# File 'lib/google/apis/compute_alpha/classes.rb', line 45339

def earliest
  @earliest
end

#latestString

Corresponds to the JSON property latest

Returns:

  • (String)


45344
45345
45346
# File 'lib/google/apis/compute_alpha/classes.rb', line 45344

def latest
  @latest
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45351
45352
45353
45354
# File 'lib/google/apis/compute_alpha/classes.rb', line 45351

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