* The management interface for Binary Authorization, a service that provides * policy-based deployment validation and control for images deployed to Google * Kubernetes Engine (GKE), Anthos Service Mesh, Anthos Clusters, and Cloud Run.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class BinaryAuthorization 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 $projects; public $projects_attestors; public $projects_policy; public $systempolicy; /** * Constructs the internal representation of the BinaryAuthorization 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://binaryauthorization.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'binaryauthorization'; $this->projects = new BinaryAuthorization\Resource\Projects( $this, $this->serviceName, 'projects', [ 'methods' => [ 'getPolicy' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'updatePolicy' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PUT', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_attestors = new BinaryAuthorization\Resource\ProjectsAttestors( $this, $this->serviceName, 'attestors', [ 'methods' => [ 'create' => [ 'path' => 'v1/{+parent}/attestors', 'httpMethod' => 'POST', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'attestorId' => [ 'location' => 'query', 'type' => 'string', ], ], ],'delete' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'DELETE', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'get' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'getIamPolicy' => [ 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => [ 'resource' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'options.requestedPolicyVersion' => [ 'location' => 'query', 'type' => 'integer', ], ], ],'list' => [ 'path' => 'v1/{+parent}/attestors', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ],'setIamPolicy' => [ 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => [ 'resource' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'testIamPermissions' => [ 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => [ 'resource' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'update' => [ 'path' => 'v1/{+name}', 'httpMethod' => 'PUT', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'validateAttestationOccurrence' => [ 'path' => 'v1/{+attestor}:validateAttestationOccurrence', 'httpMethod' => 'POST', 'parameters' => [ 'attestor' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->projects_policy = new BinaryAuthorization\Resource\ProjectsPolicy( $this, $this->serviceName, 'policy', [ 'methods' => [ 'getIamPolicy' => [ 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => [ 'resource' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'options.requestedPolicyVersion' => [ 'location' => 'query', 'type' => 'integer', ], ], ],'setIamPolicy' => [ 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => [ 'resource' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'testIamPermissions' => [ 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => [ 'resource' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->systempolicy = new BinaryAuthorization\Resource\Systempolicy( $this, $this->serviceName, 'systempolicy', [ 'methods' => [ 'getPolicy' => [ 'path' => 'v1/{+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(BinaryAuthorization::class, 'Google_Service_BinaryAuthorization');