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\Cloudchannel\Resource; 19 20use Google\Service\Cloudchannel\GoogleCloudChannelV1ListProductsResponse; 21 22/** 23 * The "products" collection of methods. 24 * Typical usage is: 25 * <code> 26 * $cloudchannelService = new Google\Service\Cloudchannel(...); 27 * $products = $cloudchannelService->products; 28 * </code> 29 */ 30class Products extends \Google\Service\Resource 31{ 32 /** 33 * Lists the Products the reseller is authorized to sell. Possible error codes: 34 * * INVALID_ARGUMENT: Required request parameters are missing or invalid. 35 * (products.listProducts) 36 * 37 * @param array $optParams Optional parameters. 38 * 39 * @opt_param string account Required. The resource name of the reseller 40 * account. Format: accounts/{account_id}. 41 * @opt_param string languageCode Optional. The BCP-47 language code. For 42 * example, "en-US". The response will localize in the corresponding language 43 * code, if specified. The default value is "en-US". 44 * @opt_param int pageSize Optional. Requested page size. Server might return 45 * fewer results than requested. If unspecified, returns at most 100 Products. 46 * The maximum value is 1000; the server will coerce values above 1000. 47 * @opt_param string pageToken Optional. A token for a page of results other 48 * than the first page. 49 * @return GoogleCloudChannelV1ListProductsResponse 50 */ 51 public function listProducts($optParams = []) 52 { 53 $params = []; 54 $params = array_merge($params, $optParams); 55 return $this->call('list', [$params], GoogleCloudChannelV1ListProductsResponse::class); 56 } 57} 58 59// Adding a class alias for backwards compatibility with the previous class name. 60class_alias(Products::class, 'Google_Service_Cloudchannel_Resource_Products'); 61