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.



36345
36346
36347
# File 'generated/google/apis/compute_alpha/classes.rb', line 36345

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)


36332
36333
36334
# File 'generated/google/apis/compute_alpha/classes.rb', line 36332

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)


36338
36339
36340
# File 'generated/google/apis/compute_alpha/classes.rb', line 36338

def time
  @time
end

#typeString

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

Returns:

  • (String)


36343
36344
36345
# File 'generated/google/apis/compute_alpha/classes.rb', line 36343

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36350
36351
36352
36353
36354
# File 'generated/google/apis/compute_alpha/classes.rb', line 36350

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