[e3d4e0a] | 1 | <?php
|
---|
| 2 | /*
|
---|
| 3 | * Copyright 2014 Google Inc.
|
---|
| 4 | *
|
---|
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); you may not
|
---|
| 6 | * use this file except in compliance with the License. You may obtain a copy of
|
---|
| 7 | * the License at
|
---|
| 8 | *
|
---|
| 9 | * http://www.apache.org/licenses/LICENSE-2.0
|
---|
| 10 | *
|
---|
| 11 | * Unless required by applicable law or agreed to in writing, software
|
---|
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
---|
| 13 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
---|
| 14 | * License for the specific language governing permissions and limitations under
|
---|
| 15 | * the License.
|
---|
| 16 | */
|
---|
| 17 |
|
---|
| 18 | namespace Google\Service\YouTube\Resource;
|
---|
| 19 |
|
---|
| 20 | use Google\Service\YouTube\Cuepoint;
|
---|
| 21 |
|
---|
| 22 | /**
|
---|
| 23 | * The "cuepoint" collection of methods.
|
---|
| 24 | * Typical usage is:
|
---|
| 25 | * <code>
|
---|
| 26 | * $youtubeService = new Google\Service\YouTube(...);
|
---|
| 27 | * $cuepoint = $youtubeService->cuepoint;
|
---|
| 28 | * </code>
|
---|
| 29 | */
|
---|
| 30 | class YoutubeV3LiveBroadcastsCuepoint extends \Google\Service\Resource
|
---|
| 31 | {
|
---|
| 32 | /**
|
---|
| 33 | * Insert cuepoints in a broadcast (cuepoint.create)
|
---|
| 34 | *
|
---|
| 35 | * @param array $optParams Optional parameters.
|
---|
| 36 | *
|
---|
| 37 | * @opt_param string id Broadcast to insert ads to, or equivalently
|
---|
| 38 | * `external_video_id` for internal use.
|
---|
| 39 | * @opt_param string onBehalfOfContentOwner *Note:* This parameter is intended
|
---|
| 40 | * exclusively for YouTube content partners. The *onBehalfOfContentOwner*
|
---|
| 41 | * parameter indicates that the request's authorization credentials identify a
|
---|
| 42 | * YouTube CMS user who is acting on behalf of the content owner specified in
|
---|
| 43 | * the parameter value. This parameter is intended for YouTube content partners
|
---|
| 44 | * that own and manage many different YouTube channels. It allows content owners
|
---|
| 45 | * to authenticate once and get access to all their video and channel data,
|
---|
| 46 | * without having to provide authentication credentials for each individual
|
---|
| 47 | * channel. The CMS account that the user authenticates with must be linked to
|
---|
| 48 | * the specified YouTube content owner.
|
---|
| 49 | * @opt_param string onBehalfOfContentOwnerChannel This parameter can only be
|
---|
| 50 | * used in a properly authorized request. *Note:* This parameter is intended
|
---|
| 51 | * exclusively for YouTube content partners. The *onBehalfOfContentOwnerChannel*
|
---|
| 52 | * parameter specifies the YouTube channel ID of the channel to which a video is
|
---|
| 53 | * being added. This parameter is required when a request specifies a value for
|
---|
| 54 | * the onBehalfOfContentOwner parameter, and it can only be used in conjunction
|
---|
| 55 | * with that parameter. In addition, the request must be authorized using a CMS
|
---|
| 56 | * account that is linked to the content owner that the onBehalfOfContentOwner
|
---|
| 57 | * parameter specifies. Finally, the channel that the
|
---|
| 58 | * onBehalfOfContentOwnerChannel parameter value specifies must be linked to the
|
---|
| 59 | * content owner that the onBehalfOfContentOwner parameter specifies. This
|
---|
| 60 | * parameter is intended for YouTube content partners that own and manage many
|
---|
| 61 | * different YouTube channels. It allows content owners to authenticate once and
|
---|
| 62 | * perform actions on behalf of the channel specified in the parameter value,
|
---|
| 63 | * without having to provide authentication credentials for each separate
|
---|
| 64 | * channel.
|
---|
| 65 | * @opt_param string part The *part* parameter specifies a comma-separated list
|
---|
| 66 | * of one or more liveBroadcast resource properties that the API response will
|
---|
| 67 | * include. The part names that you can include in the parameter value are id,
|
---|
| 68 | * snippet, contentDetails, and status.
|
---|
| 69 | * @opt_param string resource.cueType
|
---|
| 70 | * @opt_param string resource.durationSecs The duration of this cuepoint.
|
---|
| 71 | * @opt_param string resource.id The identifier for cuepoint resource.
|
---|
| 72 | * @opt_param string resource.insertionOffsetTimeMs The time when the cuepoint
|
---|
| 73 | * should be inserted by offset to the broadcast actual start time.
|
---|
| 74 | * @opt_param string resource.walltimeMs The wall clock time at which the
|
---|
| 75 | * cuepoint should be inserted. Only one of insertion_offset_time_ms and
|
---|
| 76 | * walltime_ms may be set at a time.
|
---|
| 77 | * @return Cuepoint
|
---|
| 78 | */
|
---|
| 79 | public function create($optParams = [])
|
---|
| 80 | {
|
---|
| 81 | $params = [];
|
---|
| 82 | $params = array_merge($params, $optParams);
|
---|
| 83 | return $this->call('create', [$params], Cuepoint::class);
|
---|
| 84 | }
|
---|
| 85 | }
|
---|
| 86 |
|
---|
| 87 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 88 | class_alias(YoutubeV3LiveBroadcastsCuepoint::class, 'Google_Service_YouTube_Resource_YoutubeV3LiveBroadcastsCuepoint');
|
---|