Google_Service_Mirror

Service definition for Mirror (v1).

Defined (1)

The class is defined in the following location(s).

/includes/api-libs/Google/Service/Mirror.php  
  1. class Google_Service_Mirror extends Google_Service 
  2. /** View your location. */ 
  3. const GLASS_LOCATION = 
  4. "https://www.googleapis.com/auth/glass.location"; 
  5. /** View and manage your Glass timeline. */ 
  6. const GLASS_TIMELINE = 
  7. "https://www.googleapis.com/auth/glass.timeline"; 
  8.  
  9. public $accounts; 
  10. public $contacts; 
  11. public $locations; 
  12. public $settings; 
  13. public $subscriptions; 
  14. public $timeline; 
  15. public $timeline_attachments; 
  16.  
  17.  
  18. /** 
  19. * Constructs the internal representation of the Mirror service. 
  20. * @param Google_Client $client 
  21. */ 
  22. public function __construct(Google_Client $client) 
  23. parent::__construct($client); 
  24. $this->servicePath = 'mirror/v1/'; 
  25. $this->version = 'v1'; 
  26. $this->serviceName = 'mirror'; 
  27.  
  28. $this->accounts = new Google_Service_Mirror_Accounts_Resource( 
  29. $this,  
  30. $this->serviceName,  
  31. 'accounts',  
  32. array( 
  33. 'methods' => array( 
  34. 'insert' => array( 
  35. 'path' => 'accounts/{userToken}/{accountType}/{accountName}',  
  36. 'httpMethod' => 'POST',  
  37. 'parameters' => array( 
  38. 'userToken' => array( 
  39. 'location' => 'path',  
  40. 'type' => 'string',  
  41. 'required' => true,  
  42. ),  
  43. 'accountType' => array( 
  44. 'location' => 'path',  
  45. 'type' => 'string',  
  46. 'required' => true,  
  47. ),  
  48. 'accountName' => array( 
  49. 'location' => 'path',  
  50. 'type' => 'string',  
  51. 'required' => true,  
  52. ),  
  53. ),  
  54. ),  
  55. ); 
  56. $this->contacts = new Google_Service_Mirror_Contacts_Resource( 
  57. $this,  
  58. $this->serviceName,  
  59. 'contacts',  
  60. array( 
  61. 'methods' => array( 
  62. 'delete' => array( 
  63. 'path' => 'contacts/{id}',  
  64. 'httpMethod' => 'DELETE',  
  65. 'parameters' => array( 
  66. 'id' => array( 
  67. 'location' => 'path',  
  68. 'type' => 'string',  
  69. 'required' => true,  
  70. ),  
  71. ),  
  72. ), 'get' => array( 
  73. 'path' => 'contacts/{id}',  
  74. 'httpMethod' => 'GET',  
  75. 'parameters' => array( 
  76. 'id' => array( 
  77. 'location' => 'path',  
  78. 'type' => 'string',  
  79. 'required' => true,  
  80. ),  
  81. ),  
  82. ), 'insert' => array( 
  83. 'path' => 'contacts',  
  84. 'httpMethod' => 'POST',  
  85. 'parameters' => array(),  
  86. ), 'list' => array( 
  87. 'path' => 'contacts',  
  88. 'httpMethod' => 'GET',  
  89. 'parameters' => array(),  
  90. ), 'patch' => array( 
  91. 'path' => 'contacts/{id}',  
  92. 'httpMethod' => 'PATCH',  
  93. 'parameters' => array( 
  94. 'id' => array( 
  95. 'location' => 'path',  
  96. 'type' => 'string',  
  97. 'required' => true,  
  98. ),  
  99. ),  
  100. ), 'update' => array( 
  101. 'path' => 'contacts/{id}',  
  102. 'httpMethod' => 'PUT',  
  103. 'parameters' => array( 
  104. 'id' => array( 
  105. 'location' => 'path',  
  106. 'type' => 'string',  
  107. 'required' => true,  
  108. ),  
  109. ),  
  110. ),  
  111. ); 
  112. $this->locations = new Google_Service_Mirror_Locations_Resource( 
  113. $this,  
  114. $this->serviceName,  
  115. 'locations',  
  116. array( 
  117. 'methods' => array( 
  118. 'get' => array( 
  119. 'path' => 'locations/{id}',  
  120. 'httpMethod' => 'GET',  
  121. 'parameters' => array( 
  122. 'id' => array( 
  123. 'location' => 'path',  
  124. 'type' => 'string',  
  125. 'required' => true,  
  126. ),  
  127. ),  
  128. ), 'list' => array( 
  129. 'path' => 'locations',  
  130. 'httpMethod' => 'GET',  
  131. 'parameters' => array(),  
  132. ),  
  133. ); 
  134. $this->settings = new Google_Service_Mirror_Settings_Resource( 
  135. $this,  
  136. $this->serviceName,  
  137. 'settings',  
  138. array( 
  139. 'methods' => array( 
  140. 'get' => array( 
  141. 'path' => 'settings/{id}',  
  142. 'httpMethod' => 'GET',  
  143. 'parameters' => array( 
  144. 'id' => array( 
  145. 'location' => 'path',  
  146. 'type' => 'string',  
  147. 'required' => true,  
  148. ),  
  149. ),  
  150. ),  
  151. ); 
  152. $this->subscriptions = new Google_Service_Mirror_Subscriptions_Resource( 
  153. $this,  
  154. $this->serviceName,  
  155. 'subscriptions',  
  156. array( 
  157. 'methods' => array( 
  158. 'delete' => array( 
  159. 'path' => 'subscriptions/{id}',  
  160. 'httpMethod' => 'DELETE',  
  161. 'parameters' => array( 
  162. 'id' => array( 
  163. 'location' => 'path',  
  164. 'type' => 'string',  
  165. 'required' => true,  
  166. ),  
  167. ),  
  168. ), 'insert' => array( 
  169. 'path' => 'subscriptions',  
  170. 'httpMethod' => 'POST',  
  171. 'parameters' => array(),  
  172. ), 'list' => array( 
  173. 'path' => 'subscriptions',  
  174. 'httpMethod' => 'GET',  
  175. 'parameters' => array(),  
  176. ), 'update' => array( 
  177. 'path' => 'subscriptions/{id}',  
  178. 'httpMethod' => 'PUT',  
  179. 'parameters' => array( 
  180. 'id' => array( 
  181. 'location' => 'path',  
  182. 'type' => 'string',  
  183. 'required' => true,  
  184. ),  
  185. ),  
  186. ),  
  187. ); 
  188. $this->timeline = new Google_Service_Mirror_Timeline_Resource( 
  189. $this,  
  190. $this->serviceName,  
  191. 'timeline',  
  192. array( 
  193. 'methods' => array( 
  194. 'delete' => array( 
  195. 'path' => 'timeline/{id}',  
  196. 'httpMethod' => 'DELETE',  
  197. 'parameters' => array( 
  198. 'id' => array( 
  199. 'location' => 'path',  
  200. 'type' => 'string',  
  201. 'required' => true,  
  202. ),  
  203. ),  
  204. ), 'get' => array( 
  205. 'path' => 'timeline/{id}',  
  206. 'httpMethod' => 'GET',  
  207. 'parameters' => array( 
  208. 'id' => array( 
  209. 'location' => 'path',  
  210. 'type' => 'string',  
  211. 'required' => true,  
  212. ),  
  213. ),  
  214. ), 'insert' => array( 
  215. 'path' => 'timeline',  
  216. 'httpMethod' => 'POST',  
  217. 'parameters' => array(),  
  218. ), 'list' => array( 
  219. 'path' => 'timeline',  
  220. 'httpMethod' => 'GET',  
  221. 'parameters' => array( 
  222. 'orderBy' => array( 
  223. 'location' => 'query',  
  224. 'type' => 'string',  
  225. ),  
  226. 'includeDeleted' => array( 
  227. 'location' => 'query',  
  228. 'type' => 'boolean',  
  229. ),  
  230. 'maxResults' => array( 
  231. 'location' => 'query',  
  232. 'type' => 'integer',  
  233. ),  
  234. 'pageToken' => array( 
  235. 'location' => 'query',  
  236. 'type' => 'string',  
  237. ),  
  238. 'sourceItemId' => array( 
  239. 'location' => 'query',  
  240. 'type' => 'string',  
  241. ),  
  242. 'pinnedOnly' => array( 
  243. 'location' => 'query',  
  244. 'type' => 'boolean',  
  245. ),  
  246. 'bundleId' => array( 
  247. 'location' => 'query',  
  248. 'type' => 'string',  
  249. ),  
  250. ),  
  251. ), 'patch' => array( 
  252. 'path' => 'timeline/{id}',  
  253. 'httpMethod' => 'PATCH',  
  254. 'parameters' => array( 
  255. 'id' => array( 
  256. 'location' => 'path',  
  257. 'type' => 'string',  
  258. 'required' => true,  
  259. ),  
  260. ),  
  261. ), 'update' => array( 
  262. 'path' => 'timeline/{id}',  
  263. 'httpMethod' => 'PUT',  
  264. 'parameters' => array( 
  265. 'id' => array( 
  266. 'location' => 'path',  
  267. 'type' => 'string',  
  268. 'required' => true,  
  269. ),  
  270. ),  
  271. ),  
  272. ); 
  273. $this->timeline_attachments = new Google_Service_Mirror_TimelineAttachments_Resource( 
  274. $this,  
  275. $this->serviceName,  
  276. 'attachments',  
  277. array( 
  278. 'methods' => array( 
  279. 'delete' => array( 
  280. 'path' => 'timeline/{itemId}/attachments/{attachmentId}',  
  281. 'httpMethod' => 'DELETE',  
  282. 'parameters' => array( 
  283. 'itemId' => array( 
  284. 'location' => 'path',  
  285. 'type' => 'string',  
  286. 'required' => true,  
  287. ),  
  288. 'attachmentId' => array( 
  289. 'location' => 'path',  
  290. 'type' => 'string',  
  291. 'required' => true,  
  292. ),  
  293. ),  
  294. ), 'get' => array( 
  295. 'path' => 'timeline/{itemId}/attachments/{attachmentId}',  
  296. 'httpMethod' => 'GET',  
  297. 'parameters' => array( 
  298. 'itemId' => array( 
  299. 'location' => 'path',  
  300. 'type' => 'string',  
  301. 'required' => true,  
  302. ),  
  303. 'attachmentId' => array( 
  304. 'location' => 'path',  
  305. 'type' => 'string',  
  306. 'required' => true,  
  307. ),  
  308. ),  
  309. ), 'insert' => array( 
  310. 'path' => 'timeline/{itemId}/attachments',  
  311. 'httpMethod' => 'POST',  
  312. 'parameters' => array( 
  313. 'itemId' => array( 
  314. 'location' => 'path',  
  315. 'type' => 'string',  
  316. 'required' => true,  
  317. ),  
  318. ),  
  319. ), 'list' => array( 
  320. 'path' => 'timeline/{itemId}/attachments',  
  321. 'httpMethod' => 'GET',  
  322. 'parameters' => array( 
  323. 'itemId' => array( 
  324. 'location' => 'path',  
  325. 'type' => 'string',  
  326. 'required' => true,  
  327. ),  
  328. ),  
  329. ),  
  330. );