google-api-client 0.11.3 → 0.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (397) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +51 -0
  3. data/api_names.yaml +32317 -34465
  4. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
  13. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
  14. data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +26 -26
  16. data/generated/google/apis/adsense_v1_4.rb +1 -1
  17. data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
  18. data/generated/google/apis/adsense_v1_4/representations.rb +3 -3
  19. data/generated/google/apis/adsense_v1_4/service.rb +44 -44
  20. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  21. data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
  22. data/generated/google/apis/analytics_v3/classes.rb +3 -3
  23. data/generated/google/apis/analytics_v3/representations.rb +3 -3
  24. data/generated/google/apis/analytics_v3/service.rb +82 -82
  25. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  26. data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
  27. data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
  28. data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
  29. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  30. data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
  31. data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
  32. data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
  33. data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
  34. data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
  35. data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
  36. data/generated/google/apis/appengine_v1.rb +1 -1
  37. data/generated/google/apis/appengine_v1/classes.rb +825 -817
  38. data/generated/google/apis/appengine_v1/representations.rb +185 -184
  39. data/generated/google/apis/appengine_v1/service.rb +220 -216
  40. data/generated/google/apis/appstate_v1.rb +1 -1
  41. data/generated/google/apis/bigquery_v2.rb +1 -1
  42. data/generated/google/apis/bigquery_v2/classes.rb +9 -7
  43. data/generated/google/apis/bigquery_v2/representations.rb +8 -8
  44. data/generated/google/apis/bigquery_v2/service.rb +13 -13
  45. data/generated/google/apis/blogger_v3/service.rb +3 -3
  46. data/generated/google/apis/books_v1/classes.rb +55 -55
  47. data/generated/google/apis/books_v1/representations.rb +67 -67
  48. data/generated/google/apis/books_v1/service.rb +82 -82
  49. data/generated/google/apis/calendar_v3.rb +1 -1
  50. data/generated/google/apis/calendar_v3/classes.rb +6 -6
  51. data/generated/google/apis/calendar_v3/representations.rb +3 -3
  52. data/generated/google/apis/calendar_v3/service.rb +2 -2
  53. data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
  54. data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
  55. data/generated/google/apis/civicinfo_v2/service.rb +8 -8
  56. data/generated/google/apis/classroom_v1.rb +24 -24
  57. data/generated/google/apis/classroom_v1/classes.rb +381 -381
  58. data/generated/google/apis/classroom_v1/representations.rb +108 -108
  59. data/generated/google/apis/classroom_v1/service.rb +503 -503
  60. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  61. data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
  62. data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
  63. data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
  64. data/generated/google/apis/clouddebugger_v2.rb +1 -1
  65. data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
  66. data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
  67. data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
  68. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  69. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
  70. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
  71. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
  72. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  73. data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
  74. data/generated/google/apis/cloudkms_v1.rb +3 -3
  75. data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
  76. data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
  77. data/generated/google/apis/cloudkms_v1/service.rb +224 -224
  78. data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
  79. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
  80. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
  81. data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
  82. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
  83. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
  84. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
  85. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  86. data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
  87. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  88. data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
  89. data/generated/google/apis/compute_beta.rb +1 -1
  90. data/generated/google/apis/compute_beta/classes.rb +57 -15
  91. data/generated/google/apis/compute_beta/representations.rb +30 -14
  92. data/generated/google/apis/compute_beta/service.rb +52 -52
  93. data/generated/google/apis/compute_v1.rb +1 -1
  94. data/generated/google/apis/compute_v1/classes.rb +223 -10
  95. data/generated/google/apis/compute_v1/representations.rb +85 -16
  96. data/generated/google/apis/compute_v1/service.rb +327 -51
  97. data/generated/google/apis/container_v1/classes.rb +267 -267
  98. data/generated/google/apis/container_v1/representations.rb +61 -61
  99. data/generated/google/apis/container_v1/service.rb +123 -123
  100. data/generated/google/apis/content_v2.rb +1 -1
  101. data/generated/google/apis/content_v2/classes.rb +71 -71
  102. data/generated/google/apis/content_v2/representations.rb +105 -105
  103. data/generated/google/apis/content_v2/service.rb +120 -120
  104. data/generated/google/apis/dataflow_v1b3.rb +4 -4
  105. data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
  106. data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
  107. data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
  108. data/generated/google/apis/dataproc_v1.rb +1 -1
  109. data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
  110. data/generated/google/apis/dataproc_v1/representations.rb +147 -147
  111. data/generated/google/apis/dataproc_v1/service.rb +309 -305
  112. data/generated/google/apis/datastore_v1.rb +1 -1
  113. data/generated/google/apis/datastore_v1/classes.rb +818 -818
  114. data/generated/google/apis/datastore_v1/representations.rb +151 -151
  115. data/generated/google/apis/datastore_v1/service.rb +62 -62
  116. data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
  117. data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
  118. data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
  119. data/generated/google/apis/discovery_v1/classes.rb +4 -4
  120. data/generated/google/apis/discovery_v1/representations.rb +2 -2
  121. data/generated/google/apis/discovery_v1/service.rb +1 -1
  122. data/generated/google/apis/dns_v1.rb +1 -1
  123. data/generated/google/apis/dns_v1/classes.rb +3 -3
  124. data/generated/google/apis/dns_v1/representations.rb +6 -6
  125. data/generated/google/apis/dns_v1/service.rb +12 -12
  126. data/generated/google/apis/dns_v2beta1.rb +1 -1
  127. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  128. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
  129. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  130. data/generated/google/apis/drive_v2/service.rb +1 -1
  131. data/generated/google/apis/drive_v3/service.rb +1 -1
  132. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  133. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
  134. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
  135. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
  136. data/generated/google/apis/firebaserules_v1.rb +1 -1
  137. data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
  138. data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
  139. data/generated/google/apis/firebaserules_v1/service.rb +89 -89
  140. data/generated/google/apis/fusiontables_v2/service.rb +2 -2
  141. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  142. data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
  143. data/generated/google/apis/games_configuration_v1configuration/representations.rb +4 -4
  144. data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
  145. data/generated/google/apis/games_management_v1management.rb +1 -1
  146. data/generated/google/apis/games_v1.rb +1 -1
  147. data/generated/google/apis/games_v1/classes.rb +23 -23
  148. data/generated/google/apis/games_v1/representations.rb +43 -43
  149. data/generated/google/apis/games_v1/service.rb +72 -72
  150. data/generated/google/apis/genomics_v1.rb +7 -7
  151. data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
  152. data/generated/google/apis/genomics_v1/representations.rb +298 -298
  153. data/generated/google/apis/genomics_v1/service.rb +1160 -1160
  154. data/generated/google/apis/groupssettings_v1/service.rb +0 -3
  155. data/generated/google/apis/iam_v1.rb +1 -1
  156. data/generated/google/apis/iam_v1/classes.rb +235 -235
  157. data/generated/google/apis/iam_v1/representations.rb +72 -72
  158. data/generated/google/apis/iam_v1/service.rb +189 -189
  159. data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
  160. data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
  161. data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
  162. data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
  163. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  164. data/generated/google/apis/kgsearch_v1/service.rb +10 -10
  165. data/generated/google/apis/language_v1/classes.rb +220 -220
  166. data/generated/google/apis/language_v1/representations.rb +81 -81
  167. data/generated/google/apis/language_v1/service.rb +43 -43
  168. data/generated/google/apis/language_v1beta1/classes.rb +448 -448
  169. data/generated/google/apis/language_v1beta1/representations.rb +106 -106
  170. data/generated/google/apis/language_v1beta1/service.rb +31 -31
  171. data/generated/google/apis/licensing_v1/service.rb +2 -2
  172. data/generated/google/apis/logging_v2/classes.rb +737 -737
  173. data/generated/google/apis/logging_v2/representations.rb +120 -120
  174. data/generated/google/apis/logging_v2/service.rb +479 -479
  175. data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
  176. data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
  177. data/generated/google/apis/logging_v2beta1/service.rb +349 -349
  178. data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
  179. data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
  180. data/generated/google/apis/manufacturers_v1/service.rb +8 -8
  181. data/generated/google/apis/mirror_v1/classes.rb +5 -5
  182. data/generated/google/apis/mirror_v1/representations.rb +10 -10
  183. data/generated/google/apis/mirror_v1/service.rb +20 -20
  184. data/generated/google/apis/ml_v1.rb +1 -1
  185. data/generated/google/apis/ml_v1/classes.rb +1285 -1205
  186. data/generated/google/apis/ml_v1/representations.rb +204 -174
  187. data/generated/google/apis/ml_v1/service.rb +150 -145
  188. data/generated/google/apis/monitoring_v3.rb +1 -1
  189. data/generated/google/apis/monitoring_v3/classes.rb +880 -880
  190. data/generated/google/apis/monitoring_v3/representations.rb +154 -154
  191. data/generated/google/apis/monitoring_v3/service.rb +299 -299
  192. data/generated/google/apis/mybusiness_v3/service.rb +5 -5
  193. data/generated/google/apis/oauth2_v2/service.rb +1 -1
  194. data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
  195. data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
  196. data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
  197. data/generated/google/apis/partners_v2.rb +1 -1
  198. data/generated/google/apis/partners_v2/classes.rb +524 -509
  199. data/generated/google/apis/partners_v2/representations.rb +115 -111
  200. data/generated/google/apis/partners_v2/service.rb +287 -287
  201. data/generated/google/apis/people_v1.rb +13 -13
  202. data/generated/google/apis/people_v1/classes.rb +1150 -1150
  203. data/generated/google/apis/people_v1/representations.rb +258 -258
  204. data/generated/google/apis/people_v1/service.rb +7 -7
  205. data/generated/google/apis/plus_domains_v1.rb +1 -1
  206. data/generated/google/apis/plus_domains_v1/service.rb +4 -4
  207. data/generated/google/apis/plus_v1.rb +1 -1
  208. data/generated/google/apis/plus_v1/service.rb +1 -1
  209. data/generated/google/apis/prediction_v1_6/service.rb +8 -8
  210. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
  211. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
  212. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
  213. data/generated/google/apis/pubsub_v1/classes.rb +228 -228
  214. data/generated/google/apis/pubsub_v1/representations.rb +69 -69
  215. data/generated/google/apis/pubsub_v1/service.rb +182 -182
  216. data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
  217. data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
  218. data/generated/google/apis/qpx_express_v1/service.rb +8 -8
  219. data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
  220. data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
  221. data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
  222. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
  223. data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
  224. data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
  225. data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
  226. data/generated/google/apis/runtimeconfig_v1.rb +3 -3
  227. data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
  228. data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
  229. data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
  230. data/generated/google/apis/script_v1.rb +9 -9
  231. data/generated/google/apis/script_v1/classes.rb +94 -94
  232. data/generated/google/apis/script_v1/representations.rb +26 -26
  233. data/generated/google/apis/searchconsole_v1.rb +1 -1
  234. data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
  235. data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
  236. data/generated/google/apis/searchconsole_v1/service.rb +6 -6
  237. data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
  238. data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
  239. data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
  240. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  241. data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
  242. data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
  243. data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
  244. data/generated/google/apis/serviceuser_v1.rb +4 -4
  245. data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
  246. data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
  247. data/generated/google/apis/serviceuser_v1/service.rb +16 -16
  248. data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
  249. data/generated/google/apis/sheets_v4/representations.rb +324 -324
  250. data/generated/google/apis/sheets_v4/service.rb +49 -49
  251. data/generated/google/apis/site_verification_v1/classes.rb +6 -6
  252. data/generated/google/apis/site_verification_v1/representations.rb +8 -8
  253. data/generated/google/apis/site_verification_v1/service.rb +12 -12
  254. data/generated/google/apis/slides_v1.rb +4 -4
  255. data/generated/google/apis/slides_v1/classes.rb +2907 -2907
  256. data/generated/google/apis/slides_v1/representations.rb +695 -695
  257. data/generated/google/apis/slides_v1/service.rb +40 -40
  258. data/generated/google/apis/sourcerepo_v1.rb +7 -1
  259. data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
  260. data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
  261. data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
  262. data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
  263. data/generated/google/apis/spanner_v1/representations.rb +205 -205
  264. data/generated/google/apis/spanner_v1/service.rb +525 -525
  265. data/generated/google/apis/speech_v1beta1.rb +1 -1
  266. data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
  267. data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
  268. data/generated/google/apis/speech_v1beta1/service.rb +33 -33
  269. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  270. data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
  271. data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
  272. data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
  273. data/generated/google/apis/storage_v1/classes.rb +6 -6
  274. data/generated/google/apis/storage_v1/representations.rb +4 -4
  275. data/generated/google/apis/storage_v1/service.rb +1 -1
  276. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  277. data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
  278. data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
  279. data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
  280. data/generated/google/apis/tagmanager_v1/service.rb +33 -33
  281. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  282. data/generated/google/apis/translate_v2.rb +1 -1
  283. data/generated/google/apis/translate_v2/classes.rb +46 -46
  284. data/generated/google/apis/translate_v2/representations.rb +22 -22
  285. data/generated/google/apis/translate_v2/service.rb +81 -74
  286. data/generated/google/apis/vision_v1/classes.rb +1290 -1290
  287. data/generated/google/apis/vision_v1/representations.rb +166 -166
  288. data/generated/google/apis/vision_v1/service.rb +6 -6
  289. data/generated/google/apis/webmasters_v3/classes.rb +4 -4
  290. data/generated/google/apis/webmasters_v3/representations.rb +8 -8
  291. data/generated/google/apis/webmasters_v3/service.rb +21 -21
  292. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  293. data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
  294. data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
  295. data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
  296. data/generated/google/apis/youtube_v3/classes.rb +20 -20
  297. data/generated/google/apis/youtube_v3/representations.rb +40 -40
  298. data/generated/google/apis/youtube_v3/service.rb +80 -80
  299. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  300. data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
  301. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  302. data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
  303. data/google-api-client.gemspec +3 -3
  304. data/lib/google/apis/core/base_service.rb +6 -0
  305. data/lib/google/apis/generator/annotator.rb +2 -2
  306. data/lib/google/apis/generator/model.rb +2 -2
  307. data/lib/google/apis/version.rb +1 -1
  308. metadata +11 -94
  309. data/dl.rb +0 -0
  310. data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
  311. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
  312. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
  313. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
  314. data/generated/google/apis/appengine_v1beta4.rb +0 -35
  315. data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
  316. data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
  317. data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
  318. data/generated/google/apis/appengine_v1beta5.rb +0 -40
  319. data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
  320. data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
  321. data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
  322. data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
  323. data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
  324. data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
  325. data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
  326. data/generated/google/apis/classroom_v1beta1.rb +0 -49
  327. data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
  328. data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
  329. data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
  330. data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
  331. data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
  332. data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
  333. data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
  334. data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
  335. data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
  336. data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
  337. data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
  338. data/generated/google/apis/container_v1beta1.rb +0 -35
  339. data/generated/google/apis/container_v1beta1/classes.rb +0 -466
  340. data/generated/google/apis/container_v1beta1/representations.rb +0 -177
  341. data/generated/google/apis/container_v1beta1/service.rb +0 -394
  342. data/generated/google/apis/coordinate_v1.rb +0 -37
  343. data/generated/google/apis/coordinate_v1/classes.rb +0 -669
  344. data/generated/google/apis/coordinate_v1/representations.rb +0 -321
  345. data/generated/google/apis/coordinate_v1/service.rb +0 -678
  346. data/generated/google/apis/datastore_v1beta2.rb +0 -40
  347. data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
  348. data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
  349. data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
  350. data/generated/google/apis/datastore_v1beta3.rb +0 -38
  351. data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
  352. data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
  353. data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
  354. data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
  355. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
  356. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
  357. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
  358. data/generated/google/apis/dfareporting_v2_1.rb +0 -37
  359. data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
  360. data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
  361. data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
  362. data/generated/google/apis/dfareporting_v2_3.rb +0 -37
  363. data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
  364. data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
  365. data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
  366. data/generated/google/apis/dfareporting_v2_5.rb +0 -40
  367. data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
  368. data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
  369. data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
  370. data/generated/google/apis/dfareporting_v2_6.rb +0 -40
  371. data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
  372. data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
  373. data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
  374. data/generated/google/apis/gan_v1beta1.rb +0 -31
  375. data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
  376. data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
  377. data/generated/google/apis/gan_v1beta1/service.rb +0 -682
  378. data/generated/google/apis/genomics_v1beta2.rb +0 -46
  379. data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
  380. data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
  381. data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
  382. data/generated/google/apis/logging_v1beta3.rb +0 -47
  383. data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
  384. data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
  385. data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
  386. data/generated/google/apis/manager_v1beta2.rb +0 -53
  387. data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
  388. data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
  389. data/generated/google/apis/manager_v1beta2/service.rb +0 -372
  390. data/generated/google/apis/pubsub_v1beta2.rb +0 -37
  391. data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
  392. data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
  393. data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
  394. data/generated/google/apis/tracing_v1.rb +0 -40
  395. data/generated/google/apis/tracing_v1/classes.rb +0 -664
  396. data/generated/google/apis/tracing_v1/representations.rb +0 -279
  397. data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -22,18 +22,6 @@ module Google
