Ei kuvausta

FirebaseRules.php 7.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  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 FirebaseRules (v1).
  19. *
  20. * <p>
  21. * Creates and manages rules that determine when a Firebase Rules-enabled
  22. * service should permit a request.</p>
  23. *
  24. * <p>
  25. * For more information about this service, see the API
  26. * <a href="https://firebase.google.com/docs/storage/security" target="_blank">Documentation</a>
  27. * </p>
  28. *
  29. * @author Google, Inc.
  30. */
  31. class Google_Service_FirebaseRules 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. /** View and administer all your Firebase data and settings. */
  37. const FIREBASE =
  38. "https://www.googleapis.com/auth/firebase";
  39. /** View all your Firebase data and settings. */
  40. const FIREBASE_READONLY =
  41. "https://www.googleapis.com/auth/firebase.readonly";
  42. public $projects;
  43. public $projects_releases;
  44. public $projects_rulesets;
  45. /**
  46. * Constructs the internal representation of the FirebaseRules service.
  47. *
  48. * @param Google_Client $client
  49. */
  50. public function __construct(Google_Client $client)
  51. {
  52. parent::__construct($client);
  53. $this->rootUrl = 'https://firebaserules.googleapis.com/';
  54. $this->servicePath = '';
  55. $this->version = 'v1';
  56. $this->serviceName = 'firebaserules';
  57. $this->projects = new Google_Service_FirebaseRules_Resource_Projects(
  58. $this,
  59. $this->serviceName,
  60. 'projects',
  61. array(
  62. 'methods' => array(
  63. 'test' => array(
  64. 'path' => 'v1/{+name}:test',
  65. 'httpMethod' => 'POST',
  66. 'parameters' => array(
  67. 'name' => array(
  68. 'location' => 'path',
  69. 'type' => 'string',
  70. 'required' => true,
  71. ),
  72. ),
  73. ),
  74. )
  75. )
  76. );
  77. $this->projects_releases = new Google_Service_FirebaseRules_Resource_ProjectsReleases(
  78. $this,
  79. $this->serviceName,
  80. 'releases',
  81. array(
  82. 'methods' => array(
  83. 'create' => array(
  84. 'path' => 'v1/{+name}/releases',
  85. 'httpMethod' => 'POST',
  86. 'parameters' => array(
  87. 'name' => array(
  88. 'location' => 'path',
  89. 'type' => 'string',
  90. 'required' => true,
  91. ),
  92. ),
  93. ),'delete' => array(
  94. 'path' => 'v1/{+name}',
  95. 'httpMethod' => 'DELETE',
  96. 'parameters' => array(
  97. 'name' => array(
  98. 'location' => 'path',
  99. 'type' => 'string',
  100. 'required' => true,
  101. ),
  102. ),
  103. ),'get' => array(
  104. 'path' => 'v1/{+name}',
  105. 'httpMethod' => 'GET',
  106. 'parameters' => array(
  107. 'name' => array(
  108. 'location' => 'path',
  109. 'type' => 'string',
  110. 'required' => true,
  111. ),
  112. ),
  113. ),'getExecutable' => array(
  114. 'path' => 'v1/{+name}:getExecutable',
  115. 'httpMethod' => 'GET',
  116. 'parameters' => array(
  117. 'name' => array(
  118. 'location' => 'path',
  119. 'type' => 'string',
  120. 'required' => true,
  121. ),
  122. 'executableVersion' => array(
  123. 'location' => 'query',
  124. 'type' => 'string',
  125. ),
  126. ),
  127. ),'list' => array(
  128. 'path' => 'v1/{+name}/releases',
  129. 'httpMethod' => 'GET',
  130. 'parameters' => array(
  131. 'name' => array(
  132. 'location' => 'path',
  133. 'type' => 'string',
  134. 'required' => true,
  135. ),
  136. 'pageToken' => array(
  137. 'location' => 'query',
  138. 'type' => 'string',
  139. ),
  140. 'pageSize' => array(
  141. 'location' => 'query',
  142. 'type' => 'integer',
  143. ),
  144. 'filter' => array(
  145. 'location' => 'query',
  146. 'type' => 'string',
  147. ),
  148. ),
  149. ),'patch' => array(
  150. 'path' => 'v1/{+name}',
  151. 'httpMethod' => 'PATCH',
  152. 'parameters' => array(
  153. 'name' => array(
  154. 'location' => 'path',
  155. 'type' => 'string',
  156. 'required' => true,
  157. ),
  158. ),
  159. ),
  160. )
  161. )
  162. );
  163. $this->projects_rulesets = new Google_Service_FirebaseRules_Resource_ProjectsRulesets(
  164. $this,
  165. $this->serviceName,
  166. 'rulesets',
  167. array(
  168. 'methods' => array(
  169. 'create' => array(
  170. 'path' => 'v1/{+name}/rulesets',
  171. 'httpMethod' => 'POST',
  172. 'parameters' => array(
  173. 'name' => array(
  174. 'location' => 'path',
  175. 'type' => 'string',
  176. 'required' => true,
  177. ),
  178. ),
  179. ),'delete' => array(
  180. 'path' => 'v1/{+name}',
  181. 'httpMethod' => 'DELETE',
  182. 'parameters' => array(
  183. 'name' => array(
  184. 'location' => 'path',
  185. 'type' => 'string',
  186. 'required' => true,
  187. ),
  188. ),
  189. ),'get' => array(
  190. 'path' => 'v1/{+name}',
  191. 'httpMethod' => 'GET',
  192. 'parameters' => array(
  193. 'name' => array(
  194. 'location' => 'path',
  195. 'type' => 'string',
  196. 'required' => true,
  197. ),
  198. ),
  199. ),'list' => array(
  200. 'path' => 'v1/{+name}/rulesets',
  201. 'httpMethod' => 'GET',
  202. 'parameters' => array(
  203. 'name' => array(
  204. 'location' => 'path',
  205. 'type' => 'string',
  206. 'required' => true,
  207. ),
  208. 'pageToken' => array(
  209. 'location' => 'query',
  210. 'type' => 'string',
  211. ),
  212. 'pageSize' => array(
  213. 'location' => 'query',
  214. 'type' => 'integer',
  215. ),
  216. 'filter' => array(
  217. 'location' => 'query',
  218. 'type' => 'string',
  219. ),
  220. ),
  221. ),
  222. )
  223. )
  224. );
  225. }
  226. }