* Manages the API keys associated with developer projects.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class ApiKeysService 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"; /** View your data across Google Cloud services and see the email address of your Google Account. */ const CLOUD_PLATFORM_READ_ONLY = "https://www.googleapis.com/auth/cloud-platform.read-only"; public $keys; public $operations; public $projects_locations_keys; public $rootUrlTemplate; /** * Constructs the internal representation of the ApiKeysService 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://apikeys.googleapis.com/'; $this->rootUrlTemplate = $rootUrl ?: 'https://apikeys.UNIVERSE_DOMAIN/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v2'; $this->serviceName = 'apikeys'; $this->keys = new ApiKeysService\Resource\Keys( $this, $this->serviceName, 'keys', [ 'methods' => [ 'lookupKey' => [ 'path' => 'v2/keys:lookupKey', 'httpMethod' => 'GET', 'parameters' => [ 'keyString' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->operations = new ApiKeysService\Resource\Operations( $this, $this->serviceName, 'operations', [ 'methods' => [ 'get' => [ 'path' => 'v2/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_locations_keys = new ApiKeysService\Resource\ProjectsLocationsKeys( $this, $this->serviceName, 'keys', [ 'methods' => [ 'create' => [ 'path' => 'v2/{+parent}/keys', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'keyId' => [ '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, ], ], ],'getKeyString' => [ 'path' => 'v2/{+name}/keyString', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v2/{+parent}/keys', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], 'showDeleted' => [ 'location' => 'query', 'type' => 'boolean', ], ], ],'patch' => [ 'path' => 'v2/{+name}', 'httpMethod' => 'PATCH', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'updateMask' => [ 'location' => 'query', 'type' => 'string', ], ], ],'undelete' => [ 'path' => 'v2/{+name}:undelete', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ApiKeysService::class, 'Google_Service_ApiKeysService');