PageRenderTime 50ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Google/Service/Storage.php

https://github.com/leogaggl/pluspress
PHP | 3111 lines | 2154 code | 265 blank | 692 comment | 0 complexity | 8fc31e2b8a9b8c9c14e1fe821b1f8fc4 MD5 | raw file

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. /*
  3. * Copyright 2010 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Storage (v1beta2).
  19. *
  20. * <p>
  21. * Lets you store and retrieve potentially-large, immutable data objects.
  22. * </p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://developers.google.com/storage/docs/json_api/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Storage extends Google_Service
  32. {
  33. /** Manage your data and permissions in Google Cloud Storage. */
  34. const DEVSTORAGE_FULL_CONTROL = "https://www.googleapis.com/auth/devstorage.full_control";
  35. /** View your data in Google Cloud Storage. */
  36. const DEVSTORAGE_READ_ONLY = "https://www.googleapis.com/auth/devstorage.read_only";
  37. /** Manage your data in Google Cloud Storage. */
  38. const DEVSTORAGE_READ_WRITE = "https://www.googleapis.com/auth/devstorage.read_write";
  39. public $bucketAccessControls;
  40. public $buckets;
  41. public $channels;
  42. public $defaultObjectAccessControls;
  43. public $objectAccessControls;
  44. public $objects;
  45. /**
  46. * Constructs the internal representation of the Storage service.
  47. *
  48. * @param Google_Client $client
  49. */
  50. public function __construct(Google_Client $client)
  51. {
  52. parent::__construct($client);
  53. $this->servicePath = 'storage/v1beta2/';
  54. $this->version = 'v1beta2';
  55. $this->serviceName = 'storage';
  56. $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource(
  57. $this,
  58. $this->serviceName,
  59. 'bucketAccessControls',
  60. array(
  61. 'methods' => array(
  62. 'delete' => array(
  63. 'path' => 'b/{bucket}/acl/{entity}',
  64. 'httpMethod' => 'DELETE',
  65. 'parameters' => array(
  66. 'bucket' => array(
  67. 'location' => 'path',
  68. 'type' => 'string',
  69. 'required' => true,
  70. ),
  71. 'entity' => array(
  72. 'location' => 'path',
  73. 'type' => 'string',
  74. 'required' => true,
  75. ),
  76. ),
  77. ),'get' => array(
  78. 'path' => 'b/{bucket}/acl/{entity}',
  79. 'httpMethod' => 'GET',
  80. 'parameters' => array(
  81. 'bucket' => array(
  82. 'location' => 'path',
  83. 'type' => 'string',
  84. 'required' => true,
  85. ),
  86. 'entity' => array(
  87. 'location' => 'path',
  88. 'type' => 'string',
  89. 'required' => true,
  90. ),
  91. ),
  92. ),'insert' => array(
  93. 'path' => 'b/{bucket}/acl',
  94. 'httpMethod' => 'POST',
  95. 'parameters' => array(
  96. 'bucket' => array(
  97. 'location' => 'path',
  98. 'type' => 'string',
  99. 'required' => true,
  100. ),
  101. ),
  102. ),'list' => array(
  103. 'path' => 'b/{bucket}/acl',
  104. 'httpMethod' => 'GET',
  105. 'parameters' => array(
  106. 'bucket' => array(
  107. 'location' => 'path',
  108. 'type' => 'string',
  109. 'required' => true,
  110. ),
  111. ),
  112. ),'patch' => array(
  113. 'path' => 'b/{bucket}/acl/{entity}',
  114. 'httpMethod' => 'PATCH',
  115. 'parameters' => array(
  116. 'bucket' => array(
  117. 'location' => 'path',
  118. 'type' => 'string',
  119. 'required' => true,
  120. ),
  121. 'entity' => array(
  122. 'location' => 'path',
  123. 'type' => 'string',
  124. 'required' => true,
  125. ),
  126. ),
  127. ),'update' => array(
  128. 'path' => 'b/{bucket}/acl/{entity}',
  129. 'httpMethod' => 'PUT',
  130. 'parameters' => array(
  131. 'bucket' => array(
  132. 'location' => 'path',
  133. 'type' => 'string',
  134. 'required' => true,
  135. ),
  136. 'entity' => array(
  137. 'location' => 'path',
  138. 'type' => 'string',
  139. 'required' => true,
  140. ),
  141. ),
  142. ),
  143. )
  144. )
  145. );
  146. $this->buckets = new Google_Service_Storage_Buckets_Resource(
  147. $this,
  148. $this->serviceName,
  149. 'buckets',
  150. array(
  151. 'methods' => array(
  152. 'delete' => array(
  153. 'path' => 'b/{bucket}',
  154. 'httpMethod' => 'DELETE',
  155. 'parameters' => array(
  156. 'bucket' => array(
  157. 'location' => 'path',
  158. 'type' => 'string',
  159. 'required' => true,
  160. ),
  161. 'ifMetagenerationMatch' => array(
  162. 'location' => 'query',
  163. 'type' => 'string',
  164. ),
  165. 'ifMetagenerationNotMatch' => array(
  166. 'location' => 'query',
  167. 'type' => 'string',
  168. ),
  169. ),
  170. ),'get' => array(
  171. 'path' => 'b/{bucket}',
  172. 'httpMethod' => 'GET',
  173. 'parameters' => array(
  174. 'bucket' => array(
  175. 'location' => 'path',
  176. 'type' => 'string',
  177. 'required' => true,
  178. ),
  179. 'ifMetagenerationMatch' => array(
  180. 'location' => 'query',
  181. 'type' => 'string',
  182. ),
  183. 'ifMetagenerationNotMatch' => array(
  184. 'location' => 'query',
  185. 'type' => 'string',
  186. ),
  187. 'projection' => array(
  188. 'location' => 'query',
  189. 'type' => 'string',
  190. ),
  191. ),
  192. ),'insert' => array(
  193. 'path' => 'b',
  194. 'httpMethod' => 'POST',
  195. 'parameters' => array(
  196. 'project' => array(
  197. 'location' => 'query',
  198. 'type' => 'string',
  199. 'required' => true,
  200. ),
  201. 'projection' => array(
  202. 'location' => 'query',
  203. 'type' => 'string',
  204. ),
  205. ),
  206. ),'list' => array(
  207. 'path' => 'b',
  208. 'httpMethod' => 'GET',
  209. 'parameters' => array(
  210. 'project' => array(
  211. 'location' => 'query',
  212. 'type' => 'string',
  213. 'required' => true,
  214. ),
  215. 'pageToken' => array(
  216. 'location' => 'query',
  217. 'type' => 'string',
  218. ),
  219. 'projection' => array(
  220. 'location' => 'query',
  221. 'type' => 'string',
  222. ),
  223. 'maxResults' => array(
  224. 'location' => 'query',
  225. 'type' => 'integer',
  226. ),
  227. ),
  228. ),'patch' => array(
  229. 'path' => 'b/{bucket}',
  230. 'httpMethod' => 'PATCH',
  231. 'parameters' => array(
  232. 'bucket' => array(
  233. 'location' => 'path',
  234. 'type' => 'string',
  235. 'required' => true,
  236. ),
  237. 'ifMetagenerationMatch' => array(
  238. 'location' => 'query',
  239. 'type' => 'string',
  240. ),
  241. 'ifMetagenerationNotMatch' => array(
  242. 'location' => 'query',
  243. 'type' => 'string',
  244. ),
  245. 'projection' => array(
  246. 'location' => 'query',
  247. 'type' => 'string',
  248. ),
  249. ),
  250. ),'update' => array(
  251. 'path' => 'b/{bucket}',
  252. 'httpMethod' => 'PUT',
  253. 'parameters' => array(
  254. 'bucket' => array(
  255. 'location' => 'path',
  256. 'type' => 'string',
  257. 'required' => true,
  258. ),
  259. 'ifMetagenerationMatch' => array(
  260. 'location' => 'query',
  261. 'type' => 'string',
  262. ),
  263. 'ifMetagenerationNotMatch' => array(
  264. 'location' => 'query',
  265. 'type' => 'string',
  266. ),
  267. 'projection' => array(
  268. 'location' => 'query',
  269. 'type' => 'string',
  270. ),
  271. ),
  272. ),
  273. )
  274. )
  275. );
  276. $this->channels = new Google_Service_Storage_Channels_Resource(
  277. $this,
  278. $this->serviceName,
  279. 'channels',
  280. array(
  281. 'methods' => array(
  282. 'stop' => array(
  283. 'path' => 'channels/stop',
  284. 'httpMethod' => 'POST',
  285. 'parameters' => array(),
  286. ),
  287. )
  288. )
  289. );
  290. $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource(
  291. $this,
  292. $this->serviceName,
  293. 'defaultObjectAccessControls',
  294. array(
  295. 'methods' => array(
  296. 'delete' => array(
  297. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
  298. 'httpMethod' => 'DELETE',
  299. 'parameters' => array(
  300. 'bucket' => array(
  301. 'location' => 'path',
  302. 'type' => 'string',
  303. 'required' => true,
  304. ),
  305. 'entity' => array(
  306. 'location' => 'path',
  307. 'type' => 'string',
  308. 'required' => true,
  309. ),
  310. ),
  311. ),'get' => array(
  312. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
  313. 'httpMethod' => 'GET',
  314. 'parameters' => array(
  315. 'bucket' => array(
  316. 'location' => 'path',
  317. 'type' => 'string',
  318. 'required' => true,
  319. ),
  320. 'entity' => array(
  321. 'location' => 'path',
  322. 'type' => 'string',
  323. 'required' => true,
  324. ),
  325. ),
  326. ),'insert' => array(
  327. 'path' => 'b/{bucket}/defaultObjectAcl',
  328. 'httpMethod' => 'POST',
  329. 'parameters' => array(
  330. 'bucket' => array(
  331. 'location' => 'path',
  332. 'type' => 'string',
  333. 'required' => true,
  334. ),
  335. ),
  336. ),'list' => array(
  337. 'path' => 'b/{bucket}/defaultObjectAcl',
  338. 'httpMethod' => 'GET',
  339. 'parameters' => array(
  340. 'bucket' => array(
  341. 'location' => 'path',
  342. 'type' => 'string',
  343. 'required' => true,
  344. ),
  345. 'ifMetagenerationMatch' => array(
  346. 'location' => 'query',
  347. 'type' => 'string',
  348. ),
  349. 'ifMetagenerationNotMatch' => array(
  350. 'location' => 'query',
  351. 'type' => 'string',
  352. ),
  353. ),
  354. ),'patch' => array(
  355. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
  356. 'httpMethod' => 'PATCH',
  357. 'parameters' => array(
  358. 'bucket' => array(
  359. 'location' => 'path',
  360. 'type' => 'string',
  361. 'required' => true,
  362. ),
  363. 'entity' => array(
  364. 'location' => 'path',
  365. 'type' => 'string',
  366. 'required' => true,
  367. ),
  368. ),
  369. ),'update' => array(
  370. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',
  371. 'httpMethod' => 'PUT',
  372. 'parameters' => array(
  373. 'bucket' => array(
  374. 'location' => 'path',
  375. 'type' => 'string',
  376. 'required' => true,
  377. ),
  378. 'entity' => array(
  379. 'location' => 'path',
  380. 'type' => 'string',
  381. 'required' => true,
  382. ),
  383. ),
  384. ),
  385. )
  386. )
  387. );
  388. $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource(
  389. $this,
  390. $this->serviceName,
  391. 'objectAccessControls',
  392. array(
  393. 'methods' => array(
  394. 'delete' => array(
  395. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
  396. 'httpMethod' => 'DELETE',
  397. 'parameters' => array(
  398. 'bucket' => array(
  399. 'location' => 'path',
  400. 'type' => 'string',
  401. 'required' => true,
  402. ),
  403. 'object' => array(
  404. 'location' => 'path',
  405. 'type' => 'string',
  406. 'required' => true,
  407. ),
  408. 'entity' => array(
  409. 'location' => 'path',
  410. 'type' => 'string',
  411. 'required' => true,
  412. ),
  413. 'generation' => array(
  414. 'location' => 'query',
  415. 'type' => 'string',
  416. ),
  417. ),
  418. ),'get' => array(
  419. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
  420. 'httpMethod' => 'GET',
  421. 'parameters' => array(
  422. 'bucket' => array(
  423. 'location' => 'path',
  424. 'type' => 'string',
  425. 'required' => true,
  426. ),
  427. 'object' => array(
  428. 'location' => 'path',
  429. 'type' => 'string',
  430. 'required' => true,
  431. ),
  432. 'entity' => array(
  433. 'location' => 'path',
  434. 'type' => 'string',
  435. 'required' => true,
  436. ),
  437. 'generation' => array(
  438. 'location' => 'query',
  439. 'type' => 'string',
  440. ),
  441. ),
  442. ),'insert' => array(
  443. 'path' => 'b/{bucket}/o/{object}/acl',
  444. 'httpMethod' => 'POST',
  445. 'parameters' => array(
  446. 'bucket' => array(
  447. 'location' => 'path',
  448. 'type' => 'string',
  449. 'required' => true,
  450. ),
  451. 'object' => array(
  452. 'location' => 'path',
  453. 'type' => 'string',
  454. 'required' => true,
  455. ),
  456. 'generation' => array(
  457. 'location' => 'query',
  458. 'type' => 'string',
  459. ),
  460. ),
  461. ),'list' => array(
  462. 'path' => 'b/{bucket}/o/{object}/acl',
  463. 'httpMethod' => 'GET',
  464. 'parameters' => array(
  465. 'bucket' => array(
  466. 'location' => 'path',
  467. 'type' => 'string',
  468. 'required' => true,
  469. ),
  470. 'object' => array(
  471. 'location' => 'path',
  472. 'type' => 'string',
  473. 'required' => true,
  474. ),
  475. 'generation' => array(
  476. 'location' => 'query',
  477. 'type' => 'string',
  478. ),
  479. ),
  480. ),'patch' => array(
  481. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
  482. 'httpMethod' => 'PATCH',
  483. 'parameters' => array(
  484. 'bucket' => array(
  485. 'location' => 'path',
  486. 'type' => 'string',
  487. 'required' => true,
  488. ),
  489. 'object' => array(
  490. 'location' => 'path',
  491. 'type' => 'string',
  492. 'required' => true,
  493. ),
  494. 'entity' => array(
  495. 'location' => 'path',
  496. 'type' => 'string',
  497. 'required' => true,
  498. ),
  499. 'generation' => array(
  500. 'location' => 'query',
  501. 'type' => 'string',
  502. ),
  503. ),
  504. ),'update' => array(
  505. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',
  506. 'httpMethod' => 'PUT',
  507. 'parameters' => array(
  508. 'bucket' => array(
  509. 'location' => 'path',
  510. 'type' => 'string',
  511. 'required' => true,
  512. ),
  513. 'object' => array(
  514. 'location' => 'path',
  515. 'type' => 'string',
  516. 'required' => true,
  517. ),
  518. 'entity' => array(
  519. 'location' => 'path',
  520. 'type' => 'string',
  521. 'required' => true,
  522. ),
  523. 'generation' => array(
  524. 'location' => 'query',
  525. 'type' => 'string',
  526. ),
  527. ),
  528. ),
  529. )
  530. )
  531. );
  532. $this->objects = new Google_Service_Storage_Objects_Resource(
  533. $this,
  534. $this->serviceName,
  535. 'objects',
  536. array(
  537. 'methods' => array(
  538. 'compose' => array(
  539. 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose',
  540. 'httpMethod' => 'POST',
  541. 'parameters' => array(
  542. 'destinationBucket' => array(
  543. 'location' => 'path',
  544. 'type' => 'string',
  545. 'required' => true,
  546. ),
  547. 'destinationObject' => array(
  548. 'location' => 'path',
  549. 'type' => 'string',
  550. 'required' => true,
  551. ),
  552. 'ifMetagenerationMatch' => array(
  553. 'location' => 'query',
  554. 'type' => 'string',
  555. ),
  556. 'ifGenerationMatch' => array(
  557. 'location' => 'query',
  558. 'type' => 'string',
  559. ),
  560. ),
  561. ),'copy' => array(
  562. 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}',
  563. 'httpMethod' => 'POST',
  564. 'parameters' => array(
  565. 'sourceBucket' => array(
  566. 'location' => 'path',
  567. 'type' => 'string',
  568. 'required' => true,
  569. ),
  570. 'sourceObject' => array(
  571. 'location' => 'path',
  572. 'type' => 'string',
  573. 'required' => true,
  574. ),
  575. 'destinationBucket' => array(
  576. 'location' => 'path',
  577. 'type' => 'string',
  578. 'required' => true,
  579. ),
  580. 'destinationObject' => array(
  581. 'location' => 'path',
  582. 'type' => 'string',
  583. 'required' => true,
  584. ),
  585. 'ifSourceGenerationNotMatch' => array(
  586. 'location' => 'query',
  587. 'type' => 'string',
  588. ),
  589. 'ifGenerationMatch' => array(
  590. 'location' => 'query',
  591. 'type' => 'string',
  592. ),
  593. 'ifGenerationNotMatch' => array(
  594. 'location' => 'query',
  595. 'type' => 'string',
  596. ),
  597. 'ifSourceMetagenerationNotMatch' => array(
  598. 'location' => 'query',
  599. 'type' => 'string',
  600. ),
  601. 'ifMetagenerationNotMatch' => array(
  602. 'location' => 'query',
  603. 'type' => 'string',
  604. ),
  605. 'sourceGeneration' => array(
  606. 'location' => 'query',
  607. 'type' => 'string',
  608. ),
  609. 'ifSourceGenerationMatch' => array(
  610. 'location' => 'query',
  611. 'type' => 'string',
  612. ),
  613. 'ifSourceMetagenerationMatch' => array(
  614. 'location' => 'query',
  615. 'type' => 'string',
  616. ),
  617. 'ifMetagenerationMatch' => array(
  618. 'location' => 'query',
  619. 'type' => 'string',
  620. ),
  621. 'projection' => array(
  622. 'location' => 'query',
  623. 'type' => 'string',
  624. ),
  625. ),
  626. ),'delete' => array(
  627. 'path' => 'b/{bucket}/o/{object}',
  628. 'httpMethod' => 'DELETE',
  629. 'parameters' => array(
  630. 'bucket' => array(
  631. 'location' => 'path',
  632. 'type' => 'string',
  633. 'required' => true,
  634. ),
  635. 'object' => array(
  636. 'location' => 'path',
  637. 'type' => 'string',
  638. 'required' => true,
  639. ),
  640. 'ifGenerationNotMatch' => array(
  641. 'location' => 'query',
  642. 'type' => 'string',
  643. ),
  644. 'generation' => array(
  645. 'location' => 'query',
  646. 'type' => 'string',
  647. ),
  648. 'ifMetagenerationMatch' => array(
  649. 'location' => 'query',
  650. 'type' => 'string',
  651. ),
  652. 'ifGenerationMatch' => array(
  653. 'location' => 'query',
  654. 'type' => 'string',
  655. ),
  656. 'ifMetagenerationNotMatch' => array(
  657. 'location' => 'query',
  658. 'type' => 'string',
  659. ),
  660. ),
  661. ),'get' => array(
  662. 'path' => 'b/{bucket}/o/{object}',
  663. 'httpMethod' => 'GET',
  664. 'parameters' => array(
  665. 'bucket' => array(
  666. 'location' => 'path',
  667. 'type' => 'string',
  668. 'required' => true,
  669. ),
  670. 'object' => array(
  671. 'location' => 'path',
  672. 'type' => 'string',
  673. 'required' => true,
  674. ),
  675. 'ifGenerationNotMatch' => array(
  676. 'location' => 'query',
  677. 'type' => 'string',
  678. ),
  679. 'generation' => array(
  680. 'location' => 'query',
  681. 'type' => 'string',
  682. ),
  683. 'ifMetagenerationMatch' => array(
  684. 'location' => 'query',
  685. 'type' => 'string',
  686. ),
  687. 'ifGenerationMatch' => array(
  688. 'location' => 'query',
  689. 'type' => 'string',
  690. ),
  691. 'ifMetagenerationNotMatch' => array(
  692. 'location' => 'query',
  693. 'type' => 'string',
  694. ),
  695. 'projection' => array(
  696. 'location' => 'query',
  697. 'type' => 'string',
  698. ),
  699. ),
  700. ),'insert' => array(
  701. 'path' => 'b/{bucket}/o',
  702. 'httpMethod' => 'POST',
  703. 'parameters' => array(
  704. 'bucket' => array(
  705. 'location' => 'path',
  706. 'type' => 'string',
  707. 'required' => true,
  708. ),
  709. 'projection' => array(
  710. 'location' => 'query',
  711. 'type' => 'string',
  712. ),
  713. 'ifGenerationNotMatch' => array(
  714. 'location' => 'query',
  715. 'type' => 'string',
  716. ),
  717. 'ifMetagenerationMatch' => array(
  718. 'location' => 'query',
  719. 'type' => 'string',
  720. ),
  721. 'ifGenerationMatch' => array(
  722. 'location' => 'query',
  723. 'type' => 'string',
  724. ),
  725. 'ifMetagenerationNotMatch' => array(
  726. 'location' => 'query',
  727. 'type' => 'string',
  728. ),
  729. 'name' => array(
  730. 'location' => 'query',
  731. 'type' => 'string',
  732. ),
  733. ),
  734. ),'list' => array(
  735. 'path' => 'b/{bucket}/o',
  736. 'httpMethod' => 'GET',
  737. 'parameters' => array(
  738. 'bucket' => array(
  739. 'location' => 'path',
  740. 'type' => 'string',
  741. 'required' => true,
  742. ),
  743. 'projection' => array(
  744. 'location' => 'query',
  745. 'type' => 'string',
  746. ),
  747. 'versions' => array(
  748. 'location' => 'query',
  749. 'type' => 'boolean',
  750. ),
  751. 'prefix' => array(
  752. 'location' => 'query',
  753. 'type' => 'string',
  754. ),
  755. 'maxResults' => array(
  756. 'location' => 'query',
  757. 'type' => 'integer',
  758. ),
  759. 'pageToken' => array(
  760. 'location' => 'query',
  761. 'type' => 'string',
  762. ),
  763. 'delimiter' => array(
  764. 'location' => 'query',
  765. 'type' => 'string',
  766. ),
  767. ),
  768. ),'patch' => array(
  769. 'path' => 'b/{bucket}/o/{object}',
  770. 'httpMethod' => 'PATCH',
  771. 'parameters' => array(
  772. 'bucket' => array(
  773. 'location' => 'path',
  774. 'type' => 'string',
  775. 'required' => true,
  776. ),
  777. 'object' => array(
  778. 'location' => 'path',
  779. 'type' => 'string',
  780. 'required' => true,
  781. ),
  782. 'ifGenerationNotMatch' => array(
  783. 'location' => 'query',
  784. 'type' => 'string',
  785. ),
  786. 'generation' => array(
  787. 'location' => 'query',
  788. 'type' => 'string',
  789. ),
  790. 'ifMetagenerationMatch' => array(
  791. 'location' => 'query',
  792. 'type' => 'string',
  793. ),
  794. 'ifGenerationMatch' => array(
  795. 'location' => 'query',
  796. 'type' => 'string',
  797. ),
  798. 'ifMetagenerationNotMatch' => array(
  799. 'location' => 'query',
  800. 'type' => 'string',
  801. ),
  802. 'projection' => array(
  803. 'location' => 'query',
  804. 'type' => 'string',
  805. ),
  806. ),
  807. ),'update' => array(
  808. 'path' => 'b/{bucket}/o/{object}',
  809. 'httpMethod' => 'PUT',
  810. 'parameters' => array(
  811. 'bucket' => array(
  812. 'location' => 'path',
  813. 'type' => 'string',
  814. 'required' => true,
  815. ),
  816. 'object' => array(
  817. 'location' => 'path',
  818. 'type' => 'string',
  819. 'required' => true,
  820. ),
  821. 'ifGenerationNotMatch' => array(
  822. 'location' => 'query',
  823. 'type' => 'string',
  824. ),
  825. 'generation' => array(
  826. 'location' => 'query',
  827. 'type' => 'string',
  828. ),
  829. 'ifMetagenerationMatch' => array(
  830. 'location' => 'query',
  831. 'type' => 'string',
  832. ),
  833. 'ifGenerationMatch' => array(
  834. 'location' => 'query',
  835. 'type' => 'string',
  836. ),
  837. 'ifMetagenerationNotMatch' => array(
  838. 'location' => 'query',
  839. 'type' => 'string',
  840. ),
  841. 'projection' => array(
  842. 'location' => 'query',
  843. 'type' => 'string',
  844. ),
  845. ),
  846. ),'watchAll' => array(
  847. 'path' => 'b/{bucket}/o/watch',
  848. 'httpMethod' => 'POST',
  849. 'parameters' => array(
  850. 'bucket' => array(
  851. 'location' => 'path',
  852. 'type' => 'string',
  853. 'required' => true,
  854. ),
  855. 'projection' => array(
  856. 'location' => 'query',
  857. 'type' => 'string',
  858. ),
  859. 'versions' => array(
  860. 'location' => 'query',
  861. 'type' => 'boolean',
  862. ),
  863. 'prefix' => array(
  864. 'location' => 'query',
  865. 'type' => 'string',
  866. ),
  867. 'maxResults' => array(
  868. 'location' => 'query',
  869. 'type' => 'integer',
  870. ),
  871. 'pageToken' => array(
  872. 'location' => 'query',
  873. 'type' => 'string',
  874. ),
  875. 'delimiter' => array(
  876. 'location' => 'query',
  877. 'type' => 'string',
  878. ),
  879. ),
  880. ),
  881. )
  882. )
  883. );
  884. }
  885. }
  886. /**
  887. * The "bucketAccessControls" collection of methods.
  888. * Typical usage is:
  889. * <code>
  890. * $storageService = new Google_Service_Storage(...);
  891. * $bucketAccessControls = $storageService->bucketAccessControls;
  892. * </code>
  893. */
  894. class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource
  895. {
  896. /**
  897. * Permanently deletes the ACL entry for the specified entity on the specified
  898. * bucket. (bucketAccessControls.delete)
  899. *
  900. * @param string $bucket
  901. * Name of a bucket.
  902. * @param string $entity
  903. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  904. * emailAddress, allUsers, or allAuthenticatedUsers.
  905. * @param array $optParams Optional parameters.
  906. */
  907. public function delete($bucket, $entity, $optParams = array())
  908. {
  909. $params = array('bucket' => $bucket, 'entity' => $entity);
  910. $params = array_merge($params, $optParams);
  911. return $this->call('delete', array($params));
  912. }
  913. /**
  914. * Returns the ACL entry for the specified entity on the specified bucket.
  915. * (bucketAccessControls.get)
  916. *
  917. * @param string $bucket
  918. * Name of a bucket.
  919. * @param string $entity
  920. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  921. * emailAddress, allUsers, or allAuthenticatedUsers.
  922. * @param array $optParams Optional parameters.
  923. * @return Google_Service_Storage_BucketAccessControl
  924. */
  925. public function get($bucket, $entity, $optParams = array())
  926. {
  927. $params = array('bucket' => $bucket, 'entity' => $entity);
  928. $params = array_merge($params, $optParams);
  929. return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl");
  930. }
  931. /**
  932. * Creates a new ACL entry on the specified bucket.
  933. * (bucketAccessControls.insert)
  934. *
  935. * @param string $bucket
  936. * Name of a bucket.
  937. * @param Google_BucketAccessControl $postBody
  938. * @param array $optParams Optional parameters.
  939. * @return Google_Service_Storage_BucketAccessControl
  940. */
  941. public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
  942. {
  943. $params = array('bucket' => $bucket, 'postBody' => $postBody);
  944. $params = array_merge($params, $optParams);
  945. return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl");
  946. }
  947. /**
  948. * Retrieves ACL entries on the specified bucket.
  949. * (bucketAccessControls.listBucketAccessControls)
  950. *
  951. * @param string $bucket
  952. * Name of a bucket.
  953. * @param array $optParams Optional parameters.
  954. * @return Google_Service_Storage_BucketAccessControls
  955. */
  956. public function listBucketAccessControls($bucket, $optParams = array())
  957. {
  958. $params = array('bucket' => $bucket);
  959. $params = array_merge($params, $optParams);
  960. return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls");
  961. }
  962. /**
  963. * Updates an ACL entry on the specified bucket. This method supports patch
  964. * semantics. (bucketAccessControls.patch)
  965. *
  966. * @param string $bucket
  967. * Name of a bucket.
  968. * @param string $entity
  969. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  970. * emailAddress, allUsers, or allAuthenticatedUsers.
  971. * @param Google_BucketAccessControl $postBody
  972. * @param array $optParams Optional parameters.
  973. * @return Google_Service_Storage_BucketAccessControl
  974. */
  975. public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
  976. {
  977. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
  978. $params = array_merge($params, $optParams);
  979. return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl");
  980. }
  981. /**
  982. * Updates an ACL entry on the specified bucket. (bucketAccessControls.update)
  983. *
  984. * @param string $bucket
  985. * Name of a bucket.
  986. * @param string $entity
  987. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  988. * emailAddress, allUsers, or allAuthenticatedUsers.
  989. * @param Google_BucketAccessControl $postBody
  990. * @param array $optParams Optional parameters.
  991. * @return Google_Service_Storage_BucketAccessControl
  992. */
  993. public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array())
  994. {
  995. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
  996. $params = array_merge($params, $optParams);
  997. return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl");
  998. }
  999. }
  1000. /**
  1001. * The "buckets" collection of methods.
  1002. * Typical usage is:
  1003. * <code>
  1004. * $storageService = new Google_Service_Storage(...);
  1005. * $buckets = $storageService->buckets;
  1006. * </code>
  1007. */
  1008. class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource
  1009. {
  1010. /**
  1011. * Permanently deletes an empty bucket. (buckets.delete)
  1012. *
  1013. * @param string $bucket
  1014. * Name of a bucket.
  1015. * @param array $optParams Optional parameters.
  1016. *
  1017. * @opt_param string ifMetagenerationMatch
  1018. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1019. * metageneration matches the given value.
  1020. * @opt_param string ifMetagenerationNotMatch
  1021. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1022. * metageneration does not match the given value.
  1023. */
  1024. public function delete($bucket, $optParams = array())
  1025. {
  1026. $params = array('bucket' => $bucket);
  1027. $params = array_merge($params, $optParams);
  1028. return $this->call('delete', array($params));
  1029. }
  1030. /**
  1031. * Returns metadata for the specified bucket. (buckets.get)
  1032. *
  1033. * @param string $bucket
  1034. * Name of a bucket.
  1035. * @param array $optParams Optional parameters.
  1036. *
  1037. * @opt_param string ifMetagenerationMatch
  1038. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1039. * metageneration matches the given value.
  1040. * @opt_param string ifMetagenerationNotMatch
  1041. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1042. * metageneration does not match the given value.
  1043. * @opt_param string projection
  1044. * Set of properties to return. Defaults to noAcl.
  1045. * @return Google_Service_Storage_Bucket
  1046. */
  1047. public function get($bucket, $optParams = array())
  1048. {
  1049. $params = array('bucket' => $bucket);
  1050. $params = array_merge($params, $optParams);
  1051. return $this->call('get', array($params), "Google_Service_Storage_Bucket");
  1052. }
  1053. /**
  1054. * Creates a new bucket. (buckets.insert)
  1055. *
  1056. * @param string $project
  1057. * A valid API project identifier.
  1058. * @param Google_Bucket $postBody
  1059. * @param array $optParams Optional parameters.
  1060. *
  1061. * @opt_param string projection
  1062. * Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or
  1063. * defaultObjectAcl properties, when it defaults to full.
  1064. * @return Google_Service_Storage_Bucket
  1065. */
  1066. public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array())
  1067. {
  1068. $params = array('project' => $project, 'postBody' => $postBody);
  1069. $params = array_merge($params, $optParams);
  1070. return $this->call('insert', array($params), "Google_Service_Storage_Bucket");
  1071. }
  1072. /**
  1073. * Retrieves a list of buckets for a given project. (buckets.listBuckets)
  1074. *
  1075. * @param string $project
  1076. * A valid API project identifier.
  1077. * @param array $optParams Optional parameters.
  1078. *
  1079. * @opt_param string pageToken
  1080. * A previously-returned page token representing part of the larger set of results to view.
  1081. * @opt_param string projection
  1082. * Set of properties to return. Defaults to noAcl.
  1083. * @opt_param string maxResults
  1084. * Maximum number of buckets to return.
  1085. * @return Google_Service_Storage_Buckets
  1086. */
  1087. public function listBuckets($project, $optParams = array())
  1088. {
  1089. $params = array('project' => $project);
  1090. $params = array_merge($params, $optParams);
  1091. return $this->call('list', array($params), "Google_Service_Storage_Buckets");
  1092. }
  1093. /**
  1094. * Updates a bucket. This method supports patch semantics. (buckets.patch)
  1095. *
  1096. * @param string $bucket
  1097. * Name of a bucket.
  1098. * @param Google_Bucket $postBody
  1099. * @param array $optParams Optional parameters.
  1100. *
  1101. * @opt_param string ifMetagenerationMatch
  1102. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1103. * metageneration matches the given value.
  1104. * @opt_param string ifMetagenerationNotMatch
  1105. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1106. * metageneration does not match the given value.
  1107. * @opt_param string projection
  1108. * Set of properties to return. Defaults to full.
  1109. * @return Google_Service_Storage_Bucket
  1110. */
  1111. public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
  1112. {
  1113. $params = array('bucket' => $bucket, 'postBody' => $postBody);
  1114. $params = array_merge($params, $optParams);
  1115. return $this->call('patch', array($params), "Google_Service_Storage_Bucket");
  1116. }
  1117. /**
  1118. * Updates a bucket. (buckets.update)
  1119. *
  1120. * @param string $bucket
  1121. * Name of a bucket.
  1122. * @param Google_Bucket $postBody
  1123. * @param array $optParams Optional parameters.
  1124. *
  1125. * @opt_param string ifMetagenerationMatch
  1126. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1127. * metageneration matches the given value.
  1128. * @opt_param string ifMetagenerationNotMatch
  1129. * Makes the return of the bucket metadata conditional on whether the bucket's current
  1130. * metageneration does not match the given value.
  1131. * @opt_param string projection
  1132. * Set of properties to return. Defaults to full.
  1133. * @return Google_Service_Storage_Bucket
  1134. */
  1135. public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array())
  1136. {
  1137. $params = array('bucket' => $bucket, 'postBody' => $postBody);
  1138. $params = array_merge($params, $optParams);
  1139. return $this->call('update', array($params), "Google_Service_Storage_Bucket");
  1140. }
  1141. }
  1142. /**
  1143. * The "channels" collection of methods.
  1144. * Typical usage is:
  1145. * <code>
  1146. * $storageService = new Google_Service_Storage(...);
  1147. * $channels = $storageService->channels;
  1148. * </code>
  1149. */
  1150. class Google_Service_Storage_Channels_Resource extends Google_Service_Resource
  1151. {
  1152. /**
  1153. * Stop watching resources through this channel (channels.stop)
  1154. *
  1155. * @param Google_Channel $postBody
  1156. * @param array $optParams Optional parameters.
  1157. */
  1158. public function stop(Google_Service_Storage_Channel $postBody, $optParams = array())
  1159. {
  1160. $params = array('postBody' => $postBody);
  1161. $params = array_merge($params, $optParams);
  1162. return $this->call('stop', array($params));
  1163. }
  1164. }
  1165. /**
  1166. * The "defaultObjectAccessControls" collection of methods.
  1167. * Typical usage is:
  1168. * <code>
  1169. * $storageService = new Google_Service_Storage(...);
  1170. * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls;
  1171. * </code>
  1172. */
  1173. class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource
  1174. {
  1175. /**
  1176. * Permanently deletes the default object ACL entry for the specified entity on
  1177. * the specified bucket. (defaultObjectAccessControls.delete)
  1178. *
  1179. * @param string $bucket
  1180. * Name of a bucket.
  1181. * @param string $entity
  1182. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1183. * emailAddress, allUsers, or allAuthenticatedUsers.
  1184. * @param array $optParams Optional parameters.
  1185. */
  1186. public function delete($bucket, $entity, $optParams = array())
  1187. {
  1188. $params = array('bucket' => $bucket, 'entity' => $entity);
  1189. $params = array_merge($params, $optParams);
  1190. return $this->call('delete', array($params));
  1191. }
  1192. /**
  1193. * Returns the default object ACL entry for the specified entity on the
  1194. * specified bucket. (defaultObjectAccessControls.get)
  1195. *
  1196. * @param string $bucket
  1197. * Name of a bucket.
  1198. * @param string $entity
  1199. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1200. * emailAddress, allUsers, or allAuthenticatedUsers.
  1201. * @param array $optParams Optional parameters.
  1202. * @return Google_Service_Storage_ObjectAccessControl
  1203. */
  1204. public function get($bucket, $entity, $optParams = array())
  1205. {
  1206. $params = array('bucket' => $bucket, 'entity' => $entity);
  1207. $params = array_merge($params, $optParams);
  1208. return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
  1209. }
  1210. /**
  1211. * Creates a new default object ACL entry on the specified bucket.
  1212. * (defaultObjectAccessControls.insert)
  1213. *
  1214. * @param string $bucket
  1215. * Name of a bucket.
  1216. * @param Google_ObjectAccessControl $postBody
  1217. * @param array $optParams Optional parameters.
  1218. * @return Google_Service_Storage_ObjectAccessControl
  1219. */
  1220. public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
  1221. {
  1222. $params = array('bucket' => $bucket, 'postBody' => $postBody);
  1223. $params = array_merge($params, $optParams);
  1224. return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
  1225. }
  1226. /**
  1227. * Retrieves default object ACL entries on the specified bucket.
  1228. * (defaultObjectAccessControls.listDefaultObjectAccessControls)
  1229. *
  1230. * @param string $bucket
  1231. * Name of a bucket.
  1232. * @param array $optParams Optional parameters.
  1233. *
  1234. * @opt_param string ifMetagenerationMatch
  1235. * Makes the operation conditional on whether the destination object's current metageneration
  1236. * matches the given value.
  1237. * @opt_param string ifMetagenerationNotMatch
  1238. * Makes the operation conditional on whether the destination object's current metageneration does
  1239. * not match the given value.
  1240. * @return Google_Service_Storage_ObjectAccessControls
  1241. */
  1242. public function listDefaultObjectAccessControls($bucket, $optParams = array())
  1243. {
  1244. $params = array('bucket' => $bucket);
  1245. $params = array_merge($params, $optParams);
  1246. return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
  1247. }
  1248. /**
  1249. * Updates a default object ACL entry on the specified bucket. This method
  1250. * supports patch semantics. (defaultObjectAccessControls.patch)
  1251. *
  1252. * @param string $bucket
  1253. * Name of a bucket.
  1254. * @param string $entity
  1255. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1256. * emailAddress, allUsers, or allAuthenticatedUsers.
  1257. * @param Google_ObjectAccessControl $postBody
  1258. * @param array $optParams Optional parameters.
  1259. * @return Google_Service_Storage_ObjectAccessControl
  1260. */
  1261. public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
  1262. {
  1263. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
  1264. $params = array_merge($params, $optParams);
  1265. return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
  1266. }
  1267. /**
  1268. * Updates a default object ACL entry on the specified bucket.
  1269. * (defaultObjectAccessControls.update)
  1270. *
  1271. * @param string $bucket
  1272. * Name of a bucket.
  1273. * @param string $entity
  1274. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1275. * emailAddress, allUsers, or allAuthenticatedUsers.
  1276. * @param Google_ObjectAccessControl $postBody
  1277. * @param array $optParams Optional parameters.
  1278. * @return Google_Service_Storage_ObjectAccessControl
  1279. */
  1280. public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
  1281. {
  1282. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody);
  1283. $params = array_merge($params, $optParams);
  1284. return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
  1285. }
  1286. }
  1287. /**
  1288. * The "objectAccessControls" collection of methods.
  1289. * Typical usage is:
  1290. * <code>
  1291. * $storageService = new Google_Service_Storage(...);
  1292. * $objectAccessControls = $storageService->objectAccessControls;
  1293. * </code>
  1294. */
  1295. class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource
  1296. {
  1297. /**
  1298. * Permanently deletes the ACL entry for the specified entity on the specified
  1299. * object. (objectAccessControls.delete)
  1300. *
  1301. * @param string $bucket
  1302. * Name of a bucket.
  1303. * @param string $object
  1304. * Name of the object.
  1305. * @param string $entity
  1306. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1307. * emailAddress, allUsers, or allAuthenticatedUsers.
  1308. * @param array $optParams Optional parameters.
  1309. *
  1310. * @opt_param string generation
  1311. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1312. * default).
  1313. */
  1314. public function delete($bucket, $object, $entity, $optParams = array())
  1315. {
  1316. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
  1317. $params = array_merge($params, $optParams);
  1318. return $this->call('delete', array($params));
  1319. }
  1320. /**
  1321. * Returns the ACL entry for the specified entity on the specified object.
  1322. * (objectAccessControls.get)
  1323. *
  1324. * @param string $bucket
  1325. * Name of a bucket.
  1326. * @param string $object
  1327. * Name of the object.
  1328. * @param string $entity
  1329. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1330. * emailAddress, allUsers, or allAuthenticatedUsers.
  1331. * @param array $optParams Optional parameters.
  1332. *
  1333. * @opt_param string generation
  1334. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1335. * default).
  1336. * @return Google_Service_Storage_ObjectAccessControl
  1337. */
  1338. public function get($bucket, $object, $entity, $optParams = array())
  1339. {
  1340. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity);
  1341. $params = array_merge($params, $optParams);
  1342. return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl");
  1343. }
  1344. /**
  1345. * Creates a new ACL entry on the specified object.
  1346. * (objectAccessControls.insert)
  1347. *
  1348. * @param string $bucket
  1349. * Name of a bucket.
  1350. * @param string $object
  1351. * Name of the object.
  1352. * @param Google_ObjectAccessControl $postBody
  1353. * @param array $optParams Optional parameters.
  1354. *
  1355. * @opt_param string generation
  1356. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1357. * default).
  1358. * @return Google_Service_Storage_ObjectAccessControl
  1359. */
  1360. public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
  1361. {
  1362. $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
  1363. $params = array_merge($params, $optParams);
  1364. return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl");
  1365. }
  1366. /**
  1367. * Retrieves ACL entries on the specified object.
  1368. * (objectAccessControls.listObjectAccessControls)
  1369. *
  1370. * @param string $bucket
  1371. * Name of a bucket.
  1372. * @param string $object
  1373. * Name of the object.
  1374. * @param array $optParams Optional parameters.
  1375. *
  1376. * @opt_param string generation
  1377. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1378. * default).
  1379. * @return Google_Service_Storage_ObjectAccessControls
  1380. */
  1381. public function listObjectAccessControls($bucket, $object, $optParams = array())
  1382. {
  1383. $params = array('bucket' => $

Large files files are truncated, but you can click here to view the full file