Skip to content

Commit aa04428

Browse files
1 parent 62a4ef0 commit aa04428

3 files changed

Lines changed: 23 additions & 47 deletions

File tree

src/YouTube.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2288,16 +2288,16 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
22882288
'path' => 'youtube/v3/videos:batchGetStats',
22892289
'httpMethod' => 'GET',
22902290
'parameters' => [
2291-
'onBehalfOfContentOwner' => [
2291+
'id' => [
22922292
'location' => 'query',
22932293
'type' => 'string',
2294+
'repeated' => true,
22942295
],
2295-
'part' => [
2296+
'onBehalfOfContentOwner' => [
22962297
'location' => 'query',
22972298
'type' => 'string',
2298-
'repeated' => true,
22992299
],
2300-
'videoIds' => [
2300+
'part' => [
23012301
'location' => 'query',
23022302
'type' => 'string',
23032303
'repeated' => true,

src/YouTube/Resource/YoutubeV3Videos.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ class YoutubeV3Videos extends \Google\Service\Resource
3535
*
3636
* @param array $optParams Optional parameters.
3737
*
38+
* @opt_param string id Required. Return videos with the given ids.
3839
* @opt_param string onBehalfOfContentOwner Optional. **Note:** This parameter
3940
* is intended exclusively for YouTube content partners. The
4041
* `onBehalfOfContentOwner` parameter indicates that the request's authorization
@@ -52,7 +53,6 @@ class YoutubeV3Videos extends \Google\Service\Resource
5253
* example, in a `videoStat` resource, the `statistics` property contains
5354
* `view_count` and `like_count`. As such, if you set `**part=snippet**`, the
5455
* API response will contain all of those properties.
55-
* @opt_param string videoIds Required. Return videos with the given ids.
5656
* @return BatchGetStatsResponse
5757
* @throws \Google\Service\Exception
5858
*/

src/YouTube/VideoStat.php

Lines changed: 18 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,22 @@ class VideoStat extends \Google\Model
2828
*/
2929
public $etag;
3030
/**
31-
* Output only. Identifies what kind of resource this is. Value: the fixed
32-
* string "youtube#videoStats".
31+
* Output only. The ID that YouTube uses to uniquely identify the video.
3332
*
3433
* @var string
3534
*/
36-
public $kind;
35+
public $id;
3736
/**
38-
* Output only. Identifier. The resource name for the `VideoStats` resource,
39-
* in the format `videoStats/{video_stat}`.
37+
* Output only. Identifies what kind of resource this is. Value: the fixed
38+
* string "youtube#videoStats".
4039
*
4140
* @var string
4241
*/
43-
public $name;
42+
public $kind;
4443
protected $snippetType = VideoStatsSnippet::class;
4544
protected $snippetDataType = '';
4645
protected $statisticsType = VideoStatsStatistics::class;
4746
protected $statisticsDataType = '';
48-
/**
49-
* Output only. The ID that YouTube uses to uniquely identify the video.
50-
*
51-
* @var string
52-
*/
53-
public $videoId;
5447

5548
/**
5649
* Output only. The VideoStatsContentDetails object contains information about
@@ -86,38 +79,37 @@ public function getEtag()
8679
return $this->etag;
8780
}
8881
/**
89-
* Output only. Identifies what kind of resource this is. Value: the fixed
90-
* string "youtube#videoStats".
82+
* Output only. The ID that YouTube uses to uniquely identify the video.
9183
*
92-
* @param string $kind
84+
* @param string $id
9385
*/
94-
public function setKind($kind)
86+
public function setId($id)
9587
{
96-
$this->kind = $kind;
88+
$this->id = $id;
9789
}
9890
/**
9991
* @return string
10092
*/
101-
public function getKind()
93+
public function getId()
10294
{
103-
return $this->kind;
95+
return $this->id;
10496
}
10597
/**
106-
* Output only. Identifier. The resource name for the `VideoStats` resource,
107-
* in the format `videoStats/{video_stat}`.
98+
* Output only. Identifies what kind of resource this is. Value: the fixed
99+
* string "youtube#videoStats".
108100
*
109-
* @param string $name
101+
* @param string $kind
110102
*/
111-
public function setName($name)
103+
public function setKind($kind)
112104
{
113-
$this->name = $name;
105+
$this->kind = $kind;
114106
}
115107
/**
116108
* @return string
117109
*/
118-
public function getName()
110+
public function getKind()
119111
{
120-
return $this->name;
112+
return $this->kind;
121113
}
122114
/**
123115
* Output only. The VideoStatsSnippet object contains basic details about the
@@ -153,22 +145,6 @@ public function getStatistics()
153145
{
154146
return $this->statistics;
155147
}
156-
/**
157-
* Output only. The ID that YouTube uses to uniquely identify the video.
158-
*
159-
* @param string $videoId
160-
*/
161-
public function setVideoId($videoId)
162-
{
163-
$this->videoId = $videoId;
164-
}
165-
/**
166-
* @return string
167-
*/
168-
public function getVideoId()
169-
{
170-
return $this->videoId;
171-
}
172148
}
173149

174150
// Adding a class alias for backwards compatibility with the previous class name.

0 commit comments

Comments
 (0)