* $dfareportingService = new Google\Service\Dfareporting(...); * $accountPermissionGroups = $dfareportingService->accountPermissionGroups; * */ class AccountPermissionGroups extends \Google\Service\Resource { /** * Gets one account permission group by ID. (accountPermissionGroups.get) * * @param string $profileId User profile ID associated with this request. * @param string $id Account permission group ID. * @param array $optParams Optional parameters. * @return AccountPermissionGroup */ public function get($profileId, $id, $optParams = []) { $params = ['profileId' => $profileId, 'id' => $id]; $params = array_merge($params, $optParams); return $this->call('get', [$params], AccountPermissionGroup::class); } /** * Retrieves the list of account permission groups. * (accountPermissionGroups.listAccountPermissionGroups) * * @param string $profileId User profile ID associated with this request. * @param array $optParams Optional parameters. * @return AccountPermissionGroupsListResponse */ public function listAccountPermissionGroups($profileId, $optParams = []) { $params = ['profileId' => $profileId]; $params = array_merge($params, $optParams); return $this->call('list', [$params], AccountPermissionGroupsListResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(AccountPermissionGroups::class, 'Google_Service_Dfareporting_Resource_AccountPermissionGroups');