google-api-client 0.44.1 → 0.44.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (291) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +119 -0
  3. data/api_names.yaml +1 -0
  4. data/generated/google/apis/accessapproval_v1.rb +1 -1
  5. data/generated/google/apis/accessapproval_v1/classes.rb +6 -4
  6. data/generated/google/apis/accesscontextmanager_v1.rb +1 -1
  7. data/generated/google/apis/accesscontextmanager_v1beta.rb +1 -1
  8. data/generated/google/apis/admin_directory_v1.rb +1 -1
  9. data/generated/google/apis/admin_directory_v1/classes.rb +1 -15
  10. data/generated/google/apis/admin_directory_v1/representations.rb +1 -14
  11. data/generated/google/apis/admin_directory_v1/service.rb +89 -1
  12. data/generated/google/apis/admob_v1.rb +1 -1
  13. data/generated/google/apis/analyticsdata_v1alpha.rb +37 -0
  14. data/generated/google/apis/analyticsdata_v1alpha/classes.rb +1610 -0
  15. data/generated/google/apis/analyticsdata_v1alpha/representations.rb +789 -0
  16. data/generated/google/apis/analyticsdata_v1alpha/service.rb +220 -0
  17. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  18. data/generated/google/apis/androidpublisher_v3.rb +1 -1
  19. data/generated/google/apis/apigateway_v1alpha1.rb +34 -0
  20. data/generated/google/apis/apigateway_v1alpha1/classes.rb +633 -0
  21. data/generated/google/apis/apigateway_v1alpha1/representations.rb +250 -0
  22. data/generated/google/apis/apigateway_v1alpha1/service.rb +623 -0
  23. data/generated/google/apis/apigateway_v1beta.rb +34 -0
  24. data/generated/google/apis/apigateway_v1beta/classes.rb +1162 -0
  25. data/generated/google/apis/apigateway_v1beta/representations.rb +470 -0
  26. data/generated/google/apis/apigateway_v1beta/service.rb +1172 -0
  27. data/generated/google/apis/appengine_v1.rb +1 -1
  28. data/generated/google/apis/appengine_v1/classes.rb +51 -24
  29. data/generated/google/apis/appengine_v1/representations.rb +15 -0
  30. data/generated/google/apis/appengine_v1beta.rb +1 -1
  31. data/generated/google/apis/appengine_v1beta/classes.rb +58 -24
  32. data/generated/google/apis/appengine_v1beta/representations.rb +16 -0
  33. data/generated/google/apis/bigquery_v2.rb +1 -1
  34. data/generated/google/apis/bigquery_v2/classes.rb +26 -0
  35. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  36. data/generated/google/apis/bigtableadmin_v1.rb +1 -1
  37. data/generated/google/apis/bigtableadmin_v1/classes.rb +87 -119
  38. data/generated/google/apis/bigtableadmin_v2.rb +1 -1
  39. data/generated/google/apis/bigtableadmin_v2/classes.rb +405 -607
  40. data/generated/google/apis/bigtableadmin_v2/service.rb +194 -247
  41. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  42. data/generated/google/apis/binaryauthorization_v1/classes.rb +7 -0
  43. data/generated/google/apis/binaryauthorization_v1/representations.rb +1 -0
  44. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  45. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +7 -0
  46. data/generated/google/apis/binaryauthorization_v1beta1/representations.rb +1 -0
  47. data/generated/google/apis/calendar_v3.rb +1 -1
  48. data/generated/google/apis/calendar_v3/classes.rb +11 -9
  49. data/generated/google/apis/civicinfo_v2.rb +1 -1
  50. data/generated/google/apis/civicinfo_v2/classes.rb +18 -8
  51. data/generated/google/apis/civicinfo_v2/representations.rb +2 -0
  52. data/generated/google/apis/cloudasset_v1.rb +1 -1
  53. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  54. data/generated/google/apis/cloudasset_v1p5beta1.rb +1 -1
  55. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  56. data/generated/google/apis/cloudbuild_v1/classes.rb +81 -1
  57. data/generated/google/apis/cloudbuild_v1/representations.rb +22 -0
  58. data/generated/google/apis/cloudbuild_v1/service.rb +217 -3
  59. data/generated/google/apis/cloudbuild_v1alpha1.rb +1 -1
  60. data/generated/google/apis/cloudbuild_v1alpha1/classes.rb +8 -0
  61. data/generated/google/apis/cloudbuild_v1alpha1/representations.rb +1 -0
  62. data/generated/google/apis/cloudbuild_v1alpha2.rb +1 -1
  63. data/generated/google/apis/cloudbuild_v1alpha2/classes.rb +8 -0
  64. data/generated/google/apis/cloudbuild_v1alpha2/representations.rb +1 -0
  65. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  66. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  67. data/generated/google/apis/cloudidentity_v1/classes.rb +270 -2
  68. data/generated/google/apis/cloudidentity_v1/representations.rb +139 -0
  69. data/generated/google/apis/cloudidentity_v1/service.rb +759 -0
  70. data/generated/google/apis/cloudidentity_v1beta1.rb +1 -1
  71. data/generated/google/apis/cloudidentity_v1beta1/classes.rb +20 -7
  72. data/generated/google/apis/cloudiot_v1.rb +1 -1
  73. data/generated/google/apis/cloudiot_v1/classes.rb +7 -0
  74. data/generated/google/apis/cloudiot_v1/representations.rb +1 -0
  75. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  76. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +14 -7
  77. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +1 -0
  78. data/generated/google/apis/cloudresourcemanager_v1/service.rb +59 -57
  79. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  80. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +11 -4
  81. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +1 -0
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +23 -22
  83. data/generated/google/apis/cloudresourcemanager_v2.rb +1 -1
  84. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +7 -0
  85. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +1 -0
  86. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +1 -1
  87. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +7 -0
  88. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +1 -0
  89. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  90. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  91. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +18 -18
  92. data/generated/google/apis/container_v1.rb +1 -1
  93. data/generated/google/apis/container_v1/classes.rb +57 -2
  94. data/generated/google/apis/container_v1/representations.rb +7 -0
  95. data/generated/google/apis/container_v1beta1.rb +1 -1
  96. data/generated/google/apis/container_v1beta1/classes.rb +52 -8
  97. data/generated/google/apis/container_v1beta1/representations.rb +6 -0
  98. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  99. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +7 -0
  100. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  101. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  102. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +7 -0
  103. data/generated/google/apis/containeranalysis_v1beta1/representations.rb +1 -0
  104. data/generated/google/apis/content_v2.rb +1 -1
  105. data/generated/google/apis/content_v2/classes.rb +2 -1
  106. data/generated/google/apis/content_v2_1.rb +1 -1
  107. data/generated/google/apis/content_v2_1/classes.rb +14 -3
  108. data/generated/google/apis/content_v2_1/representations.rb +1 -0
  109. data/generated/google/apis/datacatalog_v1beta1.rb +1 -1
  110. data/generated/google/apis/datacatalog_v1beta1/classes.rb +7 -0
  111. data/generated/google/apis/datacatalog_v1beta1/representations.rb +1 -0
  112. data/generated/google/apis/datafusion_v1.rb +1 -1
  113. data/generated/google/apis/datafusion_v1/classes.rb +15 -0
  114. data/generated/google/apis/datafusion_v1/representations.rb +2 -0
  115. data/generated/google/apis/datafusion_v1beta1.rb +1 -1
  116. data/generated/google/apis/datafusion_v1beta1/classes.rb +15 -0
  117. data/generated/google/apis/datafusion_v1beta1/representations.rb +2 -0
  118. data/generated/google/apis/dataproc_v1.rb +1 -1
  119. data/generated/google/apis/dataproc_v1/classes.rb +22 -9
  120. data/generated/google/apis/dataproc_v1/representations.rb +2 -0
  121. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  122. data/generated/google/apis/dataproc_v1beta2/classes.rb +22 -9
  123. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  124. data/generated/google/apis/dialogflow_v2.rb +1 -1
  125. data/generated/google/apis/dialogflow_v2/classes.rb +42 -26
  126. data/generated/google/apis/dialogflow_v2/representations.rb +1 -0
  127. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  128. data/generated/google/apis/dialogflow_v2beta1/classes.rb +53 -34
  129. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
  130. data/generated/google/apis/dialogflow_v2beta1/service.rb +458 -320
  131. data/generated/google/apis/dialogflow_v3beta1.rb +1 -1
  132. data/generated/google/apis/dialogflow_v3beta1/classes.rb +42 -33
  133. data/generated/google/apis/dialogflow_v3beta1/representations.rb +1 -1
  134. data/generated/google/apis/digitalassetlinks_v1.rb +1 -1
  135. data/generated/google/apis/digitalassetlinks_v1/classes.rb +66 -92
  136. data/generated/google/apis/digitalassetlinks_v1/service.rb +131 -188
  137. data/generated/google/apis/displayvideo_v1.rb +1 -1
  138. data/generated/google/apis/displayvideo_v1/service.rb +2 -2
  139. data/generated/google/apis/displayvideo_v1beta.rb +38 -0
  140. data/generated/google/apis/displayvideo_v1beta/classes.rb +146 -0
  141. data/generated/google/apis/displayvideo_v1beta/representations.rb +72 -0
  142. data/generated/google/apis/displayvideo_v1beta/service.rb +161 -0
  143. data/generated/google/apis/displayvideo_v1beta2.rb +38 -0
  144. data/generated/google/apis/displayvideo_v1beta2/classes.rb +146 -0
  145. data/generated/google/apis/displayvideo_v1beta2/representations.rb +72 -0
  146. data/generated/google/apis/displayvideo_v1beta2/service.rb +130 -0
  147. data/generated/google/apis/displayvideo_v1dev.rb +38 -0
  148. data/generated/google/apis/displayvideo_v1dev/classes.rb +146 -0
  149. data/generated/google/apis/displayvideo_v1dev/representations.rb +72 -0
  150. data/generated/google/apis/displayvideo_v1dev/service.rb +130 -0
  151. data/generated/google/apis/dlp_v2.rb +1 -1
  152. data/generated/google/apis/dlp_v2/classes.rb +5 -5
  153. data/generated/google/apis/documentai_v1beta2.rb +1 -1
  154. data/generated/google/apis/documentai_v1beta2/classes.rb +1059 -6
  155. data/generated/google/apis/documentai_v1beta2/representations.rb +398 -0
  156. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  157. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -2
  158. data/generated/google/apis/doubleclickbidmanager_v1_1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1_1/classes.rb +1 -2
  160. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  161. data/generated/google/apis/firebase_v1beta1/classes.rb +8 -4
  162. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  163. data/generated/google/apis/firebasehosting_v1beta1.rb +1 -1
  164. data/generated/google/apis/firebasehosting_v1beta1/classes.rb +160 -0
  165. data/generated/google/apis/firebasehosting_v1beta1/representations.rb +68 -0
  166. data/generated/google/apis/firebasehosting_v1beta1/service.rb +414 -0
  167. data/generated/google/apis/firebaseml_v1beta2.rb +1 -1
  168. data/generated/google/apis/firebaseml_v1beta2/classes.rb +8 -0
  169. data/generated/google/apis/firebaseml_v1beta2/representations.rb +1 -0
  170. data/generated/google/apis/firestore_v1.rb +1 -1
  171. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  172. data/generated/google/apis/fitness_v1.rb +3 -3
  173. data/generated/google/apis/fitness_v1/classes.rb +5 -5
  174. data/generated/google/apis/games_v1.rb +1 -1
  175. data/generated/google/apis/gameservices_v1.rb +1 -1
  176. data/generated/google/apis/gameservices_v1/classes.rb +7 -0
  177. data/generated/google/apis/gameservices_v1/representations.rb +1 -0
  178. data/generated/google/apis/gameservices_v1beta.rb +1 -1
  179. data/generated/google/apis/gameservices_v1beta/classes.rb +7 -0
  180. data/generated/google/apis/gameservices_v1beta/representations.rb +1 -0
  181. data/generated/google/apis/healthcare_v1.rb +1 -1
  182. data/generated/google/apis/healthcare_v1/classes.rb +72 -0
  183. data/generated/google/apis/healthcare_v1/representations.rb +32 -0
  184. data/generated/google/apis/healthcare_v1/service.rb +182 -16
  185. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  186. data/generated/google/apis/healthcare_v1beta1/service.rb +231 -16
  187. data/generated/google/apis/homegraph_v1.rb +4 -1
  188. data/generated/google/apis/iam_v1.rb +1 -1
  189. data/generated/google/apis/iam_v1/classes.rb +7 -0
  190. data/generated/google/apis/iam_v1/representations.rb +1 -0
  191. data/generated/google/apis/iap_v1.rb +1 -1
  192. data/generated/google/apis/iap_v1/classes.rb +7 -0
  193. data/generated/google/apis/iap_v1/representations.rb +1 -0
  194. data/generated/google/apis/iap_v1beta1.rb +1 -1
  195. data/generated/google/apis/iap_v1beta1/classes.rb +7 -0
  196. data/generated/google/apis/iap_v1beta1/representations.rb +1 -0
  197. data/generated/google/apis/jobs_v2.rb +1 -1
  198. data/generated/google/apis/jobs_v2/classes.rb +786 -1086
  199. data/generated/google/apis/jobs_v2/service.rb +85 -126
  200. data/generated/google/apis/jobs_v3.rb +1 -1
  201. data/generated/google/apis/jobs_v3/classes.rb +637 -856
  202. data/generated/google/apis/jobs_v3/service.rb +101 -139
  203. data/generated/google/apis/jobs_v3p1beta1.rb +1 -1
  204. data/generated/google/apis/jobs_v3p1beta1/classes.rb +762 -1023
  205. data/generated/google/apis/jobs_v3p1beta1/service.rb +103 -142
  206. data/generated/google/apis/managedidentities_v1alpha1.rb +1 -1
  207. data/generated/google/apis/managedidentities_v1alpha1/classes.rb +8 -0
  208. data/generated/google/apis/managedidentities_v1alpha1/representations.rb +1 -0
  209. data/generated/google/apis/managedidentities_v1beta1.rb +1 -1
  210. data/generated/google/apis/managedidentities_v1beta1/classes.rb +8 -0
  211. data/generated/google/apis/managedidentities_v1beta1/representations.rb +1 -0
  212. data/generated/google/apis/ml_v1.rb +1 -1
  213. data/generated/google/apis/ml_v1/classes.rb +7 -0
  214. data/generated/google/apis/ml_v1/representations.rb +1 -0
  215. data/generated/google/apis/ml_v1/service.rb +1 -1
  216. data/generated/google/apis/monitoring_v1.rb +1 -1
  217. data/generated/google/apis/monitoring_v1/classes.rb +9 -5
  218. data/generated/google/apis/osconfig_v1.rb +1 -1
  219. data/generated/google/apis/osconfig_v1/classes.rb +0 -704
  220. data/generated/google/apis/osconfig_v1/representations.rb +0 -337
  221. data/generated/google/apis/osconfig_v1beta.rb +1 -1
  222. data/generated/google/apis/osconfig_v1beta/classes.rb +0 -704
  223. data/generated/google/apis/osconfig_v1beta/representations.rb +0 -337
  224. data/generated/google/apis/playcustomapp_v1.rb +1 -1
  225. data/generated/google/apis/playcustomapp_v1/service.rb +2 -2
  226. data/generated/google/apis/prod_tt_sasportal_v1alpha1.rb +1 -1
  227. data/generated/google/apis/prod_tt_sasportal_v1alpha1/classes.rb +20 -0
  228. data/generated/google/apis/prod_tt_sasportal_v1alpha1/representations.rb +13 -0
  229. data/generated/google/apis/prod_tt_sasportal_v1alpha1/service.rb +479 -0
  230. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  231. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  232. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  233. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  234. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +7 -0
  235. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +1 -0
  236. data/generated/google/apis/safebrowsing_v4.rb +1 -1
  237. data/generated/google/apis/secretmanager_v1.rb +1 -1
  238. data/generated/google/apis/secretmanager_v1/classes.rb +168 -2
  239. data/generated/google/apis/secretmanager_v1/representations.rb +92 -0
  240. data/generated/google/apis/secretmanager_v1beta1.rb +1 -1
  241. data/generated/google/apis/secretmanager_v1beta1/classes.rb +7 -0
  242. data/generated/google/apis/secretmanager_v1beta1/representations.rb +1 -0
  243. data/generated/google/apis/servicedirectory_v1beta1.rb +1 -1
  244. data/generated/google/apis/servicedirectory_v1beta1/classes.rb +7 -0
  245. data/generated/google/apis/servicedirectory_v1beta1/representations.rb +1 -0
  246. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  247. data/generated/google/apis/servicenetworking_v1/classes.rb +0 -9
  248. data/generated/google/apis/servicenetworking_v1/representations.rb +0 -1
  249. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  250. data/generated/google/apis/sql_v1beta4.rb +1 -1
  251. data/generated/google/apis/storage_v1.rb +1 -1
  252. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  253. data/generated/google/apis/sts_v1.rb +32 -0
  254. data/generated/google/apis/sts_v1/classes.rb +120 -0
  255. data/generated/google/apis/sts_v1/representations.rb +59 -0
  256. data/generated/google/apis/sts_v1/service.rb +90 -0
  257. data/generated/google/apis/sts_v1beta.rb +32 -0
  258. data/generated/google/apis/sts_v1beta/classes.rb +191 -0
  259. data/generated/google/apis/sts_v1beta/representations.rb +61 -0
  260. data/generated/google/apis/sts_v1beta/service.rb +92 -0
  261. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  262. data/generated/google/apis/tpu_v1.rb +1 -1
  263. data/generated/google/apis/tpu_v1/classes.rb +43 -0
  264. data/generated/google/apis/tpu_v1/representations.rb +18 -0
  265. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  266. data/generated/google/apis/tpu_v1alpha1/classes.rb +43 -0
  267. data/generated/google/apis/tpu_v1alpha1/representations.rb +18 -0
  268. data/generated/google/apis/vault_v1.rb +1 -1
  269. data/generated/google/apis/vault_v1/classes.rb +80 -103
  270. data/generated/google/apis/vault_v1/service.rb +31 -37
  271. data/generated/google/apis/verifiedaccess_v1.rb +1 -1
  272. data/generated/google/apis/verifiedaccess_v1/classes.rb +20 -27
  273. data/generated/google/apis/videointelligence_v1.rb +1 -1
  274. data/generated/google/apis/videointelligence_v1/service.rb +31 -0
  275. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  276. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  277. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  278. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  279. data/generated/google/apis/vision_v1.rb +1 -1
  280. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  281. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  282. data/generated/google/apis/workflowexecutions_v1beta.rb +34 -0
  283. data/generated/google/apis/workflowexecutions_v1beta/classes.rb +155 -0
  284. data/generated/google/apis/workflowexecutions_v1beta/representations.rb +88 -0
  285. data/generated/google/apis/workflowexecutions_v1beta/service.rb +211 -0
  286. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  287. data/generated/google/apis/youtube_v3.rb +1 -1
  288. data/generated/google/apis/youtube_v3/service.rb +78 -78
  289. data/google-api-client.gemspec +2 -1
  290. data/lib/google/apis/version.rb +1 -1
  291. metadata +54 -4
