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

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

Upcoming Maintenance notification information. TODO(b/196881882) Deprecate this proto once it's fully migrated to be under proto ResourceStatus. UpcomingMaintenance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpcomingMaintenance

Returns a new instance of UpcomingMaintenance.



45537
45538
45539
# File 'lib/google/apis/compute_alpha/classes.rb', line 45537

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

Instance Attribute Details

#can_rescheduleBoolean Also known as: can_reschedule?

Indicates if the maintenance can be customer triggered. From more detail, see go/sf-ctm-design. Corresponds to the JSON property canReschedule

Returns:

  • (Boolean)


45511
45512
45513
# File 'lib/google/apis/compute_alpha/classes.rb', line 45511

def can_reschedule
  @can_reschedule
end

#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)


45518
45519
45520
# File 'lib/google/apis/compute_alpha/classes.rb', line 45518

def date
  @date
end

#start_time_windowGoogle::Apis::ComputeAlpha::UpcomingMaintenanceTimeWindow

Represents a window of time using two timestamps: earliest and latest. This timestamp values are in RFC3339 text format. Corresponds to the JSON property startTimeWindow



45524
45525
45526
# File 'lib/google/apis/compute_alpha/classes.rb', line 45524

def start_time_window
  @start_time_window
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)


45530
45531
45532
# File 'lib/google/apis/compute_alpha/classes.rb', line 45530

def time
  @time
end

#typeString

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

Returns:

  • (String)


45535
45536
45537
# File 'lib/google/apis/compute_alpha/classes.rb', line 45535

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



45542
45543
45544
45545
45546
45547
45548
# File 'lib/google/apis/compute_alpha/classes.rb', line 45542

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