* Manages identity and access control for Google Cloud resources, including the * creation of service accounts, which you can use to authenticate to Google and * make API calls. Enabling this API also enables the IAM Service Account * Credentials API (iamcredentials.googleapis.com). However, disabling this API * doesn't disable the IAM Service Account Credentials API.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Iam extends \Google\Service { /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; public $policies; public $policies_operations; public $rootUrlTemplate; /** * Constructs the internal representation of the Iam service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://iam.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://iam.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'iam'; $this->policies = new Iam\Resource\Policies( $this, $this->serviceName, 'policies', [ 'methods' => [ 'createPolicy' => [ 'path' => 'v2/{+parent}', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'policyId' => [ 'location' => 'query', 'type' => 'string', ], ], ],'delete' => [ 'path' => 'v2/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'etag' => [ 'location' => 'query', 'type' => 'string', ], ], ],'get' => [ 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'listPolicies' => [ 'path' => 'v2/{+parent}', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'update' => [ 'path' => 'v2/{+name}', 'httpMethod' => 'PUT', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->policies_operations = new Iam\Resource\PoliciesOperations( $this, $this->serviceName, 'operations', [ 'methods' => [ 'get' => [ 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Iam::class, 'Google_Service_Iam');