Class: Google::Apis::MetastoreV1alpha::MaintenanceWindow

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

Overview

Maintenance window. This specifies when Dataproc Metastore may perform system maintenance operation to the service.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ MaintenanceWindow

Returns a new instance of MaintenanceWindow.



1016
1017
1018
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1016

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

Instance Attribute Details

#day_of_weekString

The day of week, when the window starts. Corresponds to the JSON property dayOfWeek

Returns:

  • (String)


1009
1010
1011
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1009

def day_of_week
  @day_of_week
end

#hour_of_dayFixnum

The hour of day (0-23) when the window starts. Corresponds to the JSON property hourOfDay

Returns:

  • (Fixnum)


1014
1015
1016
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1014

def hour_of_day
  @hour_of_day
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1021
1022
1023
1024
# File 'lib/google/apis/metastore_v1alpha/classes.rb', line 1021

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