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 18namespace Google\Service\YouTubeReporting\Resource; 19 20use Google\Service\YouTubeReporting\ListReportTypesResponse; 21 22/** 23 * The "reportTypes" collection of methods. 24 * Typical usage is: 25 * <code> 26 * $youtubereportingService = new Google\Service\YouTubeReporting(...); 27 * $reportTypes = $youtubereportingService->reportTypes; 28 * </code> 29 */ 30class ReportTypes extends \Google\Service\Resource 31{ 32 /** 33 * Lists report types. (reportTypes.listReportTypes) 34 * 35 * @param array $optParams Optional parameters. 36 * 37 * @opt_param bool includeSystemManaged If set to true, also system-managed 38 * report types will be returned; otherwise only the report types that can be 39 * used to create new reporting jobs will be returned. 40 * @opt_param string onBehalfOfContentOwner The content owner's external ID on 41 * which behalf the user is acting on. If not set, the user is acting for 42 * himself (his own channel). 43 * @opt_param int pageSize Requested page size. Server may return fewer report 44 * types than requested. If unspecified, server will pick an appropriate 45 * default. 46 * @opt_param string pageToken A token identifying a page of results the server 47 * should return. Typically, this is the value of 48 * ListReportTypesResponse.next_page_token returned in response to the previous 49 * call to the `ListReportTypes` method. 50 * @return ListReportTypesResponse 51 */ 52 public function listReportTypes($optParams = []) 53 { 54 $params = []; 55 $params = array_merge($params, $optParams); 56 return $this->call('list', [$params], ListReportTypesResponse::class); 57 } 58} 59 60// Adding a class alias for backwards compatibility with the previous class name. 61class_alias(ReportTypes::class, 'Google_Service_YouTubeReporting_Resource_ReportTypes'); 62