* Provides reliable, many-to-many, asynchronous messaging between applications.
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_Pubsub extends Google_Service { /** View and manage your data across Google Cloud Platform services. */ const CLOUD_PLATFORM = "https://www.googleapis.com/auth/cloud-platform"; /** View and manage Pub/Sub topics and subscriptions. */ const PUBSUB = "https://www.googleapis.com/auth/pubsub"; public $projects_snapshots; public $projects_subscriptions; public $projects_topics; public $projects_topics_snapshots; public $projects_topics_subscriptions; /** * Constructs the internal representation of the Pubsub service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://pubsub.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'pubsub'; $this->projects_snapshots = new Google_Service_Pubsub_Resource_ProjectsSnapshots( $this, $this->serviceName, 'snapshots', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PUT', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+snapshot}', 'httpMethod' => 'DELETE', 'parameters' => array( 'snapshot' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+snapshot}', 'httpMethod' => 'GET', 'parameters' => array( 'snapshot' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+project}/snapshots', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_subscriptions = new Google_Service_Pubsub_Resource_ProjectsSubscriptions( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'acknowledge' => array( 'path' => 'v1/{+subscription}:acknowledge', 'httpMethod' => 'POST', 'parameters' => array( 'subscription' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'create' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PUT', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+subscription}', 'httpMethod' => 'DELETE', 'parameters' => array( 'subscription' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+subscription}', 'httpMethod' => 'GET', 'parameters' => array( 'subscription' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+project}/subscriptions', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'modifyAckDeadline' => array( 'path' => 'v1/{+subscription}:modifyAckDeadline', 'httpMethod' => 'POST', 'parameters' => array( 'subscription' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'modifyPushConfig' => array( 'path' => 'v1/{+subscription}:modifyPushConfig', 'httpMethod' => 'POST', 'parameters' => array( 'subscription' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'pull' => array( 'path' => 'v1/{+subscription}:pull', 'httpMethod' => 'POST', 'parameters' => array( 'subscription' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'seek' => array( 'path' => 'v1/{+subscription}:seek', 'httpMethod' => 'POST', 'parameters' => array( 'subscription' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_topics = new Google_Service_Pubsub_Resource_ProjectsTopics( $this, $this->serviceName, 'topics', array( 'methods' => array( 'create' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PUT', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'delete' => array( 'path' => 'v1/{+topic}', 'httpMethod' => 'DELETE', 'parameters' => array( 'topic' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'get' => array( 'path' => 'v1/{+topic}', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'getIamPolicy' => array( 'path' => 'v1/{+resource}:getIamPolicy', 'httpMethod' => 'GET', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'list' => array( 'path' => 'v1/{+project}/topics', 'httpMethod' => 'GET', 'parameters' => array( 'project' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ),'patch' => array( 'path' => 'v1/{+name}', 'httpMethod' => 'PATCH', 'parameters' => array( 'name' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'publish' => array( 'path' => 'v1/{+topic}:publish', 'httpMethod' => 'POST', 'parameters' => array( 'topic' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'setIamPolicy' => array( 'path' => 'v1/{+resource}:setIamPolicy', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ),'testIamPermissions' => array( 'path' => 'v1/{+resource}:testIamPermissions', 'httpMethod' => 'POST', 'parameters' => array( 'resource' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), ), ), ) ) ); $this->projects_topics_snapshots = new Google_Service_Pubsub_Resource_ProjectsTopicsSnapshots( $this, $this->serviceName, 'snapshots', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+topic}/snapshots', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); $this->projects_topics_subscriptions = new Google_Service_Pubsub_Resource_ProjectsTopicsSubscriptions( $this, $this->serviceName, 'subscriptions', array( 'methods' => array( 'list' => array( 'path' => 'v1/{+topic}/subscriptions', 'httpMethod' => 'GET', 'parameters' => array( 'topic' => array( 'location' => 'path', 'type' => 'string', 'required' => true, ), 'pageToken' => array( 'location' => 'query', 'type' => 'string', ), 'pageSize' => array( 'location' => 'query', 'type' => 'integer', ), ), ), ) ) ); } }