* $paymentsresellersubscriptionService = new Google\Service\PaymentsResellerSubscription(...); * $products = $paymentsresellersubscriptionService->products; * */ class PartnersProducts extends \Google\Service\Resource { /** * Used by partners to list products that can be resold to their customers. It * should be called directly by the partner using service accounts. * (products.listPartnersProducts) * * @param string $parent Required. The parent, the partner that can resell. * Format: partners/{partner} * @param array $optParams Optional parameters. * * @opt_param int pageSize Optional. The maximum number of products to return. * The service may return fewer than this value. If unspecified, at most 50 * products will be returned. The maximum value is 1000; values above 1000 will * be coerced to 1000. * @opt_param string pageToken Optional. A page token, received from a previous * `ListProducts` call. Provide this to retrieve the subsequent page. When * paginating, all other parameters provided to `ListProducts` must match the * call that provided the page token. * @return GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse */ public function listPartnersProducts($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudPaymentsResellerSubscriptionV1ListProductsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PartnersProducts::class, 'Google_Service_PaymentsResellerSubscription_Resource_PartnersProducts');