/includes/api-libs/Google/Service/Storage.php

  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. /** 
  19. * Service definition for Storage (v1). 
  20. * 
  21. * <p> 
  22. * Lets you store and retrieve potentially-large, immutable data objects.</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. /** View and manage your data across Google Cloud Platform services. */ 
  33. const CLOUD_PLATFORM = 
  34. "https://www.googleapis.com/auth/cloud-platform"; 
  35. /** Manage your data and permissions in Google Cloud Storage. */ 
  36. const DEVSTORAGE_FULL_CONTROL = 
  37. "https://www.googleapis.com/auth/devstorage.full_control"; 
  38. /** View your data in Google Cloud Storage. */ 
  39. const DEVSTORAGE_READ_ONLY = 
  40. "https://www.googleapis.com/auth/devstorage.read_only"; 
  41. /** Manage your data in Google Cloud Storage. */ 
  42. const DEVSTORAGE_READ_WRITE = 
  43. "https://www.googleapis.com/auth/devstorage.read_write"; 
  44.  
  45. public $bucketAccessControls; 
  46. public $buckets; 
  47. public $channels; 
  48. public $defaultObjectAccessControls; 
  49. public $objectAccessControls; 
  50. public $objects; 
  51.  
  52.  
  53. /** 
  54. * Constructs the internal representation of the Storage service. 
  55. * 
  56. * @param Google_Client $client 
  57. */ 
  58. public function __construct(Google_Client $client) 
  59. parent::__construct($client); 
  60. $this->servicePath = 'storage/v1/'; 
  61. $this->version = 'v1'; 
  62. $this->serviceName = 'storage'; 
  63.  
  64. $this->bucketAccessControls = new Google_Service_Storage_BucketAccessControls_Resource( 
  65. $this,  
  66. $this->serviceName,  
  67. 'bucketAccessControls',  
  68. array( 
  69. 'methods' => array( 
  70. 'delete' => array( 
  71. 'path' => 'b/{bucket}/acl/{entity}',  
  72. 'httpMethod' => 'DELETE',  
  73. 'parameters' => array( 
  74. 'bucket' => array( 
  75. 'location' => 'path',  
  76. 'type' => 'string',  
  77. 'required' => true,  
  78. ),  
  79. 'entity' => array( 
  80. 'location' => 'path',  
  81. 'type' => 'string',  
  82. 'required' => true,  
  83. ),  
  84. ),  
  85. ), 'get' => array( 
  86. 'path' => 'b/{bucket}/acl/{entity}',  
  87. 'httpMethod' => 'GET',  
  88. 'parameters' => array( 
  89. 'bucket' => array( 
  90. 'location' => 'path',  
  91. 'type' => 'string',  
  92. 'required' => true,  
  93. ),  
  94. 'entity' => array( 
  95. 'location' => 'path',  
  96. 'type' => 'string',  
  97. 'required' => true,  
  98. ),  
  99. ),  
  100. ), 'insert' => array( 
  101. 'path' => 'b/{bucket}/acl',  
  102. 'httpMethod' => 'POST',  
  103. 'parameters' => array( 
  104. 'bucket' => array( 
  105. 'location' => 'path',  
  106. 'type' => 'string',  
  107. 'required' => true,  
  108. ),  
  109. ),  
  110. ), 'list' => array( 
  111. 'path' => 'b/{bucket}/acl',  
  112. 'httpMethod' => 'GET',  
  113. 'parameters' => array( 
  114. 'bucket' => array( 
  115. 'location' => 'path',  
  116. 'type' => 'string',  
  117. 'required' => true,  
  118. ),  
  119. ),  
  120. ), 'patch' => array( 
  121. 'path' => 'b/{bucket}/acl/{entity}',  
  122. 'httpMethod' => 'PATCH',  
  123. 'parameters' => array( 
  124. 'bucket' => array( 
  125. 'location' => 'path',  
  126. 'type' => 'string',  
  127. 'required' => true,  
  128. ),  
  129. 'entity' => array( 
  130. 'location' => 'path',  
  131. 'type' => 'string',  
  132. 'required' => true,  
  133. ),  
  134. ),  
  135. ), 'update' => array( 
  136. 'path' => 'b/{bucket}/acl/{entity}',  
  137. 'httpMethod' => 'PUT',  
  138. 'parameters' => array( 
  139. 'bucket' => array( 
  140. 'location' => 'path',  
  141. 'type' => 'string',  
  142. 'required' => true,  
  143. ),  
  144. 'entity' => array( 
  145. 'location' => 'path',  
  146. 'type' => 'string',  
  147. 'required' => true,  
  148. ),  
  149. ),  
  150. ),  
  151. ); 
  152. $this->buckets = new Google_Service_Storage_Buckets_Resource( 
  153. $this,  
  154. $this->serviceName,  
  155. 'buckets',  
  156. array( 
  157. 'methods' => array( 
  158. 'delete' => array( 
  159. 'path' => 'b/{bucket}',  
  160. 'httpMethod' => 'DELETE',  
  161. 'parameters' => array( 
  162. 'bucket' => array( 
  163. 'location' => 'path',  
  164. 'type' => 'string',  
  165. 'required' => true,  
  166. ),  
  167. 'ifMetagenerationMatch' => array( 
  168. 'location' => 'query',  
  169. 'type' => 'string',  
  170. ),  
  171. 'ifMetagenerationNotMatch' => array( 
  172. 'location' => 'query',  
  173. 'type' => 'string',  
  174. ),  
  175. ),  
  176. ), 'get' => array( 
  177. 'path' => 'b/{bucket}',  
  178. 'httpMethod' => 'GET',  
  179. 'parameters' => array( 
  180. 'bucket' => array( 
  181. 'location' => 'path',  
  182. 'type' => 'string',  
  183. 'required' => true,  
  184. ),  
  185. 'ifMetagenerationMatch' => array( 
  186. 'location' => 'query',  
  187. 'type' => 'string',  
  188. ),  
  189. 'ifMetagenerationNotMatch' => array( 
  190. 'location' => 'query',  
  191. 'type' => 'string',  
  192. ),  
  193. 'projection' => array( 
  194. 'location' => 'query',  
  195. 'type' => 'string',  
  196. ),  
  197. ),  
  198. ), 'insert' => array( 
  199. 'path' => 'b',  
  200. 'httpMethod' => 'POST',  
  201. 'parameters' => array( 
  202. 'project' => array( 
  203. 'location' => 'query',  
  204. 'type' => 'string',  
  205. 'required' => true,  
  206. ),  
  207. 'predefinedAcl' => array( 
  208. 'location' => 'query',  
  209. 'type' => 'string',  
  210. ),  
  211. 'projection' => array( 
  212. 'location' => 'query',  
  213. 'type' => 'string',  
  214. ),  
  215. 'predefinedDefaultObjectAcl' => array( 
  216. 'location' => 'query',  
  217. 'type' => 'string',  
  218. ),  
  219. ),  
  220. ), 'list' => array( 
  221. 'path' => 'b',  
  222. 'httpMethod' => 'GET',  
  223. 'parameters' => array( 
  224. 'project' => array( 
  225. 'location' => 'query',  
  226. 'type' => 'string',  
  227. 'required' => true,  
  228. ),  
  229. 'pageToken' => array( 
  230. 'location' => 'query',  
  231. 'type' => 'string',  
  232. ),  
  233. 'prefix' => array( 
  234. 'location' => 'query',  
  235. 'type' => 'string',  
  236. ),  
  237. 'projection' => array( 
  238. 'location' => 'query',  
  239. 'type' => 'string',  
  240. ),  
  241. 'maxResults' => array( 
  242. 'location' => 'query',  
  243. 'type' => 'integer',  
  244. ),  
  245. ),  
  246. ), 'patch' => array( 
  247. 'path' => 'b/{bucket}',  
  248. 'httpMethod' => 'PATCH',  
  249. 'parameters' => array( 
  250. 'bucket' => array( 
  251. 'location' => 'path',  
  252. 'type' => 'string',  
  253. 'required' => true,  
  254. ),  
  255. 'projection' => array( 
  256. 'location' => 'query',  
  257. 'type' => 'string',  
  258. ),  
  259. 'ifMetagenerationMatch' => array( 
  260. 'location' => 'query',  
  261. 'type' => 'string',  
  262. ),  
  263. 'predefinedDefaultObjectAcl' => array( 
  264. 'location' => 'query',  
  265. 'type' => 'string',  
  266. ),  
  267. 'predefinedAcl' => array( 
  268. 'location' => 'query',  
  269. 'type' => 'string',  
  270. ),  
  271. 'ifMetagenerationNotMatch' => array( 
  272. 'location' => 'query',  
  273. 'type' => 'string',  
  274. ),  
  275. ),  
  276. ), 'update' => array( 
  277. 'path' => 'b/{bucket}',  
  278. 'httpMethod' => 'PUT',  
  279. 'parameters' => array( 
  280. 'bucket' => array( 
  281. 'location' => 'path',  
  282. 'type' => 'string',  
  283. 'required' => true,  
  284. ),  
  285. 'projection' => array( 
  286. 'location' => 'query',  
  287. 'type' => 'string',  
  288. ),  
  289. 'ifMetagenerationMatch' => array( 
  290. 'location' => 'query',  
  291. 'type' => 'string',  
  292. ),  
  293. 'predefinedDefaultObjectAcl' => array( 
  294. 'location' => 'query',  
  295. 'type' => 'string',  
  296. ),  
  297. 'predefinedAcl' => array( 
  298. 'location' => 'query',  
  299. 'type' => 'string',  
  300. ),  
  301. 'ifMetagenerationNotMatch' => array( 
  302. 'location' => 'query',  
  303. 'type' => 'string',  
  304. ),  
  305. ),  
  306. ),  
  307. ); 
  308. $this->channels = new Google_Service_Storage_Channels_Resource( 
  309. $this,  
  310. $this->serviceName,  
  311. 'channels',  
  312. array( 
  313. 'methods' => array( 
  314. 'stop' => array( 
  315. 'path' => 'channels/stop',  
  316. 'httpMethod' => 'POST',  
  317. 'parameters' => array(),  
  318. ),  
  319. ); 
  320. $this->defaultObjectAccessControls = new Google_Service_Storage_DefaultObjectAccessControls_Resource( 
  321. $this,  
  322. $this->serviceName,  
  323. 'defaultObjectAccessControls',  
  324. array( 
  325. 'methods' => array( 
  326. 'delete' => array( 
  327. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',  
  328. 'httpMethod' => 'DELETE',  
  329. 'parameters' => array( 
  330. 'bucket' => array( 
  331. 'location' => 'path',  
  332. 'type' => 'string',  
  333. 'required' => true,  
  334. ),  
  335. 'entity' => array( 
  336. 'location' => 'path',  
  337. 'type' => 'string',  
  338. 'required' => true,  
  339. ),  
  340. ),  
  341. ), 'get' => array( 
  342. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',  
  343. 'httpMethod' => 'GET',  
  344. 'parameters' => array( 
  345. 'bucket' => array( 
  346. 'location' => 'path',  
  347. 'type' => 'string',  
  348. 'required' => true,  
  349. ),  
  350. 'entity' => array( 
  351. 'location' => 'path',  
  352. 'type' => 'string',  
  353. 'required' => true,  
  354. ),  
  355. ),  
  356. ), 'insert' => array( 
  357. 'path' => 'b/{bucket}/defaultObjectAcl',  
  358. 'httpMethod' => 'POST',  
  359. 'parameters' => array( 
  360. 'bucket' => array( 
  361. 'location' => 'path',  
  362. 'type' => 'string',  
  363. 'required' => true,  
  364. ),  
  365. ),  
  366. ), 'list' => array( 
  367. 'path' => 'b/{bucket}/defaultObjectAcl',  
  368. 'httpMethod' => 'GET',  
  369. 'parameters' => array( 
  370. 'bucket' => array( 
  371. 'location' => 'path',  
  372. 'type' => 'string',  
  373. 'required' => true,  
  374. ),  
  375. 'ifMetagenerationMatch' => array( 
  376. 'location' => 'query',  
  377. 'type' => 'string',  
  378. ),  
  379. 'ifMetagenerationNotMatch' => array( 
  380. 'location' => 'query',  
  381. 'type' => 'string',  
  382. ),  
  383. ),  
  384. ), 'patch' => array( 
  385. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',  
  386. 'httpMethod' => 'PATCH',  
  387. 'parameters' => array( 
  388. 'bucket' => array( 
  389. 'location' => 'path',  
  390. 'type' => 'string',  
  391. 'required' => true,  
  392. ),  
  393. 'entity' => array( 
  394. 'location' => 'path',  
  395. 'type' => 'string',  
  396. 'required' => true,  
  397. ),  
  398. ),  
  399. ), 'update' => array( 
  400. 'path' => 'b/{bucket}/defaultObjectAcl/{entity}',  
  401. 'httpMethod' => 'PUT',  
  402. 'parameters' => array( 
  403. 'bucket' => 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. ),  
  414. ),  
  415. ); 
  416. $this->objectAccessControls = new Google_Service_Storage_ObjectAccessControls_Resource( 
  417. $this,  
  418. $this->serviceName,  
  419. 'objectAccessControls',  
  420. array( 
  421. 'methods' => array( 
  422. 'delete' => array( 
  423. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',  
  424. 'httpMethod' => 'DELETE',  
  425. 'parameters' => array( 
  426. 'bucket' => array( 
  427. 'location' => 'path',  
  428. 'type' => 'string',  
  429. 'required' => true,  
  430. ),  
  431. 'object' => array( 
  432. 'location' => 'path',  
  433. 'type' => 'string',  
  434. 'required' => true,  
  435. ),  
  436. 'entity' => array( 
  437. 'location' => 'path',  
  438. 'type' => 'string',  
  439. 'required' => true,  
  440. ),  
  441. 'generation' => array( 
  442. 'location' => 'query',  
  443. 'type' => 'string',  
  444. ),  
  445. ),  
  446. ), 'get' => array( 
  447. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',  
  448. 'httpMethod' => 'GET',  
  449. 'parameters' => array( 
  450. 'bucket' => array( 
  451. 'location' => 'path',  
  452. 'type' => 'string',  
  453. 'required' => true,  
  454. ),  
  455. 'object' => array( 
  456. 'location' => 'path',  
  457. 'type' => 'string',  
  458. 'required' => true,  
  459. ),  
  460. 'entity' => array( 
  461. 'location' => 'path',  
  462. 'type' => 'string',  
  463. 'required' => true,  
  464. ),  
  465. 'generation' => array( 
  466. 'location' => 'query',  
  467. 'type' => 'string',  
  468. ),  
  469. ),  
  470. ), 'insert' => array( 
  471. 'path' => 'b/{bucket}/o/{object}/acl',  
  472. 'httpMethod' => 'POST',  
  473. 'parameters' => array( 
  474. 'bucket' => array( 
  475. 'location' => 'path',  
  476. 'type' => 'string',  
  477. 'required' => true,  
  478. ),  
  479. 'object' => array( 
  480. 'location' => 'path',  
  481. 'type' => 'string',  
  482. 'required' => true,  
  483. ),  
  484. 'generation' => array( 
  485. 'location' => 'query',  
  486. 'type' => 'string',  
  487. ),  
  488. ),  
  489. ), 'list' => array( 
  490. 'path' => 'b/{bucket}/o/{object}/acl',  
  491. 'httpMethod' => 'GET',  
  492. 'parameters' => array( 
  493. 'bucket' => array( 
  494. 'location' => 'path',  
  495. 'type' => 'string',  
  496. 'required' => true,  
  497. ),  
  498. 'object' => array( 
  499. 'location' => 'path',  
  500. 'type' => 'string',  
  501. 'required' => true,  
  502. ),  
  503. 'generation' => array( 
  504. 'location' => 'query',  
  505. 'type' => 'string',  
  506. ),  
  507. ),  
  508. ), 'patch' => array( 
  509. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',  
  510. 'httpMethod' => 'PATCH',  
  511. 'parameters' => array( 
  512. 'bucket' => array( 
  513. 'location' => 'path',  
  514. 'type' => 'string',  
  515. 'required' => true,  
  516. ),  
  517. 'object' => array( 
  518. 'location' => 'path',  
  519. 'type' => 'string',  
  520. 'required' => true,  
  521. ),  
  522. 'entity' => array( 
  523. 'location' => 'path',  
  524. 'type' => 'string',  
  525. 'required' => true,  
  526. ),  
  527. 'generation' => array( 
  528. 'location' => 'query',  
  529. 'type' => 'string',  
  530. ),  
  531. ),  
  532. ), 'update' => array( 
  533. 'path' => 'b/{bucket}/o/{object}/acl/{entity}',  
  534. 'httpMethod' => 'PUT',  
  535. 'parameters' => array( 
  536. 'bucket' => array( 
  537. 'location' => 'path',  
  538. 'type' => 'string',  
  539. 'required' => true,  
  540. ),  
  541. 'object' => array( 
  542. 'location' => 'path',  
  543. 'type' => 'string',  
  544. 'required' => true,  
  545. ),  
  546. 'entity' => array( 
  547. 'location' => 'path',  
  548. 'type' => 'string',  
  549. 'required' => true,  
  550. ),  
  551. 'generation' => array( 
  552. 'location' => 'query',  
  553. 'type' => 'string',  
  554. ),  
  555. ),  
  556. ),  
  557. ); 
  558. $this->objects = new Google_Service_Storage_Objects_Resource( 
  559. $this,  
  560. $this->serviceName,  
  561. 'objects',  
  562. array( 
  563. 'methods' => array( 
  564. 'compose' => array( 
  565. 'path' => 'b/{destinationBucket}/o/{destinationObject}/compose',  
  566. 'httpMethod' => 'POST',  
  567. 'parameters' => array( 
  568. 'destinationBucket' => array( 
  569. 'location' => 'path',  
  570. 'type' => 'string',  
  571. 'required' => true,  
  572. ),  
  573. 'destinationObject' => array( 
  574. 'location' => 'path',  
  575. 'type' => 'string',  
  576. 'required' => true,  
  577. ),  
  578. 'ifGenerationMatch' => array( 
  579. 'location' => 'query',  
  580. 'type' => 'string',  
  581. ),  
  582. 'ifMetagenerationMatch' => array( 
  583. 'location' => 'query',  
  584. 'type' => 'string',  
  585. ),  
  586. 'destinationPredefinedAcl' => array( 
  587. 'location' => 'query',  
  588. 'type' => 'string',  
  589. ),  
  590. ),  
  591. ), 'copy' => array( 
  592. 'path' => 'b/{sourceBucket}/o/{sourceObject}/copyTo/b/{destinationBucket}/o/{destinationObject}',  
  593. 'httpMethod' => 'POST',  
  594. 'parameters' => array( 
  595. 'sourceBucket' => array( 
  596. 'location' => 'path',  
  597. 'type' => 'string',  
  598. 'required' => true,  
  599. ),  
  600. 'sourceObject' => array( 
  601. 'location' => 'path',  
  602. 'type' => 'string',  
  603. 'required' => true,  
  604. ),  
  605. 'destinationBucket' => array( 
  606. 'location' => 'path',  
  607. 'type' => 'string',  
  608. 'required' => true,  
  609. ),  
  610. 'destinationObject' => array( 
  611. 'location' => 'path',  
  612. 'type' => 'string',  
  613. 'required' => true,  
  614. ),  
  615. 'ifSourceGenerationNotMatch' => array( 
  616. 'location' => 'query',  
  617. 'type' => 'string',  
  618. ),  
  619. 'ifGenerationNotMatch' => array( 
  620. 'location' => 'query',  
  621. 'type' => 'string',  
  622. ),  
  623. 'ifSourceMetagenerationNotMatch' => array( 
  624. 'location' => 'query',  
  625. 'type' => 'string',  
  626. ),  
  627. 'ifMetagenerationMatch' => array( 
  628. 'location' => 'query',  
  629. 'type' => 'string',  
  630. ),  
  631. 'sourceGeneration' => array( 
  632. 'location' => 'query',  
  633. 'type' => 'string',  
  634. ),  
  635. 'destinationPredefinedAcl' => array( 
  636. 'location' => 'query',  
  637. 'type' => 'string',  
  638. ),  
  639. 'ifSourceGenerationMatch' => array( 
  640. 'location' => 'query',  
  641. 'type' => 'string',  
  642. ),  
  643. 'ifSourceMetagenerationMatch' => array( 
  644. 'location' => 'query',  
  645. 'type' => 'string',  
  646. ),  
  647. 'ifGenerationMatch' => array( 
  648. 'location' => 'query',  
  649. 'type' => 'string',  
  650. ),  
  651. 'ifMetagenerationNotMatch' => array( 
  652. 'location' => 'query',  
  653. 'type' => 'string',  
  654. ),  
  655. 'projection' => array( 
  656. 'location' => 'query',  
  657. 'type' => 'string',  
  658. ),  
  659. ),  
  660. ), 'delete' => array( 
  661. 'path' => 'b/{bucket}/o/{object}',  
  662. 'httpMethod' => 'DELETE',  
  663. 'parameters' => array( 
  664. 'bucket' => array( 
  665. 'location' => 'path',  
  666. 'type' => 'string',  
  667. 'required' => true,  
  668. ),  
  669. 'object' => array( 
  670. 'location' => 'path',  
  671. 'type' => 'string',  
  672. 'required' => true,  
  673. ),  
  674. 'ifGenerationNotMatch' => array( 
  675. 'location' => 'query',  
  676. 'type' => 'string',  
  677. ),  
  678. 'generation' => array( 
  679. 'location' => 'query',  
  680. 'type' => 'string',  
  681. ),  
  682. 'ifMetagenerationMatch' => array( 
  683. 'location' => 'query',  
  684. 'type' => 'string',  
  685. ),  
  686. 'ifGenerationMatch' => array( 
  687. 'location' => 'query',  
  688. 'type' => 'string',  
  689. ),  
  690. 'ifMetagenerationNotMatch' => array( 
  691. 'location' => 'query',  
  692. 'type' => 'string',  
  693. ),  
  694. ),  
  695. ), 'get' => array( 
  696. 'path' => 'b/{bucket}/o/{object}',  
  697. 'httpMethod' => 'GET',  
  698. 'parameters' => array( 
  699. 'bucket' => array( 
  700. 'location' => 'path',  
  701. 'type' => 'string',  
  702. 'required' => true,  
  703. ),  
  704. 'object' => array( 
  705. 'location' => 'path',  
  706. 'type' => 'string',  
  707. 'required' => true,  
  708. ),  
  709. 'ifGenerationNotMatch' => array( 
  710. 'location' => 'query',  
  711. 'type' => 'string',  
  712. ),  
  713. 'generation' => 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. 'projection' => array( 
  730. 'location' => 'query',  
  731. 'type' => 'string',  
  732. ),  
  733. ),  
  734. ), 'insert' => array( 
  735. 'path' => 'b/{bucket}/o',  
  736. 'httpMethod' => 'POST',  
  737. 'parameters' => array( 
  738. 'bucket' => array( 
  739. 'location' => 'path',  
  740. 'type' => 'string',  
  741. 'required' => true,  
  742. ),  
  743. 'predefinedAcl' => array( 
  744. 'location' => 'query',  
  745. 'type' => 'string',  
  746. ),  
  747. 'projection' => array( 
  748. 'location' => 'query',  
  749. 'type' => 'string',  
  750. ),  
  751. 'ifGenerationNotMatch' => array( 
  752. 'location' => 'query',  
  753. 'type' => 'string',  
  754. ),  
  755. 'ifMetagenerationMatch' => array( 
  756. 'location' => 'query',  
  757. 'type' => 'string',  
  758. ),  
  759. 'contentEncoding' => array( 
  760. 'location' => 'query',  
  761. 'type' => 'string',  
  762. ),  
  763. 'ifGenerationMatch' => array( 
  764. 'location' => 'query',  
  765. 'type' => 'string',  
  766. ),  
  767. 'ifMetagenerationNotMatch' => array( 
  768. 'location' => 'query',  
  769. 'type' => 'string',  
  770. ),  
  771. 'name' => array( 
  772. 'location' => 'query',  
  773. 'type' => 'string',  
  774. ),  
  775. ),  
  776. ), 'list' => array( 
  777. 'path' => 'b/{bucket}/o',  
  778. 'httpMethod' => 'GET',  
  779. 'parameters' => array( 
  780. 'bucket' => array( 
  781. 'location' => 'path',  
  782. 'type' => 'string',  
  783. 'required' => true,  
  784. ),  
  785. 'projection' => array( 
  786. 'location' => 'query',  
  787. 'type' => 'string',  
  788. ),  
  789. 'versions' => array( 
  790. 'location' => 'query',  
  791. 'type' => 'boolean',  
  792. ),  
  793. 'prefix' => array( 
  794. 'location' => 'query',  
  795. 'type' => 'string',  
  796. ),  
  797. 'maxResults' => array( 
  798. 'location' => 'query',  
  799. 'type' => 'integer',  
  800. ),  
  801. 'pageToken' => array( 
  802. 'location' => 'query',  
  803. 'type' => 'string',  
  804. ),  
  805. 'delimiter' => array( 
  806. 'location' => 'query',  
  807. 'type' => 'string',  
  808. ),  
  809. ),  
  810. ), 'patch' => array( 
  811. 'path' => 'b/{bucket}/o/{object}',  
  812. 'httpMethod' => 'PATCH',  
  813. 'parameters' => array( 
  814. 'bucket' => array( 
  815. 'location' => 'path',  
  816. 'type' => 'string',  
  817. 'required' => true,  
  818. ),  
  819. 'object' => array( 
  820. 'location' => 'path',  
  821. 'type' => 'string',  
  822. 'required' => true,  
  823. ),  
  824. 'predefinedAcl' => array( 
  825. 'location' => 'query',  
  826. 'type' => 'string',  
  827. ),  
  828. 'ifGenerationNotMatch' => array( 
  829. 'location' => 'query',  
  830. 'type' => 'string',  
  831. ),  
  832. 'generation' => array( 
  833. 'location' => 'query',  
  834. 'type' => 'string',  
  835. ),  
  836. 'ifMetagenerationMatch' => array( 
  837. 'location' => 'query',  
  838. 'type' => 'string',  
  839. ),  
  840. 'ifGenerationMatch' => array( 
  841. 'location' => 'query',  
  842. 'type' => 'string',  
  843. ),  
  844. 'ifMetagenerationNotMatch' => array( 
  845. 'location' => 'query',  
  846. 'type' => 'string',  
  847. ),  
  848. 'projection' => array( 
  849. 'location' => 'query',  
  850. 'type' => 'string',  
  851. ),  
  852. ),  
  853. ), 'update' => array( 
  854. 'path' => 'b/{bucket}/o/{object}',  
  855. 'httpMethod' => 'PUT',  
  856. 'parameters' => array( 
  857. 'bucket' => array( 
  858. 'location' => 'path',  
  859. 'type' => 'string',  
  860. 'required' => true,  
  861. ),  
  862. 'object' => array( 
  863. 'location' => 'path',  
  864. 'type' => 'string',  
  865. 'required' => true,  
  866. ),  
  867. 'predefinedAcl' => array( 
  868. 'location' => 'query',  
  869. 'type' => 'string',  
  870. ),  
  871. 'ifGenerationNotMatch' => array( 
  872. 'location' => 'query',  
  873. 'type' => 'string',  
  874. ),  
  875. 'generation' => array( 
  876. 'location' => 'query',  
  877. 'type' => 'string',  
  878. ),  
  879. 'ifMetagenerationMatch' => array( 
  880. 'location' => 'query',  
  881. 'type' => 'string',  
  882. ),  
  883. 'ifGenerationMatch' => array( 
  884. 'location' => 'query',  
  885. 'type' => 'string',  
  886. ),  
  887. 'ifMetagenerationNotMatch' => array( 
  888. 'location' => 'query',  
  889. 'type' => 'string',  
  890. ),  
  891. 'projection' => array( 
  892. 'location' => 'query',  
  893. 'type' => 'string',  
  894. ),  
  895. ),  
  896. ), 'watchAll' => array( 
  897. 'path' => 'b/{bucket}/o/watch',  
  898. 'httpMethod' => 'POST',  
  899. 'parameters' => array( 
  900. 'bucket' => array( 
  901. 'location' => 'path',  
  902. 'type' => 'string',  
  903. 'required' => true,  
  904. ),  
  905. 'projection' => array( 
  906. 'location' => 'query',  
  907. 'type' => 'string',  
  908. ),  
  909. 'versions' => array( 
  910. 'location' => 'query',  
  911. 'type' => 'boolean',  
  912. ),  
  913. 'prefix' => array( 
  914. 'location' => 'query',  
  915. 'type' => 'string',  
  916. ),  
  917. 'maxResults' => array( 
  918. 'location' => 'query',  
  919. 'type' => 'integer',  
  920. ),  
  921. 'pageToken' => array( 
  922. 'location' => 'query',  
  923. 'type' => 'string',  
  924. ),  
  925. 'delimiter' => array( 
  926. 'location' => 'query',  
  927. 'type' => 'string',  
  928. ),  
  929. ),  
  930. ),  
  931. ); 
  932.  
  933.  
  934. /** 
  935. * The "bucketAccessControls" collection of methods. 
  936. * Typical usage is: 
  937. * <code> 
  938. * $storageService = new Google_Service_Storage(...); 
  939. * $bucketAccessControls = $storageService->bucketAccessControls; 
  940. * </code> 
  941. */ 
  942. class Google_Service_Storage_BucketAccessControls_Resource extends Google_Service_Resource 
  943.  
  944. /** 
  945. * Permanently deletes the ACL entry for the specified entity on the specified 
  946. * bucket. (bucketAccessControls.delete) 
  947. * 
  948. * @param string $bucket Name of a bucket. 
  949. * @param string $entity The entity holding the permission. Can be user-userId,  
  950. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  951. * allAuthenticatedUsers. 
  952. * @param array $optParams Optional parameters. 
  953. */ 
  954. public function delete($bucket, $entity, $optParams = array()) 
  955. $params = array('bucket' => $bucket, 'entity' => $entity); 
  956. $params = array_merge($params, $optParams); 
  957. return $this->call('delete', array($params)); 
  958.  
  959. /** 
  960. * Returns the ACL entry for the specified entity on the specified bucket. 
  961. * (bucketAccessControls.get) 
  962. * 
  963. * @param string $bucket Name of a bucket. 
  964. * @param string $entity The entity holding the permission. Can be user-userId,  
  965. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  966. * allAuthenticatedUsers. 
  967. * @param array $optParams Optional parameters. 
  968. * @return Google_Service_Storage_BucketAccessControl 
  969. */ 
  970. public function get($bucket, $entity, $optParams = array()) 
  971. $params = array('bucket' => $bucket, 'entity' => $entity); 
  972. $params = array_merge($params, $optParams); 
  973. return $this->call('get', array($params), "Google_Service_Storage_BucketAccessControl"); 
  974.  
  975. /** 
  976. * Creates a new ACL entry on the specified bucket. 
  977. * (bucketAccessControls.insert) 
  978. * 
  979. * @param string $bucket Name of a bucket. 
  980. * @param Google_BucketAccessControl $postBody 
  981. * @param array $optParams Optional parameters. 
  982. * @return Google_Service_Storage_BucketAccessControl 
  983. */ 
  984. public function insert($bucket, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) 
  985. $params = array('bucket' => $bucket, 'postBody' => $postBody); 
  986. $params = array_merge($params, $optParams); 
  987. return $this->call('insert', array($params), "Google_Service_Storage_BucketAccessControl"); 
  988.  
  989. /** 
  990. * Retrieves ACL entries on the specified bucket. 
  991. * (bucketAccessControls.listBucketAccessControls) 
  992. * 
  993. * @param string $bucket Name of a bucket. 
  994. * @param array $optParams Optional parameters. 
  995. * @return Google_Service_Storage_BucketAccessControls 
  996. */ 
  997. public function listBucketAccessControls($bucket, $optParams = array()) 
  998. $params = array('bucket' => $bucket); 
  999. $params = array_merge($params, $optParams); 
  1000. return $this->call('list', array($params), "Google_Service_Storage_BucketAccessControls"); 
  1001.  
  1002. /** 
  1003. * Updates an ACL entry on the specified bucket. This method supports patch 
  1004. * semantics. (bucketAccessControls.patch) 
  1005. * 
  1006. * @param string $bucket Name of a bucket. 
  1007. * @param string $entity The entity holding the permission. Can be user-userId,  
  1008. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1009. * allAuthenticatedUsers. 
  1010. * @param Google_BucketAccessControl $postBody 
  1011. * @param array $optParams Optional parameters. 
  1012. * @return Google_Service_Storage_BucketAccessControl 
  1013. */ 
  1014. public function patch($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) 
  1015. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  1016. $params = array_merge($params, $optParams); 
  1017. return $this->call('patch', array($params), "Google_Service_Storage_BucketAccessControl"); 
  1018.  
  1019. /** 
  1020. * Updates an ACL entry on the specified bucket. (bucketAccessControls.update) 
  1021. * 
  1022. * @param string $bucket Name of a bucket. 
  1023. * @param string $entity The entity holding the permission. Can be user-userId,  
  1024. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1025. * allAuthenticatedUsers. 
  1026. * @param Google_BucketAccessControl $postBody 
  1027. * @param array $optParams Optional parameters. 
  1028. * @return Google_Service_Storage_BucketAccessControl 
  1029. */ 
  1030. public function update($bucket, $entity, Google_Service_Storage_BucketAccessControl $postBody, $optParams = array()) 
  1031. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  1032. $params = array_merge($params, $optParams); 
  1033. return $this->call('update', array($params), "Google_Service_Storage_BucketAccessControl"); 
  1034.  
  1035. /** 
  1036. * The "buckets" collection of methods. 
  1037. * Typical usage is: 
  1038. * <code> 
  1039. * $storageService = new Google_Service_Storage(...); 
  1040. * $buckets = $storageService->buckets; 
  1041. * </code> 
  1042. */ 
  1043. class Google_Service_Storage_Buckets_Resource extends Google_Service_Resource 
  1044.  
  1045. /** 
  1046. * Permanently deletes an empty bucket. (buckets.delete) 
  1047. * 
  1048. * @param string $bucket Name of a bucket. 
  1049. * @param array $optParams Optional parameters. 
  1050. * 
  1051. * @opt_param string ifMetagenerationMatch If set, only deletes the bucket if 
  1052. * its metageneration matches this value. 
  1053. * @opt_param string ifMetagenerationNotMatch If set, only deletes the bucket if 
  1054. * its metageneration does not match this value. 
  1055. */ 
  1056. public function delete($bucket, $optParams = array()) 
  1057. $params = array('bucket' => $bucket); 
  1058. $params = array_merge($params, $optParams); 
  1059. return $this->call('delete', array($params)); 
  1060.  
  1061. /** 
  1062. * Returns metadata for the specified bucket. (buckets.get) 
  1063. * 
  1064. * @param string $bucket Name of a bucket. 
  1065. * @param array $optParams Optional parameters. 
  1066. * 
  1067. * @opt_param string ifMetagenerationMatch Makes the return of the bucket 
  1068. * metadata conditional on whether the bucket's current metageneration matches 
  1069. * the given value. 
  1070. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket 
  1071. * metadata conditional on whether the bucket's current metageneration does not 
  1072. * match the given value. 
  1073. * @opt_param string projection Set of properties to return. Defaults to noAcl. 
  1074. * @return Google_Service_Storage_Bucket 
  1075. */ 
  1076. public function get($bucket, $optParams = array()) 
  1077. $params = array('bucket' => $bucket); 
  1078. $params = array_merge($params, $optParams); 
  1079. return $this->call('get', array($params), "Google_Service_Storage_Bucket"); 
  1080.  
  1081. /** 
  1082. * Creates a new bucket. (buckets.insert) 
  1083. * 
  1084. * @param string $project A valid API project identifier. 
  1085. * @param Google_Bucket $postBody 
  1086. * @param array $optParams Optional parameters. 
  1087. * 
  1088. * @opt_param string predefinedAcl Apply a predefined set of access controls to 
  1089. * this bucket. 
  1090. * @opt_param string projection Set of properties to return. Defaults to noAcl,  
  1091. * unless the bucket resource specifies acl or defaultObjectAcl properties, when 
  1092. * it defaults to full. 
  1093. * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of 
  1094. * default object access controls to this bucket. 
  1095. * @return Google_Service_Storage_Bucket 
  1096. */ 
  1097. public function insert($project, Google_Service_Storage_Bucket $postBody, $optParams = array()) 
  1098. $params = array('project' => $project, 'postBody' => $postBody); 
  1099. $params = array_merge($params, $optParams); 
  1100. return $this->call('insert', array($params), "Google_Service_Storage_Bucket"); 
  1101.  
  1102. /** 
  1103. * Retrieves a list of buckets for a given project. (buckets.listBuckets) 
  1104. * 
  1105. * @param string $project A valid API project identifier. 
  1106. * @param array $optParams Optional parameters. 
  1107. * 
  1108. * @opt_param string pageToken A previously-returned page token representing 
  1109. * part of the larger set of results to view. 
  1110. * @opt_param string prefix Filter results to buckets whose names begin with 
  1111. * this prefix. 
  1112. * @opt_param string projection Set of properties to return. Defaults to noAcl. 
  1113. * @opt_param string maxResults Maximum number of buckets to return. 
  1114. * @return Google_Service_Storage_Buckets 
  1115. */ 
  1116. public function listBuckets($project, $optParams = array()) 
  1117. $params = array('project' => $project); 
  1118. $params = array_merge($params, $optParams); 
  1119. return $this->call('list', array($params), "Google_Service_Storage_Buckets"); 
  1120.  
  1121. /** 
  1122. * Updates a bucket. This method supports patch semantics. (buckets.patch) 
  1123. * 
  1124. * @param string $bucket Name of a bucket. 
  1125. * @param Google_Bucket $postBody 
  1126. * @param array $optParams Optional parameters. 
  1127. * 
  1128. * @opt_param string projection Set of properties to return. Defaults to full. 
  1129. * @opt_param string ifMetagenerationMatch Makes the return of the bucket 
  1130. * metadata conditional on whether the bucket's current metageneration matches 
  1131. * the given value. 
  1132. * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of 
  1133. * default object access controls to this bucket. 
  1134. * @opt_param string predefinedAcl Apply a predefined set of access controls to 
  1135. * this bucket. 
  1136. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket 
  1137. * metadata conditional on whether the bucket's current metageneration does not 
  1138. * match the given value. 
  1139. * @return Google_Service_Storage_Bucket 
  1140. */ 
  1141. public function patch($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) 
  1142. $params = array('bucket' => $bucket, 'postBody' => $postBody); 
  1143. $params = array_merge($params, $optParams); 
  1144. return $this->call('patch', array($params), "Google_Service_Storage_Bucket"); 
  1145.  
  1146. /** 
  1147. * Updates a bucket. (buckets.update) 
  1148. * 
  1149. * @param string $bucket Name of a bucket. 
  1150. * @param Google_Bucket $postBody 
  1151. * @param array $optParams Optional parameters. 
  1152. * 
  1153. * @opt_param string projection Set of properties to return. Defaults to full. 
  1154. * @opt_param string ifMetagenerationMatch Makes the return of the bucket 
  1155. * metadata conditional on whether the bucket's current metageneration matches 
  1156. * the given value. 
  1157. * @opt_param string predefinedDefaultObjectAcl Apply a predefined set of 
  1158. * default object access controls to this bucket. 
  1159. * @opt_param string predefinedAcl Apply a predefined set of access controls to 
  1160. * this bucket. 
  1161. * @opt_param string ifMetagenerationNotMatch Makes the return of the bucket 
  1162. * metadata conditional on whether the bucket's current metageneration does not 
  1163. * match the given value. 
  1164. * @return Google_Service_Storage_Bucket 
  1165. */ 
  1166. public function update($bucket, Google_Service_Storage_Bucket $postBody, $optParams = array()) 
  1167. $params = array('bucket' => $bucket, 'postBody' => $postBody); 
  1168. $params = array_merge($params, $optParams); 
  1169. return $this->call('update', array($params), "Google_Service_Storage_Bucket"); 
  1170.  
  1171. /** 
  1172. * The "channels" collection of methods. 
  1173. * Typical usage is: 
  1174. * <code> 
  1175. * $storageService = new Google_Service_Storage(...); 
  1176. * $channels = $storageService->channels; 
  1177. * </code> 
  1178. */ 
  1179. class Google_Service_Storage_Channels_Resource extends Google_Service_Resource 
  1180.  
  1181. /** 
  1182. * Stop watching resources through this channel (channels.stop) 
  1183. * 
  1184. * @param Google_Channel $postBody 
  1185. * @param array $optParams Optional parameters. 
  1186. */ 
  1187. public function stop(Google_Service_Storage_Channel $postBody, $optParams = array()) 
  1188. $params = array('postBody' => $postBody); 
  1189. $params = array_merge($params, $optParams); 
  1190. return $this->call('stop', array($params)); 
  1191.  
  1192. /** 
  1193. * The "defaultObjectAccessControls" collection of methods. 
  1194. * Typical usage is: 
  1195. * <code> 
  1196. * $storageService = new Google_Service_Storage(...); 
  1197. * $defaultObjectAccessControls = $storageService->defaultObjectAccessControls; 
  1198. * </code> 
  1199. */ 
  1200. class Google_Service_Storage_DefaultObjectAccessControls_Resource extends Google_Service_Resource 
  1201.  
  1202. /** 
  1203. * Permanently deletes the default object ACL entry for the specified entity on 
  1204. * the specified bucket. (defaultObjectAccessControls.delete) 
  1205. * 
  1206. * @param string $bucket Name of a bucket. 
  1207. * @param string $entity The entity holding the permission. Can be user-userId,  
  1208. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1209. * allAuthenticatedUsers. 
  1210. * @param array $optParams Optional parameters. 
  1211. */ 
  1212. public function delete($bucket, $entity, $optParams = array()) 
  1213. $params = array('bucket' => $bucket, 'entity' => $entity); 
  1214. $params = array_merge($params, $optParams); 
  1215. return $this->call('delete', array($params)); 
  1216.  
  1217. /** 
  1218. * Returns the default object ACL entry for the specified entity on the 
  1219. * specified bucket. (defaultObjectAccessControls.get) 
  1220. * 
  1221. * @param string $bucket Name of a bucket. 
  1222. * @param string $entity The entity holding the permission. Can be user-userId,  
  1223. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1224. * allAuthenticatedUsers. 
  1225. * @param array $optParams Optional parameters. 
  1226. * @return Google_Service_Storage_ObjectAccessControl 
  1227. */ 
  1228. public function get($bucket, $entity, $optParams = array()) 
  1229. $params = array('bucket' => $bucket, 'entity' => $entity); 
  1230. $params = array_merge($params, $optParams); 
  1231. return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1232.  
  1233. /** 
  1234. * Creates a new default object ACL entry on the specified bucket. 
  1235. * (defaultObjectAccessControls.insert) 
  1236. * 
  1237. * @param string $bucket Name of a bucket. 
  1238. * @param Google_ObjectAccessControl $postBody 
  1239. * @param array $optParams Optional parameters. 
  1240. * @return Google_Service_Storage_ObjectAccessControl 
  1241. */ 
  1242. public function insert($bucket, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  1243. $params = array('bucket' => $bucket, 'postBody' => $postBody); 
  1244. $params = array_merge($params, $optParams); 
  1245. return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1246.  
  1247. /** 
  1248. * Retrieves default object ACL entries on the specified bucket. 
  1249. * (defaultObjectAccessControls.listDefaultObjectAccessControls) 
  1250. * 
  1251. * @param string $bucket Name of a bucket. 
  1252. * @param array $optParams Optional parameters. 
  1253. * 
  1254. * @opt_param string ifMetagenerationMatch If present, only return default ACL 
  1255. * listing if the bucket's current metageneration matches this value. 
  1256. * @opt_param string ifMetagenerationNotMatch If present, only return default 
  1257. * ACL listing if the bucket's current metageneration does not match the given 
  1258. * value. 
  1259. * @return Google_Service_Storage_ObjectAccessControls 
  1260. */ 
  1261. public function listDefaultObjectAccessControls($bucket, $optParams = array()) 
  1262. $params = array('bucket' => $bucket); 
  1263. $params = array_merge($params, $optParams); 
  1264. return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); 
  1265.  
  1266. /** 
  1267. * Updates a default object ACL entry on the specified bucket. This method 
  1268. * supports patch semantics. (defaultObjectAccessControls.patch) 
  1269. * 
  1270. * @param string $bucket Name of a bucket. 
  1271. * @param string $entity The entity holding the permission. Can be user-userId,  
  1272. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1273. * allAuthenticatedUsers. 
  1274. * @param Google_ObjectAccessControl $postBody 
  1275. * @param array $optParams Optional parameters. 
  1276. * @return Google_Service_Storage_ObjectAccessControl 
  1277. */ 
  1278. public function patch($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  1279. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  1280. $params = array_merge($params, $optParams); 
  1281. return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1282.  
  1283. /** 
  1284. * Updates a default object ACL entry on the specified bucket. 
  1285. * (defaultObjectAccessControls.update) 
  1286. * 
  1287. * @param string $bucket Name of a bucket. 
  1288. * @param string $entity The entity holding the permission. Can be user-userId,  
  1289. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1290. * allAuthenticatedUsers. 
  1291. * @param Google_ObjectAccessControl $postBody 
  1292. * @param array $optParams Optional parameters. 
  1293. * @return Google_Service_Storage_ObjectAccessControl 
  1294. */ 
  1295. public function update($bucket, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  1296. $params = array('bucket' => $bucket, 'entity' => $entity, 'postBody' => $postBody); 
  1297. $params = array_merge($params, $optParams); 
  1298. return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1299.  
  1300. /** 
  1301. * The "objectAccessControls" collection of methods. 
  1302. * Typical usage is: 
  1303. * <code> 
  1304. * $storageService = new Google_Service_Storage(...); 
  1305. * $objectAccessControls = $storageService->objectAccessControls; 
  1306. * </code> 
  1307. */ 
  1308. class Google_Service_Storage_ObjectAccessControls_Resource extends Google_Service_Resource 
  1309.  
  1310. /** 
  1311. * Permanently deletes the ACL entry for the specified entity on the specified 
  1312. * object. (objectAccessControls.delete) 
  1313. * 
  1314. * @param string $bucket Name of a bucket. 
  1315. * @param string $object Name of the object. 
  1316. * @param string $entity The entity holding the permission. Can be user-userId,  
  1317. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1318. * allAuthenticatedUsers. 
  1319. * @param array $optParams Optional parameters. 
  1320. * 
  1321. * @opt_param string generation If present, selects a specific revision of this 
  1322. * object (as opposed to the latest version, the default). 
  1323. */ 
  1324. public function delete($bucket, $object, $entity, $optParams = array()) 
  1325. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); 
  1326. $params = array_merge($params, $optParams); 
  1327. return $this->call('delete', array($params)); 
  1328.  
  1329. /** 
  1330. * Returns the ACL entry for the specified entity on the specified object. 
  1331. * (objectAccessControls.get) 
  1332. * 
  1333. * @param string $bucket Name of a bucket. 
  1334. * @param string $object Name of the object. 
  1335. * @param string $entity The entity holding the permission. Can be user-userId,  
  1336. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1337. * allAuthenticatedUsers. 
  1338. * @param array $optParams Optional parameters. 
  1339. * 
  1340. * @opt_param string generation If present, selects a specific revision of this 
  1341. * object (as opposed to the latest version, the default). 
  1342. * @return Google_Service_Storage_ObjectAccessControl 
  1343. */ 
  1344. public function get($bucket, $object, $entity, $optParams = array()) 
  1345. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity); 
  1346. $params = array_merge($params, $optParams); 
  1347. return $this->call('get', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1348.  
  1349. /** 
  1350. * Creates a new ACL entry on the specified object. 
  1351. * (objectAccessControls.insert) 
  1352. * 
  1353. * @param string $bucket Name of a bucket. 
  1354. * @param string $object Name of the object. 
  1355. * @param Google_ObjectAccessControl $postBody 
  1356. * @param array $optParams Optional parameters. 
  1357. * 
  1358. * @opt_param string generation If present, selects a specific revision of this 
  1359. * object (as opposed to the latest version, the default). 
  1360. * @return Google_Service_Storage_ObjectAccessControl 
  1361. */ 
  1362. public function insert($bucket, $object, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  1363. $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); 
  1364. $params = array_merge($params, $optParams); 
  1365. return $this->call('insert', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1366.  
  1367. /** 
  1368. * Retrieves ACL entries on the specified object. 
  1369. * (objectAccessControls.listObjectAccessControls) 
  1370. * 
  1371. * @param string $bucket Name of a bucket. 
  1372. * @param string $object Name of the object. 
  1373. * @param array $optParams Optional parameters. 
  1374. * 
  1375. * @opt_param string generation If present, selects a specific revision of this 
  1376. * object (as opposed to the latest version, the default). 
  1377. * @return Google_Service_Storage_ObjectAccessControls 
  1378. */ 
  1379. public function listObjectAccessControls($bucket, $object, $optParams = array()) 
  1380. $params = array('bucket' => $bucket, 'object' => $object); 
  1381. $params = array_merge($params, $optParams); 
  1382. return $this->call('list', array($params), "Google_Service_Storage_ObjectAccessControls"); 
  1383.  
  1384. /** 
  1385. * Updates an ACL entry on the specified object. This method supports patch 
  1386. * semantics. (objectAccessControls.patch) 
  1387. * 
  1388. * @param string $bucket Name of a bucket. 
  1389. * @param string $object Name of the object. 
  1390. * @param string $entity The entity holding the permission. Can be user-userId,  
  1391. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1392. * allAuthenticatedUsers. 
  1393. * @param Google_ObjectAccessControl $postBody 
  1394. * @param array $optParams Optional parameters. 
  1395. * 
  1396. * @opt_param string generation If present, selects a specific revision of this 
  1397. * object (as opposed to the latest version, the default). 
  1398. * @return Google_Service_Storage_ObjectAccessControl 
  1399. */ 
  1400. public function patch($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  1401. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); 
  1402. $params = array_merge($params, $optParams); 
  1403. return $this->call('patch', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1404.  
  1405. /** 
  1406. * Updates an ACL entry on the specified object. (objectAccessControls.update) 
  1407. * 
  1408. * @param string $bucket Name of a bucket. 
  1409. * @param string $object Name of the object. 
  1410. * @param string $entity The entity holding the permission. Can be user-userId,  
  1411. * user-emailAddress, group-groupId, group-emailAddress, allUsers, or 
  1412. * allAuthenticatedUsers. 
  1413. * @param Google_ObjectAccessControl $postBody 
  1414. * @param array $optParams Optional parameters. 
  1415. * 
  1416. * @opt_param string generation If present, selects a specific revision of this 
  1417. * object (as opposed to the latest version, the default). 
  1418. * @return Google_Service_Storage_ObjectAccessControl 
  1419. */ 
  1420. public function update($bucket, $object, $entity, Google_Service_Storage_ObjectAccessControl $postBody, $optParams = array()) 
  1421. $params = array('bucket' => $bucket, 'object' => $object, 'entity' => $entity, 'postBody' => $postBody); 
  1422. $params = array_merge($params, $optParams); 
  1423. return $this->call('update', array($params), "Google_Service_Storage_ObjectAccessControl"); 
  1424.  
  1425. /** 
  1426. * The "objects" collection of methods. 
  1427. * Typical usage is: 
  1428. * <code> 
  1429. * $storageService = new Google_Service_Storage(...); 
  1430. * $objects = $storageService->objects; 
  1431. * </code> 
  1432. */ 
  1433. class Google_Service_Storage_Objects_Resource extends Google_Service_Resource 
  1434.  
  1435. /** 
  1436. * Concatenates a list of existing objects into a new object in the same bucket. 
  1437. * (objects.compose) 
  1438. * 
  1439. * @param string $destinationBucket Name of the bucket in which to store the new 
  1440. * object. 
  1441. * @param string $destinationObject Name of the new object. 
  1442. * @param Google_ComposeRequest $postBody 
  1443. * @param array $optParams Optional parameters. 
  1444. * 
  1445. * @opt_param string ifGenerationMatch Makes the operation conditional on 
  1446. * whether the object's current generation matches the given value. 
  1447. * @opt_param string ifMetagenerationMatch Makes the operation conditional on 
  1448. * whether the object's current metageneration matches the given value. 
  1449. * @opt_param string destinationPredefinedAcl Apply a predefined set of access 
  1450. * controls to the destination object. 
  1451. * @return Google_Service_Storage_StorageObject 
  1452. */ 
  1453. public function compose($destinationBucket, $destinationObject, Google_Service_Storage_ComposeRequest $postBody, $optParams = array()) 
  1454. $params = array('destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); 
  1455. $params = array_merge($params, $optParams); 
  1456. return $this->call('compose', array($params), "Google_Service_Storage_StorageObject"); 
  1457.  
  1458. /** 
  1459. * Copies an object to a specified location. Optionally overrides metadata. 
  1460. * (objects.copy) 
  1461. * 
  1462. * @param string $sourceBucket Name of the bucket in which to find the source 
  1463. * object. 
  1464. * @param string $sourceObject Name of the source object. 
  1465. * @param string $destinationBucket Name of the bucket in which to store the new 
  1466. * object. Overrides the provided object metadata's bucket value, if any. 
  1467. * @param string $destinationObject Name of the new object. Required when the 
  1468. * object metadata is not otherwise provided. Overrides the object metadata's 
  1469. * name value, if any. 
  1470. * @param Google_StorageObject $postBody 
  1471. * @param array $optParams Optional parameters. 
  1472. * 
  1473. * @opt_param string ifSourceGenerationNotMatch Makes the operation conditional 
  1474. * on whether the source object's generation does not match the given value. 
  1475. * @opt_param string ifGenerationNotMatch Makes the operation conditional on 
  1476. * whether the destination object's current generation does not match the given 
  1477. * value. 
  1478. * @opt_param string ifSourceMetagenerationNotMatch Makes the operation 
  1479. * conditional on whether the source object's current metageneration does not 
  1480. * match the given value. 
  1481. * @opt_param string ifMetagenerationMatch Makes the operation conditional on 
  1482. * whether the destination object's current metageneration matches the given 
  1483. * value. 
  1484. * @opt_param string sourceGeneration If present, selects a specific revision of 
  1485. * the source object (as opposed to the latest version, the default). 
  1486. * @opt_param string destinationPredefinedAcl Apply a predefined set of access 
  1487. * controls to the destination object. 
  1488. * @opt_param string ifSourceGenerationMatch Makes the operation conditional on 
  1489. * whether the source object's generation matches the given value. 
  1490. * @opt_param string ifSourceMetagenerationMatch Makes the operation conditional 
  1491. * on whether the source object's current metageneration matches the given 
  1492. * value. 
  1493. * @opt_param string ifGenerationMatch Makes the operation conditional on 
  1494. * whether the destination object's current generation matches the given value. 
  1495. * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on 
  1496. * whether the destination object's current metageneration does not match the 
  1497. * given value. 
  1498. * @opt_param string projection Set of properties to return. Defaults to noAcl,  
  1499. * unless the object resource specifies the acl property, when it defaults to 
  1500. * full. 
  1501. * @return Google_Service_Storage_StorageObject 
  1502. */ 
  1503. public function copy($sourceBucket, $sourceObject, $destinationBucket, $destinationObject, Google_Service_Storage_StorageObject $postBody, $optParams = array()) 
  1504. $params = array('sourceBucket' => $sourceBucket, 'sourceObject' => $sourceObject, 'destinationBucket' => $destinationBucket, 'destinationObject' => $destinationObject, 'postBody' => $postBody); 
  1505. $params = array_merge($params, $optParams); 
  1506. return $this->call('copy', array($params), "Google_Service_Storage_StorageObject"); 
  1507.  
  1508. /** 
  1509. * Deletes an object and its metadata. Deletions are permanent if versioning is 
  1510. * not enabled for the bucket, or if the generation parameter is used. 
  1511. * (objects.delete) 
  1512. * 
  1513. * @param string $bucket Name of the bucket in which the object resides. 
  1514. * @param string $object Name of the object. 
  1515. * @param array $optParams Optional parameters. 
  1516. * 
  1517. * @opt_param string ifGenerationNotMatch Makes the operation conditional on 
  1518. * whether the object's current generation does not match the given value. 
  1519. * @opt_param string generation If present, permanently deletes a specific 
  1520. * revision of this object (as opposed to the latest version, the default). 
  1521. * @opt_param string ifMetagenerationMatch Makes the operation conditional on 
  1522. * whether the object's current metageneration matches the given value. 
  1523. * @opt_param string ifGenerationMatch Makes the operation conditional on 
  1524. * whether the object's current generation matches the given value. 
  1525. * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on 
  1526. * whether the object's current metageneration does not match the given value. 
  1527. */ 
  1528. public function delete($bucket, $object, $optParams = array()) 
  1529. $params = array('bucket' => $bucket, 'object' => $object); 
  1530. $params = array_merge($params, $optParams); 
  1531. return $this->call('delete', array($params)); 
  1532.  
  1533. /** 
  1534. * Retrieves an object or its metadata. (objects.get) 
  1535. * 
  1536. * @param string $bucket Name of the bucket in which the object resides. 
  1537. * @param string $object Name of the object. 
  1538. * @param array $optParams Optional parameters. 
  1539. * 
  1540. * @opt_param string ifGenerationNotMatch Makes the operation conditional on 
  1541. * whether the object's generation does not match the given value. 
  1542. * @opt_param string generation If present, selects a specific revision of this 
  1543. * object (as opposed to the latest version, the default). 
  1544. * @opt_param string ifMetagenerationMatch Makes the operation conditional on 
  1545. * whether the object's current metageneration matches the given value. 
  1546. * @opt_param string ifGenerationMatch Makes the operation conditional on 
  1547. * whether the object's generation matches the given value. 
  1548. * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on 
  1549. * whether the object's current metageneration does not match the given value. 
  1550. * @opt_param string projection Set of properties to return. Defaults to noAcl. 
  1551. * @return Google_Service_Storage_StorageObject 
  1552. */ 
  1553. public function get($bucket, $object, $optParams = array()) 
  1554. $params = array('bucket' => $bucket, 'object' => $object); 
  1555. $params = array_merge($params, $optParams); 
  1556. return $this->call('get', array($params), "Google_Service_Storage_StorageObject"); 
  1557.  
  1558. /** 
  1559. * Stores a new object and metadata. (objects.insert) 
  1560. * 
  1561. * @param string $bucket Name of the bucket in which to store the new object. 
  1562. * Overrides the provided object metadata's bucket value, if any. 
  1563. * @param Google_StorageObject $postBody 
  1564. * @param array $optParams Optional parameters. 
  1565. * 
  1566. * @opt_param string predefinedAcl Apply a predefined set of access controls to 
  1567. * this object. 
  1568. * @opt_param string projection Set of properties to return. Defaults to noAcl,  
  1569. * unless the object resource specifies the acl property, when it defaults to 
  1570. * full. 
  1571. * @opt_param string ifGenerationNotMatch Makes the operation conditional on 
  1572. * whether the object's current generation does not match the given value. 
  1573. * @opt_param string ifMetagenerationMatch Makes the operation conditional on 
  1574. * whether the object's current metageneration matches the given value. 
  1575. * @opt_param string contentEncoding If set, sets the contentEncoding property 
  1576. * of the final object to this value. Setting this parameter is equivalent to 
  1577. * setting the contentEncoding metadata property. This can be useful when 
  1578. * uploading an object with uploadType=media to indicate the encoding of the 
  1579. * content being uploaded. 
  1580. * @opt_param string ifGenerationMatch Makes the operation conditional on 
  1581. * whether the object's current generation matches the given value. 
  1582. * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on 
  1583. * whether the object's current metageneration does not match the given value. 
  1584. * @opt_param string name Name of the object. Required when the object metadata 
  1585. * is not otherwise provided. Overrides the object metadata's name value, if 
  1586. * any. 
  1587. * @return Google_Service_Storage_StorageObject 
  1588. */ 
  1589. public function insert($bucket, Google_Service_Storage_StorageObject $postBody, $optParams = array()) 
  1590. $params = array('bucket' => $bucket, 'postBody' => $postBody); 
  1591. $params = array_merge($params, $optParams); 
  1592. return $this->call('insert', array($params), "Google_Service_Storage_StorageObject"); 
  1593.  
  1594. /** 
  1595. * Retrieves a list of objects matching the criteria. (objects.listObjects) 
  1596. * 
  1597. * @param string $bucket Name of the bucket in which to look for objects. 
  1598. * @param array $optParams Optional parameters. 
  1599. * 
  1600. * @opt_param string projection Set of properties to return. Defaults to noAcl. 
  1601. * @opt_param bool versions If true, lists all versions of a file as distinct 
  1602. * results. 
  1603. * @opt_param string prefix Filter results to objects whose names begin with 
  1604. * this prefix. 
  1605. * @opt_param string maxResults Maximum number of items plus prefixes to return. 
  1606. * As duplicate prefixes are omitted, fewer total results may be returned than 
  1607. * requested. 
  1608. * @opt_param string pageToken A previously-returned page token representing 
  1609. * part of the larger set of results to view. 
  1610. * @opt_param string delimiter Returns results in a directory-like mode. items 
  1611. * will contain only objects whose names, aside from the prefix, do not contain 
  1612. * delimiter. Objects whose names, aside from the prefix, contain delimiter will 
  1613. * have their name, truncated after the delimiter, returned in prefixes. 
  1614. * Duplicate prefixes are omitted. 
  1615. * @return Google_Service_Storage_Objects 
  1616. */ 
  1617. public function listObjects($bucket, $optParams = array()) 
  1618. $params = array('bucket' => $bucket); 
  1619. $params = array_merge($params, $optParams); 
  1620. return $this->call('list', array($params), "Google_Service_Storage_Objects"); 
  1621.  
  1622. /** 
  1623. * Updates an object's metadata. This method supports patch semantics. 
  1624. * (objects.patch) 
  1625. * 
  1626. * @param string $bucket Name of the bucket in which the object resides. 
  1627. * @param string $object Name of the object. 
  1628. * @param Google_StorageObject $postBody 
  1629. * @param array $optParams Optional parameters. 
  1630. * 
  1631. * @opt_param string predefinedAcl Apply a predefined set of access controls to 
  1632. * this object. 
  1633. * @opt_param string ifGenerationNotMatch Makes the operation conditional on 
  1634. * whether the object's current generation does not match the given value. 
  1635. * @opt_param string generation If present, selects a specific revision of this 
  1636. * object (as opposed to the latest version, the default). 
  1637. * @opt_param string ifMetagenerationMatch Makes the operation conditional on 
  1638. * whether the object's current metageneration matches the given value. 
  1639. * @opt_param string ifGenerationMatch Makes the operation conditional on 
  1640. * whether the object's current generation matches the given value. 
  1641. * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on 
  1642. * whether the object's current metageneration does not match the given value. 
  1643. * @opt_param string projection Set of properties to return. Defaults to full. 
  1644. * @return Google_Service_Storage_StorageObject 
  1645. */ 
  1646. public function patch($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) 
  1647. $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); 
  1648. $params = array_merge($params, $optParams); 
  1649. return $this->call('patch', array($params), "Google_Service_Storage_StorageObject"); 
  1650.  
  1651. /** 
  1652. * Updates an object's metadata. (objects.update) 
  1653. * 
  1654. * @param string $bucket Name of the bucket in which the object resides. 
  1655. * @param string $object Name of the object. 
  1656. * @param Google_StorageObject $postBody 
  1657. * @param array $optParams Optional parameters. 
  1658. * 
  1659. * @opt_param string predefinedAcl Apply a predefined set of access controls to 
  1660. * this object. 
  1661. * @opt_param string ifGenerationNotMatch Makes the operation conditional on 
  1662. * whether the object's current generation does not match the given value. 
  1663. * @opt_param string generation If present, selects a specific revision of this 
  1664. * object (as opposed to the latest version, the default). 
  1665. * @opt_param string ifMetagenerationMatch Makes the operation conditional on 
  1666. * whether the object's current metageneration matches the given value. 
  1667. * @opt_param string ifGenerationMatch Makes the operation conditional on 
  1668. * whether the object's current generation matches the given value. 
  1669. * @opt_param string ifMetagenerationNotMatch Makes the operation conditional on 
  1670. * whether the object's current metageneration does not match the given value. 
  1671. * @opt_param string projection Set of properties to return. Defaults to full. 
  1672. * @return Google_Service_Storage_StorageObject 
  1673. */ 
  1674. public function update($bucket, $object, Google_Service_Storage_StorageObject $postBody, $optParams = array()) 
  1675. $params = array('bucket' => $bucket, 'object' => $object, 'postBody' => $postBody); 
  1676. $params = array_merge($params, $optParams); 
  1677. return $this->call('update', array($params), "Google_Service_Storage_StorageObject"); 
  1678.  
  1679. /** 
  1680. * Watch for changes on all objects in a bucket. (objects.watchAll) 
  1681. * 
  1682. * @param string $bucket Name of the bucket in which to look for objects. 
  1683. * @param Google_Channel $postBody 
  1684. * @param array $optParams Optional parameters. 
  1685. * 
  1686. * @opt_param string projection Set of properties to return. Defaults to noAcl. 
  1687. * @opt_param bool versions If true, lists all versions of a file as distinct 
  1688. * results. 
  1689. * @opt_param string prefix Filter results to objects whose names begin with 
  1690. * this prefix. 
  1691. * @opt_param string maxResults Maximum number of items plus prefixes to return. 
  1692. * As duplicate prefixes are omitted, fewer total results may be returned than 
  1693. * requested. 
  1694. * @opt_param string pageToken A previously-returned page token representing 
  1695. * part of the larger set of results to view. 
  1696. * @opt_param string delimiter Returns results in a directory-like mode. items 
  1697. * will contain only objects whose names, aside from the prefix, do not contain 
  1698. * delimiter. Objects whose names, aside from the prefix, contain delimiter will 
  1699. * have their name, truncated after the delimiter, returned in prefixes. 
  1700. * Duplicate prefixes are omitted. 
  1701. * @return Google_Service_Storage_Channel 
  1702. */ 
  1703. public function watchAll($bucket, Google_Service_Storage_Channel $postBody, $optParams = array()) 
  1704. $params = array('bucket' => $bucket, 'postBody' => $postBody); 
  1705. $params = array_merge($params, $optParams); 
  1706. return $this->call('watchAll', array($params), "Google_Service_Storage_Channel"); 
  1707.  
  1708.  
  1709.  
  1710.  
  1711. class Google_Service_Storage_Bucket extends Google_Collection 
  1712. protected $collection_key = 'defaultObjectAcl'; 
  1713. protected $internal_gapi_mappings = array( 
  1714. ); 
  1715. protected $aclType = 'Google_Service_Storage_BucketAccessControl'; 
  1716. protected $aclDataType = 'array'; 
  1717. protected $corsType = 'Google_Service_Storage_BucketCors'; 
  1718. protected $corsDataType = 'array'; 
  1719. protected $defaultObjectAclType = 'Google_Service_Storage_ObjectAccessControl'; 
  1720. protected $defaultObjectAclDataType = 'array'; 
  1721. public $etag; 
  1722. public $id; 
  1723. public $kind; 
  1724. protected $lifecycleType = 'Google_Service_Storage_BucketLifecycle'; 
  1725. protected $lifecycleDataType = ''; 
  1726. public $location; 
  1727. protected $loggingType = 'Google_Service_Storage_BucketLogging'; 
  1728. protected $loggingDataType = ''; 
  1729. public $metageneration; 
  1730. public $name; 
  1731. protected $ownerType = 'Google_Service_Storage_BucketOwner'; 
  1732. protected $ownerDataType = ''; 
  1733. public $projectNumber; 
  1734. public $selfLink; 
  1735. public $storageClass; 
  1736. public $timeCreated; 
  1737. protected $versioningType = 'Google_Service_Storage_BucketVersioning'; 
  1738. protected $versioningDataType = ''; 
  1739. protected $websiteType = 'Google_Service_Storage_BucketWebsite'; 
  1740. protected $websiteDataType = ''; 
  1741.  
  1742.  
  1743. public function setAcl($acl) 
  1744. $this->acl = $acl; 
  1745. public function getAcl() 
  1746. return $this->acl; 
  1747. public function setCors($cors) 
  1748. $this->cors = $cors; 
  1749. public function getCors() 
  1750. return $this->cors; 
  1751. public function setDefaultObjectAcl($defaultObjectAcl) 
  1752. $this->defaultObjectAcl = $defaultObjectAcl; 
  1753. public function getDefaultObjectAcl() 
  1754. return $this->defaultObjectAcl; 
  1755. public function setEtag($etag) 
  1756. $this->etag = $etag; 
  1757. public function getEtag() 
  1758. return $this->etag; 
  1759. public function setId($id) 
  1760. $this->id = $id; 
  1761. public function getId() 
  1762. return $this->id; 
  1763. public function setKind($kind) 
  1764. $this->kind = $kind; 
  1765. public function getKind() 
  1766. return $this->kind; 
  1767. public function setLifecycle(Google_Service_Storage_BucketLifecycle $lifecycle) 
  1768. $this->lifecycle = $lifecycle; 
  1769. public function getLifecycle() 
  1770. return $this->lifecycle; 
  1771. public function setLocation($location) 
  1772. $this->location = $location; 
  1773. public function getLocation() 
  1774. return $this->location; 
  1775. public function setLogging(Google_Service_Storage_BucketLogging $logging) 
  1776. $this->logging = $logging; 
  1777. public function getLogging() 
  1778. return $this->logging; 
  1779. public function setMetageneration($metageneration) 
  1780. $this->metageneration = $metageneration; 
  1781. public function getMetageneration() 
  1782. return $this->metageneration; 
  1783. public function setName($name) 
  1784. $this->name = $name; 
  1785. public function getName() 
  1786. return $this->name; 
  1787. public function setOwner(Google_Service_Storage_BucketOwner $owner) 
  1788. $this->owner = $owner; 
  1789. public function getOwner() 
  1790. return $this->owner; 
  1791. public function setProjectNumber($projectNumber) 
  1792. $this->projectNumber = $projectNumber; 
  1793. public function getProjectNumber() 
  1794. return $this->projectNumber; 
  1795. public function setSelfLink($selfLink) 
  1796. $this->selfLink = $selfLink; 
  1797. public function getSelfLink() 
  1798. return $this->selfLink; 
  1799. public function setStorageClass($storageClass) 
  1800. $this->storageClass = $storageClass; 
  1801. public function getStorageClass() 
  1802. return $this->storageClass; 
  1803. public function setTimeCreated($timeCreated) 
  1804. $this->timeCreated = $timeCreated; 
  1805. public function getTimeCreated() 
  1806. return $this->timeCreated; 
  1807. public function setVersioning(Google_Service_Storage_BucketVersioning $versioning) 
  1808. $this->versioning = $versioning; 
  1809. public function getVersioning() 
  1810. return $this->versioning; 
  1811. public function setWebsite(Google_Service_Storage_BucketWebsite $website) 
  1812. $this->website = $website; 
  1813. public function getWebsite() 
  1814. return $this->website; 
  1815.  
  1816. class Google_Service_Storage_BucketAccessControl extends Google_Model 
  1817. protected $internal_gapi_mappings = array( 
  1818. ); 
  1819. public $bucket; 
  1820. public $domain; 
  1821. public $email; 
  1822. public $entity; 
  1823. public $entityId; 
  1824. public $etag; 
  1825. public $id; 
  1826. public $kind; 
  1827. protected $projectTeamType = 'Google_Service_Storage_BucketAccessControlProjectTeam'; 
  1828. protected $projectTeamDataType = ''; 
  1829. public $role; 
  1830. public $selfLink; 
  1831.  
  1832.  
  1833. public function setBucket($bucket) 
  1834. $this->bucket = $bucket; 
  1835. public function getBucket() 
  1836. return $this->bucket; 
  1837. public function setDomain($domain) 
  1838. $this->domain = $domain; 
  1839. public function getDomain() 
  1840. return $this->domain; 
  1841. public function setEmail($email) 
  1842. $this->email = $email; 
  1843. public function getEmail() 
  1844. return $this->email; 
  1845. public function setEntity($entity) 
  1846. $this->entity = $entity; 
  1847. public function getEntity() 
  1848. return $this->entity; 
  1849. public function setEntityId($entityId) 
  1850. $this->entityId = $entityId; 
  1851. public function getEntityId() 
  1852. return $this->entityId; 
  1853. public function setEtag($etag) 
  1854. $this->etag = $etag; 
  1855. public function getEtag() 
  1856. return $this->etag; 
  1857. public function setId($id) 
  1858. $this->id = $id; 
  1859. public function getId() 
  1860. return $this->id; 
  1861. public function setKind($kind) 
  1862. $this->kind = $kind; 
  1863. public function getKind() 
  1864. return $this->kind; 
  1865. public function setProjectTeam(Google_Service_Storage_BucketAccessControlProjectTeam $projectTeam) 
  1866. $this->projectTeam = $projectTeam; 
  1867. public function getProjectTeam() 
  1868. return $this->projectTeam; 
  1869. public function setRole($role) 
  1870. $this->role = $role; 
  1871. public function getRole() 
  1872. return $this->role; 
  1873. public function setSelfLink($selfLink) 
  1874. $this->selfLink = $selfLink; 
  1875. public function getSelfLink() 
  1876. return $this->selfLink; 
  1877.  
  1878. class Google_Service_Storage_BucketAccessControlProjectTeam extends Google_Model 
  1879. protected $internal_gapi_mappings = array( 
  1880. ); 
  1881. public $projectNumber; 
  1882. public $team; 
  1883.  
  1884.  
  1885. public function setProjectNumber($projectNumber) 
  1886. $this->projectNumber = $projectNumber; 
  1887. public function getProjectNumber() 
  1888. return $this->projectNumber; 
  1889. public function setTeam($team) 
  1890. $this->team = $team; 
  1891. public function getTeam() 
  1892. return $this->team; 
  1893.  
  1894. class Google_Service_Storage_BucketAccessControls extends Google_Collection 
  1895. protected $collection_key = 'items'; 
  1896. protected $internal_gapi_mappings = array( 
  1897. ); 
  1898. protected $itemsType = 'Google_Service_Storage_BucketAccessControl'; 
  1899. protected $itemsDataType = 'array'; 
  1900. public $kind; 
  1901.  
  1902.  
  1903. public function setItems($items) 
  1904. $this->items = $items; 
  1905. public function getItems() 
  1906. return $this->items; 
  1907. public function setKind($kind) 
  1908. $this->kind = $kind; 
  1909. public function getKind() 
  1910. return $this->kind; 
  1911.  
  1912. class Google_Service_Storage_BucketCors extends Google_Collection 
  1913. protected $collection_key = 'responseHeader'; 
  1914. protected $internal_gapi_mappings = array( 
  1915. ); 
  1916. public $maxAgeSeconds; 
  1917. public $method; 
  1918. public $origin; 
  1919. public $responseHeader; 
  1920.  
  1921.  
  1922. public function setMaxAgeSeconds($maxAgeSeconds) 
  1923. $this->maxAgeSeconds = $maxAgeSeconds; 
  1924. public function getMaxAgeSeconds() 
  1925. return $this->maxAgeSeconds; 
  1926. public function setMethod($method) 
  1927. $this->method = $method; 
  1928. public function getMethod() 
  1929. return $this->method; 
  1930. public function setOrigin($origin) 
  1931. $this->origin = $origin; 
  1932. public function getOrigin() 
  1933. return $this->origin; 
  1934. public function setResponseHeader($responseHeader) 
  1935. $this->responseHeader = $responseHeader; 
  1936. public function getResponseHeader() 
  1937. return $this->responseHeader; 
  1938.  
  1939. class Google_Service_Storage_BucketLifecycle extends Google_Collection 
  1940. protected $collection_key = 'rule'; 
  1941. protected $internal_gapi_mappings = array( 
  1942. ); 
  1943. protected $ruleType = 'Google_Service_Storage_BucketLifecycleRule'; 
  1944. protected $ruleDataType = 'array'; 
  1945.  
  1946.  
  1947. public function setRule($rule) 
  1948. $this->rule = $rule; 
  1949. public function getRule() 
  1950. return $this->rule; 
  1951.  
  1952. class Google_Service_Storage_BucketLifecycleRule extends Google_Model 
  1953. protected $internal_gapi_mappings = array( 
  1954. ); 
  1955. protected $actionType = 'Google_Service_Storage_BucketLifecycleRuleAction'; 
  1956. protected $actionDataType = ''; 
  1957. protected $conditionType = 'Google_Service_Storage_BucketLifecycleRuleCondition'; 
  1958. protected $conditionDataType = ''; 
  1959.  
  1960.  
  1961. public function setAction(Google_Service_Storage_BucketLifecycleRuleAction $action) 
  1962. $this->action = $action; 
  1963. public function getAction() 
  1964. return $this->action; 
  1965. public function setCondition(Google_Service_Storage_BucketLifecycleRuleCondition $condition) 
  1966. $this->condition = $condition; 
  1967. public function getCondition() 
  1968. return $this->condition; 
  1969.  
  1970. class Google_Service_Storage_BucketLifecycleRuleAction extends Google_Model 
  1971. protected $internal_gapi_mappings = array( 
  1972. ); 
  1973. public $type; 
  1974.  
  1975.  
  1976. public function setType($type) 
  1977. $this->type = $type; 
  1978. public function getType() 
  1979. return $this->type; 
  1980.  
  1981. class Google_Service_Storage_BucketLifecycleRuleCondition extends Google_Model 
  1982. protected $internal_gapi_mappings = array( 
  1983. ); 
  1984. public $age; 
  1985. public $createdBefore; 
  1986. public $isLive; 
  1987. public $numNewerVersions; 
  1988.  
  1989.  
  1990. public function setAge($age) 
  1991. $this->age = $age; 
  1992. public function getAge() 
  1993. return $this->age; 
  1994. public function setCreatedBefore($createdBefore) 
  1995. $this->createdBefore = $createdBefore; 
  1996. public function getCreatedBefore() 
  1997. return $this->createdBefore; 
  1998. public function setIsLive($isLive) 
  1999. $this->isLive = $isLive; 
  2000. public function getIsLive() 
  2001. return $this->isLive; 
  2002. public function setNumNewerVersions($numNewerVersions) 
  2003. $this->numNewerVersions = $numNewerVersions; 
  2004. public function getNumNewerVersions() 
  2005. return $this->numNewerVersions; 
  2006.  
  2007. class Google_Service_Storage_BucketLogging extends Google_Model 
  2008. protected $internal_gapi_mappings = array( 
  2009. ); 
  2010. public $logBucket; 
  2011. public $logObjectPrefix; 
  2012.  
  2013.  
  2014. public function setLogBucket($logBucket) 
  2015. $this->logBucket = $logBucket; 
  2016. public function getLogBucket() 
  2017. return $this->logBucket; 
  2018. public function setLogObjectPrefix($logObjectPrefix) 
  2019. $this->logObjectPrefix = $logObjectPrefix; 
  2020. public function getLogObjectPrefix() 
  2021. return $this->logObjectPrefix; 
  2022.  
  2023. class Google_Service_Storage_BucketOwner extends Google_Model 
  2024. protected $internal_gapi_mappings = array( 
  2025. ); 
  2026. public $entity; 
  2027. public $entityId; 
  2028.  
  2029.  
  2030. public function setEntity($entity) 
  2031. $this->entity = $entity; 
  2032. public function getEntity() 
  2033. return $this->entity; 
  2034. public function setEntityId($entityId) 
  2035. $this->entityId = $entityId; 
  2036. public function getEntityId() 
  2037. return $this->entityId; 
  2038.  
  2039. class Google_Service_Storage_BucketVersioning extends Google_Model 
  2040. protected $internal_gapi_mappings = array( 
  2041. ); 
  2042. public $enabled; 
  2043.  
  2044.  
  2045. public function setEnabled($enabled) 
  2046. $this->enabled = $enabled; 
  2047. public function getEnabled() 
  2048. return $this->enabled; 
  2049.  
  2050. class Google_Service_Storage_BucketWebsite extends Google_Model 
  2051. protected $internal_gapi_mappings = array( 
  2052. ); 
  2053. public $mainPageSuffix; 
  2054. public $notFoundPage; 
  2055.  
  2056.  
  2057. public function setMainPageSuffix($mainPageSuffix) 
  2058. $this->mainPageSuffix = $mainPageSuffix; 
  2059. public function getMainPageSuffix() 
  2060. return $this->mainPageSuffix; 
  2061. public function setNotFoundPage($notFoundPage) 
  2062. $this->notFoundPage = $notFoundPage; 
  2063. public function getNotFoundPage() 
  2064. return $this->notFoundPage; 
  2065.  
  2066. class Google_Service_Storage_Buckets extends Google_Collection 
  2067. protected $collection_key = 'items'; 
  2068. protected $internal_gapi_mappings = array( 
  2069. ); 
  2070. protected $itemsType = 'Google_Service_Storage_Bucket'; 
  2071. protected $itemsDataType = 'array'; 
  2072. public $kind; 
  2073. public $nextPageToken; 
  2074.  
  2075.  
  2076. public function setItems($items) 
  2077. $this->items = $items; 
  2078. public function getItems() 
  2079. return $this->items; 
  2080. public function setKind($kind) 
  2081. $this->kind = $kind; 
  2082. public function getKind() 
  2083. return $this->kind; 
  2084. public function setNextPageToken($nextPageToken) 
  2085. $this->nextPageToken = $nextPageToken; 
  2086. public function getNextPageToken() 
  2087. return $this->nextPageToken; 
  2088.  
  2089. class Google_Service_Storage_Channel extends Google_Model 
  2090. protected $internal_gapi_mappings = array( 
  2091. ); 
  2092. public $address; 
  2093. public $expiration; 
  2094. public $id; 
  2095. public $kind; 
  2096. public $params; 
  2097. public $payload; 
  2098. public $resourceId; 
  2099. public $resourceUri; 
  2100. public $token; 
  2101. public $type; 
  2102.  
  2103.  
  2104. public function setAddress($address) 
  2105. $this->address = $address; 
  2106. public function getAddress() 
  2107. return $this->address; 
  2108. public function setExpiration($expiration) 
  2109. $this->expiration = $expiration; 
  2110. public function getExpiration() 
  2111. return $this->expiration; 
  2112. public function setId($id) 
  2113. $this->id = $id; 
  2114. public function getId() 
  2115. return $this->id; 
  2116. public function setKind($kind) 
  2117. $this->kind = $kind; 
  2118. public function getKind() 
  2119. return $this->kind; 
  2120. public function setParams($params) 
  2121. $this->params = $params; 
  2122. public function getParams() 
  2123. return $this->params; 
  2124. public function setPayload($payload) 
  2125. $this->payload = $payload; 
  2126. public function getPayload() 
  2127. return $this->payload; 
  2128. public function setResourceId($resourceId) 
  2129. $this->resourceId = $resourceId; 
  2130. public function getResourceId() 
  2131. return $this->resourceId; 
  2132. public function setResourceUri($resourceUri) 
  2133. $this->resourceUri = $resourceUri; 
  2134. public function getResourceUri() 
  2135. return $this->resourceUri; 
  2136. public function setToken($token) 
  2137. $this->token = $token; 
  2138. public function getToken() 
  2139. return $this->token; 
  2140. public function setType($type) 
  2141. $this->type = $type; 
  2142. public function getType() 
  2143. return $this->type; 
  2144.  
  2145. class Google_Service_Storage_ChannelParams extends Google_Model 
  2146.  
  2147. class Google_Service_Storage_ComposeRequest extends Google_Collection 
  2148. protected $collection_key = 'sourceObjects'; 
  2149. protected $internal_gapi_mappings = array( 
  2150. ); 
  2151. protected $destinationType = 'Google_Service_Storage_StorageObject'; 
  2152. protected $destinationDataType = ''; 
  2153. public $kind; 
  2154. protected $sourceObjectsType = 'Google_Service_Storage_ComposeRequestSourceObjects'; 
  2155. protected $sourceObjectsDataType = 'array'; 
  2156.  
  2157.  
  2158. public function setDestination(Google_Service_Storage_StorageObject $destination) 
  2159. $this->destination = $destination; 
  2160. public function getDestination() 
  2161. return $this->destination; 
  2162. public function setKind($kind) 
  2163. $this->kind = $kind; 
  2164. public function getKind() 
  2165. return $this->kind; 
  2166. public function setSourceObjects($sourceObjects) 
  2167. $this->sourceObjects = $sourceObjects; 
  2168. public function getSourceObjects() 
  2169. return $this->sourceObjects; 
  2170.  
  2171. class Google_Service_Storage_ComposeRequestSourceObjects extends Google_Model 
  2172. protected $internal_gapi_mappings = array( 
  2173. ); 
  2174. public $generation; 
  2175. public $name; 
  2176. protected $objectPreconditionsType = 'Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions'; 
  2177. protected $objectPreconditionsDataType = ''; 
  2178.  
  2179.  
  2180. public function setGeneration($generation) 
  2181. $this->generation = $generation; 
  2182. public function getGeneration() 
  2183. return $this->generation; 
  2184. public function setName($name) 
  2185. $this->name = $name; 
  2186. public function getName() 
  2187. return $this->name; 
  2188. public function setObjectPreconditions(Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions $objectPreconditions) 
  2189. $this->objectPreconditions = $objectPreconditions; 
  2190. public function getObjectPreconditions() 
  2191. return $this->objectPreconditions; 
  2192.  
  2193. class Google_Service_Storage_ComposeRequestSourceObjectsObjectPreconditions extends Google_Model 
  2194. protected $internal_gapi_mappings = array( 
  2195. ); 
  2196. public $ifGenerationMatch; 
  2197.  
  2198.  
  2199. public function setIfGenerationMatch($ifGenerationMatch) 
  2200. $this->ifGenerationMatch = $ifGenerationMatch; 
  2201. public function getIfGenerationMatch() 
  2202. return $this->ifGenerationMatch; 
  2203.  
  2204. class Google_Service_Storage_ObjectAccessControl extends Google_Model 
  2205. protected $internal_gapi_mappings = array( 
  2206. ); 
  2207. public $bucket; 
  2208. public $domain; 
  2209. public $email; 
  2210. public $entity; 
  2211. public $entityId; 
  2212. public $etag; 
  2213. public $generation; 
  2214. public $id; 
  2215. public $kind; 
  2216. public $object; 
  2217. protected $projectTeamType = 'Google_Service_Storage_ObjectAccessControlProjectTeam'; 
  2218. protected $projectTeamDataType = ''; 
  2219. public $role; 
  2220. public $selfLink; 
  2221.  
  2222.  
  2223. public function setBucket($bucket) 
  2224. $this->bucket = $bucket; 
  2225. public function getBucket() 
  2226. return $this->bucket; 
  2227. public function setDomain($domain) 
  2228. $this->domain = $domain; 
  2229. public function getDomain() 
  2230. return $this->domain; 
  2231. public function setEmail($email) 
  2232. $this->email = $email; 
  2233. public function getEmail() 
  2234. return $this->email; 
  2235. public function setEntity($entity) 
  2236. $this->entity = $entity; 
  2237. public function getEntity() 
  2238. return $this->entity; 
  2239. public function setEntityId($entityId) 
  2240. $this->entityId = $entityId; 
  2241. public function getEntityId() 
  2242. return $this->entityId; 
  2243. public function setEtag($etag) 
  2244. $this->etag = $etag; 
  2245. public function getEtag() 
  2246. return $this->etag; 
  2247. public function setGeneration($generation) 
  2248. $this->generation = $generation; 
  2249. public function getGeneration() 
  2250. return $this->generation; 
  2251. public function setId($id) 
  2252. $this->id = $id; 
  2253. public function getId() 
  2254. return $this->id; 
  2255. public function setKind($kind) 
  2256. $this->kind = $kind; 
  2257. public function getKind() 
  2258. return $this->kind; 
  2259. public function setObject($object) 
  2260. $this->object = $object; 
  2261. public function getObject() 
  2262. return $this->object; 
  2263. public function setProjectTeam(Google_Service_Storage_ObjectAccessControlProjectTeam $projectTeam) 
  2264. $this->projectTeam = $projectTeam; 
  2265. public function getProjectTeam() 
  2266. return $this->projectTeam; 
  2267. public function setRole($role) 
  2268. $this->role = $role; 
  2269. public function getRole() 
  2270. return $this->role; 
  2271. public function setSelfLink($selfLink) 
  2272. $this->selfLink = $selfLink; 
  2273. public function getSelfLink() 
  2274. return $this->selfLink; 
  2275.  
  2276. class Google_Service_Storage_ObjectAccessControlProjectTeam extends Google_Model 
  2277. protected $internal_gapi_mappings = array( 
  2278. ); 
  2279. public $projectNumber; 
  2280. public $team; 
  2281.  
  2282.  
  2283. public function setProjectNumber($projectNumber) 
  2284. $this->projectNumber = $projectNumber; 
  2285. public function getProjectNumber() 
  2286. return $this->projectNumber; 
  2287. public function setTeam($team) 
  2288. $this->team = $team; 
  2289. public function getTeam() 
  2290. return $this->team; 
  2291.  
  2292. class Google_Service_Storage_ObjectAccessControls extends Google_Collection 
  2293. protected $collection_key = 'items'; 
  2294. protected $internal_gapi_mappings = array( 
  2295. ); 
  2296. public $items; 
  2297. public $kind; 
  2298.  
  2299.  
  2300. public function setItems($items) 
  2301. $this->items = $items; 
  2302. public function getItems() 
  2303. return $this->items; 
  2304. public function setKind($kind) 
  2305. $this->kind = $kind; 
  2306. public function getKind() 
  2307. return $this->kind; 
  2308.  
  2309. class Google_Service_Storage_Objects extends Google_Collection 
  2310. protected $collection_key = 'prefixes'; 
  2311. protected $internal_gapi_mappings = array( 
  2312. ); 
  2313. protected $itemsType = 'Google_Service_Storage_StorageObject'; 
  2314. protected $itemsDataType = 'array'; 
  2315. public $kind; 
  2316. public $nextPageToken; 
  2317. public $prefixes; 
  2318.  
  2319.  
  2320. public function setItems($items) 
  2321. $this->items = $items; 
  2322. public function getItems() 
  2323. return $this->items; 
  2324. public function setKind($kind) 
  2325. $this->kind = $kind; 
  2326. public function getKind() 
  2327. return $this->kind; 
  2328. public function setNextPageToken($nextPageToken) 
  2329. $this->nextPageToken = $nextPageToken; 
  2330. public function getNextPageToken() 
  2331. return $this->nextPageToken; 
  2332. public function setPrefixes($prefixes) 
  2333. $this->prefixes = $prefixes; 
  2334. public function getPrefixes() 
  2335. return $this->prefixes; 
  2336.  
  2337. class Google_Service_Storage_StorageObject extends Google_Collection 
  2338. protected $collection_key = 'acl'; 
  2339. protected $internal_gapi_mappings = array( 
  2340. ); 
  2341. protected $aclType = 'Google_Service_Storage_ObjectAccessControl'; 
  2342. protected $aclDataType = 'array'; 
  2343. public $bucket; 
  2344. public $cacheControl; 
  2345. public $componentCount; 
  2346. public $contentDisposition; 
  2347. public $contentEncoding; 
  2348. public $contentLanguage; 
  2349. public $contentType; 
  2350. public $crc32c; 
  2351. public $etag; 
  2352. public $generation; 
  2353. public $id; 
  2354. public $kind; 
  2355. public $md5Hash; 
  2356. public $mediaLink; 
  2357. public $metadata; 
  2358. public $metageneration; 
  2359. public $name; 
  2360. protected $ownerType = 'Google_Service_Storage_StorageObjectOwner'; 
  2361. protected $ownerDataType = ''; 
  2362. public $selfLink; 
  2363. public $size; 
  2364. public $storageClass; 
  2365. public $timeDeleted; 
  2366. public $updated; 
  2367.  
  2368.  
  2369. public function setAcl($acl) 
  2370. $this->acl = $acl; 
  2371. public function getAcl() 
  2372. return $this->acl; 
  2373. public function setBucket($bucket) 
  2374. $this->bucket = $bucket; 
  2375. public function getBucket() 
  2376. return $this->bucket; 
  2377. public function setCacheControl($cacheControl) 
  2378. $this->cacheControl = $cacheControl; 
  2379. public function getCacheControl() 
  2380. return $this->cacheControl; 
  2381. public function setComponentCount($componentCount) 
  2382. $this->componentCount = $componentCount; 
  2383. public function getComponentCount() 
  2384. return $this->componentCount; 
  2385. public function setContentDisposition($contentDisposition) 
  2386. $this->contentDisposition = $contentDisposition; 
  2387. public function getContentDisposition() 
  2388. return $this->contentDisposition; 
  2389. public function setContentEncoding($contentEncoding) 
  2390. $this->contentEncoding = $contentEncoding; 
  2391. public function getContentEncoding() 
  2392. return $this->contentEncoding; 
  2393. public function setContentLanguage($contentLanguage) 
  2394. $this->contentLanguage = $contentLanguage; 
  2395. public function getContentLanguage() 
  2396. return $this->contentLanguage; 
  2397. public function setContentType($contentType) 
  2398. $this->contentType = $contentType; 
  2399. public function getContentType() 
  2400. return $this->contentType; 
  2401. public function setCrc32c($crc32c) 
  2402. $this->crc32c = $crc32c; 
  2403. public function getCrc32c() 
  2404. return $this->crc32c; 
  2405. public function setEtag($etag) 
  2406. $this->etag = $etag; 
  2407. public function getEtag() 
  2408. return $this->etag; 
  2409. public function setGeneration($generation) 
  2410. $this->generation = $generation; 
  2411. public function getGeneration() 
  2412. return $this->generation; 
  2413. public function setId($id) 
  2414. $this->id = $id; 
  2415. public function getId() 
  2416. return $this->id; 
  2417. public function setKind($kind) 
  2418. $this->kind = $kind; 
  2419. public function getKind() 
  2420. return $this->kind; 
  2421. public function setMd5Hash($md5Hash) 
  2422. $this->md5Hash = $md5Hash; 
  2423. public function getMd5Hash() 
  2424. return $this->md5Hash; 
  2425. public function setMediaLink($mediaLink) 
  2426. $this->mediaLink = $mediaLink; 
  2427. public function getMediaLink() 
  2428. return $this->mediaLink; 
  2429. public function setMetadata($metadata) 
  2430. $this->metadata = $metadata; 
  2431. public function getMetadata() 
  2432. return $this->metadata; 
  2433. public function setMetageneration($metageneration) 
  2434. $this->metageneration = $metageneration; 
  2435. public function getMetageneration() 
  2436. return $this->metageneration; 
  2437. public function setName($name) 
  2438. $this->name = $name; 
  2439. public function getName() 
  2440. return $this->name; 
  2441. public function setOwner(Google_Service_Storage_StorageObjectOwner $owner) 
  2442. $this->owner = $owner; 
  2443. public function getOwner() 
  2444. return $this->owner; 
  2445. public function setSelfLink($selfLink) 
  2446. $this->selfLink = $selfLink; 
  2447. public function getSelfLink() 
  2448. return $this->selfLink; 
  2449. public function setSize($size) 
  2450. $this->size = $size; 
  2451. public function getSize() 
  2452. return $this->size; 
  2453. public function setStorageClass($storageClass) 
  2454. $this->storageClass = $storageClass; 
  2455. public function getStorageClass() 
  2456. return $this->storageClass; 
  2457. public function setTimeDeleted($timeDeleted) 
  2458. $this->timeDeleted = $timeDeleted; 
  2459. public function getTimeDeleted() 
  2460. return $this->timeDeleted; 
  2461. public function setUpdated($updated) 
  2462. $this->updated = $updated; 
  2463. public function getUpdated() 
  2464. return $this->updated; 
  2465.  
  2466. class Google_Service_Storage_StorageObjectMetadata extends Google_Model 
  2467.  
  2468. class Google_Service_Storage_StorageObjectOwner extends Google_Model 
  2469. protected $internal_gapi_mappings = array( 
  2470. ); 
  2471. public $entity; 
  2472. public $entityId; 
  2473.  
  2474.  
  2475. public function setEntity($entity) 
  2476. $this->entity = $entity; 
  2477. public function getEntity() 
  2478. return $this->entity; 
  2479. public function setEntityId($entityId) 
  2480. $this->entityId = $entityId; 
  2481. public function getEntityId() 
  2482. return $this->entityId; 
.