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

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ UpcomingMaintenance

Returns a new instance of UpcomingMaintenance.



36489
36490
36491
# File 'generated/google/apis/compute_alpha/classes.rb', line 36489

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. Corresponds to the JSON property date

Returns:

  • (String)


36476
36477
36478
# File 'generated/google/apis/compute_alpha/classes.rb', line 36476

def date
  @date
end

#timeString

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

Returns:

  • (String)


36482
36483
36484
# File 'generated/google/apis/compute_alpha/classes.rb', line 36482

def time
  @time
end

#typeString

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

Returns:

  • (String)


36487
36488
36489
# File 'generated/google/apis/compute_alpha/classes.rb', line 36487

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36494
36495
36496
36497
36498
# File 'generated/google/apis/compute_alpha/classes.rb', line 36494

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