22
22
  module Apis
23
23
  module CloudkmsV1
24
24
 
25
- class CounterOptions
26
- class Representation < Google::Apis::Core::JsonRepresentation; end
27
-
28
- include Google::Apis::Core::JsonObjectSupport
29
- end
30
-
31
- class AuditLogConfig
32
- class Representation < Google::Apis::Core::JsonRepresentation; end
33
-
34
- include Google::Apis::Core::JsonObjectSupport
35
- end
36
-
37
25
  class DecryptResponse
38
26
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
27
 
@@ -46,7 +34,7 @@ module Google
46
34
  include Google::Apis::Core::JsonObjectSupport
47
35
  end
48
36
 
49
- class Policy
37
+ class KeyRing
50
38
  class Representation < Google::Apis::Core::JsonRepresentation; end
51
39
 
52
40
  include Google::Apis::Core::JsonObjectSupport
@@ -58,13 +46,13 @@ module Google
58
46
  include Google::Apis::Core::JsonObjectSupport
59
47
  end
60
48
 
61
- class KeyRing
49
+ class ListLocationsResponse
62
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
51
 
64
52
  include Google::Apis::Core::JsonObjectSupport
65
53
  end
66
54
 
67
- class ListLocationsResponse
55
+ class Policy
68
56
  class Representation < Google::Apis::Core::JsonRepresentation; end
