Class: Google::Apis::SheetsV4::DataSourceRefreshWeeklySchedule
- Inherits:
-
Object
- Object
- Google::Apis::SheetsV4::DataSourceRefreshWeeklySchedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/sheets_v4/classes.rb,
lib/google/apis/sheets_v4/representations.rb,
lib/google/apis/sheets_v4/representations.rb
Overview
A weekly schedule for data to refresh on specific days in a given time interval.
Instance Attribute Summary collapse
-
#days_of_week ⇒ Array<String>
Days of the week to refresh.
-
#start_time ⇒ Google::Apis::SheetsV4::TimeOfDay
Represents a time of day.
Instance Method Summary collapse
-
#initialize(**args) ⇒ DataSourceRefreshWeeklySchedule
constructor
A new instance of DataSourceRefreshWeeklySchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ DataSourceRefreshWeeklySchedule
Returns a new instance of DataSourceRefreshWeeklySchedule.
4146 4147 4148 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4146 def initialize(**args) update!(**args) end |
Instance Attribute Details
#days_of_week ⇒ Array<String>
Days of the week to refresh. At least one day must be specified.
Corresponds to the JSON property daysOfWeek
4137 4138 4139 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4137 def days_of_week @days_of_week end |
#start_time ⇒ Google::Apis::SheetsV4::TimeOfDay
Represents a time of day. The date and time zone are either not significant or
are specified elsewhere. An API may choose to allow leap seconds. Related
types are google.type.Date and google.protobuf.Timestamp.
Corresponds to the JSON property startTime
4144 4145 4146 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4144 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4151 4152 4153 4154 |
# File 'lib/google/apis/sheets_v4/classes.rb', line 4151 def update!(**args) @days_of_week = args[:days_of_week] if args.key?(:days_of_week) @start_time = args[:start_time] if args.key?(:start_time) end |