Class: Google::Apis::DatafusionV1beta1::RecurringTimeWindow
- Inherits:
-
Object
- Object
- Google::Apis::DatafusionV1beta1::RecurringTimeWindow
- 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 an arbitrary window of time that recurs.
Instance Attribute Summary collapse
-
#recurrence ⇒ String
Required.
-
#window ⇒ Google::Apis::DatafusionV1beta1::TimeWindow
Represents an arbitrary window of time.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RecurringTimeWindow
constructor
A new instance of RecurringTimeWindow.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RecurringTimeWindow
Returns a new instance of RecurringTimeWindow.
1621 1622 1623 |
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1621 def initialize(**args) update!(**args) end |
Instance Attribute Details
#recurrence ⇒ String
Required. An RRULE with format RFC-5545 for how this window reccurs. They go on for the span of time
between the start and end time. The only supported FREQ value is "WEEKLY". To
have something repeat every weekday, use: "FREQ=WEEKLY;BYDAY=MO,TU,WE,TH,FR".
This specifies how frequently the window starts. To have a 9 am - 5 pm UTC-4
window every weekday, use something like: start time = 2019-01-01T09:00:00-
0400 end time = 2019-01-01T17:00:00-0400 recurrence = FREQ=WEEKLY;BYDAY=MO,TU,
WE,TH,FR
Corresponds to the JSON property recurrence
1614 1615 1616 |
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1614 def recurrence @recurrence end |
#window ⇒ Google::Apis::DatafusionV1beta1::TimeWindow
Represents an arbitrary window of time.
Corresponds to the JSON property window
1619 1620 1621 |
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1619 def window @window end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1626 1627 1628 1629 |
# File 'lib/google/apis/datafusion_v1beta1/classes.rb', line 1626 def update!(**args) @recurrence = args[:recurrence] if args.key?(:recurrence) @window = args[:window] if args.key?(:window) end |