Bez popisu

Storagetransfer.php 6.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. <?php
  2. /*
  3. * Copyright 2014 Google Inc.
  4. *
  5. * Licensed under the Apache License, Version 2.0 (the "License"); you may not
  6. * use this file except in compliance with the License. You may obtain a copy of
  7. * the License at
  8. *
  9. * http://www.apache.org/licenses/LICENSE-2.0
  10. *
  11. * Unless required by applicable law or agreed to in writing, software
  12. * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
  13. * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
  14. * License for the specific language governing permissions and limitations under
  15. * the License.
  16. */
  17. /**
  18. * Service definition for Storagetransfer (v1).
  19. *
  20. * <p>
  21. * Transfers data from external data sources to a Google Cloud Storage bucket or
  22. * between Google Cloud Storage buckets.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://cloud.google.com/storage/transfer" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Storagetransfer extends Google_Service
  32. {
  33. /** View and manage your data across Google Cloud Platform services. */
  34. const CLOUD_PLATFORM =
  35. "https://www.googleapis.com/auth/cloud-platform";
  36. public $googleServiceAccounts;
  37. public $transferJobs;
  38. public $transferOperations;
  39. /**
  40. * Constructs the internal representation of the Storagetransfer service.
  41. *
  42. * @param Google_Client $client
  43. */
  44. public function __construct(Google_Client $client)
  45. {
  46. parent::__construct($client);
  47. $this->rootUrl = 'https://storagetransfer.googleapis.com/';
  48. $this->servicePath = '';
  49. $this->version = 'v1';
  50. $this->serviceName = 'storagetransfer';
  51. $this->googleServiceAccounts = new Google_Service_Storagetransfer_Resource_GoogleServiceAccounts(
  52. $this,
  53. $this->serviceName,
  54. 'googleServiceAccounts',
  55. array(
  56. 'methods' => array(
  57. 'get' => array(
  58. 'path' => 'v1/googleServiceAccounts/{projectId}',
  59. 'httpMethod' => 'GET',
  60. 'parameters' => array(
  61. 'projectId' => array(
  62. 'location' => 'path',
  63. 'type' => 'string',
  64. 'required' => true,
  65. ),
  66. ),
  67. ),
  68. )
  69. )
  70. );
  71. $this->transferJobs = new Google_Service_Storagetransfer_Resource_TransferJobs(
  72. $this,
  73. $this->serviceName,
  74. 'transferJobs',
  75. array(
  76. 'methods' => array(
  77. 'create' => array(
  78. 'path' => 'v1/transferJobs',
  79. 'httpMethod' => 'POST',
  80. 'parameters' => array(),
  81. ),'get' => array(
  82. 'path' => 'v1/{+jobName}',
  83. 'httpMethod' => 'GET',
  84. 'parameters' => array(
  85. 'jobName' => array(
  86. 'location' => 'path',
  87. 'type' => 'string',
  88. 'required' => true,
  89. ),
  90. 'projectId' => array(
  91. 'location' => 'query',
  92. 'type' => 'string',
  93. ),
  94. ),
  95. ),'list' => array(
  96. 'path' => 'v1/transferJobs',
  97. 'httpMethod' => 'GET',
  98. 'parameters' => array(
  99. 'filter' => array(
  100. 'location' => 'query',
  101. 'type' => 'string',
  102. ),
  103. 'pageToken' => array(
  104. 'location' => 'query',
  105. 'type' => 'string',
  106. ),
  107. 'pageSize' => array(
  108. 'location' => 'query',
  109. 'type' => 'integer',
  110. ),
  111. ),
  112. ),'patch' => array(
  113. 'path' => 'v1/{+jobName}',
  114. 'httpMethod' => 'PATCH',
  115. 'parameters' => array(
  116. 'jobName' => array(
  117. 'location' => 'path',
  118. 'type' => 'string',
  119. 'required' => true,
  120. ),
  121. ),
  122. ),
  123. )
  124. )
  125. );
  126. $this->transferOperations = new Google_Service_Storagetransfer_Resource_TransferOperations(
  127. $this,
  128. $this->serviceName,
  129. 'transferOperations',
  130. array(
  131. 'methods' => array(
  132. 'cancel' => array(
  133. 'path' => 'v1/{+name}:cancel',
  134. 'httpMethod' => 'POST',
  135. 'parameters' => array(
  136. 'name' => array(
  137. 'location' => 'path',
  138. 'type' => 'string',
  139. 'required' => true,
  140. ),
  141. ),
  142. ),'delete' => array(
  143. 'path' => 'v1/{+name}',
  144. 'httpMethod' => 'DELETE',
  145. 'parameters' => array(
  146. 'name' => array(
  147. 'location' => 'path',
  148. 'type' => 'string',
  149. 'required' => true,
  150. ),
  151. ),
  152. ),'get' => array(
  153. 'path' => 'v1/{+name}',
  154. 'httpMethod' => 'GET',
  155. 'parameters' => array(
  156. 'name' => array(
  157. 'location' => 'path',
  158. 'type' => 'string',
  159. 'required' => true,
  160. ),
  161. ),
  162. ),'list' => array(
  163. 'path' => 'v1/{+name}',
  164. 'httpMethod' => 'GET',
  165. 'parameters' => array(
  166. 'name' => array(
  167. 'location' => 'path',
  168. 'type' => 'string',
  169. 'required' => true,
  170. ),
  171. 'pageToken' => array(
  172. 'location' => 'query',
  173. 'type' => 'string',
  174. ),
  175. 'pageSize' => array(
  176. 'location' => 'query',
  177. 'type' => 'integer',
  178. ),
  179. 'filter' => array(
  180. 'location' => 'query',
  181. 'type' => 'string',
  182. ),
  183. ),
  184. ),'pause' => array(
  185. 'path' => 'v1/{+name}:pause',
  186. 'httpMethod' => 'POST',
  187. 'parameters' => array(
  188. 'name' => array(
  189. 'location' => 'path',
  190. 'type' => 'string',
  191. 'required' => true,
  192. ),
  193. ),
  194. ),'resume' => array(
  195. 'path' => 'v1/{+name}:resume',
  196. 'httpMethod' => 'POST',
  197. 'parameters' => array(
  198. 'name' => array(
  199. 'location' => 'path',
  200. 'type' => 'string',
  201. 'required' => true,
  202. ),
  203. ),
  204. ),
  205. )
  206. )
  207. );
  208. }
  209. }