69
57
 
70
58
  include Google::Apis::Core::JsonObjectSupport
@@ -191,19 +179,15 @@ module Google
191
179
  end
192
180
 
193
181
  class CounterOptions
194
- # @private
195
- class Representation < Google::Apis::Core::JsonRepresentation
196
- property :metric, as: 'metric'
197
- property :field, as: 'field'
198
- end
182
+ class Representation < Google::Apis::Core::JsonRepresentation; end
183
+
184
+ include Google::Apis::Core::JsonObjectSupport
199
185
  end
200
186
 
201
187
  class AuditLogConfig
202
- # @private
203
- class Representation < Google::Apis::Core::JsonRepresentation
204
- collection :exempted_members, as: 'exemptedMembers'
205
- property :log_type, as: 'logType'
206
- end
188
+ class Representation < Google::Apis::Core::JsonRepresentation; end
189
+
190
+ include Google::Apis::Core::JsonObjectSupport
207
191
  end
208
192
 
209
193
  class DecryptResponse
@@ -220,42 +204,42 @@ module Google
220
204
  end
221
205
  end
222
206
 
223
- class Policy
207
+ class KeyRing
224
208
  # @private
225
209
  class Representation < Google::Apis::Core::JsonRepresentation
226
- collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
227
-
228
- collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
229
-
230
- property :etag, :base64 => true, as: 'etag'
231
- property :iam_owned, as: 'iamOwned'
232
- collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
233
-
234
- property :version, as: 'version'
210
+ property :create_time, as: 'createTime'
211
+ property :name, as: 'name'
235
212
  end
236
213
  end
237
214
 
238
215
  class EncryptResponse
239
216
  # @private
240
217
  class Representation < Google::Apis::Core::JsonRepresentation
241
- property :name, as: 'name'
242
218
  property :ciphertext, :base64 => true, as: 'ciphertext'
219
+ property :name, as: 'name'
243
220
  end
244
221
  end
245
222
 
246
- class KeyRing
223
+ class ListLocationsResponse
247
224
  # @private
248
225
  class Representation < Google::Apis::Core::JsonRepresentation
249
- property :create_time, as: 'createTime'
250
- property :name, as: 'name'
226
+ property :next_page_token, as: 'nextPageToken'
227
+ collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
228
+
251
229
  end
252
230
  end
253
231
 
254
- class ListLocationsResponse
232
+ class Policy
255
233
  # @private
256
234
  class Representation < Google::Apis::Core::JsonRepresentation
257
- property :next_page_token, as: 'nextPageToken'
258
- collection :locations, as: 'locations', class: Google::Apis::CloudkmsV1::Location, decorator: Google::Apis::CloudkmsV1::Location::Representation
235
+ property :etag, :base64 => true, as: 'etag'
236
+ property :iam_owned, as: 'iamOwned'
237
+ collection :rules, as: 'rules', class: Google::Apis::CloudkmsV1::Rule, decorator: Google::Apis::CloudkmsV1::Rule::Representation
238
+
239
+ property :version, as: 'version'
240
+ collection :audit_configs, as: 'auditConfigs', class: Google::Apis::CloudkmsV1::AuditConfig, decorator: Google::Apis::CloudkmsV1::AuditConfig::Representation
241
+
242
+ collection :bindings, as: 'bindings', class: Google::Apis::CloudkmsV1::Binding, decorator: Google::Apis::CloudkmsV1::Binding::Representation
259
243
 
260
244
  end
261
245
  end
@@ -292,21 +276,21 @@ module Google
292
276
  class AuditConfig
293
277
  # @private
294
278
  class Representation < Google::Apis::Core::JsonRepresentation
295
- property :service, as: 'service'
296
279
  collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::CloudkmsV1::AuditLogConfig, decorator: Google::Apis::CloudkmsV1::AuditLogConfig::Representation
297
280
 
298
281
  collection :exempted_members, as: 'exemptedMembers'
282
+ property :service, as: 'service'
299
283
  end
