Class: Google::Apis::DatafusionV1beta1::MaintenanceEvent

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

Overview

Represents a maintenance event.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceEvent

Returns a new instance of MaintenanceEvent.



1000
1001
1002
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1000

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

Instance Attribute Details

#end_timeString

Output only. The end time of the maintenance event provided in RFC 3339 format. Example: "2024-01-02T12:04:06-06: 00" This field will be empty if the maintenance event is not yet complete. Corresponds to the JSON property endTime

Returns:

  • (String)


986
987
988
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 986

def end_time
  @end_time
end

#start_timeString

Output only. The start time of the maintenance event provided in RFC 3339 format. Example: "2024-01-01T12:04:06-04: 00" Corresponds to the JSON property startTime

Returns:

  • (String)


993
994
995
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 993

def start_time
  @start_time
end

#stateString

Output only. The state of the maintenance event. Corresponds to the JSON property state

Returns:

  • (String)


998
999
1000
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 998

def state
  @state
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1005
1006
1007
1008
1009
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1005

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