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.
3980 3981 3982 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3980 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Optional. End time
Corresponds to the JSON property endTime
3958 3959 3960 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3958 def end_time @end_time end |
#maintenance_status ⇒ String
Optional. Maintenance status
Corresponds to the JSON property maintenanceStatus
3963 3964 3965 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3963 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
3968 3969 3970 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3968 def on_host_maintenance @on_host_maintenance end |
#start_time ⇒ String
Optional. Start time
Corresponds to the JSON property startTime
3973 3974 3975 |
# File 'lib/google/apis/workloadmanager_v1/classes.rb', line 3973 def start_time @start_time end |
#type ⇒ String
Optional. Type
Corresponds to the JSON property type
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 |