300
284
  end
301
285
 
302
286
  class CryptoKeyVersion
303
287
  # @private
304
288
  class Representation < Google::Apis::Core::JsonRepresentation
289
+ property :create_time, as: 'createTime'
305
290
  property :state, as: 'state'
306
291
  property :name, as: 'name'
307
292
  property :destroy_event_time, as: 'destroyEventTime'
308
293
  property :destroy_time, as: 'destroyTime'
309
- property :create_time, as: 'createTime'
310
294
  end
311
295
  end
312
296
 
@@ -328,18 +312,18 @@ module Google
328
312
  class EncryptRequest
329
313
  # @private
330
314
  class Representation < Google::Apis::Core::JsonRepresentation
331
- property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
332
315
  property :plaintext, :base64 => true, as: 'plaintext'
316
+ property :additional_authenticated_data, :base64 => true, as: 'additionalAuthenticatedData'
333
317
  end
334
318
  end
335
319
 
336
320
  class ListCryptoKeyVersionsResponse
337
321
  # @private
338
322
  class Representation < Google::Apis::Core::JsonRepresentation
339
- collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
340
-
341
323
  property :next_page_token, as: 'nextPageToken'
342
324
  property :total_size, as: 'totalSize'
325
+ collection :crypto_key_versions, as: 'cryptoKeyVersions', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
326
+
343
327
  end
344
328
  end
345
329
 
@@ -374,13 +358,13 @@ module Google
374
358
  class CryptoKey
375
359
  # @private
376
360
  class Representation < Google::Apis::Core::JsonRepresentation
377
- property :purpose, as: 'purpose'
378
- property :next_rotation_time, as: 'nextRotationTime'
379
361
  property :create_time, as: 'createTime'
380
362
  property :rotation_period, as: 'rotationPeriod'
381
363
  property :primary, as: 'primary', class: Google::Apis::CloudkmsV1::CryptoKeyVersion, decorator: Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
382
364
 
383
365
  property :name, as: 'name'
366
+ property :purpose, as: 'purpose'
367
+ property :next_rotation_time, as: 'nextRotationTime'
384
368
  end
385
369
  end
386
370
 
@@ -399,9 +383,9 @@ module Google
399
383
  class SetIamPolicyRequest
400
384
  # @private
401
385
  class Representation < Google::Apis::Core::JsonRepresentation
402
- property :update_mask, as: 'updateMask'
403
386
  property :policy, as: 'policy', class: Google::Apis::CloudkmsV1::Policy, decorator: Google::Apis::CloudkmsV1::Policy::Representation
404
387
 
388
+ property :update_mask, as: 'updateMask'
405
389
  end
406
390
  end
407
391
 
@@ -416,10 +400,10 @@ module Google
416
400
  class Location
417
401
  # @private
418
402
  class Representation < Google::Apis::Core::JsonRepresentation
419
- property :location_id, as: 'locationId'
420
- hash :metadata, as: 'metadata'
421
403
  hash :labels, as: 'labels'
422
404
  property :name, as: 'name'
405
+ property :location_id, as: 'locationId'
406
+ hash :metadata, as: 'metadata'
423
407
  end
424
408
  end
425
409
 
@@ -436,12 +420,28 @@ module Google
436
420
  class Condition
437
421
  # @private
438
422
  class Representation < Google::Apis::Core::JsonRepresentation
439
- property :sys, as: 'sys'
440
- property :value, as: 'value'
441
423
  collection :values, as: 'values'
442
424
  property :iam, as: 'iam'
443
425
  property :op, as: 'op'
444
426
  property :svc, as: 'svc'
427
+ property :value, as: 'value'
428
+ property :sys, as: 'sys'
429
+ end
430
+ end
431
+
432
+ class CounterOptions
433
+ # @private
434
+ class Representation < Google::Apis::Core::JsonRepresentation
435
+ property :metric, as: 'metric'
436
+ property :field, as: 'field'
437
+ end
438
+ end
439
+
440
+ class AuditLogConfig
441
+ # @private
442
+ class Representation < Google::Apis::Core::JsonRepresentation
443
+ property :log_type, as: 'logType'
444
+ collection :exempted_members, as: 'exemptedMembers'
445
445
  end
446
446
  end
447
447
  end
@@ -22,8 +22,8 @@ module Google
22
22
  module CloudkmsV1
23
23
  # Google Cloud Key Management Service (KMS) API
24
24
  #
25
- # Manages encryption for your cloud services the same way you do on-premise. You
26
- # can generate, use, rotate, and destroy AES256 encryption keys.
25
+ # Manages encryption for your cloud services the same way you do on-premises.
26
+ # You can generate, use, rotate, and destroy AES256 encryption keys.
27
27
  #
28
28
  # @example
29
29
  # require 'google/apis/cloudkms_v1'
@@ -117,39 +117,6 @@ module Google
117
117
  execute_or_queue_command(command, &block)
118
118
  end
119
119
 
120
- # Gets the access control policy for a resource.
121
- # Returns an empty policy if the resource exists and does not have a policy
122
- # set.
123
- # @param [String] resource
124
- # REQUIRED: The resource for which the policy is being requested.
125
- # See the operation documentation for the appropriate value for this field.
126
- # @param [String] fields
127
- # Selector specifying which fields to include in a partial response.
128
- # @param [String] quota_user
129
- # Available to use for quota purposes for server-side applications. Can be any
130
- # arbitrary string assigned to a user, but should not exceed 40 characters.
131
- # @param [Google::Apis::RequestOptions] options
132
- # Request-specific options
133
- #
134
- # @yield [result, err] Result & error if block supplied
135
- # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
136
- # @yieldparam err [StandardError] error object if request failed
137
- #
138
- # @return [Google::Apis::CloudkmsV1::Policy]
139
- #
140
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
141
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
142
- # @raise [Google::Apis::AuthorizationError] Authorization is required
143
- def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
144
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
145
- command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
146
- command.response_class = Google::Apis::CloudkmsV1::Policy
147
- command.params['resource'] = resource unless resource.nil?
148
- command.query['fields'] = fields unless fields.nil?
149
- command.query['quotaUser'] = quota_user unless quota_user.nil?
150
- execute_or_queue_command(command, &block)
151
- end
152
-
153
120
  # Returns metadata for a given KeyRing.
154
121
  # @param [String] name
155
122
  # The name of the KeyRing to get.
@@ -333,18 +300,12 @@ module Google
333
300
  execute_or_queue_command(command, &block)
334
301
  end
335
302
 
336
- # Lists CryptoKeys.
337
- # @param [String] parent
338
- # Required. The resource name of the KeyRing to list, in the format
339
- # `projects/*/locations/*/keyRings/*`.
340
- # @param [String] page_token
341
- # Optional pagination token, returned earlier via
342
- # ListCryptoKeysResponse.next_page_token.
343
- # @param [Fixnum] page_size
344
- # Optional limit on the number of CryptoKeys to include in the
345
- # response. Further CryptoKeys can subsequently be obtained by
346
- # including the ListCryptoKeysResponse.next_page_token in a subsequent
347
- # request. If unspecified, the server will pick an appropriate default.
303
+ # Gets the access control policy for a resource.
304
+ # Returns an empty policy if the resource exists and does not have a policy
305
+ # set.
306
+ # @param [String] resource
307
+ # REQUIRED: The resource for which the policy is being requested.
308
+ # See the operation documentation for the appropriate value for this field.
348
309
  # @param [String] fields
349
310
  # Selector specifying which fields to include in a partial response.
350
311
  # @param [String] quota_user
@@ -354,33 +315,31 @@ module Google
354
315
  # Request-specific options
