Ei kuvausta

Cloudbilling.php 8.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264
  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 Cloudbilling (v1).
  19. *
  20. * <p>
  21. * Allows developers to manage billing for their Google Cloud Platform projects
  22. * programmatically.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://cloud.google.com/billing/" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_Cloudbilling 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 $billingAccounts;
  37. public $billingAccounts_projects;
  38. public $projects;
  39. public $services;
  40. public $services_skus;
  41. /**
  42. * Constructs the internal representation of the Cloudbilling service.
  43. *
  44. * @param Google_Client $client
  45. */
  46. public function __construct(Google_Client $client)
  47. {
  48. parent::__construct($client);
  49. $this->rootUrl = 'https://cloudbilling.googleapis.com/';
  50. $this->servicePath = '';
  51. $this->version = 'v1';
  52. $this->serviceName = 'cloudbilling';
  53. $this->billingAccounts = new Google_Service_Cloudbilling_Resource_BillingAccounts(
  54. $this,
  55. $this->serviceName,
  56. 'billingAccounts',
  57. array(
  58. 'methods' => array(
  59. 'create' => array(
  60. 'path' => 'v1/billingAccounts',
  61. 'httpMethod' => 'POST',
  62. 'parameters' => array(),
  63. ),'get' => array(
  64. 'path' => 'v1/{+name}',
  65. 'httpMethod' => 'GET',
  66. 'parameters' => array(
  67. 'name' => array(
  68. 'location' => 'path',
  69. 'type' => 'string',
  70. 'required' => true,
  71. ),
  72. ),
  73. ),'getIamPolicy' => array(
  74. 'path' => 'v1/{+resource}:getIamPolicy',
  75. 'httpMethod' => 'GET',
  76. 'parameters' => array(
  77. 'resource' => array(
  78. 'location' => 'path',
  79. 'type' => 'string',
  80. 'required' => true,
  81. ),
  82. ),
  83. ),'list' => array(
  84. 'path' => 'v1/billingAccounts',
  85. 'httpMethod' => 'GET',
  86. 'parameters' => array(
  87. 'pageToken' => array(
  88. 'location' => 'query',
  89. 'type' => 'string',
  90. ),
  91. 'pageSize' => array(
  92. 'location' => 'query',
  93. 'type' => 'integer',
  94. ),
  95. 'filter' => array(
  96. 'location' => 'query',
  97. 'type' => 'string',
  98. ),
  99. ),
  100. ),'patch' => array(
  101. 'path' => 'v1/{+name}',
  102. 'httpMethod' => 'PATCH',
  103. 'parameters' => array(
  104. 'name' => array(
  105. 'location' => 'path',
  106. 'type' => 'string',
  107. 'required' => true,
  108. ),
  109. 'updateMask' => array(
  110. 'location' => 'query',
  111. 'type' => 'string',
  112. ),
  113. ),
  114. ),'setIamPolicy' => array(
  115. 'path' => 'v1/{+resource}:setIamPolicy',
  116. 'httpMethod' => 'POST',
  117. 'parameters' => array(
  118. 'resource' => array(
  119. 'location' => 'path',
  120. 'type' => 'string',
  121. 'required' => true,
  122. ),
  123. ),
  124. ),'testIamPermissions' => array(
  125. 'path' => 'v1/{+resource}:testIamPermissions',
  126. 'httpMethod' => 'POST',
  127. 'parameters' => array(
  128. 'resource' => array(
  129. 'location' => 'path',
  130. 'type' => 'string',
  131. 'required' => true,
  132. ),
  133. ),
  134. ),
  135. )
  136. )
  137. );
  138. $this->billingAccounts_projects = new Google_Service_Cloudbilling_Resource_BillingAccountsProjects(
  139. $this,
  140. $this->serviceName,
  141. 'projects',
  142. array(
  143. 'methods' => array(
  144. 'list' => array(
  145. 'path' => 'v1/{+name}/projects',
  146. 'httpMethod' => 'GET',
  147. 'parameters' => array(
  148. 'name' => array(
  149. 'location' => 'path',
  150. 'type' => 'string',
  151. 'required' => true,
  152. ),
  153. 'pageToken' => array(
  154. 'location' => 'query',
  155. 'type' => 'string',
  156. ),
  157. 'pageSize' => array(
  158. 'location' => 'query',
  159. 'type' => 'integer',
  160. ),
  161. ),
  162. ),
  163. )
  164. )
  165. );
  166. $this->projects = new Google_Service_Cloudbilling_Resource_Projects(
  167. $this,
  168. $this->serviceName,
  169. 'projects',
  170. array(
  171. 'methods' => array(
  172. 'getBillingInfo' => array(
  173. 'path' => 'v1/{+name}/billingInfo',
  174. 'httpMethod' => 'GET',
  175. 'parameters' => array(
  176. 'name' => array(
  177. 'location' => 'path',
  178. 'type' => 'string',
  179. 'required' => true,
  180. ),
  181. ),
  182. ),'updateBillingInfo' => array(
  183. 'path' => 'v1/{+name}/billingInfo',
  184. 'httpMethod' => 'PUT',
  185. 'parameters' => array(
  186. 'name' => array(
  187. 'location' => 'path',
  188. 'type' => 'string',
  189. 'required' => true,
  190. ),
  191. ),
  192. ),
  193. )
  194. )
  195. );
  196. $this->services = new Google_Service_Cloudbilling_Resource_Services(
  197. $this,
  198. $this->serviceName,
  199. 'services',
  200. array(
  201. 'methods' => array(
  202. 'list' => array(
  203. 'path' => 'v1/services',
  204. 'httpMethod' => 'GET',
  205. 'parameters' => array(
  206. 'pageToken' => array(
  207. 'location' => 'query',
  208. 'type' => 'string',
  209. ),
  210. 'pageSize' => array(
  211. 'location' => 'query',
  212. 'type' => 'integer',
  213. ),
  214. ),
  215. ),
  216. )
  217. )
  218. );
  219. $this->services_skus = new Google_Service_Cloudbilling_Resource_ServicesSkus(
  220. $this,
  221. $this->serviceName,
  222. 'skus',
  223. array(
  224. 'methods' => array(
  225. 'list' => array(
  226. 'path' => 'v1/{+parent}/skus',
  227. 'httpMethod' => 'GET',
  228. 'parameters' => array(
  229. 'parent' => array(
  230. 'location' => 'path',
  231. 'type' => 'string',
  232. 'required' => true,
  233. ),
  234. 'currencyCode' => array(
  235. 'location' => 'query',
  236. 'type' => 'string',
  237. ),
  238. 'endTime' => array(
  239. 'location' => 'query',
  240. 'type' => 'string',
  241. ),
  242. 'pageToken' => array(
  243. 'location' => 'query',
  244. 'type' => 'string',
  245. ),
  246. 'startTime' => array(
  247. 'location' => 'query',
  248. 'type' => 'string',
  249. ),
  250. 'pageSize' => array(
  251. 'location' => 'query',
  252. 'type' => 'integer',
  253. ),
  254. ),
  255. ),
  256. )
  257. )
  258. );
  259. }
  260. }