@@ -36,6 +36,8 @@ class Google_Service_YouTubeAnalytics extends Google_Service
3636 /** View YouTube Analytics reports for your YouTube content. */
3737 const YT_ANALYTICS_READONLY = "https://www.googleapis.com/auth/yt-analytics.readonly " ;
3838
39+ public $ batchReportDefinitions ;
40+ public $ batchReports ;
3941 public $ reports ;
4042
4143
@@ -51,6 +53,51 @@ public function __construct(Google_Client $client)
5153 $ this ->version = 'v1 ' ;
5254 $ this ->serviceName = 'youtubeAnalytics ' ;
5355
56+ $ this ->batchReportDefinitions = new Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource (
57+ $ this ,
58+ $ this ->serviceName ,
59+ 'batchReportDefinitions ' ,
60+ array (
61+ 'methods ' => array (
62+ 'list ' => array (
63+ 'path ' => 'batchReportDefinitions ' ,
64+ 'httpMethod ' => 'GET ' ,
65+ 'parameters ' => array (
66+ 'onBehalfOfContentOwner ' => array (
67+ 'location ' => 'query ' ,
68+ 'type ' => 'string ' ,
69+ 'required ' => true ,
70+ ),
71+ ),
72+ ),
73+ )
74+ )
75+ );
76+ $ this ->batchReports = new Google_Service_YouTubeAnalytics_BatchReports_Resource (
77+ $ this ,
78+ $ this ->serviceName ,
79+ 'batchReports ' ,
80+ array (
81+ 'methods ' => array (
82+ 'list ' => array (
83+ 'path ' => 'batchReports ' ,
84+ 'httpMethod ' => 'GET ' ,
85+ 'parameters ' => array (
86+ 'batchReportDefinitionId ' => array (
87+ 'location ' => 'query ' ,
88+ 'type ' => 'string ' ,
89+ 'required ' => true ,
90+ ),
91+ 'onBehalfOfContentOwner ' => array (
92+ 'location ' => 'query ' ,
93+ 'type ' => 'string ' ,
94+ 'required ' => true ,
95+ ),
96+ ),
97+ ),
98+ )
99+ )
100+ );
54101 $ this ->reports = new Google_Service_YouTubeAnalytics_Reports_Resource (
55102 $ this ,
56103 $ this ->serviceName ,
@@ -110,6 +157,66 @@ public function __construct(Google_Client $client)
110157}
111158
112159
160+ /**
161+ * The "batchReportDefinitions" collection of methods.
162+ * Typical usage is:
163+ * <code>
164+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
165+ * $batchReportDefinitions = $youtubeAnalyticsService->batchReportDefinitions;
166+ * </code>
167+ */
168+ class Google_Service_YouTubeAnalytics_BatchReportDefinitions_Resource extends Google_Service_Resource
169+ {
170+
171+ /**
172+ * Retrieves a list of available batch report definitions.
173+ * (batchReportDefinitions.listBatchReportDefinitions)
174+ *
175+ * @param string $onBehalfOfContentOwner
176+ * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on
177+ * behalf of.
178+ * @param array $optParams Optional parameters.
179+ * @return Google_Service_YouTubeAnalytics_BatchReportDefinitionList
180+ */
181+ public function listBatchReportDefinitions ($ onBehalfOfContentOwner , $ optParams = array ())
182+ {
183+ $ params = array ('onBehalfOfContentOwner ' => $ onBehalfOfContentOwner );
184+ $ params = array_merge ($ params , $ optParams );
185+ return $ this ->call ('list ' , array ($ params ), "Google_Service_YouTubeAnalytics_BatchReportDefinitionList " );
186+ }
187+ }
188+
189+ /**
190+ * The "batchReports" collection of methods.
191+ * Typical usage is:
192+ * <code>
193+ * $youtubeAnalyticsService = new Google_Service_YouTubeAnalytics(...);
194+ * $batchReports = $youtubeAnalyticsService->batchReports;
195+ * </code>
196+ */
197+ class Google_Service_YouTubeAnalytics_BatchReports_Resource extends Google_Service_Resource
198+ {
199+
200+ /**
201+ * Retrieves a list of processed batch reports. (batchReports.listBatchReports)
202+ *
203+ * @param string $batchReportDefinitionId
204+ * The batchReportDefinitionId parameter specifies the ID of the batch reportort definition for
205+ * which you are retrieving reports.
206+ * @param string $onBehalfOfContentOwner
207+ * The onBehalfOfContentOwner parameter identifies the content owner that the user is acting on
208+ * behalf of.
209+ * @param array $optParams Optional parameters.
210+ * @return Google_Service_YouTubeAnalytics_BatchReportList
211+ */
212+ public function listBatchReports ($ batchReportDefinitionId , $ onBehalfOfContentOwner , $ optParams = array ())
213+ {
214+ $ params = array ('batchReportDefinitionId ' => $ batchReportDefinitionId , 'onBehalfOfContentOwner ' => $ onBehalfOfContentOwner );
215+ $ params = array_merge ($ params , $ optParams );
216+ return $ this ->call ('list ' , array ($ params ), "Google_Service_YouTubeAnalytics_BatchReportList " );
217+ }
218+ }
219+
113220/**
114221 * The "reports" collection of methods.
115222 * Typical usage is:
@@ -176,6 +283,270 @@ public function query($ids, $startDate, $endDate, $metrics, $optParams = array()
176283
177284
178285
286+ class Google_Service_YouTubeAnalytics_BatchReportDefinitionList extends Google_Collection
287+ {
288+ protected $ itemsType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate ' ;
289+ protected $ itemsDataType = 'array ' ;
290+ public $ kind ;
291+
292+ public function setItems ($ items )
293+ {
294+ $ this ->items = $ items ;
295+ }
296+
297+ public function getItems ()
298+ {
299+ return $ this ->items ;
300+ }
301+
302+ public function setKind ($ kind )
303+ {
304+ $ this ->kind = $ kind ;
305+ }
306+
307+ public function getKind ()
308+ {
309+ return $ this ->kind ;
310+ }
311+ }
312+
313+ class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplate extends Google_Collection
314+ {
315+ protected $ defaultOutputType = 'Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput ' ;
316+ protected $ defaultOutputDataType = 'array ' ;
317+ public $ id ;
318+ public $ name ;
319+ public $ status ;
320+ public $ type ;
321+
322+ public function setDefaultOutput ($ defaultOutput )
323+ {
324+ $ this ->defaultOutput = $ defaultOutput ;
325+ }
326+
327+ public function getDefaultOutput ()
328+ {
329+ return $ this ->defaultOutput ;
330+ }
331+
332+ public function setId ($ id )
333+ {
334+ $ this ->id = $ id ;
335+ }
336+
337+ public function getId ()
338+ {
339+ return $ this ->id ;
340+ }
341+
342+ public function setName ($ name )
343+ {
344+ $ this ->name = $ name ;
345+ }
346+
347+ public function getName ()
348+ {
349+ return $ this ->name ;
350+ }
351+
352+ public function setStatus ($ status )
353+ {
354+ $ this ->status = $ status ;
355+ }
356+
357+ public function getStatus ()
358+ {
359+ return $ this ->status ;
360+ }
361+
362+ public function setType ($ type )
363+ {
364+ $ this ->type = $ type ;
365+ }
366+
367+ public function getType ()
368+ {
369+ return $ this ->type ;
370+ }
371+ }
372+
373+ class Google_Service_YouTubeAnalytics_BatchReportDefinitionTemplateDefaultOutput extends Google_Model
374+ {
375+ public $ format ;
376+ public $ type ;
377+
378+ public function setFormat ($ format )
379+ {
380+ $ this ->format = $ format ;
381+ }
382+
383+ public function getFormat ()
384+ {
385+ return $ this ->format ;
386+ }
387+
388+ public function setType ($ type )
389+ {
390+ $ this ->type = $ type ;
391+ }
392+
393+ public function getType ()
394+ {
395+ return $ this ->type ;
396+ }
397+ }
398+
399+ class Google_Service_YouTubeAnalytics_BatchReportList extends Google_Collection
400+ {
401+ protected $ itemsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplate ' ;
402+ protected $ itemsDataType = 'array ' ;
403+ public $ kind ;
404+
405+ public function setItems ($ items )
406+ {
407+ $ this ->items = $ items ;
408+ }
409+
410+ public function getItems ()
411+ {
412+ return $ this ->items ;
413+ }
414+
415+ public function setKind ($ kind )
416+ {
417+ $ this ->kind = $ kind ;
418+ }
419+
420+ public function getKind ()
421+ {
422+ return $ this ->kind ;
423+ }
424+ }
425+
426+ class Google_Service_YouTubeAnalytics_BatchReportTemplate extends Google_Collection
427+ {
428+ public $ id ;
429+ protected $ outputsType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs ' ;
430+ protected $ outputsDataType = 'array ' ;
431+ public $ reportId ;
432+ protected $ timeSpanType = 'Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan ' ;
433+ protected $ timeSpanDataType = '' ;
434+ public $ timeUpdated ;
435+
436+ public function setId ($ id )
437+ {
438+ $ this ->id = $ id ;
439+ }
440+
441+ public function getId ()
442+ {
443+ return $ this ->id ;
444+ }
445+
446+ public function setOutputs ($ outputs )
447+ {
448+ $ this ->outputs = $ outputs ;
449+ }
450+
451+ public function getOutputs ()
452+ {
453+ return $ this ->outputs ;
454+ }
455+
456+ public function setReportId ($ reportId )
457+ {
458+ $ this ->reportId = $ reportId ;
459+ }
460+
461+ public function getReportId ()
462+ {
463+ return $ this ->reportId ;
464+ }
465+
466+ public function setTimeSpan (Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan $ timeSpan )
467+ {
468+ $ this ->timeSpan = $ timeSpan ;
469+ }
470+
471+ public function getTimeSpan ()
472+ {
473+ return $ this ->timeSpan ;
474+ }
475+
476+ public function setTimeUpdated ($ timeUpdated )
477+ {
478+ $ this ->timeUpdated = $ timeUpdated ;
479+ }
480+
481+ public function getTimeUpdated ()
482+ {
483+ return $ this ->timeUpdated ;
484+ }
485+ }
486+
487+ class Google_Service_YouTubeAnalytics_BatchReportTemplateOutputs extends Google_Model
488+ {
489+ public $ downloadUrl ;
490+ public $ format ;
491+ public $ type ;
492+
493+ public function setDownloadUrl ($ downloadUrl )
494+ {
495+ $ this ->downloadUrl = $ downloadUrl ;
496+ }
497+
498+ public function getDownloadUrl ()
499+ {
500+ return $ this ->downloadUrl ;
501+ }
502+
503+ public function setFormat ($ format )
504+ {
505+ $ this ->format = $ format ;
506+ }
507+
508+ public function getFormat ()
509+ {
510+ return $ this ->format ;
511+ }
512+
513+ public function setType ($ type )
514+ {
515+ $ this ->type = $ type ;
516+ }
517+
518+ public function getType ()
519+ {
520+ return $ this ->type ;
521+ }
522+ }
523+
524+ class Google_Service_YouTubeAnalytics_BatchReportTemplateTimeSpan extends Google_Model
525+ {
526+ public $ endTime ;
527+ public $ startTime ;
528+
529+ public function setEndTime ($ endTime )
530+ {
531+ $ this ->endTime = $ endTime ;
532+ }
533+
534+ public function getEndTime ()
535+ {
536+ return $ this ->endTime ;
537+ }
538+
539+ public function setStartTime ($ startTime )
540+ {
541+ $ this ->startTime = $ startTime ;
542+ }
543+
544+ public function getStartTime ()
545+ {
546+ return $ this ->startTime ;
547+ }
548+ }
549+
179550class Google_Service_YouTubeAnalytics_ResultTable extends Google_Collection
180551{
181552 protected $ columnHeadersType = 'Google_Service_YouTubeAnalytics_ResultTableColumnHeaders ' ;
0 commit comments