355
316
  #
356
317
  # @yield [result, err] Result & error if block supplied
357
- # @yieldparam result [Google::Apis::CloudkmsV1::ListCryptoKeysResponse] parsed result object
318
+ # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
358
319
  # @yieldparam err [StandardError] error object if request failed
359
320
  #
360
- # @return [Google::Apis::CloudkmsV1::ListCryptoKeysResponse]
321
+ # @return [Google::Apis::CloudkmsV1::Policy]
361
322
  #
362
323
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
363
324
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
364
325
  # @raise [Google::Apis::AuthorizationError] Authorization is required
365
- def list_project_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
366
- command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
367
- command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
368
- command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
369
- command.params['parent'] = parent unless parent.nil?
370
- command.query['pageToken'] = page_token unless page_token.nil?
371
- command.query['pageSize'] = page_size unless page_size.nil?
326
+ def get_project_location_key_ring_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
327
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
328
+ command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
329
+ command.response_class = Google::Apis::CloudkmsV1::Policy
330
+ command.params['resource'] = resource unless resource.nil?
372
331
  command.query['fields'] = fields unless fields.nil?
373
332
  command.query['quotaUser'] = quota_user unless quota_user.nil?
374
333
  execute_or_queue_command(command, &block)
375
334
  end
376
335
 
377
- # Encrypt data, so that it can only be recovered by a call to Decrypt.
336
+ # Update a CryptoKey.
378
337
  # @param [String] name
379
- # Required. The resource name of the CryptoKey or CryptoKeyVersion
380
- # to use for encryption.
381
- # If a CryptoKey is specified, the server will use its
382
- # primary version.
383
- # @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_request_object
338
+ # Output only. The resource name for this CryptoKey in the format
339
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
340
+ # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
341
+ # @param [String] update_mask
342
+ # Required list of fields to be updated in this request.
384
343
  # @param [String] fields
385
344
  # Selector specifying which fields to include in a partial response.
386
345
  # @param [String] quota_user
@@ -390,35 +349,31 @@ module Google
390
349
  # Request-specific options
391
350
  #
392
351
  # @yield [result, err] Result & error if block supplied
393
- # @yieldparam result [Google::Apis::CloudkmsV1::EncryptResponse] parsed result object
352
+ # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
394
353
  # @yieldparam err [StandardError] error object if request failed
395
354
  #
396
- # @return [Google::Apis::CloudkmsV1::EncryptResponse]
355
+ # @return [Google::Apis::CloudkmsV1::CryptoKey]
397
356
  #
398
357
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
399
358
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
400
359
  # @raise [Google::Apis::AuthorizationError] Authorization is required
401
- def encrypt_crypto_key(name, encrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
402
- command = make_simple_command(:post, 'v1/{+name}:encrypt', options)
403
- command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation
404
- command.request_object = encrypt_request_object
405
- command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation
406
- command.response_class = Google::Apis::CloudkmsV1::EncryptResponse
360
+ def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
361
+ command = make_simple_command(:patch, 'v1/{+name}', options)
362
+ command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
363
+ command.request_object = crypto_key_object
364
+ command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
365
+ command.response_class = Google::Apis::CloudkmsV1::CryptoKey
407
366
  command.params['name'] = name unless name.nil?
367
+ command.query['updateMask'] = update_mask unless update_mask.nil?
408
368
  command.query['fields'] = fields unless fields.nil?
409
369
  command.query['quotaUser'] = quota_user unless quota_user.nil?
410
370
  execute_or_queue_command(command, &block)
411
371
  end
412
372
 
413
- # Create a new CryptoKey within a KeyRing.
414
- # CryptoKey.purpose is required.
415
- # @param [String] parent
416
- # Required. The name of the KeyRing associated with the
417
- # CryptoKeys.
418
- # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
419
- # @param [String] crypto_key_id
420
- # Required. It must be unique within a KeyRing and match the regular
421
- # expression `[a-zA-Z0-9_-]`1,63``
373
+ # Returns metadata for a given CryptoKey, as well as its
374
+ # primary CryptoKeyVersion.
375
+ # @param [String] name
376
+ # The name of the CryptoKey to get.
422
377
  # @param [String] fields
423
378
  # Selector specifying which fields to include in a partial response.
424
379
  # @param [String] quota_user
@@ -436,25 +391,26 @@ module Google
436
391
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
437
392
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
438
393
  # @raise [Google::Apis::AuthorizationError] Authorization is required
439
- def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
440
- command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options)
441
- command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
442
- command.request_object = crypto_key_object
394
+ def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
395
+ command = make_simple_command(:get, 'v1/{+name}', options)
443
396
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
444
397
  command.response_class = Google::Apis::CloudkmsV1::CryptoKey
445
- command.params['parent'] = parent unless parent.nil?
446
- command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
398
+ command.params['name'] = name unless name.nil?
447
399
  command.query['fields'] = fields unless fields.nil?
448
400
  command.query['quotaUser'] = quota_user unless quota_user.nil?
449
401
  execute_or_queue_command(command, &block)
450
402
  end
451
403
 
452
- # Sets the access control policy on the specified resource. Replaces any
453
- # existing policy.
404
+ # Returns permissions that a caller has on the specified resource.
405
+ # If the resource does not exist, this will return an empty set of
406
+ # permissions, not a NOT_FOUND error.
407
+ # Note: This operation is designed to be used for building permission-aware
408
+ # UIs and command-line tools, not for authorization checking. This operation
409
+ # may "fail open" without warning.
454
410
  # @param [String] resource
455
- # REQUIRED: The resource for which the policy is being specified.
411
+ # REQUIRED: The resource for which the policy detail is being requested.
456
412
  # See the operation documentation for the appropriate value for this field.
457
- # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
413
+ # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
458
414
  # @param [String] fields
459
415
  # Selector specifying which fields to include in a partial response.
460
416
  # @param [String] quota_user
@@ -464,30 +420,31 @@ module Google
464
420
  # Request-specific options
465
421
  #
466
422
  # @yield [result, err] Result & error if block supplied
467
- # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
423
+ # @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
468
424
  # @yieldparam err [StandardError] error object if request failed
469
425
  #
470
- # @return [Google::Apis::CloudkmsV1::Policy]
426
+ # @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
471
427
  #
472
428
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
473
429
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
474
430
  # @raise [Google::Apis::AuthorizationError] Authorization is required
475
- def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
476
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
477
- command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
478
- command.request_object = set_iam_policy_request_object
479
- command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
480
- command.response_class = Google::Apis::CloudkmsV1::Policy
431
+ def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
432
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
433
+ command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
434
+ command.request_object = test_iam_permissions_request_object
435
+ command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
436
+ command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
481
437
  command.params['resource'] = resource unless resource.nil?
482
438
  command.query['fields'] = fields unless fields.nil?
483
439
  command.query['quotaUser'] = quota_user unless quota_user.nil?
484
440
  execute_or_queue_command(command, &block)
485
441
  end
486
442
 
487
- # Update the version of a CryptoKey that will be used in Encrypt
443
+ # Decrypt data that was protected by Encrypt.
488
444
  # @param [String] name
489
- # The resource name of the CryptoKey to update.
490
- # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
445
+ # Required. The resource name of the CryptoKey to use for decryption.
446
+ # The server will choose the appropriate version.
447
+ # @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object
491
448
  # @param [String] fields
492
449
  # Selector specifying which fields to include in a partial response.
493
450
  # @param [String] quota_user
@@ -497,32 +454,38 @@ module Google
497
454
  # Request-specific options
498
455
  #
