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.



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

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

Instance Attribute Details

#end_timeString

Optional. End time Corresponds to the JSON property endTime

Returns:

  • (String)


3958
3959
3960
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3958

def end_time
  @end_time
end

#maintenance_statusString

Optional. Maintenance status Corresponds to the JSON property maintenanceStatus

Returns:

  • (String)


3963
3964
3965
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3963

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)


3968
3969
3970
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3968

def on_host_maintenance
  @on_host_maintenance
end

#start_timeString

Optional. Start time Corresponds to the JSON property startTime

Returns:

  • (String)


3973
3974
3975
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3973

def start_time
  @start_time
end

#typeString

Optional. Type Corresponds to the JSON property type

Returns:

  • (String)


3978
3979
3980
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3978

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3985
3986
3987
3988
3989
3990
3991
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3985

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