Class: Google::Apis::WorkloadmanagerV1::UpcomingMaintenanceEvent
- Inherits:
-
Object
- Object
- Google::Apis::WorkloadmanagerV1::UpcomingMaintenanceEvent
- 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
-
#end_time ⇒ String
Optional.
-
#maintenance_status ⇒ String
Optional.
-
#on_host_maintenance ⇒ String
Optional.
-
#start_time ⇒ String
Optional.
-
#type ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ UpcomingMaintenanceEvent
constructor
A new instance of UpcomingMaintenanceEvent.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_time ⇒ String
Optional. End time
Corresponds to the JSON property endTime
3961 3962 3963 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3961 def end_time @end_time end |
#maintenance_status ⇒ String
Optional. Maintenance status
Corresponds to the JSON property maintenanceStatus
3966 3967 3968 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3966 def maintenance_status @maintenance_status end |
#on_host_maintenance ⇒ String
Optional. Instance maintenance behavior. Could be MIGRATE or TERMINATE.
Corresponds to the JSON property onHostMaintenance
3971 3972 3973 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3971 def on_host_maintenance @on_host_maintenance end |
#start_time ⇒ String
Optional. Start time
Corresponds to the JSON property startTime
3976 3977 3978 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3976 def start_time @start_time end |
#type ⇒ String
Optional. Type
Corresponds to the JSON property type
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 |