Class: Google::Apis::WorkloadmanagerV1::UpcomingMaintenanceEvent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/workloadmanager_v1/classes.rb,
lib/google/apis/workloadmanager_v1/representations.rb,
lib/google/apis/workloadmanager_v1/representations.rb

Overview

Maintenance Event

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ UpcomingMaintenanceEvent

Returns a new instance of UpcomingMaintenanceEvent.



3983
3984
3985
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3983

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

Instance Attribute Details

#end_timeString

Optional. End time Corresponds to the JSON property endTime

Returns:

  • (String)


3961
3962
3963
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3961

def end_time
  @end_time
end

#maintenance_statusString

Optional. Maintenance status Corresponds to the JSON property maintenanceStatus

Returns:

  • (String)


3966
3967
3968
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3966

def maintenance_status
  @maintenance_status
end

#on_host_maintenanceString

Optional. Instance maintenance behavior. Could be MIGRATE or TERMINATE. Corresponds to the JSON property onHostMaintenance

Returns:

  • (String)


3971
3972
3973
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3971

def on_host_maintenance
  @on_host_maintenance
end

#start_timeString

Optional. Start time Corresponds to the JSON property startTime

Returns:

  • (String)


3976
3977
3978
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3976

def start_time
  @start_time
end

#typeString

Optional. Type Corresponds to the JSON property type

Returns:

  • (String)


3981
3982
3983
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3981

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3988
3989
3990
3991
3992
3993
3994
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3988

def update!(**args)
  @end_time = args[:end_time] if args.key?(:end_time)
  @maintenance_status = args[:maintenance_status] if args.key?(:maintenance_status)
  @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance)
  @start_time = args[:start_time] if args.key?(:start_time)
  @type = args[:type] if args.key?(:type)
end