@@ -0,0 +1,250 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module ApigatewayV1alpha1
24
+
25
+ class ApigatewayAuditConfig
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class ApigatewayAuditLogConfig
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class ApigatewayBinding
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ApigatewayCancelOperationRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class ApigatewayExpr
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class ApigatewayListLocationsResponse
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
61
+ class ApigatewayListOperationsResponse
62
+ class Representation < Google::Apis::Core::JsonRepresentation; end
63
+
64
+ include Google::Apis::Core::JsonObjectSupport
65
+ end
66
+
67
+ class ApigatewayLocation
68
+ class Representation < Google::Apis::Core::JsonRepresentation; end
69
+
70
+ include Google::Apis::Core::JsonObjectSupport
71
+ end
72
+
73
+ class ApigatewayOperation
74
+ class Representation < Google::Apis::Core::JsonRepresentation; end
75
+
76
+ include Google::Apis::Core::JsonObjectSupport
77
+ end
78
+
79
+ class ApigatewayPolicy
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class ApigatewaySetIamPolicyRequest
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
91
+ class ApigatewayStatus
92
+ class Representation < Google::Apis::Core::JsonRepresentation; end
93
+
94
+ include Google::Apis::Core::JsonObjectSupport
95
+ end
96
+
97
+ class ApigatewayTestIamPermissionsRequest
98
+ class Representation < Google::Apis::Core::JsonRepresentation; end
99
+
100
+ include Google::Apis::Core::JsonObjectSupport
101
+ end
102
+
103
+ class ApigatewayTestIamPermissionsResponse
104
+ class Representation < Google::Apis::Core::JsonRepresentation; end
105
+
106
+ include Google::Apis::Core::JsonObjectSupport
107
+ end
108
+
109
+ class Empty
110
+ class Representation < Google::Apis::Core::JsonRepresentation; end
111
+
112
+ include Google::Apis::Core::JsonObjectSupport
113
+ end
114
+
115
+ class ApigatewayAuditConfig
116
+ # @private
117
+ class Representation < Google::Apis::Core::JsonRepresentation
118
+ collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditLogConfig::Representation
119
+
120
+ property :service, as: 'service'
121
+ end
122
+ end
123
+
124
+ class ApigatewayAuditLogConfig
125
+ # @private
126
+ class Representation < Google::Apis::Core::JsonRepresentation
127
+ collection :exempted_members, as: 'exemptedMembers'
128
+ property :log_type, as: 'logType'
129
+ end
130
+ end
131
+
132
+ class ApigatewayBinding
133
+ # @private
134
+ class Representation < Google::Apis::Core::JsonRepresentation
135
+ property :condition, as: 'condition', class: Google::Apis::ApigatewayV1alpha1::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayExpr::Representation
136
+
137
+ collection :members, as: 'members'
138
+ property :role, as: 'role'
139
+ end
140
+ end
141
+
142
+ class ApigatewayCancelOperationRequest
143
+ # @private
144
+ class Representation < Google::Apis::Core::JsonRepresentation
145
+ end
146
+ end
147
+
148
+ class ApigatewayExpr
149
+ # @private
150
+ class Representation < Google::Apis::Core::JsonRepresentation
151
+ property :description, as: 'description'
152
+ property :expression, as: 'expression'
153
+ property :location, as: 'location'
154
+ property :title, as: 'title'
155
+ end
156
+ end
157
+
158
+ class ApigatewayListLocationsResponse
159
+ # @private
160
+ class Representation < Google::Apis::Core::JsonRepresentation
161
+ collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1alpha1::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayLocation::Representation
162
+
163
+ property :next_page_token, as: 'nextPageToken'
164
+ end
165
+ end
166
+
167
+ class ApigatewayListOperationsResponse
168
+ # @private
169
+ class Representation < Google::Apis::Core::JsonRepresentation
170
+ property :next_page_token, as: 'nextPageToken'
171
+ collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1alpha1::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayOperation::Representation
172
+
173
+ end
174
+ end
175
+
176
+ class ApigatewayLocation
177
+ # @private
178
+ class Representation < Google::Apis::Core::JsonRepresentation
179
+ property :display_name, as: 'displayName'
180
+ hash :labels, as: 'labels'
181
+ property :location_id, as: 'locationId'
182
+ hash :metadata, as: 'metadata'
183
+ property :name, as: 'name'
184
+ end
185
+ end
186
+
187
+ class ApigatewayOperation
188
+ # @private
189
+ class Representation < Google::Apis::Core::JsonRepresentation
190
+ property :done, as: 'done'
191
+ property :error, as: 'error', class: Google::Apis::ApigatewayV1alpha1::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayStatus::Representation
192
+
193
+ hash :metadata, as: 'metadata'
194
+ property :name, as: 'name'
195
+ hash :response, as: 'response'
196
+ end
197
+ end
198
+
199
+ class ApigatewayPolicy
200
+ # @private
201
+ class Representation < Google::Apis::Core::JsonRepresentation
202
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditConfig::Representation
203
+
204
+ collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1alpha1::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayBinding::Representation
205
+
206
+ property :etag, :base64 => true, as: 'etag'
207
+ property :version, as: 'version'
208
+ end
209
+ end
210
+
211
+ class ApigatewaySetIamPolicyRequest
212
+ # @private
213
+ class Representation < Google::Apis::Core::JsonRepresentation
214
+ property :policy, as: 'policy', class: Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
215
+
216
+ property :update_mask, as: 'updateMask'
217
+ end
218
+ end
219
+
220
+ class ApigatewayStatus
221
+ # @private
222
+ class Representation < Google::Apis::Core::JsonRepresentation
223
+ property :code, as: 'code'
224
+ collection :details, as: 'details'
225
+ property :message, as: 'message'
226
+ end
227
+ end
228
+
229
+ class ApigatewayTestIamPermissionsRequest
230
+ # @private
231
+ class Representation < Google::Apis::Core::JsonRepresentation
232
+ collection :permissions, as: 'permissions'
233
+ end
234
+ end
235
+
236
+ class ApigatewayTestIamPermissionsResponse
237
+ # @private
238
+ class Representation < Google::Apis::Core::JsonRepresentation
239
+ collection :permissions, as: 'permissions'
240
+ end
241
+ end
242
+
243
+ class Empty
244
+ # @private
245
+ class Representation < Google::Apis::Core::JsonRepresentation
246
+ end
247
+ end
248
+ end
249
+ end
250
+ end
@@ -0,0 +1,623 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module ApigatewayV1alpha1
23
+ # API Gateway API
24
+ #
25
+ #
26
+ #
27
+ # @example
28
+ # require 'google/apis/apigateway_v1alpha1'
29
+ #
30
+ # Apigateway = Google::Apis::ApigatewayV1alpha1 # Alias the module
31
+ # service = Apigateway::ApigatewayService.new
32
+ #
33
+ # @see https://cloud.google.com/api-gateway/docs
34
+ class ApigatewayService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ attr_accessor :quota_user
44
+
45
+ def initialize
46
+ super('https://apigateway.googleapis.com/', '')
47
+ @batch_path = 'batch'
48
+ end
49
+
50
+ # Gets information about a location.
51
+ # @param [String] name
52
+ # Resource name for the location.
53
+ # @param [String] fields
54
+ # Selector specifying which fields to include in a partial response.
55
+ # @param [String] quota_user
56
+ # Available to use for quota purposes for server-side applications. Can be any
57
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
58
+ # @param [Google::Apis::RequestOptions] options
59
+ # Request-specific options
60
+ #
61
+ # @yield [result, err] Result & error if block supplied
62
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayLocation] parsed result object
63
+ # @yieldparam err [StandardError] error object if request failed
64
+ #
65
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayLocation]
66
+ #
67
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
68
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
69
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70
+ def get_project_location(name, fields: nil, quota_user: nil, options: nil, &block)
71
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
72
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayLocation::Representation
73
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayLocation
74
+ command.params['name'] = name unless name.nil?
75
+ command.query['fields'] = fields unless fields.nil?
76
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
77
+ execute_or_queue_command(command, &block)
78
+ end
79
+
80
+ # Lists information about the supported locations for this service.
81
+ # @param [String] name
82
+ # The resource that owns the locations collection, if applicable.
83
+ # @param [String] filter
84
+ # The standard list filter.
85
+ # @param [Fixnum] page_size
86
+ # The standard list page size.
87
+ # @param [String] page_token
88
+ # The standard list page token.
89
+ # @param [String] fields
90
+ # Selector specifying which fields to include in a partial response.
91
+ # @param [String] quota_user
92
+ # Available to use for quota purposes for server-side applications. Can be any
93
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
94
+ # @param [Google::Apis::RequestOptions] options
95
+ # Request-specific options
96
+ #
97
+ # @yield [result, err] Result & error if block supplied
98
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse] parsed result object
99
+ # @yieldparam err [StandardError] error object if request failed
100
+ #
101
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse]
102
+ #
103
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
104
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
105
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
106
+ def list_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
107
+ command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options)
108
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse::Representation
109
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse
110
+ command.params['name'] = name unless name.nil?
111
+ command.query['filter'] = filter unless filter.nil?
112
+ command.query['pageSize'] = page_size unless page_size.nil?
113
+ command.query['pageToken'] = page_token unless page_token.nil?
114
+ command.query['fields'] = fields unless fields.nil?
115
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
116
+ execute_or_queue_command(command, &block)
117
+ end
118
+
119
+ # Gets the access control policy for a resource. Returns an empty policy if the
120
+ # resource exists and does not have a policy set.
121
+ # @param [String] resource
122
+ # REQUIRED: The resource for which the policy is being requested. See the
123
+ # operation documentation for the appropriate value for this field.
124
+ # @param [Fixnum] options_requested_policy_version
125
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
126
+ # 3. Requests specifying an invalid value will be rejected. Requests for
127
+ # policies with any conditional bindings must specify version 3. Policies
128
+ # without any conditional bindings may specify any valid value or leave the
129
+ # field unset. To learn which resources support conditions in their IAM policies,
130
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
131
+ # resource-policies).
132
+ # @param [String] fields
133
+ # Selector specifying which fields to include in a partial response.
134
+ # @param [String] quota_user
135
+ # Available to use for quota purposes for server-side applications. Can be any
136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
137
+ # @param [Google::Apis::RequestOptions] options
138
+ # Request-specific options
139
+ #
140
+ # @yield [result, err] Result & error if block supplied
141
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
142
+ # @yieldparam err [StandardError] error object if request failed
143
+ #
144
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
145
+ #
146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
149
+ def get_project_location_api_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
150
+ command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
151
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
152
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
153
+ command.params['resource'] = resource unless resource.nil?
154
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
155
+ command.query['fields'] = fields unless fields.nil?
156
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
157
+ execute_or_queue_command(command, &block)
158
+ end
159
+
160
+ # Sets the access control policy on the specified resource. Replaces any
161
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
162
+ # PERMISSION_DENIED` errors.
163
+ # @param [String] resource
164
+ # REQUIRED: The resource for which the policy is being specified. See the
165
+ # operation documentation for the appropriate value for this field.
166
+ # @param [Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
167
+ # @param [String] fields
168
+ # Selector specifying which fields to include in a partial response.
169
+ # @param [String] quota_user
170
+ # Available to use for quota purposes for server-side applications. Can be any
171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
172
+ # @param [Google::Apis::RequestOptions] options
173
+ # Request-specific options
174
+ #
175
+ # @yield [result, err] Result & error if block supplied
176
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
177
+ # @yieldparam err [StandardError] error object if request failed
178
+ #
179
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
180
+ #
181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
184
+ def set_project_location_api_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
185
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
186
+ command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation
187
+ command.request_object = apigateway_set_iam_policy_request_object
188
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
189
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
190
+ command.params['resource'] = resource unless resource.nil?
191
+ command.query['fields'] = fields unless fields.nil?
192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
193
+ execute_or_queue_command(command, &block)
194
+ end
195
+
196
+ # Returns permissions that a caller has on the specified resource. If the
197
+ # resource does not exist, this will return an empty set of permissions, not a `
198
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
199
+ # permission-aware UIs and command-line tools, not for authorization checking.
200
+ # This operation may "fail open" without warning.
201
+ # @param [String] resource
202
+ # REQUIRED: The resource for which the policy detail is being requested. See the
203
+ # operation documentation for the appropriate value for this field.
204
+ # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
205
+ # @param [String] fields
206
+ # Selector specifying which fields to include in a partial response.
207
+ # @param [String] quota_user
208
+ # Available to use for quota purposes for server-side applications. Can be any
209
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
210
+ # @param [Google::Apis::RequestOptions] options
211
+ # Request-specific options
212
+ #
213
+ # @yield [result, err] Result & error if block supplied
214
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object
215
+ # @yieldparam err [StandardError] error object if request failed
216
+ #
217
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse]
218
+ #
219
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
220
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
221
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
222
+ def test_project_location_api_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
223
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
224
+ command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation
225
+ command.request_object = apigateway_test_iam_permissions_request_object
226
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation
227
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse
228
+ command.params['resource'] = resource unless resource.nil?
229
+ command.query['fields'] = fields unless fields.nil?
230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
231
+ execute_or_queue_command(command, &block)
232
+ end
233
+
234
+ # Gets the access control policy for a resource. Returns an empty policy if the
235
+ # resource exists and does not have a policy set.
236
+ # @param [String] resource
237
+ # REQUIRED: The resource for which the policy is being requested. See the
238
+ # operation documentation for the appropriate value for this field.
239
+ # @param [Fixnum] options_requested_policy_version
240
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
241
+ # 3. Requests specifying an invalid value will be rejected. Requests for
242
+ # policies with any conditional bindings must specify version 3. Policies
243
+ # without any conditional bindings may specify any valid value or leave the
244
+ # field unset. To learn which resources support conditions in their IAM policies,
245
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
246
+ # resource-policies).
247
+ # @param [String] fields
248
+ # Selector specifying which fields to include in a partial response.
249
+ # @param [String] quota_user
250
+ # Available to use for quota purposes for server-side applications. Can be any
251
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
252
+ # @param [Google::Apis::RequestOptions] options
253
+ # Request-specific options
254
+ #
255
+ # @yield [result, err] Result & error if block supplied
256
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
257
+ # @yieldparam err [StandardError] error object if request failed
258
+ #
259
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
260
+ #
261
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
262
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
263
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
264
+ def get_project_location_api_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
265
+ command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
266
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
267
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
268
+ command.params['resource'] = resource unless resource.nil?
269
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
270
+ command.query['fields'] = fields unless fields.nil?
271
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
272
+ execute_or_queue_command(command, &block)
273
+ end
274
+
275
+ # Sets the access control policy on the specified resource. Replaces any
276
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
277
+ # PERMISSION_DENIED` errors.
278
+ # @param [String] resource
279
+ # REQUIRED: The resource for which the policy is being specified. See the
280
+ # operation documentation for the appropriate value for this field.
281
+ # @param [Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
282
+ # @param [String] fields
283
+ # Selector specifying which fields to include in a partial response.
284
+ # @param [String] quota_user
285
+ # Available to use for quota purposes for server-side applications. Can be any
286
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
287
+ # @param [Google::Apis::RequestOptions] options
288
+ # Request-specific options
289
+ #
290
+ # @yield [result, err] Result & error if block supplied
291
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
292
+ # @yieldparam err [StandardError] error object if request failed
293
+ #
294
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
295
+ #
296
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
297
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
298
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
299
+ def set_project_location_api_config_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
300
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
301
+ command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation
302
+ command.request_object = apigateway_set_iam_policy_request_object
303
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
304
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
305
+ command.params['resource'] = resource unless resource.nil?
306
+ command.query['fields'] = fields unless fields.nil?
307
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
308
+ execute_or_queue_command(command, &block)
309
+ end
310
+
311
+ # Returns permissions that a caller has on the specified resource. If the
312
+ # resource does not exist, this will return an empty set of permissions, not a `
313
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
314
+ # permission-aware UIs and command-line tools, not for authorization checking.
315
+ # This operation may "fail open" without warning.
316
+ # @param [String] resource
317
+ # REQUIRED: The resource for which the policy detail is being requested. See the
318
+ # operation documentation for the appropriate value for this field.
319
+ # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
320
+ # @param [String] fields
321
+ # Selector specifying which fields to include in a partial response.
322
+ # @param [String] quota_user
323
+ # Available to use for quota purposes for server-side applications. Can be any
324
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
325
+ # @param [Google::Apis::RequestOptions] options
326
+ # Request-specific options
327
+ #
328
+ # @yield [result, err] Result & error if block supplied
329
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object
330
+ # @yieldparam err [StandardError] error object if request failed
331
+ #
332
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse]
333
+ #
334
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
335
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
336
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
337
+ def test_project_location_api_config_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
338
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
339
+ command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation
340
+ command.request_object = apigateway_test_iam_permissions_request_object
341
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation
342
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse
343
+ command.params['resource'] = resource unless resource.nil?
344
+ command.query['fields'] = fields unless fields.nil?
345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
346
+ execute_or_queue_command(command, &block)
347
+ end
348
+
349
+ # Gets the access control policy for a resource. Returns an empty policy if the
350
+ # resource exists and does not have a policy set.
351
+ # @param [String] resource
352
+ # REQUIRED: The resource for which the policy is being requested. See the
353
+ # operation documentation for the appropriate value for this field.
354
+ # @param [Fixnum] options_requested_policy_version
355
+ # Optional. The policy format version to be returned. Valid values are 0, 1, and
356
+ # 3. Requests specifying an invalid value will be rejected. Requests for
357
+ # policies with any conditional bindings must specify version 3. Policies
358
+ # without any conditional bindings may specify any valid value or leave the
359
+ # field unset. To learn which resources support conditions in their IAM policies,
360
+ # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
361
+ # resource-policies).
362
+ # @param [String] fields
363
+ # Selector specifying which fields to include in a partial response.
364
+ # @param [String] quota_user
365
+ # Available to use for quota purposes for server-side applications. Can be any
366
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
367
+ # @param [Google::Apis::RequestOptions] options
368
+ # Request-specific options
369
+ #
370
+ # @yield [result, err] Result & error if block supplied
371
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
372
+ # @yieldparam err [StandardError] error object if request failed
373
+ #
374
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
375
+ #
376
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
377
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
378
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
379
+ def get_project_location_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
380
+ command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options)
381
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
382
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
383
+ command.params['resource'] = resource unless resource.nil?
384
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
385
+ command.query['fields'] = fields unless fields.nil?
386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
387
+ execute_or_queue_command(command, &block)
388
+ end
389
+
390
+ # Sets the access control policy on the specified resource. Replaces any
391
+ # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `
392
+ # PERMISSION_DENIED` errors.
393
+ # @param [String] resource
394
+ # REQUIRED: The resource for which the policy is being specified. See the
395
+ # operation documentation for the appropriate value for this field.
396
+ # @param [Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object
397
+ # @param [String] fields
398
+ # Selector specifying which fields to include in a partial response.
399
+ # @param [String] quota_user
400
+ # Available to use for quota purposes for server-side applications. Can be any
401
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
402
+ # @param [Google::Apis::RequestOptions] options
403
+ # Request-specific options
404
+ #
405
+ # @yield [result, err] Result & error if block supplied
406
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object
407
+ # @yieldparam err [StandardError] error object if request failed
408
+ #
409
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy]
410
+ #
411
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
412
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
413
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
414
+ def set_project_location_gateway_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
415
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options)
416
+ command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation
417
+ command.request_object = apigateway_set_iam_policy_request_object
418
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation
419
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy
420
+ command.params['resource'] = resource unless resource.nil?
421
+ command.query['fields'] = fields unless fields.nil?
422
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
423
+ execute_or_queue_command(command, &block)
424
+ end
425
+
426
+ # Returns permissions that a caller has on the specified resource. If the
427
+ # resource does not exist, this will return an empty set of permissions, not a `
428
+ # NOT_FOUND` error. Note: This operation is designed to be used for building
429
+ # permission-aware UIs and command-line tools, not for authorization checking.
430
+ # This operation may "fail open" without warning.
431
+ # @param [String] resource
432
+ # REQUIRED: The resource for which the policy detail is being requested. See the
433
+ # operation documentation for the appropriate value for this field.
434
+ # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object
435
+ # @param [String] fields
436
+ # Selector specifying which fields to include in a partial response.
437
+ # @param [String] quota_user
438
+ # Available to use for quota purposes for server-side applications. Can be any
439
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
440
+ # @param [Google::Apis::RequestOptions] options
441
+ # Request-specific options
442
+ #
443
+ # @yield [result, err] Result & error if block supplied
444
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object
445
+ # @yieldparam err [StandardError] error object if request failed
446
+ #
447
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse]
448
+ #
449
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
450
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
451
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
452
+ def test_project_location_gateway_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
453
+ command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options)
454
+ command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation
455
+ command.request_object = apigateway_test_iam_permissions_request_object
456
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation
457
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse
458
+ command.params['resource'] = resource unless resource.nil?
459
+ command.query['fields'] = fields unless fields.nil?
460
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
461
+ execute_or_queue_command(command, &block)
462
+ end
463
+
464
+ # Starts asynchronous cancellation on a long-running operation. The server makes
465
+ # a best effort to cancel the operation, but success is not guaranteed. If the
466
+ # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
467
+ # Clients can use Operations.GetOperation or other methods to check whether the
468
+ # cancellation succeeded or whether the operation completed despite cancellation.
469
+ # On successful cancellation, the operation is not deleted; instead, it becomes
470
+ # an operation with an Operation.error value with a google.rpc.Status.code of 1,
471
+ # corresponding to `Code.CANCELLED`.
472
+ # @param [String] name
473
+ # The name of the operation resource to be cancelled.
474
+ # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayCancelOperationRequest] apigateway_cancel_operation_request_object
475
+ # @param [String] fields
476
+ # Selector specifying which fields to include in a partial response.
477
+ # @param [String] quota_user
478
+ # Available to use for quota purposes for server-side applications. Can be any
479
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
480
+ # @param [Google::Apis::RequestOptions] options
481
+ # Request-specific options
482
+ #
483
+ # @yield [result, err] Result & error if block supplied
484
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::Empty] parsed result object
485
+ # @yieldparam err [StandardError] error object if request failed
486
+ #
487
+ # @return [Google::Apis::ApigatewayV1alpha1::Empty]
488
+ #
489
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
490
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
491
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
492
+ def cancel_project_location_operation(name, apigateway_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
493
+ command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options)
494
+ command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayCancelOperationRequest::Representation
495
+ command.request_object = apigateway_cancel_operation_request_object
496
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::Empty::Representation
497
+ command.response_class = Google::Apis::ApigatewayV1alpha1::Empty
498
+ command.params['name'] = name unless name.nil?
499
+ command.query['fields'] = fields unless fields.nil?
500
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
501
+ execute_or_queue_command(command, &block)
502
+ end
503
+
504
+ # Deletes a long-running operation. This method indicates that the client is no
505
+ # longer interested in the operation result. It does not cancel the operation.
506
+ # If the server doesn't support this method, it returns `google.rpc.Code.
507
+ # UNIMPLEMENTED`.
508
+ # @param [String] name
509
+ # The name of the operation resource to be deleted.
510
+ # @param [String] fields
511
+ # Selector specifying which fields to include in a partial response.
512
+ # @param [String] quota_user
513
+ # Available to use for quota purposes for server-side applications. Can be any
514
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
515
+ # @param [Google::Apis::RequestOptions] options
516
+ # Request-specific options
517
+ #
518
+ # @yield [result, err] Result & error if block supplied
519
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::Empty] parsed result object
520
+ # @yieldparam err [StandardError] error object if request failed
521
+ #
522
+ # @return [Google::Apis::ApigatewayV1alpha1::Empty]
523
+ #
524
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
525
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
526
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
527
+ def delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
528
+ command = make_simple_command(:delete, 'v1alpha1/{+name}', options)
529
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::Empty::Representation
530
+ command.response_class = Google::Apis::ApigatewayV1alpha1::Empty
531
+ command.params['name'] = name unless name.nil?
532
+ command.query['fields'] = fields unless fields.nil?
533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
534
+ execute_or_queue_command(command, &block)
535
+ end
536
+
537
+ # Gets the latest state of a long-running operation. Clients can use this method
538
+ # to poll the operation result at intervals as recommended by the API service.
539
+ # @param [String] name
540
+ # The name of the operation resource.
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
543
+ # @param [String] quota_user
544
+ # Available to use for quota purposes for server-side applications. Can be any
545
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
546
+ # @param [Google::Apis::RequestOptions] options
547
+ # Request-specific options
548
+ #
549
+ # @yield [result, err] Result & error if block supplied
550
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayOperation] parsed result object
551
+ # @yieldparam err [StandardError] error object if request failed
552
+ #
553
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayOperation]
554
+ #
555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
558
+ def get_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block)
559
+ command = make_simple_command(:get, 'v1alpha1/{+name}', options)
560
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayOperation::Representation
561
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayOperation
562
+ command.params['name'] = name unless name.nil?
563
+ command.query['fields'] = fields unless fields.nil?
564
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
565
+ execute_or_queue_command(command, &block)
566
+ end
567
+
568
+ # Lists operations that match the specified filter in the request. If the server
569
+ # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name`
570
+ # binding allows API services to override the binding to use different resource
571
+ # name schemes, such as `users/*/operations`. To override the binding, API
572
+ # services can add a binding such as `"/v1/`name=users/*`/operations"` to their
573
+ # service configuration. For backwards compatibility, the default name includes
574
+ # the operations collection id, however overriding users must ensure the name
575
+ # binding is the parent resource, without the operations collection id.
576
+ # @param [String] name
577
+ # The name of the operation's parent resource.
578
+ # @param [String] filter
579
+ # The standard list filter.
580
+ # @param [Fixnum] page_size
581
+ # The standard list page size.
582
+ # @param [String] page_token
583
+ # The standard list page token.
584
+ # @param [String] fields
585
+ # Selector specifying which fields to include in a partial response.
586
+ # @param [String] quota_user
587
+ # Available to use for quota purposes for server-side applications. Can be any
588
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
589
+ # @param [Google::Apis::RequestOptions] options
590
+ # Request-specific options
591
+ #
592
+ # @yield [result, err] Result & error if block supplied
593
+ # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse] parsed result object
594
+ # @yieldparam err [StandardError] error object if request failed
595
+ #
596
+ # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse]
597
+ #
598
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
599
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
600
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
601
+ def list_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
602
+ command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options)
603
+ command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse::Representation
604
+ command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse
605
+ command.params['name'] = name unless name.nil?
606
+ command.query['filter'] = filter unless filter.nil?
607
+ command.query['pageSize'] = page_size unless page_size.nil?
608
+ command.query['pageToken'] = page_token unless page_token.nil?
609
+ command.query['fields'] = fields unless fields.nil?
610
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
611
+ execute_or_queue_command(command, &block)
612
+ end
613
+
614
+ protected
615
+
616
+ def apply_command_defaults(command)
617
+ command.query['key'] = key unless key.nil?
618
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
619
+ end
620
+ end
621
+ end
622
+ end
623
+ end