Exemplo n.º 1
0
 /**
  * Constructs the internal representation of the Oauth2 service.
  *
  * @param Google_ApiClient $client
  */
 public function __construct(Google_ApiClient $client)
 {
     parent::__construct($client);
     $this->servicePath = '';
     $this->version = 'v2';
     $this->serviceName = 'oauth2';
     $this->userinfo = new Google_Service_Oauth2_Userinfo_Resource($this, $this->serviceName, 'userinfo', array('methods' => array('get' => array('path' => 'oauth2/v2/userinfo', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->userinfo_v2_me = new Google_Service_Oauth2_UserinfoV2Me_Resource($this, $this->serviceName, 'me', array('methods' => array('get' => array('path' => 'userinfo/v2/me', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->base_methods = new Google_Service_Resource($this, $this->serviceName, '', array('methods' => array('tokeninfo' => array('path' => 'oauth2/v2/tokeninfo', 'httpMethod' => 'POST', 'parameters' => array('access_token' => array('location' => 'query', 'type' => 'string'), 'id_token' => array('location' => 'query', 'type' => 'string'))))));
 }
Exemplo n.º 2
0
 /**
  * Constructs the internal representation of the Drive service.
  *
  * @param Google_ApiClient $client
  */
 public function __construct(Google_ApiClient $client)
 {
     parent::__construct($client);
     $this->servicePath = 'drive/v2/';
     $this->version = 'v2';
     $this->serviceName = 'drive';
     $this->about = new Google_Service_Drive_About_Resource($this, $this->serviceName, 'about', array('methods' => array('get' => array('path' => 'about', 'httpMethod' => 'GET', 'parameters' => array('includeSubscribed' => array('location' => 'query', 'type' => 'boolean'), 'maxChangeIdCount' => array('location' => 'query', 'type' => 'string'), 'startChangeId' => array('location' => 'query', 'type' => 'string'))))));
     $this->apps = new Google_Service_Drive_Apps_Resource($this, $this->serviceName, 'apps', array('methods' => array('get' => array('path' => 'apps/{appId}', 'httpMethod' => 'GET', 'parameters' => array('appId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'apps', 'httpMethod' => 'GET', 'parameters' => array()))));
     $this->changes = new Google_Service_Drive_Changes_Resource($this, $this->serviceName, 'changes', array('methods' => array('get' => array('path' => 'changes/{changeId}', 'httpMethod' => 'GET', 'parameters' => array('changeId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'changes', 'httpMethod' => 'GET', 'parameters' => array('includeSubscribed' => array('location' => 'query', 'type' => 'boolean'), 'startChangeId' => array('location' => 'query', 'type' => 'string'), 'includeDeleted' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'))), 'watch' => array('path' => 'changes/watch', 'httpMethod' => 'POST', 'parameters' => array('includeSubscribed' => array('location' => 'query', 'type' => 'boolean'), 'startChangeId' => array('location' => 'query', 'type' => 'string'), 'includeDeleted' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'), 'pageToken' => array('location' => 'query', 'type' => 'string'))))));
     $this->channels = new Google_Service_Drive_Channels_Resource($this, $this->serviceName, 'channels', array('methods' => array('stop' => array('path' => 'channels/stop', 'httpMethod' => 'POST', 'parameters' => array()))));
     $this->children = new Google_Service_Drive_Children_Resource($this, $this->serviceName, 'children', array('methods' => array('delete' => array('path' => 'files/{folderId}/children/{childId}', 'httpMethod' => 'DELETE', 'parameters' => array('folderId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'childId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'files/{folderId}/children/{childId}', 'httpMethod' => 'GET', 'parameters' => array('folderId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'childId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'files/{folderId}/children', 'httpMethod' => 'POST', 'parameters' => array('folderId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'files/{folderId}/children', 'httpMethod' => 'GET', 'parameters' => array('folderId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'q' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))))));
     $this->comments = new Google_Service_Drive_Comments_Resource($this, $this->serviceName, 'comments', array('methods' => array('delete' => array('path' => 'files/{fileId}/comments/{commentId}', 'httpMethod' => 'DELETE', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'files/{fileId}/comments/{commentId}', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'includeDeleted' => array('location' => 'query', 'type' => 'boolean'))), 'insert' => array('path' => 'files/{fileId}/comments', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'files/{fileId}/comments', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'updatedMin' => array('location' => 'query', 'type' => 'string'), 'includeDeleted' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'files/{fileId}/comments/{commentId}', 'httpMethod' => 'PATCH', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'files/{fileId}/comments/{commentId}', 'httpMethod' => 'PUT', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->files = new Google_Service_Drive_Files_Resource($this, $this->serviceName, 'files', array('methods' => array('copy' => array('path' => 'files/{fileId}/copy', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'convert' => array('location' => 'query', 'type' => 'boolean'), 'ocrLanguage' => array('location' => 'query', 'type' => 'string'), 'visibility' => array('location' => 'query', 'type' => 'string'), 'pinned' => array('location' => 'query', 'type' => 'boolean'), 'ocr' => array('location' => 'query', 'type' => 'boolean'), 'timedTextTrackName' => array('location' => 'query', 'type' => 'string'), 'timedTextLanguage' => array('location' => 'query', 'type' => 'string'))), 'delete' => array('path' => 'files/{fileId}', 'httpMethod' => 'DELETE', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'files/{fileId}', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'updateViewedDate' => array('location' => 'query', 'type' => 'boolean'), 'projection' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'files', 'httpMethod' => 'POST', 'parameters' => array('convert' => array('location' => 'query', 'type' => 'boolean'), 'useContentAsIndexableText' => array('location' => 'query', 'type' => 'boolean'), 'ocrLanguage' => array('location' => 'query', 'type' => 'string'), 'visibility' => array('location' => 'query', 'type' => 'string'), 'pinned' => array('location' => 'query', 'type' => 'boolean'), 'ocr' => array('location' => 'query', 'type' => 'boolean'), 'timedTextTrackName' => array('location' => 'query', 'type' => 'string'), 'timedTextLanguage' => array('location' => 'query', 'type' => 'string'))), 'list' => array('path' => 'files', 'httpMethod' => 'GET', 'parameters' => array('q' => array('location' => 'query', 'type' => 'string'), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'projection' => array('location' => 'query', 'type' => 'string'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'files/{fileId}', 'httpMethod' => 'PATCH', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'convert' => array('location' => 'query', 'type' => 'boolean'), 'updateViewedDate' => array('location' => 'query', 'type' => 'boolean'), 'setModifiedDate' => array('location' => 'query', 'type' => 'boolean'), 'useContentAsIndexableText' => array('location' => 'query', 'type' => 'boolean'), 'ocrLanguage' => array('location' => 'query', 'type' => 'string'), 'pinned' => array('location' => 'query', 'type' => 'boolean'), 'newRevision' => array('location' => 'query', 'type' => 'boolean'), 'ocr' => array('location' => 'query', 'type' => 'boolean'), 'timedTextLanguage' => array('location' => 'query', 'type' => 'string'), 'timedTextTrackName' => array('location' => 'query', 'type' => 'string'))), 'touch' => array('path' => 'files/{fileId}/touch', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'trash' => array('path' => 'files/{fileId}/trash', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'untrash' => array('path' => 'files/{fileId}/untrash', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'files/{fileId}', 'httpMethod' => 'PUT', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'convert' => array('location' => 'query', 'type' => 'boolean'), 'updateViewedDate' => array('location' => 'query', 'type' => 'boolean'), 'setModifiedDate' => array('location' => 'query', 'type' => 'boolean'), 'useContentAsIndexableText' => array('location' => 'query', 'type' => 'boolean'), 'ocrLanguage' => array('location' => 'query', 'type' => 'string'), 'pinned' => array('location' => 'query', 'type' => 'boolean'), 'newRevision' => array('location' => 'query', 'type' => 'boolean'), 'ocr' => array('location' => 'query', 'type' => 'boolean'), 'timedTextLanguage' => array('location' => 'query', 'type' => 'string'), 'timedTextTrackName' => array('location' => 'query', 'type' => 'string'))), 'watch' => array('path' => 'files/{fileId}/watch', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'updateViewedDate' => array('location' => 'query', 'type' => 'boolean'), 'projection' => array('location' => 'query', 'type' => 'string'))))));
     $this->parents = new Google_Service_Drive_Parents_Resource($this, $this->serviceName, 'parents', array('methods' => array('delete' => array('path' => 'files/{fileId}/parents/{parentId}', 'httpMethod' => 'DELETE', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'parentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'files/{fileId}/parents/{parentId}', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'parentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'files/{fileId}/parents', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'files/{fileId}/parents', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->permissions = new Google_Service_Drive_Permissions_Resource($this, $this->serviceName, 'permissions', array('methods' => array('delete' => array('path' => 'files/{fileId}/permissions/{permissionId}', 'httpMethod' => 'DELETE', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'permissionId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'files/{fileId}/permissions/{permissionId}', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'permissionId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'getIdForEmail' => array('path' => 'permissionIds/{email}', 'httpMethod' => 'GET', 'parameters' => array('email' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'insert' => array('path' => 'files/{fileId}/permissions', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'emailMessage' => array('location' => 'query', 'type' => 'string'), 'sendNotificationEmails' => array('location' => 'query', 'type' => 'boolean'))), 'list' => array('path' => 'files/{fileId}/permissions', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'files/{fileId}/permissions/{permissionId}', 'httpMethod' => 'PATCH', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'permissionId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'transferOwnership' => array('location' => 'query', 'type' => 'boolean'))), 'update' => array('path' => 'files/{fileId}/permissions/{permissionId}', 'httpMethod' => 'PUT', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'permissionId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'transferOwnership' => array('location' => 'query', 'type' => 'boolean'))))));
     $this->properties = new Google_Service_Drive_Properties_Resource($this, $this->serviceName, 'properties', array('methods' => array('delete' => array('path' => 'files/{fileId}/properties/{propertyKey}', 'httpMethod' => 'DELETE', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'propertyKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'visibility' => array('location' => 'query', 'type' => 'string'))), 'get' => array('path' => 'files/{fileId}/properties/{propertyKey}', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'propertyKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'visibility' => array('location' => 'query', 'type' => 'string'))), 'insert' => array('path' => 'files/{fileId}/properties', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'files/{fileId}/properties', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'files/{fileId}/properties/{propertyKey}', 'httpMethod' => 'PATCH', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'propertyKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'visibility' => array('location' => 'query', 'type' => 'string'))), 'update' => array('path' => 'files/{fileId}/properties/{propertyKey}', 'httpMethod' => 'PUT', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'propertyKey' => array('location' => 'path', 'type' => 'string', 'required' => true), 'visibility' => array('location' => 'query', 'type' => 'string'))))));
     $this->realtime = new Google_Service_Drive_Realtime_Resource($this, $this->serviceName, 'realtime', array('methods' => array('get' => array('path' => 'files/{fileId}/realtime', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'files/{fileId}/realtime', 'httpMethod' => 'PUT', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'baseRevision' => array('location' => 'query', 'type' => 'string'))))));
     $this->replies = new Google_Service_Drive_Replies_Resource($this, $this->serviceName, 'replies', array('methods' => array('delete' => array('path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', 'httpMethod' => 'DELETE', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'replyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'replyId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'includeDeleted' => array('location' => 'query', 'type' => 'boolean'))), 'insert' => array('path' => 'files/{fileId}/comments/{commentId}/replies', 'httpMethod' => 'POST', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'files/{fileId}/comments/{commentId}/replies', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'pageToken' => array('location' => 'query', 'type' => 'string'), 'includeDeleted' => array('location' => 'query', 'type' => 'boolean'), 'maxResults' => array('location' => 'query', 'type' => 'integer'))), 'patch' => array('path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', 'httpMethod' => 'PATCH', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'replyId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'files/{fileId}/comments/{commentId}/replies/{replyId}', 'httpMethod' => 'PUT', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'commentId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'replyId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
     $this->revisions = new Google_Service_Drive_Revisions_Resource($this, $this->serviceName, 'revisions', array('methods' => array('delete' => array('path' => 'files/{fileId}/revisions/{revisionId}', 'httpMethod' => 'DELETE', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'revisionId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'get' => array('path' => 'files/{fileId}/revisions/{revisionId}', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'revisionId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'list' => array('path' => 'files/{fileId}/revisions', 'httpMethod' => 'GET', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'patch' => array('path' => 'files/{fileId}/revisions/{revisionId}', 'httpMethod' => 'PATCH', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'revisionId' => array('location' => 'path', 'type' => 'string', 'required' => true))), 'update' => array('path' => 'files/{fileId}/revisions/{revisionId}', 'httpMethod' => 'PUT', 'parameters' => array('fileId' => array('location' => 'path', 'type' => 'string', 'required' => true), 'revisionId' => array('location' => 'path', 'type' => 'string', 'required' => true))))));
 }