499
456
  # @yield [result, err] Result & error if block supplied
500
- # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
457
+ # @yieldparam result [Google::Apis::CloudkmsV1::DecryptResponse] parsed result object
501
458
  # @yieldparam err [StandardError] error object if request failed
502
459
  #
503
- # @return [Google::Apis::CloudkmsV1::CryptoKey]
460
+ # @return [Google::Apis::CloudkmsV1::DecryptResponse]
504
461
  #
505
462
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
506
463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
507
464
  # @raise [Google::Apis::AuthorizationError] Authorization is required
508
- def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
509
- command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options)
510
- command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation
511
- command.request_object = update_crypto_key_primary_version_request_object
512
- command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
513
- command.response_class = Google::Apis::CloudkmsV1::CryptoKey
465
+ def decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
466
+ command = make_simple_command(:post, 'v1/{+name}:decrypt', options)
467
+ command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation
468
+ command.request_object = decrypt_request_object
469
+ command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation
470
+ command.response_class = Google::Apis::CloudkmsV1::DecryptResponse
514
471
  command.params['name'] = name unless name.nil?
515
472
  command.query['fields'] = fields unless fields.nil?
516
473
  command.query['quotaUser'] = quota_user unless quota_user.nil?
517
474
  execute_or_queue_command(command, &block)
518
475
  end
519
476
 
520
- # Gets the access control policy for a resource.
521
- # Returns an empty policy if the resource exists and does not have a policy
522
- # set.
523
- # @param [String] resource
524
- # REQUIRED: The resource for which the policy is being requested.
525
- # See the operation documentation for the appropriate value for this field.
477
+ # Lists CryptoKeys.
478
+ # @param [String] parent
479
+ # Required. The resource name of the KeyRing to list, in the format
480
+ # `projects/*/locations/*/keyRings/*`.
481
+ # @param [String] page_token
482
+ # Optional pagination token, returned earlier via
483
+ # ListCryptoKeysResponse.next_page_token.
484
+ # @param [Fixnum] page_size
485
+ # Optional limit on the number of CryptoKeys to include in the
486
+ # response. Further CryptoKeys can subsequently be obtained by
487
+ # including the ListCryptoKeysResponse.next_page_token in a subsequent
488
+ # request. If unspecified, the server will pick an appropriate default.
526
489
  # @param [String] fields
527
490
  # Selector specifying which fields to include in a partial response.
528
491
  # @param [String] quota_user
@@ -532,28 +495,33 @@ module Google
532
495
  # Request-specific options
533
496
  #
534
497
  # @yield [result, err] Result & error if block supplied
535
- # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
498
+ # @yieldparam result [Google::Apis::CloudkmsV1::ListCryptoKeysResponse] parsed result object
536
499
  # @yieldparam err [StandardError] error object if request failed
537
500
  #
538
- # @return [Google::Apis::CloudkmsV1::Policy]
501
+ # @return [Google::Apis::CloudkmsV1::ListCryptoKeysResponse]
539
502
  #
540
503
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
541
504
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
542
505
  # @raise [Google::Apis::AuthorizationError] Authorization is required
