PageRenderTime 69ms CodeModel.GetById 11ms RepoModel.GetById 1ms 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
  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' => $bucket, 'object' => $object);
  1384. $params = array_merge($params, $optParams);
  1385. return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls");
  1386. }
  1387. /**
  1388. * Updates an ACL entry on the specified object. This method supports patch
  1389. * semantics. (objectAccessControls.patch)
  1390. *
  1391. * @param string $bucket
  1392. * Name of a bucket.
  1393. * @param string $object
  1394. * Name of the object.
  1395. * @param string $entity
  1396. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1397. * emailAddress, allUsers, or allAuthenticatedUsers.
  1398. * @param Google_ObjectAccessControl $postBody
  1399. * @param array $optParams Optional parameters.
  1400. *
  1401. * @opt_param string generation
  1402. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1403. * default).
  1404. * @return Google_Service_Storage_ObjectAccessControl
  1405. */
  1406. public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
  1407. {
  1408. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
  1409. $params = array_merge($params, $optParams);
  1410. return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl");
  1411. }
  1412. /**
  1413. * Updates an ACL entry on the specified object. (objectAccessControls.update)
  1414. *
  1415. * @param string $bucket
  1416. * Name of a bucket.
  1417. * @param string $object
  1418. * Name of the object.
  1419. * @param string $entity
  1420. * The entity holding the permission. Can be user-userId, user-emailAddress, group-groupId, group-
  1421. * emailAddress, allUsers, or allAuthenticatedUsers.
  1422. * @param Google_ObjectAccessControl $postBody
  1423. * @param array $optParams Optional parameters.
  1424. *
  1425. * @opt_param string generation
  1426. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1427. * default).
  1428. * @return Google_Service_Storage_ObjectAccessControl
  1429. */
  1430. public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array())
  1431. {
  1432. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody);
  1433. $params = array_merge($params, $optParams);
  1434. return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl");
  1435. }
  1436. }
  1437. /**
  1438. * The "objects" collection of methods.
  1439. * Typical usage is:
  1440. * <code>
  1441. * $storageService = new Google_Service_Storage(...);
  1442. * $objects = $storageService->objects;
  1443. * </code>
  1444. */
  1445. class Google_Service_Storage_Objects_Resource extends Google_Service_Resource
  1446. {
  1447. /**
  1448. * Concatenates a list of existing objects into a new object in the same bucket.
  1449. * (objects.compose)
  1450. *
  1451. * @param string $destinationBucket
  1452. * Name of the bucket in which to store the new object.
  1453. * @param string $destinationObject
  1454. * Name of the new object.
  1455. * @param Google_ComposeRequest $postBody
  1456. * @param array $optParams Optional parameters.
  1457. *
  1458. * @opt_param string ifMetagenerationMatch
  1459. * Makes the operation conditional on whether the object's current metageneration matches the given
  1460. * value.
  1461. * @opt_param string ifGenerationMatch
  1462. * Makes the operation conditional on whether the object's current generation matches the given
  1463. * value.
  1464. * @return Google_Service_Storage_StorageObject
  1465. */
  1466. public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array())
  1467. {
  1468. $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
  1469. $params = array_merge($params, $optParams);
  1470. return $this->call('compose', array($params), "Google_Service_Storage_StorageObject");
  1471. }
  1472. /**
  1473. * Copies an object to a destination in the same location. Optionally overrides
  1474. * metadata. (objects.copy)
  1475. *
  1476. * @param string $sourceBucket
  1477. * Name of the bucket in which to find the source object.
  1478. * @param string $sourceObject
  1479. * Name of the source object.
  1480. * @param string $destinationBucket
  1481. * Name of the bucket in which to store the new object. Overrides the provided object metadata's
  1482. * bucket value, if any.
  1483. * @param string $destinationObject
  1484. * Name of the new object. Required when the object metadata is not otherwise provided. Overrides
  1485. * the object metadata's name value, if any.
  1486. * @param Google_StorageObject $postBody
  1487. * @param array $optParams Optional parameters.
  1488. *
  1489. * @opt_param string ifSourceGenerationNotMatch
  1490. * Makes the operation conditional on whether the source object's generation does not match the
  1491. * given value.
  1492. * @opt_param string ifGenerationMatch
  1493. * Makes the operation conditional on whether the destination object's current generation matches
  1494. * the given value.
  1495. * @opt_param string ifGenerationNotMatch
  1496. * Makes the operation conditional on whether the destination object's current generation does not
  1497. * match the given value.
  1498. * @opt_param string ifSourceMetagenerationNotMatch
  1499. * Makes the operation conditional on whether the source object's current metageneration does not
  1500. * match the given value.
  1501. * @opt_param string ifMetagenerationNotMatch
  1502. * Makes the operation conditional on whether the destination object's current metageneration does
  1503. * not match the given value.
  1504. * @opt_param string sourceGeneration
  1505. * If present, selects a specific revision of the source object (as opposed to the latest version,
  1506. * the default).
  1507. * @opt_param string ifSourceGenerationMatch
  1508. * Makes the operation conditional on whether the source object's generation matches the given
  1509. * value.
  1510. * @opt_param string ifSourceMetagenerationMatch
  1511. * Makes the operation conditional on whether the source object's current metageneration matches
  1512. * the given value.
  1513. * @opt_param string ifMetagenerationMatch
  1514. * Makes the operation conditional on whether the destination object's current metageneration
  1515. * matches the given value.
  1516. * @opt_param string projection
  1517. * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
  1518. * property, when it defaults to full.
  1519. * @return Google_Service_Storage_StorageObject
  1520. */
  1521. public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array())
  1522. {
  1523. $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody);
  1524. $params = array_merge($params, $optParams);
  1525. return $this->call('copy', array($params), "Google_Service_Storage_StorageObject");
  1526. }
  1527. /**
  1528. * Deletes data blobs and associated metadata. Deletions are permanent if
  1529. * versioning is not enabled for the bucket, or if the generation parameter is
  1530. * used. (objects.delete)
  1531. *
  1532. * @param string $bucket
  1533. * Name of the bucket in which the object resides.
  1534. * @param string $object
  1535. * Name of the object.
  1536. * @param array $optParams Optional parameters.
  1537. *
  1538. * @opt_param string ifGenerationNotMatch
  1539. * Makes the operation conditional on whether the object's current generation does not match the
  1540. * given value.
  1541. * @opt_param string generation
  1542. * If present, permanently deletes a specific revision of this object (as opposed to the latest
  1543. * version, the default).
  1544. * @opt_param string ifMetagenerationMatch
  1545. * Makes the operation conditional on whether the object's current metageneration matches the given
  1546. * value.
  1547. * @opt_param string ifGenerationMatch
  1548. * Makes the operation conditional on whether the object's current generation matches the given
  1549. * value.
  1550. * @opt_param string ifMetagenerationNotMatch
  1551. * Makes the operation conditional on whether the object's current metageneration does not match
  1552. * the given value.
  1553. */
  1554. public function delete($bucket, $object, $optParams = array())
  1555. {
  1556. $params = array('bucket' => $bucket, 'object' => $object);
  1557. $params = array_merge($params, $optParams);
  1558. return $this->call('delete', array($params));
  1559. }
  1560. /**
  1561. * Retrieves objects or their associated metadata. (objects.get)
  1562. *
  1563. * @param string $bucket
  1564. * Name of the bucket in which the object resides.
  1565. * @param string $object
  1566. * Name of the object.
  1567. * @param array $optParams Optional parameters.
  1568. *
  1569. * @opt_param string ifGenerationNotMatch
  1570. * Makes the operation conditional on whether the object's generation does not match the given
  1571. * value.
  1572. * @opt_param string generation
  1573. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1574. * default).
  1575. * @opt_param string ifMetagenerationMatch
  1576. * Makes the operation conditional on whether the object's current metageneration matches the given
  1577. * value.
  1578. * @opt_param string ifGenerationMatch
  1579. * Makes the operation conditional on whether the object's generation matches the given value.
  1580. * @opt_param string ifMetagenerationNotMatch
  1581. * Makes the operation conditional on whether the object's current metageneration does not match
  1582. * the given value.
  1583. * @opt_param string projection
  1584. * Set of properties to return. Defaults to noAcl.
  1585. * @return Google_Service_Storage_StorageObject
  1586. */
  1587. public function get($bucket, $object, $optParams = array())
  1588. {
  1589. $params = array('bucket' => $bucket, 'object' => $object);
  1590. $params = array_merge($params, $optParams);
  1591. return $this->call('get', array($params), "Google_Service_Storage_StorageObject");
  1592. }
  1593. /**
  1594. * Stores new data blobs and associated metadata. (objects.insert)
  1595. *
  1596. * @param string $bucket
  1597. * Name of the bucket in which to store the new object. Overrides the provided object metadata's
  1598. * bucket value, if any.
  1599. * @param Google_StorageObject $postBody
  1600. * @param array $optParams Optional parameters.
  1601. *
  1602. * @opt_param string projection
  1603. * Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl
  1604. * property, when it defaults to full.
  1605. * @opt_param string ifGenerationNotMatch
  1606. * Makes the operation conditional on whether the object's current generation does not match the
  1607. * given value.
  1608. * @opt_param string ifMetagenerationMatch
  1609. * Makes the operation conditional on whether the object's current metageneration matches the given
  1610. * value.
  1611. * @opt_param string ifGenerationMatch
  1612. * Makes the operation conditional on whether the object's current generation matches the given
  1613. * value.
  1614. * @opt_param string ifMetagenerationNotMatch
  1615. * Makes the operation conditional on whether the object's current metageneration does not match
  1616. * the given value.
  1617. * @opt_param string name
  1618. * Name of the object. Required when the object metadata is not otherwise provided. Overrides the
  1619. * object metadata's name value, if any.
  1620. * @return Google_Service_Storage_StorageObject
  1621. */
  1622. public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array())
  1623. {
  1624. $params = array('bucket' => $bucket, 'postBody' => $postBody);
  1625. $params = array_merge($params, $optParams);
  1626. return $this->call('insert', array($params), "Google_Service_Storage_StorageObject");
  1627. }
  1628. /**
  1629. * Retrieves a list of objects matching the criteria. (objects.listObjects)
  1630. *
  1631. * @param string $bucket
  1632. * Name of the bucket in which to look for objects.
  1633. * @param array $optParams Optional parameters.
  1634. *
  1635. * @opt_param string projection
  1636. * Set of properties to return. Defaults to noAcl.
  1637. * @opt_param bool versions
  1638. * If true, lists all versions of a file as distinct results.
  1639. * @opt_param string prefix
  1640. * Filter results to objects whose names begin with this prefix.
  1641. * @opt_param string maxResults
  1642. * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total
  1643. * results may be returned than requested.
  1644. * @opt_param string pageToken
  1645. * A previously-returned page token representing part of the larger set of results to view.
  1646. * @opt_param string delimiter
  1647. * Returns results in a directory-like mode. items will contain only objects whose names, aside
  1648. * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain
  1649. * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate
  1650. * prefixes are omitted.
  1651. * @return Google_Service_Storage_Objects
  1652. */
  1653. public function listObjects($bucket, $optParams = array())
  1654. {
  1655. $params = array('bucket' => $bucket);
  1656. $params = array_merge($params, $optParams);
  1657. return $this->call('list', array($params), "Google_Service_Storage_Objects");
  1658. }
  1659. /**
  1660. * Updates a data blob's associated metadata. This method supports patch
  1661. * semantics. (objects.patch)
  1662. *
  1663. * @param string $bucket
  1664. * Name of the bucket in which the object resides.
  1665. * @param string $object
  1666. * Name of the object.
  1667. * @param Google_StorageObject $postBody
  1668. * @param array $optParams Optional parameters.
  1669. *
  1670. * @opt_param string ifGenerationNotMatch
  1671. * Makes the operation conditional on whether the object's current generation does not match the
  1672. * given value.
  1673. * @opt_param string generation
  1674. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1675. * default).
  1676. * @opt_param string ifMetagenerationMatch
  1677. * Makes the operation conditional on whether the object's current metageneration matches the given
  1678. * value.
  1679. * @opt_param string ifGenerationMatch
  1680. * Makes the operation conditional on whether the object's current generation matches the given
  1681. * value.
  1682. * @opt_param string ifMetagenerationNotMatch
  1683. * Makes the operation conditional on whether the object's current metageneration does not match
  1684. * the given value.
  1685. * @opt_param string projection
  1686. * Set of properties to return. Defaults to full.
  1687. * @return Google_Service_Storage_StorageObject
  1688. */
  1689. public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
  1690. {
  1691. $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
  1692. $params = array_merge($params, $optParams);
  1693. return $this->call('patch', array($params), "Google_Service_Storage_StorageObject");
  1694. }
  1695. /**
  1696. * Updates a data blob's associated metadata. (objects.update)
  1697. *
  1698. * @param string $bucket
  1699. * Name of the bucket in which the object resides.
  1700. * @param string $object
  1701. * Name of the object.
  1702. * @param Google_StorageObject $postBody
  1703. * @param array $optParams Optional parameters.
  1704. *
  1705. * @opt_param string ifGenerationNotMatch
  1706. * Makes the operation conditional on whether the object's current generation does not match the
  1707. * given value.
  1708. * @opt_param string generation
  1709. * If present, selects a specific revision of this object (as opposed to the latest version, the
  1710. * default).
  1711. * @opt_param string ifMetagenerationMatch
  1712. * Makes the operation conditional on whether the object's current metageneration matches the given
  1713. * value.
  1714. * @opt_param string ifGenerationMatch
  1715. * Makes the operation conditional on whether the object's current generation matches the given
  1716. * value.
  1717. * @opt_param string ifMetagenerationNotMatch
  1718. * Makes the operation conditional on whether the object's current metageneration does not match
  1719. * the given value.
  1720. * @opt_param string projection
  1721. * Set of properties to return. Defaults to full.
  1722. * @return Google_Service_Storage_StorageObject
  1723. */
  1724. public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array())
  1725. {
  1726. $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody);
  1727. $params = array_merge($params, $optParams);
  1728. return $this->call('update', array($params), "Google_Service_Storage_StorageObject");
  1729. }
  1730. /**
  1731. * Watch for changes on all objects in a bucket. (objects.watchAll)
  1732. *
  1733. * @param string $bucket
  1734. * Name of the bucket in which to look for objects.
  1735. * @param Google_Channel $postBody
  1736. * @param array $optParams Optional parameters.
  1737. *
  1738. * @opt_param string projection
  1739. * Set of properties to return. Defaults to noAcl.
  1740. * @opt_param bool versions
  1741. * If true, lists all versions of a file as distinct results.
  1742. * @opt_param string prefix
  1743. * Filter results to objects whose names begin with this prefix.
  1744. * @opt_param string maxResults
  1745. * Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total
  1746. * results may be returned than requested.
  1747. * @opt_param string pageToken
  1748. * A previously-returned page token representing part of the larger set of results to view.
  1749. * @opt_param string delimiter
  1750. * Returns results in a directory-like mode. items will contain only objects whose names, aside
  1751. * from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain
  1752. * delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate
  1753. * prefixes are omitted.
  1754. * @return Google_Service_Storage_Channel
  1755. */
  1756. public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array())
  1757. {
  1758. $params = array('bucket' => $bucket, 'postBody' => $postBody);
  1759. $params = array_merge($params, $optParams);
  1760. return $this->call('watchAll', array($params), "Google_Service_Storage_Channel");
  1761. }
  1762. }
  1763. class Google_Service_Storage_Bucket extends Google_Collection
  1764. {
  1765. protected $aclType = 'Google_Service_Storage_BucketAccessControl';
  1766. protected $aclDataType = 'array';
  1767. protected $corsType = 'Google_Service_Storage_BucketCors';
  1768. protected $corsDataType = 'array';
  1769. protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl';
  1770. protected $defaultObjectAclDataType = 'array';
  1771. public $etag;
  1772. public $id;
  1773. public $kind;
  1774. protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle';
  1775. protected $lifecycleDataType = '';
  1776. public $location;
  1777. protected $loggingType = 'Google_Service_Storage_BucketLogging';
  1778. protected $loggingDataType = '';
  1779. public $metageneration;
  1780. public $name;
  1781. protected $ownerType = 'Google_Service_Storage_BucketOwner';
  1782. protected $ownerDataType = '';
  1783. public $selfLink;
  1784. public $storageClass;
  1785. public $timeCreated;
  1786. protected $versioningType = 'Google_Service_Storage_BucketVersioning';
  1787. protected $versioningDataType = '';
  1788. protected $websiteType = 'Google_Service_Storage_BucketWebsite';
  1789. protected $websiteDataType = '';
  1790. public function setAcl($acl)
  1791. {
  1792. $this->acl = $acl;
  1793. }
  1794. public function getAcl()
  1795. {
  1796. return $this->acl;
  1797. }
  1798. public function setCors($cors)
  1799. {
  1800. $this->cors = $cors;
  1801. }
  1802. public function getCors()
  1803. {
  1804. return $this->cors;
  1805. }
  1806. public function setDefaultObjectAcl($defaultObjectAcl)
  1807. {
  1808. $this->defaultObjectAcl = $defaultObjectAcl;
  1809. }
  1810. public function getDefaultObjectAcl()
  1811. {
  1812. return $this->defaultObjectAcl;
  1813. }
  1814. public function setEtag($etag)
  1815. {
  1816. $this->etag = $etag;
  1817. }
  1818. public function getEtag()
  1819. {
  1820. return $this->etag;
  1821. }
  1822. public function setId($id)
  1823. {
  1824. $this->id = $id;
  1825. }
  1826. public function getId()
  1827. {
  1828. return $this->id;
  1829. }
  1830. public function setKind($kind)
  1831. {
  1832. $this->kind = $kind;
  1833. }
  1834. public function getKind()
  1835. {
  1836. return $this->kind;
  1837. }
  1838. public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle)
  1839. {
  1840. $this->lifecycle = $lifecycle;
  1841. }
  1842. public function getLifecycle()
  1843. {
  1844. return $this->lifecycle;
  1845. }
  1846. public function setLocation($location)
  1847. {
  1848. $this->location = $location;
  1849. }
  1850. public function getLocation()
  1851. {
  1852. return $this->location;
  1853. }
  1854. public function setLogging(Google_Service_Storage_BucketLogging $logging)
  1855. {
  1856. $this->logging = $logging;
  1857. }
  1858. public function getLogging()
  1859. {
  1860. return $this->logging;
  1861. }
  1862. public function setMetageneration($metageneration)
  1863. {
  1864. $this->metageneration = $metageneration;
  1865. }
  1866. public function getMetageneration()
  1867. {
  1868. return $this->metageneration;
  1869. }
  1870. public function setName($name)
  1871. {
  1872. $this->name = $name;
  1873. }
  1874. public function getName()
  1875. {
  1876. return $this->name;
  1877. }
  1878. public function setOwner(Google_Service_Storage_BucketOwner $owner)
  1879. {
  1880. $this->owner = $owner;
  1881. }
  1882. public function getOwner()
  1883. {
  1884. return $this->owner;
  1885. }
  1886. public function setSelfLink($selfLink)
  1887. {
  1888. $this->selfLink = $selfLink;
  1889. }
  1890. public function getSelfLink()
  1891. {
  1892. return $this->selfLink;
  1893. }
  1894. public function setStorageClass($storageClass)
  1895. {
  1896. $this->storageClass = $storageClass;
  1897. }
  1898. public function getStorageClass()
  1899. {
  1900. return $this->storageClass;
  1901. }
  1902. public function setTimeCreated($timeCreated)
  1903. {
  1904. $this->timeCreated = $timeCreated;
  1905. }
  1906. public function getTimeCreated()
  1907. {
  1908. return $this->timeCreated;
  1909. }
  1910. public function setVersioning(Google_Service_Storage_BucketVersioning $versioning)
  1911. {
  1912. $this->versioning = $versioning;
  1913. }
  1914. public function getVersioning()
  1915. {
  1916. return $this->versioning;
  1917. }
  1918. public function setWebsite(Google_Service_Storage_BucketWebsite $website)
  1919. {
  1920. $this->website = $website;
  1921. }
  1922. public function getWebsite()
  1923. {
  1924. return $this->website;
  1925. }
  1926. }
  1927. class Google_Service_Storage_BucketAccessControl extends Google_Model
  1928. {
  1929. public $bucket;
  1930. public $domain;
  1931. public $email;
  1932. public $entity;
  1933. public $entityId;
  1934. public $etag;
  1935. public $id;
  1936. public $kind;
  1937. public $role;
  1938. public $selfLink;
  1939. public function setBucket($bucket)
  1940. {
  1941. $this->bucket = $bucket;
  1942. }
  1943. public function getBucket()
  1944. {
  1945. return $this->bucket;
  1946. }
  1947. public function setDomain($domain)
  1948. {
  1949. $this->domain = $domain;
  1950. }
  1951. public function getDomain()
  1952. {
  1953. return $this->domain;
  1954. }
  1955. public function setEmail($email)
  1956. {
  1957. $this->email = $email;
  1958. }
  1959. public function getEmail()
  1960. {
  1961. return $this->email;
  1962. }
  1963. public function setEntity($entity)
  1964. {
  1965. $this->entity = $entity;
  1966. }
  1967. public function getEntity()
  1968. {
  1969. return $this->entity;
  1970. }
  1971. public function setEntityId($entityId)
  1972. {
  1973. $this->entityId = $entityId;
  1974. }
  1975. public function getEntityId()
  1976. {
  1977. return $this->entityId;
  1978. }
  1979. public function setEtag($etag)
  1980. {
  1981. $this->etag = $etag;
  1982. }
  1983. public function getEtag()
  1984. {
  1985. return $this->etag;
  1986. }
  1987. public function setId($id)
  1988. {
  1989. $this->id = $id;
  1990. }
  1991. public function getId()
  1992. {
  1993. return $this->id;
  1994. }
  1995. public function setKind($kind)
  1996. {
  1997. $this->kind = $kind;
  1998. }
  1999. public function getKind()
  2000. {
  2001. return $this->kind;
  2002. }
  2003. public function setRole($role)
  2004. {
  2005. $this->role = $role;
  2006. }
  2007. public function getRole()
  2008. {
  2009. return $this->role;
  2010. }
  2011. public function setSelfLink($selfLink)
  2012. {
  2013. $this->selfLink = $selfLink;
  2014. }
  2015. public function getSelfLink()
  2016. {
  2017. return $this->selfLink;
  2018. }
  2019. }
  2020. class Google_Service_Storage_BucketAccessControls extends Google_Collection
  2021. {
  2022. protected $itemsType = 'Google_Service_Storage_BucketAccessControl';
  2023. protected $itemsDataType = 'array';
  2024. public $kind;
  2025. public function setItems($items)
  2026. {
  2027. $this->items = $items;
  2028. }
  2029. public function getItems()
  2030. {
  2031. return $this->items;
  2032. }
  2033. public function setKind($kind)
  2034. {
  2035. $this->kind = $kind;
  2036. }
  2037. public function getKind()
  2038. {
  2039. return $this->kind;
  2040. }
  2041. }
  2042. class Google_Service_Storage_BucketCors extends Google_Collection
  2043. {
  2044. public $maxAgeSeconds;
  2045. public $method;
  2046. public $origin;
  2047. public $responseHeader;
  2048. public function setMaxAgeSeconds($maxAgeSeconds)
  2049. {
  2050. $this->maxAgeSeconds = $maxAgeSeconds;
  2051. }
  2052. public function getMaxAgeSeconds()
  2053. {
  2054. return $this->maxAgeSeconds;
  2055. }
  2056. public function setMethod($method)
  2057. {
  2058. $this->method = $method;
  2059. }
  2060. public function getMethod()
  2061. {
  2062. return $this->method;
  2063. }
  2064. public function setOrigin($origin)
  2065. {
  2066. $this->origin = $origin;
  2067. }
  2068. public function getOrigin()
  2069. {
  2070. return $this->origin;
  2071. }
  2072. public function setResponseHeader($responseHeader)
  2073. {
  2074. $this->responseHeader = $responseHeader;
  2075. }
  2076. public function getResponseHeader()
  2077. {
  2078. return $this->responseHeader;
  2079. }
  2080. }
  2081. class Google_Service_Storage_BucketLifecycle extends Google_Collection
  2082. {
  2083. protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule';
  2084. protected $ruleDataType = 'array';
  2085. public function setRule($rule)
  2086. {
  2087. $this->rule = $rule;
  2088. }
  2089. public function getRule()
  2090. {
  2091. return $this->rule;
  2092. }
  2093. }
  2094. class Google_Service_Storage_BucketLifecycleRule extends Google_Model
  2095. {
  2096. protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction';
  2097. protected $actionDataType = '';
  2098. protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition';
  2099. protected $conditionDataType = '';
  2100. public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action)
  2101. {
  2102. $this->action = $action;
  2103. }
  2104. public function getAction()
  2105. {
  2106. return $this->action;
  2107. }
  2108. public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition)
  2109. {
  2110. $this->condition = $condition;
  2111. }
  2112. public function getCondition()
  2113. {
  2114. return $this->condition;
  2115. }
  2116. }
  2117. class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model
  2118. {
  2119. public $type;
  2120. public function setType($type)
  2121. {
  2122. $this->type = $type;
  2123. }
  2124. public function getType()
  2125. {
  2126. return $this->type;
  2127. }
  2128. }
  2129. class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model
  2130. {
  2131. public $age;
  2132. public $createdBefore;
  2133. public $isLive;
  2134. public $numNewerVersions;
  2135. public function setAge($age)
  2136. {
  2137. $this->age = $age;
  2138. }
  2139. public function getAge()
  2140. {
  2141. return $this->age;
  2142. }
  2143. public function setCreatedBefore($createdBefore)
  2144. {
  2145. $this->createdBefore = $createdBefore;
  2146. }
  2147. public function getCreatedBefore()
  2148. {
  2149. return $this->createdBefore;
  2150. }
  2151. public function setIsLive($isLive)
  2152. {
  2153. $this->isLive = $isLive;
  2154. }
  2155. public function getIsLive()
  2156. {
  2157. return $this->isLive;
  2158. }
  2159. public function setNumNewerVersions($numNewerVersions)
  2160. {
  2161. $this->numNewerVersions = $numNewerVersions;
  2162. }
  2163. public function getNumNewerVersions()
  2164. {
  2165. return $this->numNewerVersions;
  2166. }
  2167. }
  2168. class Google_Service_Storage_BucketLogging extends Google_Model
  2169. {
  2170. public $logBucket;
  2171. public $logObjectPrefix;
  2172. public function setLogBucket($logBucket)
  2173. {
  2174. $this->logBucket = $logBucket;
  2175. }
  2176. public function getLogBucket()
  2177. {
  2178. return $this->logBucket;
  2179. }
  2180. public function setLogObjectPrefix($logObjectPrefix)
  2181. {
  2182. $this->logObjectPrefix = $logObjectPrefix;
  2183. }
  2184. public function getLogObjectPrefix()
  2185. {
  2186. return $this->logObjectPrefix;
  2187. }
  2188. }
  2189. class Google_Service_Storage_BucketOwner extends Google_Model
  2190. {
  2191. public $entity;
  2192. public $entityId;
  2193. public function setEntity($entity)
  2194. {
  2195. $this->entity = $entity;
  2196. }
  2197. public function getEntity()
  2198. {
  2199. return $this->entity;
  2200. }
  2201. public function setEntityId($entityId)
  2202. {
  2203. $this->entityId = $entityId;
  2204. }
  2205. public function getEntityId()
  2206. {
  2207. return $this->entityId;
  2208. }
  2209. }
  2210. class Google_Service_Storage_BucketVersioning extends Google_Model
  2211. {
  2212. public $enabled;
  2213. public function setEnabled($enabled)
  2214. {
  2215. $this->enabled = $enabled;
  2216. }
  2217. public function getEnabled()
  2218. {
  2219. return $this->enabled;
  2220. }
  2221. }
  2222. class Google_Service_Storage_BucketWebsite extends Google_Model
  2223. {
  2224. public $mainPageSuffix;
  2225. public $notFoundPage;
  2226. public function setMainPageSuffix($mainPageSuffix)
  2227. {
  2228. $this->mainPageSuffix = $mainPageSuffix;
  2229. }
  2230. public function getMainPageSuffix()
  2231. {
  2232. return $this->mainPageSuffix;
  2233. }
  2234. public function setNotFoundPage($notFoundPage)
  2235. {
  2236. $this->notFoundPage = $notFoundPage;
  2237. }
  2238. public function getNotFoundPage()
  2239. {
  2240. return $this->notFoundPage;
  2241. }
  2242. }
  2243. class Google_Service_Storage_Buckets extends Google_Collection
  2244. {
  2245. protected $itemsType = 'Google_Service_Storage_Bucket';
  2246. protected $itemsDataType = 'array';
  2247. public $kind;
  2248. public $nextPageToken;
  2249. public function setItems($items)
  2250. {
  2251. $this->items = $items;
  2252. }
  2253. public function getItems()
  2254. {
  2255. return $this->items;
  2256. }
  2257. public function setKind($kind)
  2258. {
  2259. $this->kind = $kind;
  2260. }
  2261. public function getKind()
  2262. {
  2263. return $this->kind;
  2264. }
  2265. public function setNextPageToken($nextPageToken)
  2266. {
  2267. $this->nextPageToken = $nextPageToken;
  2268. }
  2269. public function getNextPageToken()
  2270. {
  2271. return $this->nextPageToken;
  2272. }
  2273. }
  2274. class Google_Service_Storage_Channel extends Google_Model
  2275. {
  2276. public $address;
  2277. public $expiration;
  2278. public $id;
  2279. public $kind;
  2280. public $params;
  2281. public $payload;
  2282. public $resourceId;
  2283. public $resourceUri;
  2284. public $token;
  2285. public $type;
  2286. public function setAddress($address)
  2287. {
  2288. $this->address = $address;
  2289. }
  2290. public function getAddress()
  2291. {
  2292. return $this->address;
  2293. }
  2294. public function setExpiration($expiration)
  2295. {
  2296. $this->expiration = $expiration;
  2297. }
  2298. public function getExpiration()
  2299. {
  2300. return $this->expiration;
  2301. }
  2302. public function setId($id)
  2303. {
  2304. $this->id = $id;
  2305. }
  2306. public function getId()
  2307. {
  2308. return $this->id;
  2309. }
  2310. public function setKind($kind)
  2311. {
  2312. $this->kind = $kind;
  2313. }
  2314. public function getKind()
  2315. {
  2316. return $this->kind;
  2317. }
  2318. public function setParams($params)
  2319. {
  2320. $this->params = $params;
  2321. }
  2322. public function getParams()
  2323. {
  2324. return $this->params;
  2325. }
  2326. public function setPayload($payload)
  2327. {
  2328. $this->payload = $payload;
  2329. }
  2330. public function getPayload()
  2331. {
  2332. return $this->payload;
  2333. }
  2334. public function setResourceId($resourceId)
  2335. {
  2336. $this->resourceId = $resourceId;
  2337. }
  2338. public function getResourceId()
  2339. {
  2340. return $this->resourceId;
  2341. }
  2342. public function setResourceUri($resourceUri)
  2343. {
  2344. $this->resourceUri = $resourceUri;
  2345. }
  2346. public function getResourceUri()
  2347. {
  2348. return $this->resourceUri;
  2349. }
  2350. public function setToken($token)
  2351. {
  2352. $this->token = $token;
  2353. }
  2354. public function getToken()
  2355. {
  2356. return $this->token;
  2357. }
  2358. public function setType($type)
  2359. {
  2360. $this->type = $type;
  2361. }
  2362. public function getType()
  2363. {
  2364. return $this->type;
  2365. }
  2366. }
  2367. class Google_Service_Storage_ComposeRequest extends Google_Collection
  2368. {
  2369. protected $destinationType = 'Google_Service_Storage_StorageObject';
  2370. protected $destinationDataType = '';
  2371. public $kind;
  2372. protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects';
  2373. protected $sourceObjectsDataType = 'array';
  2374. public function setDestination(Google_Service_Storage_StorageObject $destination)
  2375. {
  2376. $this->destination = $destination;
  2377. }
  2378. public function getDestination()
  2379. {
  2380. return $this->destination;
  2381. }
  2382. public function setKind($kind)
  2383. {
  2384. $this->kind = $kind;
  2385. }
  2386. public function getKind()
  2387. {
  2388. return $this->kind;
  2389. }
  2390. public function setSourceObjects($sourceObjects)
  2391. {
  2392. $this->sourceObjects = $sourceObjects;
  2393. }
  2394. public function getSourceObjects()
  2395. {
  2396. return $this->sourceObjects;
  2397. }
  2398. }
  2399. class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model
  2400. {
  2401. public $generation;
  2402. public $name;
  2403. protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions';
  2404. protected $objectPreconditionsDataType = '';
  2405. public function setGeneration($generation)
  2406. {
  2407. $this->generation = $generation;
  2408. }
  2409. public function getGeneration()
  2410. {
  2411. return $this->generation;
  2412. }
  2413. public function setName($name)
  2414. {
  2415. $this->name = $name;
  2416. }
  2417. public function getName()
  2418. {
  2419. return $this->name;
  2420. }
  2421. public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions)
  2422. {
  2423. $this->objectPreconditions = $objectPreconditions;
  2424. }
  2425. public function getObjectPreconditions()
  2426. {
  2427. return $this->objectPreconditions;
  2428. }
  2429. }
  2430. class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model
  2431. {
  2432. public $ifGenerationMatch;
  2433. public function setIfGenerationMatch($ifGenerationMatch)
  2434. {
  2435. $this->ifGenerationMatch = $ifGenerationMatch;
  2436. }
  2437. public function getIfGenerationMatch()
  2438. {
  2439. return $this->ifGenerationMatch;
  2440. }
  2441. }
  2442. class Google_Service_Storage_ObjectAccessControl extends Google_Model
  2443. {
  2444. public $bucket;
  2445. public $domain;
  2446. public $email;
  2447. public $entity;
  2448. public $entityId;
  2449. public $etag;
  2450. public $generation;
  2451. public $id;
  2452. public $kind;
  2453. public $object;
  2454. public $role;
  2455. public $selfLink;
  2456. public function setBucket($bucket)
  2457. {
  2458. $this->bucket = $bucket;
  2459. }
  2460. public function getBucket()
  2461. {
  2462. return $this->bucket;
  2463. }
  2464. public function setDomain($domain)
  2465. {
  2466. $this->domain = $domain;
  2467. }
  2468. public function getDomain()
  2469. {
  2470. return $this->domain;
  2471. }
  2472. public function setEmail($email)
  2473. {
  2474. $this->email = $email;
  2475. }
  2476. public function getEmail()
  2477. {
  2478. return $this->email;
  2479. }
  2480. public function setEntity($entity)
  2481. {
  2482. $this->entity = $entity;
  2483. }
  2484. public function getEntity()
  2485. {
  2486. return $this->entity;
  2487. }
  2488. public function setEntityId($entityId)
  2489. {
  2490. $this->entityId = $entityId;
  2491. }
  2492. public function getEntityId()
  2493. {
  2494. return $this->entityId;
  2495. }
  2496. public function setEtag($etag)
  2497. {
  2498. $this->etag = $etag;
  2499. }
  2500. public function getEtag()
  2501. {
  2502. return $this->etag;
  2503. }
  2504. public function setGeneration($generation)
  2505. {
  2506. $this->generation = $generation;
  2507. }
  2508. public function getGeneration()
  2509. {
  2510. return $this->generation;
  2511. }
  2512. public function setId($id)
  2513. {
  2514. $this->id = $id;
  2515. }
  2516. public function getId()
  2517. {
  2518. return $this->id;
  2519. }
  2520. public function setKind($kind)
  2521. {
  2522. $this->kind = $kind;
  2523. }
  2524. public function getKind()
  2525. {
  2526. return $this->kind;
  2527. }
  2528. public function setObject($object)
  2529. {
  2530. $this->object = $object;
  2531. }
  2532. public function getObject()
  2533. {
  2534. return $this->object;
  2535. }
  2536. public function setRole($role)
  2537. {
  2538. $this->role = $role;
  2539. }
  2540. public function getRole()
  2541. {
  2542. return $this->role;
  2543. }
  2544. public function setSelfLink($selfLink)
  2545. {
  2546. $this->selfLink = $selfLink;
  2547. }
  2548. public function getSelfLink()
  2549. {
  2550. return $this->selfLink;
  2551. }
  2552. }
  2553. class Google_Service_Storage_ObjectAccessControls extends Google_Collection
  2554. {
  2555. public $items;
  2556. public $kind;
  2557. public function setItems($items)
  2558. {
  2559. $this->items = $items;
  2560. }
  2561. public function getItems()
  2562. {
  2563. return $this->items;
  2564. }
  2565. public function setKind($kind)
  2566. {
  2567. $this->kind = $kind;
  2568. }
  2569. public function getKind()
  2570. {
  2571. return $this->kind;
  2572. }
  2573. }
  2574. class Google_Service_Storage_Objects extends Google_Collection
  2575. {
  2576. protected $itemsType = 'Google_Service_Storage_StorageObject';
  2577. protected $itemsDataType = 'array';
  2578. public $kind;
  2579. public $nextPageToken;
  2580. public $prefixes;
  2581. public function setItems($items)
  2582. {
  2583. $this->items = $items;
  2584. }
  2585. public function getItems()
  2586. {
  2587. return $this->items;
  2588. }
  2589. public function setKind($kind)
  2590. {
  2591. $this->kind = $kind;
  2592. }
  2593. public function getKind()
  2594. {
  2595. return $this->kind;
  2596. }
  2597. public function setNextPageToken($nextPageToken)
  2598. {
  2599. $this->nextPageToken = $nextPageToken;
  2600. }
  2601. public function getNextPageToken()
  2602. {
  2603. return $this->nextPageToken;
  2604. }
  2605. public function setPrefixes($prefixes)
  2606. {
  2607. $this->prefixes = $prefixes;
  2608. }
  2609. public function getPrefixes()
  2610. {
  2611. return $this->prefixes;
  2612. }
  2613. }
  2614. class Google_Service_Storage_StorageObject extends Google_Collection
  2615. {
  2616. protected $aclType = 'Google_Service_Storage_ObjectAccessControl';
  2617. protected $aclDataType = 'array';
  2618. public $bucket;
  2619. public $cacheControl;
  2620. public $componentCount;
  2621. public $contentDisposition;
  2622. public $contentEncoding;
  2623. public $contentLanguage;
  2624. public $contentType;
  2625. public $crc32c;
  2626. public $etag;
  2627. public $generation;
  2628. public $id;
  2629. public $kind;
  2630. public $md5Hash;
  2631. public $mediaLink;
  2632. public $metadata;
  2633. public $metageneration;
  2634. public $name;
  2635. protected $ownerType = 'Google_Service_Storage_StorageObjectOwner';
  2636. protected $ownerDataType = '';
  2637. public $selfLink;
  2638. public $size;
  2639. public $timeDeleted;
  2640. public $updated;
  2641. public function setAcl($acl)
  2642. {
  2643. $this->acl = $acl;
  2644. }
  2645. public function getAcl()
  2646. {
  2647. return $this->acl;
  2648. }
  2649. public function setBucket($bucket)
  2650. {
  2651. $this->bucket = $bucket;
  2652. }
  2653. public function getBucket()
  2654. {
  2655. return $this->bucket;
  2656. }
  2657. public function setCacheControl($cacheControl)
  2658. {
  2659. $this->cacheControl = $cacheControl;
  2660. }
  2661. public function getCacheControl()
  2662. {
  2663. return $this->cacheControl;
  2664. }
  2665. public function setComponentCount($componentCount)
  2666. {
  2667. $this->componentCount = $componentCount;
  2668. }
  2669. public function getComponentCount()
  2670. {
  2671. return $this->componentCount;
  2672. }
  2673. public function setContentDisposition($contentDisposition)
  2674. {
  2675. $this->contentDisposition = $contentDisposition;
  2676. }
  2677. public function getContentDisposition()
  2678. {
  2679. return $this->contentDisposition;
  2680. }
  2681. public function setContentEncoding($contentEncoding)
  2682. {
  2683. $this->contentEncoding = $contentEncoding;
  2684. }
  2685. public function getContentEncoding()
  2686. {
  2687. return $this->contentEncoding;
  2688. }
  2689. public function setContentLanguage($contentLanguage)
  2690. {
  2691. $this->contentLanguage = $contentLanguage;
  2692. }
  2693. public function getContentLanguage()
  2694. {
  2695. return $this->contentLanguage;
  2696. }
  2697. public function setContentType($contentType)
  2698. {
  2699. $this->contentType = $contentType;
  2700. }
  2701. public function getContentType()
  2702. {
  2703. return $this->contentType;
  2704. }
  2705. public function setCrc32c($crc32c)
  2706. {
  2707. $this->crc32c = $crc32c;
  2708. }
  2709. public function getCrc32c()
  2710. {
  2711. return $this->crc32c;
  2712. }
  2713. public function setEtag($etag)
  2714. {
  2715. $this->etag = $etag;
  2716. }
  2717. public function getEtag()
  2718. {
  2719. return $this->etag;
  2720. }
  2721. public function setGeneration($generation)
  2722. {
  2723. $this->generation = $generation;
  2724. }
  2725. public function getGeneration()
  2726. {
  2727. return $this->generation;
  2728. }
  2729. public function setId($id)
  2730. {
  2731. $this->id = $id;
  2732. }
  2733. public function getId()
  2734. {
  2735. return $this->id;
  2736. }
  2737. public function setKind($kind)
  2738. {
  2739. $this->kind = $kind;
  2740. }
  2741. public function getKind()
  2742. {
  2743. return $this->kind;
  2744. }
  2745. public function setMd5Hash($md5Hash)
  2746. {
  2747. $this->md5Hash = $md5Hash;
  2748. }
  2749. public function getMd5Hash()
  2750. {
  2751. return $this->md5Hash;
  2752. }
  2753. public function setMediaLink($mediaLink)
  2754. {
  2755. $this->mediaLink = $mediaLink;
  2756. }
  2757. public function getMediaLink()
  2758. {
  2759. return $this->mediaLink;
  2760. }
  2761. public function setMetadata($metadata)
  2762. {
  2763. $this->metadata = $metadata;
  2764. }
  2765. public function getMetadata()
  2766. {
  2767. return $this->metadata;
  2768. }
  2769. public function setMetageneration($metageneration)
  2770. {
  2771. $this->metageneration = $metageneration;
  2772. }
  2773. public function getMetageneration()
  2774. {
  2775. return $this->metageneration;
  2776. }
  2777. public function setName($name)
  2778. {
  2779. $this->name = $name;
  2780. }
  2781. public function getName()
  2782. {
  2783. return $this->name;
  2784. }
  2785. public function setOwner(Google_Service_Storage_StorageObjectOwner $owner)
  2786. {
  2787. $this->owner = $owner;
  2788. }
  2789. public function getOwner()
  2790. {
  2791. return $this->owner;
  2792. }
  2793. public function setSelfLink($selfLink)
  2794. {
  2795. $this->selfLink = $selfLink;
  2796. }
  2797. public function getSelfLink()
  2798. {
  2799. return $this->selfLink;
  2800. }
  2801. public function setSize($size)
  2802. {
  2803. $this->size = $size;
  2804. }
  2805. public function getSize()
  2806. {
  2807. return $this->size;
  2808. }
  2809. public function setTimeDeleted($timeDeleted)
  2810. {
  2811. $this->timeDeleted = $timeDeleted;
  2812. }
  2813. public function getTimeDeleted()
  2814. {
  2815. return $this->timeDeleted;
  2816. }
  2817. public function setUpdated($updated)
  2818. {
  2819. $this->updated = $updated;
  2820. }
  2821. public function getUpdated()
  2822. {
  2823. return $this->updated;
  2824. }
  2825. }
  2826. class Google_Service_Storage_StorageObjectOwner extends Google_Model
  2827. {
  2828. public $entity;
  2829. public $entityId;
  2830. public function setEntity($entity)
  2831. {
  2832. $this->entity = $entity;
  2833. }
  2834. public function getEntity()
  2835. {
  2836. return $this->entity;
  2837. }
  2838. public function setEntityId($entityId)
  2839. {
  2840. $this->entityId = $entityId;
  2841. }
  2842. public function getEntityId()
  2843. {
  2844. return $this->entityId;
  2845. }
  2846. }