* $policytroubleshooterService = new Google\Service\PolicyTroubleshooter(...); * $iam = $policytroubleshooterService->iam; * */ class Iam extends \Google\Service\Resource { /** * Checks whether a principal has a specific permission for a specific resource, * and explains why the principal does or does not have that permission. * (iam.troubleshoot) * * @param GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse */ public function troubleshoot(GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyRequest $postBody, $optParams = []) { $params = ['postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('troubleshoot', [$params], GoogleCloudPolicytroubleshooterV1TroubleshootIamPolicyResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Iam::class, 'Google_Service_PolicyTroubleshooter_Resource_Iam');