* $cloudbillingService = new Google\Service\Cloudbilling(...); * $projects = $cloudbillingService->projects; * */ class BillingAccountsProjects extends \Google\Service\Resource { /** * Lists the projects associated with a billing account. The current * authenticated user must have the `billing.resourceAssociations.list` IAM * permission, which is often given to billing account * [viewers](https://cloud.google.com/billing/docs/how-to/billing-access). * (projects.listBillingAccountsProjects) * * @param string $name Required. The resource name of the billing account * associated with the projects that you want to list. For example, * `billingAccounts/012345-567890-ABCDEF`. * @param array $optParams Optional parameters. * * @opt_param int pageSize Requested page size. The maximum page size is 100; * this is also the default. * @opt_param string pageToken A token identifying a page of results to be * returned. This should be a `next_page_token` value returned from a previous * `ListProjectBillingInfo` call. If unspecified, the first page of results is * returned. * @return ListProjectBillingInfoResponse */ public function listBillingAccountsProjects($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('list', [$params], ListProjectBillingInfoResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(BillingAccountsProjects::class, 'Google_Service_Cloudbilling_Resource_BillingAccountsProjects');