Class: Google::Apis::YoutubeV3::CuepointSchedule
- Inherits:
-
Object
- Object
- Google::Apis::YoutubeV3::CuepointSchedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/youtube_v3/classes.rb,
lib/google/apis/youtube_v3/representations.rb,
lib/google/apis/youtube_v3/representations.rb
Overview
Schedule to insert cuepoints into a broadcast by ads automator.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean
(also: #enabled?)
This field is semantically required.
-
#pause_ads_until ⇒ String
If set, automatic cuepoint insertion is paused until this timestamp ("No Ad Zone").
-
#repeat_interval ⇒ String
Interval frequency that api uses to insert cuepoints automatically.
-
#schedule_strategy ⇒ String
The strategy to use when scheduling cuepoints.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CuepointSchedule
constructor
A new instance of CuepointSchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CuepointSchedule
Returns a new instance of CuepointSchedule.
2944 2945 2946 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2944 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enabled ⇒ Boolean Also known as: enabled?
This field is semantically required. If it is set false or not set, other
fields in this message will be ignored.
Corresponds to the JSON property enabled
2925 2926 2927 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2925 def enabled @enabled end |
#pause_ads_until ⇒ String
If set, automatic cuepoint insertion is paused until this timestamp ("No Ad
Zone").
Corresponds to the JSON property pauseAdsUntil
2932 2933 2934 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2932 def pause_ads_until @pause_ads_until end |
#repeat_interval ⇒ String
Interval frequency that api uses to insert cuepoints automatically.
Corresponds to the JSON property repeatInterval
2937 2938 2939 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2937 def repeat_interval @repeat_interval end |
#schedule_strategy ⇒ String
The strategy to use when scheduling cuepoints.
Corresponds to the JSON property scheduleStrategy
2942 2943 2944 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2942 def schedule_strategy @schedule_strategy end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2949 2950 2951 2952 2953 2954 |
# File 'lib/google/apis/youtube_v3/classes.rb', line 2949 def update!(**args) @enabled = args[:enabled] if args.key?(:enabled) @pause_ads_until = args[:pause_ads_until] if args.key?(:pause_ads_until) @repeat_interval = args[:repeat_interval] if args.key?(:repeat_interval) @schedule_strategy = args[:schedule_strategy] if args.key?(:schedule_strategy) end |