Class: Google::Apis::ComputeAlpha::UpcomingMaintenance

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

Overview

Upcoming Maintenance notification information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpcomingMaintenance

Returns a new instance of UpcomingMaintenance.



40476
40477
40478
# File 'generated/google/apis/compute_alpha/classes.rb', line 40476

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

Instance Attribute Details

#dateString

[Output Only] The date when the maintenance will take place. This value is in RFC3339 text format. DEPRECATED: Use start_time_window instead. Corresponds to the JSON property date

Returns:

  • (String)


40463
40464
40465
# File 'generated/google/apis/compute_alpha/classes.rb', line 40463

def date
  @date
end

#timeString

[Output Only] The time when the maintenance will take place. This value is in RFC3339 text format. DEPRECATED: Use start_time_window instead. Corresponds to the JSON property time

Returns:

  • (String)


40469
40470
40471
# File 'generated/google/apis/compute_alpha/classes.rb', line 40469

def time
  @time
end

#typeString

Defines the type of maintenance. Corresponds to the JSON property type

Returns:

  • (String)


40474
40475
40476
# File 'generated/google/apis/compute_alpha/classes.rb', line 40474

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



40481
40482
40483
40484
40485
# File 'generated/google/apis/compute_alpha/classes.rb', line 40481

def update!(**args)
  @date = args[:date] if args.key?(:date)
  @time = args[:time] if args.key?(:time)
  @type = args[:type] if args.key?(:type)
end