543
- def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
544
- command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
545
- command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
546
- command.response_class = Google::Apis::CloudkmsV1::Policy
547
- command.params['resource'] = resource unless resource.nil?
506
+ def list_project_location_key_ring_crypto_keys(parent, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
507
+ command = make_simple_command(:get, 'v1/{+parent}/cryptoKeys', options)
508
+ command.response_representation = Google::Apis::CloudkmsV1::ListCryptoKeysResponse::Representation
509
+ command.response_class = Google::Apis::CloudkmsV1::ListCryptoKeysResponse
510
+ command.params['parent'] = parent unless parent.nil?
511
+ command.query['pageToken'] = page_token unless page_token.nil?
512
+ command.query['pageSize'] = page_size unless page_size.nil?
548
513
  command.query['fields'] = fields unless fields.nil?
549
514
  command.query['quotaUser'] = quota_user unless quota_user.nil?
550
515
  execute_or_queue_command(command, &block)
551
516
  end
552
517
 
553
- # Returns metadata for a given CryptoKey, as well as its
554
- # primary CryptoKeyVersion.
518
+ # Encrypt data, so that it can only be recovered by a call to Decrypt.
555
519
  # @param [String] name
556
- # The name of the CryptoKey to get.
520
+ # Required. The resource name of the CryptoKey or CryptoKeyVersion
521
+ # to use for encryption.
522
+ # If a CryptoKey is specified, the server will use its
523
+ # primary version.
524
+ # @param [Google::Apis::CloudkmsV1::EncryptRequest] encrypt_request_object
557
525
  # @param [String] fields
558
526
  # Selector specifying which fields to include in a partial response.
559
527
  # @param [String] quota_user
@@ -563,31 +531,70 @@ module Google
563
531
  # Request-specific options
564
532
  #
565
533
  # @yield [result, err] Result & error if block supplied
566
- # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
534
+ # @yieldparam result [Google::Apis::CloudkmsV1::EncryptResponse] parsed result object
567
535
  # @yieldparam err [StandardError] error object if request failed
568
536
  #
569
- # @return [Google::Apis::CloudkmsV1::CryptoKey]
537
+ # @return [Google::Apis::CloudkmsV1::EncryptResponse]
570
538
  #
571
539
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
572
540
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
573
541
  # @raise [Google::Apis::AuthorizationError] Authorization is required
574
- def get_project_location_key_ring_crypto_key(name, fields: nil, quota_user: nil, options: nil, &block)
575
- command = make_simple_command(:get, 'v1/{+name}', options)
576
- command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
577
- command.response_class = Google::Apis::CloudkmsV1::CryptoKey
542
+ def encrypt_crypto_key(name, encrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
543
+ command = make_simple_command(:post, 'v1/{+name}:encrypt', options)
544
+ command.request_representation = Google::Apis::CloudkmsV1::EncryptRequest::Representation
545
+ command.request_object = encrypt_request_object
546
+ command.response_representation = Google::Apis::CloudkmsV1::EncryptResponse::Representation
547
+ command.response_class = Google::Apis::CloudkmsV1::EncryptResponse
578
548
  command.params['name'] = name unless name.nil?
579
549
  command.query['fields'] = fields unless fields.nil?
580
550
  command.query['quotaUser'] = quota_user unless quota_user.nil?
581
551
  execute_or_queue_command(command, &block)
582
552
  end
583
553
 
584
- # Update a CryptoKey.
585
- # @param [String] name
586
- # Output only. The resource name for this CryptoKey in the format
587
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
554
+ # Sets the access control policy on the specified resource. Replaces any
555
+ # existing policy.
556
+ # @param [String] resource
557
+ # REQUIRED: The resource for which the policy is being specified.
558
+ # See the operation documentation for the appropriate value for this field.
559
+ # @param [Google::Apis::CloudkmsV1::SetIamPolicyRequest] set_iam_policy_request_object
560
+ # @param [String] fields
561
+ # Selector specifying which fields to include in a partial response.
562
+ # @param [String] quota_user
563
+ # Available to use for quota purposes for server-side applications. Can be any
564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
565
+ # @param [Google::Apis::RequestOptions] options
566
+ # Request-specific options
567
+ #
568
+ # @yield [result, err] Result & error if block supplied
569
+ # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
570
+ # @yieldparam err [StandardError] error object if request failed
571
+ #
572
+ # @return [Google::Apis::CloudkmsV1::Policy]
573
+ #
574
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
575
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
576
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
577
+ def set_crypto_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
578
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
579
+ command.request_representation = Google::Apis::CloudkmsV1::SetIamPolicyRequest::Representation
580
+ command.request_object = set_iam_policy_request_object
581
+ command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
582
+ command.response_class = Google::Apis::CloudkmsV1::Policy
583
+ command.params['resource'] = resource unless resource.nil?
584
+ command.query['fields'] = fields unless fields.nil?
585
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
586
+ execute_or_queue_command(command, &block)
587
+ end
588
+
589
+ # Create a new CryptoKey within a KeyRing.
590
+ # CryptoKey.purpose is required.
591
+ # @param [String] parent
592
+ # Required. The name of the KeyRing associated with the
593
+ # CryptoKeys.
588
594
  # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object
589
- # @param [String] update_mask
590
- # Required list of fields to be updated in this request.
595
+ # @param [String] crypto_key_id
596
+ # Required. It must be unique within a KeyRing and match the regular
597
+ # expression `[a-zA-Z0-9_-]`1,63``
591
598
  # @param [String] fields
592
599
  # Selector specifying which fields to include in a partial response.
593
600
  # @param [String] quota_user
@@ -605,29 +612,23 @@ module Google
605
612
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
606
613
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
607
614
  # @raise [Google::Apis::AuthorizationError] Authorization is required
608
- def patch_project_location_key_ring_crypto_key(name, crypto_key_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
609
- command = make_simple_command(:patch, 'v1/{+name}', options)
615
+ def create_project_location_key_ring_crypto_key(parent, crypto_key_object = nil, crypto_key_id: nil, fields: nil, quota_user: nil, options: nil, &block)
616
+ command = make_simple_command(:post, 'v1/{+parent}/cryptoKeys', options)
610
617
  command.request_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
611
618
  command.request_object = crypto_key_object
612
619
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
613
620
  command.response_class = Google::Apis::CloudkmsV1::CryptoKey
614
- command.params['name'] = name unless name.nil?
615
- command.query['updateMask'] = update_mask unless update_mask.nil?
621
+ command.params['parent'] = parent unless parent.nil?
622
+ command.query['cryptoKeyId'] = crypto_key_id unless crypto_key_id.nil?
616
623
  command.query['fields'] = fields unless fields.nil?
617
624
  command.query['quotaUser'] = quota_user unless quota_user.nil?
618
625
  execute_or_queue_command(command, &block)
619
626
  end
620
627
 
621
- # Returns permissions that a caller has on the specified resource.
622
- # If the resource does not exist, this will return an empty set of
623
- # permissions, not a NOT_FOUND error.
624
- # Note: This operation is designed to be used for building permission-aware
625
- # UIs and command-line tools, not for authorization checking. This operation
626
- # may "fail open" without warning.
627
- # @param [String] resource
628
- # REQUIRED: The resource for which the policy detail is being requested.
629
- # See the operation documentation for the appropriate value for this field.
630
- # @param [Google::Apis::CloudkmsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
628
+ # Update the version of a CryptoKey that will be used in Encrypt
629
+ # @param [String] name
630
+ # The resource name of the CryptoKey to update.
631
+ # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object
631
632
  # @param [String] fields
632
633
  # Selector specifying which fields to include in a partial response.
633
634
  # @param [String] quota_user
@@ -637,31 +638,32 @@ module Google
637
638
  # Request-specific options
638
639
  #
639
640
  # @yield [result, err] Result & error if block supplied
640
- # @yieldparam result [Google::Apis::CloudkmsV1::TestIamPermissionsResponse] parsed result object
641
+ # @yieldparam result [Google::Apis::CloudkmsV1::CryptoKey] parsed result object
641
642
  # @yieldparam err [StandardError] error object if request failed
642
643
  #
643
- # @return [Google::Apis::CloudkmsV1::TestIamPermissionsResponse]
644
+ # @return [Google::Apis::CloudkmsV1::CryptoKey]
644
645
  #
645
646
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
646
647
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
647
648
  # @raise [Google::Apis::AuthorizationError] Authorization is required
648
- def test_crypto_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
649
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
650
- command.request_representation = Google::Apis::CloudkmsV1::TestIamPermissionsRequest::Representation
651
- command.request_object = test_iam_permissions_request_object
652
- command.response_representation = Google::Apis::CloudkmsV1::TestIamPermissionsResponse::Representation
653
- command.response_class = Google::Apis::CloudkmsV1::TestIamPermissionsResponse
654
- command.params['resource'] = resource unless resource.nil?
649
+ def update_project_location_key_ring_crypto_key_primary_version(name, update_crypto_key_primary_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
650
+ command = make_simple_command(:post, 'v1/{+name}:updatePrimaryVersion', options)
651
+ command.request_representation = Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest::Representation
652
+ command.request_object = update_crypto_key_primary_version_request_object
653
+ command.response_representation = Google::Apis::CloudkmsV1::CryptoKey::Representation
654
+ command.response_class = Google::Apis::CloudkmsV1::CryptoKey
655
+ command.params['name'] = name unless name.nil?
655
656
  command.query['fields'] = fields unless fields.nil?
656
657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
657
658
  execute_or_queue_command(command, &block)
658
659
  end
659
660
 
660
- # Decrypt data that was protected by Encrypt.
661
- # @param [String] name
662
- # Required. The resource name of the CryptoKey to use for decryption.
663
- # The server will choose the appropriate version.
664
- # @param [Google::Apis::CloudkmsV1::DecryptRequest] decrypt_request_object
661
+ # Gets the access control policy for a resource.
662
+ # Returns an empty policy if the resource exists and does not have a policy
663
+ # set.
664
+ # @param [String] resource
665
+ # REQUIRED: The resource for which the policy is being requested.
666
+ # See the operation documentation for the appropriate value for this field.
665
667
  # @param [String] fields
666
668
  # Selector specifying which fields to include in a partial response.
667
669
  # @param [String] quota_user
@@ -671,21 +673,19 @@ module Google
671
673
  # Request-specific options
672
674
  #
673
675
  # @yield [result, err] Result & error if block supplied
674
- # @yieldparam result [Google::Apis::CloudkmsV1::DecryptResponse] parsed result object
676
+ # @yieldparam result [Google::Apis::CloudkmsV1::Policy] parsed result object
675
677
  # @yieldparam err [StandardError] error object if request failed
676
678
  #
677
- # @return [Google::Apis::CloudkmsV1::DecryptResponse]
679
+ # @return [Google::Apis::CloudkmsV1::Policy]
678
680
  #
679
681
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
680
682
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
681
683
  # @raise [Google::Apis::AuthorizationError] Authorization is required
682
- def decrypt_crypto_key(name, decrypt_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
683
- command = make_simple_command(:post, 'v1/{+name}:decrypt', options)
684
- command.request_representation = Google::Apis::CloudkmsV1::DecryptRequest::Representation
685
- command.request_object = decrypt_request_object
686
- command.response_representation = Google::Apis::CloudkmsV1::DecryptResponse::Representation
687
- command.response_class = Google::Apis::CloudkmsV1::DecryptResponse
688
- command.params['name'] = name unless name.nil?
684
+ def get_project_location_key_ring_crypto_key_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
685
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
686
+ command.response_representation = Google::Apis::CloudkmsV1::Policy::Representation
687
+ command.response_class = Google::Apis::CloudkmsV1::Policy
688
+ command.params['resource'] = resource unless resource.nil?
689
689
  command.query['fields'] = fields unless fields.nil?
690
690
  command.query['quotaUser'] = quota_user unless quota_user.nil?
691
691
  execute_or_queue_command(command, &block)
@@ -733,14 +733,19 @@ module Google
733
733
  execute_or_queue_command(command, &block)
734
734
  end
735
735
 
736
- # Create a new CryptoKeyVersion in a CryptoKey.
737
- # The server will assign the next sequential id. If unset,
738
- # state will be set to
739
- # ENABLED.
740
- # @param [String] parent
741
- # Required. The name of the CryptoKey associated with
742
- # the CryptoKeyVersions.
743
- # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
736
+ # Schedule a CryptoKeyVersion for destruction.
737
+ # Upon calling this method, CryptoKeyVersion.state will be set to
738
+ # DESTROY_SCHEDULED
739
+ # and destroy_time will be set to a time 24
740
+ # hours in the future, at which point the state
741
+ # will be changed to
742
+ # DESTROYED, and the key
743
+ # material will be irrevocably destroyed.
744
+ # Before the destroy_time is reached,
745
+ # RestoreCryptoKeyVersion may be called to reverse the process.
746
+ # @param [String] name
747
+ # The resource name of the CryptoKeyVersion to destroy.
748
+ # @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
744
749
  # @param [String] fields
745
750
  # Selector specifying which fields to include in a partial response.
746
751
  # @param [String] quota_user
@@ -758,31 +763,26 @@ module Google
758
763
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
759
764
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
760
765
  # @raise [Google::Apis::AuthorizationError] Authorization is required
761
- def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
762
- command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
763
- command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
764
- command.request_object = crypto_key_version_object
766
+ def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
767
+ command = make_simple_command(:post, 'v1/{+name}:destroy', options)
768
+ command.request_representation = Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest::Representation
769
+ command.request_object = destroy_crypto_key_version_request_object
765
770
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
766
771
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
767
- command.params['parent'] = parent unless parent.nil?
772
+ command.params['name'] = name unless name.nil?
768
773
  command.query['fields'] = fields unless fields.nil?
769
774
  command.query['quotaUser'] = quota_user unless quota_user.nil?
770
775
  execute_or_queue_command(command, &block)
771
776
  end
772
777
 
773
- # Schedule a CryptoKeyVersion for destruction.
774
- # Upon calling this method, CryptoKeyVersion.state will be set to
775
- # DESTROY_SCHEDULED
776
- # and destroy_time will be set to a time 24
777
- # hours in the future, at which point the state
778
- # will be changed to
779
- # DESTROYED, and the key
780
- # material will be irrevocably destroyed.
781
- # Before the destroy_time is reached,
782
- # RestoreCryptoKeyVersion may be called to reverse the process.
783
- # @param [String] name
784
- # The resource name of the CryptoKeyVersion to destroy.
785
- # @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object
778
+ # Create a new CryptoKeyVersion in a CryptoKey.
779
+ # The server will assign the next sequential id. If unset,
780
+ # state will be set to
781
+ # ENABLED.
782
+ # @param [String] parent
783
+ # Required. The name of the CryptoKey associated with
784
+ # the CryptoKeyVersions.
785
+ # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
786
786
  # @param [String] fields
787
787
  # Selector specifying which fields to include in a partial response.
788
788
  # @param [String] quota_user
@@ -800,13 +800,13 @@ module Google
800
800
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
801
801
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
802
802
  # @raise [Google::Apis::AuthorizationError] Authorization is required
803
- def destroy_crypto_key_version(name, destroy_crypto_key_version_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
804
- command = make_simple_command(:post, 'v1/{+name}:destroy', options)
805
- command.request_representation = Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest::Representation
806
- command.request_object = destroy_crypto_key_version_request_object
803
+ def create_project_location_key_ring_crypto_key_crypto_key_version(parent, crypto_key_version_object = nil, fields: nil, quota_user: nil, options: nil, &block)
804
+ command = make_simple_command(:post, 'v1/{+parent}/cryptoKeyVersions', options)
805
+ command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
806
+ command.request_object = crypto_key_version_object
807
807
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
808
808
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
809
- command.params['name'] = name unless name.nil?
809
+ command.params['parent'] = parent unless parent.nil?
810
810
  command.query['fields'] = fields unless fields.nil?
811
811
  command.query['quotaUser'] = quota_user unless quota_user.nil?
812
812
  execute_or_queue_command(command, &block)
@@ -850,18 +850,9 @@ module Google
850
850
  execute_or_queue_command(command, &block)
851
851
  end
852
852
 
853
- # Update a CryptoKeyVersion's metadata.
854
- # state may be changed between
855
- # ENABLED and
856
- # DISABLED using this
857
- # method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to
858
- # move between other states.
853
+ # Returns metadata for a given CryptoKeyVersion.
859
854
  # @param [String] name
860
- # Output only. The resource name for this CryptoKeyVersion in the format
861
- # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
862
- # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
863
- # @param [String] update_mask
864
- # Required list of fields to be updated in this request.
855
+ # The name of the CryptoKeyVersion to get.
865
856
  # @param [String] fields
866
857
  # Selector specifying which fields to include in a partial response.
867
858
  # @param [String] quota_user
@@ -879,22 +870,28 @@ module Google
879
870
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
880
871
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
881
872
  # @raise [Google::Apis::AuthorizationError] Authorization is required
882
- def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
883
- command = make_simple_command(:patch, 'v1/{+name}', options)
884
- command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
885
- command.request_object = crypto_key_version_object
873
+ def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
874
+ command = make_simple_command(:get, 'v1/{+name}', options)
886
875
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
887
876
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
888
877
  command.params['name'] = name unless name.nil?
889
- command.query['updateMask'] = update_mask unless update_mask.nil?
890
878
  command.query['fields'] = fields unless fields.nil?
891
879
  command.query['quotaUser'] = quota_user unless quota_user.nil?
892
880
  execute_or_queue_command(command, &block)
893
881
  end
894
882
 
895
- # Returns metadata for a given CryptoKeyVersion.
883
+ # Update a CryptoKeyVersion's metadata.
884
+ # state may be changed between
885
+ # ENABLED and
886
+ # DISABLED using this
887
+ # method. See DestroyCryptoKeyVersion and RestoreCryptoKeyVersion to
888
+ # move between other states.
896
889
  # @param [String] name
897
- # The name of the CryptoKeyVersion to get.
890
+ # Output only. The resource name for this CryptoKeyVersion in the format
891
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
892
+ # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object
893
+ # @param [String] update_mask
894
+ # Required list of fields to be updated in this request.
898
895
  # @param [String] fields
899
896
  # Selector specifying which fields to include in a partial response.
900
897
  # @param [String] quota_user
@@ -912,11 +909,14 @@ module Google
912
909
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
910
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
911
  # @raise [Google::Apis::AuthorizationError] Authorization is required
915
- def get_project_location_key_ring_crypto_key_crypto_key_version(name, fields: nil, quota_user: nil, options: nil, &block)
916
- command = make_simple_command(:get, 'v1/{+name}', options)
912
+ def patch_project_location_key_ring_crypto_key_crypto_key_version(name, crypto_key_version_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
913
+ command = make_simple_command(:patch, 'v1/{+name}', options)
914
+ command.request_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
915
+ command.request_object = crypto_key_version_object
917
916
  command.response_representation = Google::Apis::CloudkmsV1::CryptoKeyVersion::Representation
918
917
  command.response_class = Google::Apis::CloudkmsV1::CryptoKeyVersion
919
918
  command.params['name'] = name unless name.nil?
919
+ command.query['updateMask'] = update_mask unless update_mask.nil?
920
920
  command.query['fields'] = fields unless fields.nil?
921
921
  command.query['quotaUser'] = quota_user unless quota_user.nil?
922
922
  execute_or_queue_command(command, &block)