Class: Google::Apis::DatafusionV1beta1::MaintenancePolicy

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

Maintenance policy of the instance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenancePolicy

Returns a new instance of MaintenancePolicy.



1204
1205
1206
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1204

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

Instance Attribute Details

#maintenance_exclusion_windowGoogle::Apis::DatafusionV1beta1::TimeWindow

Represents an arbitrary window of time. Corresponds to the JSON property maintenanceExclusionWindow



1197
1198
1199
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1197

def maintenance_exclusion_window
  @maintenance_exclusion_window
end

#maintenance_windowGoogle::Apis::DatafusionV1beta1::MaintenanceWindow

Maintenance window of the instance. Corresponds to the JSON property maintenanceWindow



1202
1203
1204
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1202

def maintenance_window
  @maintenance_window
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1209
1210
1211
1212
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1209

def update!(**args)
  @maintenance_exclusion_window = args[:maintenance_exclusion_window] if args.key?(:maintenance_exclusion_window)
  @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
end