lemboy-google-api-client 0.9.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (555) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +27 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +309 -0
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +53 -0
  11. data/LICENSE +202 -0
  12. data/MIGRATING.md +171 -0
  13. data/README.md +327 -0
  14. data/Rakefile +2 -0
  15. data/api_names.yaml +36215 -0
  16. data/bin/generate-api +109 -0
  17. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
  19. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
  20. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -0
  21. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  22. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  23. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  24. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
  25. data/generated/google/apis/adexchangebuyer_v1_4.rb +35 -0
  26. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
  27. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
  28. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
  29. data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
  30. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  31. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
  32. data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -0
  33. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  34. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  35. data/generated/google/apis/admin_datatransfer_v1/representations.rb +130 -0
  36. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  37. data/generated/google/apis/admin_directory_v1.rb +113 -0
  38. data/generated/google/apis/admin_directory_v1/classes.rb +3241 -0
  39. data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
  40. data/generated/google/apis/admin_directory_v1/service.rb +3857 -0
  41. data/generated/google/apis/admin_reports_v1.rb +38 -0
  42. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  43. data/generated/google/apis/admin_reports_v1/representations.rb +257 -0
  44. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  45. data/generated/google/apis/adsense_v1_4.rb +37 -0
  46. data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
  47. data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
  48. data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
  49. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  50. data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
  51. data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -0
  52. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  53. data/generated/google/apis/analytics_v3.rb +49 -0
  54. data/generated/google/apis/analytics_v3/classes.rb +5536 -0
  55. data/generated/google/apis/analytics_v3/representations.rb +1992 -0
  56. data/generated/google/apis/analytics_v3/service.rb +3785 -0
  57. data/generated/google/apis/analyticsreporting_v4.rb +37 -0
  58. data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
  59. data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
  60. data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
  61. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  62. data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
  63. data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
  64. data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
  65. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  66. data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
  67. data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
  68. data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
  69. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  70. data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
  71. data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
  72. data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
  73. data/generated/google/apis/appengine_v1beta5.rb +40 -0
  74. data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
  75. data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
  76. data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
  77. data/generated/google/apis/appsactivity_v1.rb +46 -0
  78. data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
  79. data/generated/google/apis/appsactivity_v1/representations.rb +209 -0
  80. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  81. data/generated/google/apis/appstate_v1.rb +34 -0
  82. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  83. data/generated/google/apis/appstate_v1/representations.rb +87 -0
  84. data/generated/google/apis/appstate_v1/service.rb +260 -0
  85. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  86. data/generated/google/apis/autoscaler_v1beta2/classes.rb +710 -0
  87. data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -0
  88. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  89. data/generated/google/apis/bigquery_v2.rb +52 -0
  90. data/generated/google/apis/bigquery_v2/classes.rb +3081 -0
  91. data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
  92. data/generated/google/apis/bigquery_v2/service.rb +988 -0
  93. data/generated/google/apis/blogger_v3.rb +37 -0
  94. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  95. data/generated/google/apis/blogger_v3/representations.rb +632 -0
  96. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  97. data/generated/google/apis/books_v1.rb +34 -0
  98. data/generated/google/apis/books_v1/classes.rb +4160 -0
  99. data/generated/google/apis/books_v1/representations.rb +1799 -0
  100. data/generated/google/apis/books_v1/service.rb +2300 -0
  101. data/generated/google/apis/calendar_v3.rb +37 -0
  102. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  103. data/generated/google/apis/calendar_v3/representations.rb +631 -0
  104. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  105. data/generated/google/apis/civicinfo_v2.rb +32 -0
  106. data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
  107. data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
  108. data/generated/google/apis/civicinfo_v2/service.rb +300 -0
  109. data/generated/google/apis/classroom_v1.rb +70 -0
  110. data/generated/google/apis/classroom_v1/classes.rb +1572 -0
  111. data/generated/google/apis/classroom_v1/representations.rb +729 -0
  112. data/generated/google/apis/classroom_v1/service.rb +1945 -0
  113. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  114. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  115. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  116. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  117. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  118. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  119. data/generated/google/apis/cloudbilling_v1/representations.rb +87 -0
  120. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  121. data/generated/google/apis/cloudbuild_v1.rb +34 -0
  122. data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
  123. data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
  124. data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
  125. data/generated/google/apis/clouddebugger_v2.rb +38 -0
  126. data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
  127. data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
  128. data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
  129. data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
  130. data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
  131. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  132. data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
  133. data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
  134. data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
  135. data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
  136. data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -0
  137. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  138. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  139. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +353 -0
  140. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  141. data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
  142. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
  143. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
  144. data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
  145. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  146. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
  147. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
  148. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
  149. data/generated/google/apis/cloudtrace_v1.rb +43 -0
  150. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  151. data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
  152. data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
  153. data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
  154. data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
  155. data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
  156. data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
  157. data/generated/google/apis/compute_beta.rb +49 -0
  158. data/generated/google/apis/compute_beta/classes.rb +12261 -0
  159. data/generated/google/apis/compute_beta/representations.rb +4615 -0
  160. data/generated/google/apis/compute_beta/service.rb +15330 -0
  161. data/generated/google/apis/compute_v1.rb +49 -0
  162. data/generated/google/apis/compute_v1/classes.rb +11179 -0
  163. data/generated/google/apis/compute_v1/representations.rb +4203 -0
  164. data/generated/google/apis/compute_v1/service.rb +12937 -0
  165. data/generated/google/apis/container_v1.rb +35 -0
  166. data/generated/google/apis/container_v1/classes.rb +1040 -0
  167. data/generated/google/apis/container_v1/representations.rb +415 -0
  168. data/generated/google/apis/container_v1/service.rb +659 -0
  169. data/generated/google/apis/container_v1beta1.rb +35 -0
  170. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  171. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  172. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  173. data/generated/google/apis/content_v2.rb +35 -0
  174. data/generated/google/apis/content_v2/classes.rb +6887 -0
  175. data/generated/google/apis/content_v2/representations.rb +2963 -0
  176. data/generated/google/apis/content_v2/service.rb +2653 -0
  177. data/generated/google/apis/coordinate_v1.rb +37 -0
  178. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  179. data/generated/google/apis/coordinate_v1/representations.rb +321 -0
  180. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  181. data/generated/google/apis/customsearch_v1.rb +31 -0
  182. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  183. data/generated/google/apis/customsearch_v1/representations.rb +302 -0
  184. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  185. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  186. data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
  187. data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
  188. data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
  189. data/generated/google/apis/dataproc_v1.rb +34 -0
  190. data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
  191. data/generated/google/apis/dataproc_v1/representations.rb +678 -0
  192. data/generated/google/apis/dataproc_v1/service.rb +670 -0
  193. data/generated/google/apis/datastore_v1.rb +38 -0
  194. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  195. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  196. data/generated/google/apis/datastore_v1/service.rb +259 -0
  197. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  198. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  199. data/generated/google/apis/datastore_v1beta2/representations.rb +594 -0
  200. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  201. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  202. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  203. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  204. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  205. data/generated/google/apis/deploymentmanager_v2.rb +43 -0
  206. data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
  207. data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
  208. data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -0
  209. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  210. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  211. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  212. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  213. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  214. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  215. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  216. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  217. data/generated/google/apis/dfareporting_v2_3.rb +37 -0
  218. data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
  219. data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
  220. data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
  221. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  222. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  223. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  224. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  225. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  226. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  227. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  228. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  229. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  230. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  231. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  232. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  233. data/generated/google/apis/discovery_v1.rb +32 -0
  234. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  235. data/generated/google/apis/discovery_v1/representations.rb +397 -0
  236. data/generated/google/apis/discovery_v1/service.rb +142 -0
  237. data/generated/google/apis/dns_v1.rb +43 -0
  238. data/generated/google/apis/dns_v1/classes.rb +406 -0
  239. data/generated/google/apis/dns_v1/representations.rb +167 -0
  240. data/generated/google/apis/dns_v1/service.rb +453 -0
  241. data/generated/google/apis/dns_v2beta1.rb +43 -0
  242. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  243. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  244. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  245. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  246. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
  247. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
  248. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
  249. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  250. data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
  251. data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
  252. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  253. data/generated/google/apis/drive_v2.rb +59 -0
  254. data/generated/google/apis/drive_v2/classes.rb +2633 -0
  255. data/generated/google/apis/drive_v2/representations.rb +885 -0
  256. data/generated/google/apis/drive_v2/service.rb +2754 -0
  257. data/generated/google/apis/drive_v3.rb +56 -0
  258. data/generated/google/apis/drive_v3/classes.rb +1611 -0
  259. data/generated/google/apis/drive_v3/representations.rb +555 -0
  260. data/generated/google/apis/drive_v3/service.rb +1553 -0
  261. data/generated/google/apis/fitness_v1.rb +85 -0
  262. data/generated/google/apis/fitness_v1/classes.rb +943 -0
  263. data/generated/google/apis/fitness_v1/representations.rb +380 -0
  264. data/generated/google/apis/fitness_v1/service.rb +674 -0
  265. data/generated/google/apis/fusiontables_v2.rb +37 -0
  266. data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
  267. data/generated/google/apis/fusiontables_v2/representations.rb +457 -0
  268. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  270. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  271. data/generated/google/apis/games_configuration_v1configuration/representations.rb +228 -0
  272. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  273. data/generated/google/apis/games_management_v1management.rb +37 -0
  274. data/generated/google/apis/games_management_v1management/classes.rb +567 -0
  275. data/generated/google/apis/games_management_v1management/representations.rb +278 -0
  276. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  277. data/generated/google/apis/games_v1.rb +40 -0
  278. data/generated/google/apis/games_v1/classes.rb +4667 -0
  279. data/generated/google/apis/games_v1/representations.rb +1800 -0
  280. data/generated/google/apis/games_v1/service.rb +2449 -0
  281. data/generated/google/apis/gan_v1beta1.rb +31 -0
  282. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  283. data/generated/google/apis/gan_v1beta1/representations.rb +462 -0
  284. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  285. data/generated/google/apis/genomics_v1.rb +46 -0
  286. data/generated/google/apis/genomics_v1/classes.rb +3477 -0
  287. data/generated/google/apis/genomics_v1/representations.rb +1284 -0
  288. data/generated/google/apis/genomics_v1/service.rb +2207 -0
  289. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  290. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  291. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  292. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  293. data/generated/google/apis/gmail_v1.rb +61 -0
  294. data/generated/google/apis/gmail_v1/classes.rb +1382 -0
  295. data/generated/google/apis/gmail_v1/representations.rb +624 -0
  296. data/generated/google/apis/gmail_v1/service.rb +2447 -0
  297. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  298. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  299. data/generated/google/apis/groupsmigration_v1/representations.rb +40 -0
  300. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  301. data/generated/google/apis/groupssettings_v1.rb +34 -0
  302. data/generated/google/apis/groupssettings_v1/classes.rb +240 -0
  303. data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
  304. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  305. data/generated/google/apis/iam_v1.rb +36 -0
  306. data/generated/google/apis/iam_v1/classes.rb +640 -0
  307. data/generated/google/apis/iam_v1/representations.rb +316 -0
  308. data/generated/google/apis/iam_v1/service.rb +554 -0
  309. data/generated/google/apis/identitytoolkit_v3.rb +37 -0
  310. data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
  311. data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
  312. data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
  313. data/generated/google/apis/kgsearch_v1.rb +31 -0
  314. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  315. data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
  316. data/generated/google/apis/kgsearch_v1/service.rb +113 -0
  317. data/generated/google/apis/language_v1beta1.rb +36 -0
  318. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  319. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  320. data/generated/google/apis/language_v1beta1/service.rb +184 -0
  321. data/generated/google/apis/licensing_v1.rb +34 -0
  322. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  323. data/generated/google/apis/licensing_v1/representations.rb +74 -0
  324. data/generated/google/apis/licensing_v1/service.rb +369 -0
  325. data/generated/google/apis/logging_v1beta3.rb +47 -0
  326. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  327. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  328. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  329. data/generated/google/apis/logging_v2beta1.rb +46 -0
  330. data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
  331. data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
  332. data/generated/google/apis/logging_v2beta1/service.rb +788 -0
  333. data/generated/google/apis/manager_v1beta2.rb +53 -0
  334. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  335. data/generated/google/apis/manager_v1beta2/representations.rb +606 -0
  336. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  337. data/generated/google/apis/manufacturers_v1.rb +34 -0
  338. data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
  339. data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
  340. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  341. data/generated/google/apis/mirror_v1.rb +37 -0
  342. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  343. data/generated/google/apis/mirror_v1/representations.rb +390 -0
  344. data/generated/google/apis/mirror_v1/service.rb +977 -0
  345. data/generated/google/apis/monitoring_v3.rb +45 -0
  346. data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
  347. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  348. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  349. data/generated/google/apis/mybusiness_v3.rb +32 -0
  350. data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
  351. data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
  352. data/generated/google/apis/mybusiness_v3/service.rb +960 -0
  353. data/generated/google/apis/oauth2_v2.rb +43 -0
  354. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  355. data/generated/google/apis/oauth2_v2/representations.rb +102 -0
  356. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  357. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  358. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  359. data/generated/google/apis/pagespeedonline_v2/representations.rb +272 -0
  360. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  361. data/generated/google/apis/partners_v2.rb +32 -0
  362. data/generated/google/apis/partners_v2/classes.rb +942 -0
  363. data/generated/google/apis/partners_v2/representations.rb +454 -0
  364. data/generated/google/apis/partners_v2/service.rb +400 -0
  365. data/generated/google/apis/people_v1.rb +59 -0
  366. data/generated/google/apis/people_v1/classes.rb +1521 -0
  367. data/generated/google/apis/people_v1/representations.rb +663 -0
  368. data/generated/google/apis/people_v1/service.rb +189 -0
  369. data/generated/google/apis/plus_domains_v1.rb +61 -0
  370. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  371. data/generated/google/apis/plus_domains_v1/representations.rb +1111 -0
  372. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  373. data/generated/google/apis/plus_v1.rb +43 -0
  374. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  375. data/generated/google/apis/plus_v1/representations.rb +907 -0
  376. data/generated/google/apis/plus_v1/service.rb +470 -0
  377. data/generated/google/apis/prediction_v1_6.rb +47 -0
  378. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  379. data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
  380. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  381. data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
  382. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
  383. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
  384. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
  385. data/generated/google/apis/pubsub_v1.rb +37 -0
  386. data/generated/google/apis/pubsub_v1/classes.rb +676 -0
  387. data/generated/google/apis/pubsub_v1/representations.rb +323 -0
  388. data/generated/google/apis/pubsub_v1/service.rb +900 -0
  389. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  390. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  391. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  392. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  393. data/generated/google/apis/qpx_express_v1.rb +31 -0
  394. data/generated/google/apis/qpx_express_v1/classes.rb +1274 -0
  395. data/generated/google/apis/qpx_express_v1/representations.rb +473 -0
  396. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  397. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  398. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  399. data/generated/google/apis/replicapool_v1beta2/representations.rb +264 -0
  400. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  401. data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
  402. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  403. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
  404. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
  405. data/generated/google/apis/reseller_v1.rb +37 -0
  406. data/generated/google/apis/reseller_v1/classes.rb +540 -0
  407. data/generated/google/apis/reseller_v1/representations.rb +225 -0
  408. data/generated/google/apis/reseller_v1/service.rb +623 -0
  409. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  410. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  411. data/generated/google/apis/resourceviews_v1beta2/representations.rb +301 -0
  412. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  413. data/generated/google/apis/script_v1.rb +64 -0
  414. data/generated/google/apis/script_v1/classes.rb +265 -0
  415. data/generated/google/apis/script_v1/representations.rb +119 -0
  416. data/generated/google/apis/script_v1/service.rb +98 -0
  417. data/generated/google/apis/sheets_v4.rb +43 -0
  418. data/generated/google/apis/sheets_v4/classes.rb +6368 -0
  419. data/generated/google/apis/sheets_v4/representations.rb +2289 -0
  420. data/generated/google/apis/sheets_v4/service.rb +569 -0
  421. data/generated/google/apis/site_verification_v1.rb +37 -0
  422. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  423. data/generated/google/apis/site_verification_v1/representations.rb +113 -0
  424. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  425. data/generated/google/apis/slides_v1.rb +49 -0
  426. data/generated/google/apis/slides_v1/classes.rb +4044 -0
  427. data/generated/google/apis/slides_v1/representations.rb +1765 -0
  428. data/generated/google/apis/slides_v1/service.rb +202 -0
  429. data/generated/google/apis/speech_v1beta1.rb +34 -0
  430. data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
  431. data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
  432. data/generated/google/apis/speech_v1beta1/service.rb +273 -0
  433. data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
  434. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
  435. data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
  436. data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
  437. data/generated/google/apis/storage_v1.rb +46 -0
  438. data/generated/google/apis/storage_v1/classes.rb +1255 -0
  439. data/generated/google/apis/storage_v1/representations.rb +502 -0
  440. data/generated/google/apis/storage_v1/service.rb +1906 -0
  441. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  442. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  443. data/generated/google/apis/storagetransfer_v1/representations.rb +418 -0
  444. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  445. data/generated/google/apis/tagmanager_v1.rb +52 -0
  446. data/generated/google/apis/tagmanager_v1/classes.rb +1494 -0
  447. data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
  448. data/generated/google/apis/tagmanager_v1/service.rb +2119 -0
  449. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  450. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  451. data/generated/google/apis/taskqueue_v1beta2/representations.rb +126 -0
  452. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  453. data/generated/google/apis/tasks_v1.rb +37 -0
  454. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  455. data/generated/google/apis/tasks_v1/representations.rb +125 -0
  456. data/generated/google/apis/tasks_v1/service.rb +643 -0
  457. data/generated/google/apis/translate_v2.rb +31 -0
  458. data/generated/google/apis/translate_v2/classes.rb +168 -0
  459. data/generated/google/apis/translate_v2/representations.rb +121 -0
  460. data/generated/google/apis/translate_v2/service.rb +182 -0
  461. data/generated/google/apis/urlshortener_v1.rb +34 -0
  462. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  463. data/generated/google/apis/urlshortener_v1/representations.rb +121 -0
  464. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  465. data/generated/google/apis/vision_v1.rb +36 -0
  466. data/generated/google/apis/vision_v1/classes.rb +1267 -0
  467. data/generated/google/apis/vision_v1/representations.rb +418 -0
  468. data/generated/google/apis/vision_v1/service.rb +90 -0
  469. data/generated/google/apis/webmasters_v3.rb +37 -0
  470. data/generated/google/apis/webmasters_v3/classes.rb +570 -0
  471. data/generated/google/apis/webmasters_v3/representations.rb +283 -0
  472. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  473. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  474. data/generated/google/apis/youtube_analytics_v1/classes.rb +337 -0
  475. data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
  476. data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
  477. data/generated/google/apis/youtube_partner_v1.rb +37 -0
  478. data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
  479. data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
  480. data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
  481. data/generated/google/apis/youtube_v3.rb +50 -0
  482. data/generated/google/apis/youtube_v3/classes.rb +8375 -0
  483. data/generated/google/apis/youtube_v3/representations.rb +3273 -0
  484. data/generated/google/apis/youtube_v3/service.rb +4440 -0
  485. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  486. data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
  487. data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
  488. data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
  489. data/google-api-client.gemspec +33 -0
  490. data/lib/cacerts.pem +2183 -0
  491. data/lib/google/api_client/auth/installed_app.rb +128 -0
  492. data/lib/google/api_client/auth/key_utils.rb +94 -0
  493. data/lib/google/api_client/auth/storage.rb +104 -0
  494. data/lib/google/api_client/auth/storages/file_store.rb +57 -0
  495. data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
  496. data/lib/google/api_client/client_secrets.rb +177 -0
  497. data/lib/google/apis.rb +58 -0
  498. data/lib/google/apis/core/api_command.rb +146 -0
  499. data/lib/google/apis/core/base_service.rb +401 -0
  500. data/lib/google/apis/core/batch.rb +239 -0
  501. data/lib/google/apis/core/download.rb +108 -0
  502. data/lib/google/apis/core/hashable.rb +44 -0
  503. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  504. data/lib/google/apis/core/http_command.rb +332 -0
  505. data/lib/google/apis/core/json_representation.rb +145 -0
  506. data/lib/google/apis/core/logging.rb +30 -0
  507. data/lib/google/apis/core/multipart.rb +187 -0
  508. data/lib/google/apis/core/upload.rb +295 -0
  509. data/lib/google/apis/errors.rb +80 -0
  510. data/lib/google/apis/generator.rb +70 -0
  511. data/lib/google/apis/generator/annotator.rb +301 -0
  512. data/lib/google/apis/generator/helpers.rb +74 -0
  513. data/lib/google/apis/generator/model.rb +143 -0
  514. data/lib/google/apis/generator/template.rb +124 -0
  515. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  516. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  517. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  518. data/lib/google/apis/generator/templates/_representation_stub.tmpl +17 -0
  519. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  520. data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
  521. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  522. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  523. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  524. data/lib/google/apis/options.rb +85 -0
  525. data/lib/google/apis/version.rb +39 -0
  526. data/rakelib/metrics.rake +22 -0
  527. data/rakelib/rubocop.rake +10 -0
  528. data/rakelib/spec.rake +11 -0
  529. data/rakelib/yard.rake +11 -0
  530. data/samples/cli/.env +4 -0
  531. data/samples/cli/Gemfile +7 -0
  532. data/samples/cli/README.md +51 -0
  533. data/samples/cli/google-api-samples +32 -0
  534. data/samples/cli/lib/base_cli.rb +95 -0
  535. data/samples/cli/lib/samples/analytics.rb +62 -0
  536. data/samples/cli/lib/samples/androidpublisher.rb +47 -0
  537. data/samples/cli/lib/samples/bigquery.rb +101 -0
  538. data/samples/cli/lib/samples/calendar.rb +83 -0
  539. data/samples/cli/lib/samples/drive.rb +82 -0
  540. data/samples/cli/lib/samples/gmail.rb +124 -0
  541. data/samples/cli/lib/samples/pubsub.rb +114 -0
  542. data/samples/cli/lib/samples/sheets.rb +61 -0
  543. data/samples/cli/lib/samples/translate.rb +44 -0
  544. data/samples/cli/lib/samples/you_tube.rb +44 -0
  545. data/samples/web/.env +2 -0
  546. data/samples/web/Gemfile +7 -0
  547. data/samples/web/README.md +44 -0
  548. data/samples/web/app.rb +120 -0
  549. data/samples/web/views/calendar.erb +34 -0
  550. data/samples/web/views/drive.erb +33 -0
  551. data/samples/web/views/home.erb +34 -0
  552. data/samples/web/views/layout.erb +40 -0
  553. data/sync.rb +71 -0
  554. data/third_party/hurley_patches.rb +103 -0
  555. metadata +735 -0
@@ -0,0 +1,396 @@
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 ClouddebuggerV2
23
+ # Stackdriver Debugger API
24
+ #
25
+ # Examines the call stack and variables of a running application without
26
+ # stopping or slowing it down.
27
+ #
28
+ # @example
29
+ # require 'google/apis/clouddebugger_v2'
30
+ #
31
+ # Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module
32
+ # service = Clouddebugger::CloudDebuggerService.new
33
+ #
34
+ # @see http://cloud.google.com/debugger
35
+ class CloudDebuggerService < Google::Apis::Core::BaseService
36
+ # @return [String]
37
+ # API key. Your API key identifies your project and provides you with API access,
38
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
39
+ attr_accessor :key
40
+
41
+ # @return [String]
42
+ # Available to use for quota purposes for server-side applications. Can be any
43
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
44
+ attr_accessor :quota_user
45
+
46
+ def initialize
47
+ super('https://clouddebugger.googleapis.com/', '')
48
+ end
49
+
50
+ # Registers the debuggee with the controller service.
51
+ # All agents attached to the same application should call this method with
52
+ # the same request content to get back the same stable `debuggee_id`. Agents
53
+ # should call this method again whenever `google.rpc.Code.NOT_FOUND` is
54
+ # returned from any controller method.
55
+ # This allows the controller service to disable the agent or recover from any
56
+ # data loss. If the debuggee is disabled by the server, the response will
57
+ # have `is_disabled` set to `true`.
58
+ # @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
59
+ # @param [String] quota_user
60
+ # Available to use for quota purposes for server-side applications. Can be any
61
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
62
+ # @param [String] fields
63
+ # Selector specifying which fields to include in a partial response.
64
+ # @param [Google::Apis::RequestOptions] options
65
+ # Request-specific options
66
+ #
67
+ # @yield [result, err] Result & error if block supplied
68
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
69
+ # @yieldparam err [StandardError] error object if request failed
70
+ #
71
+ # @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
72
+ #
73
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
74
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
75
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
76
+ def register_debuggee(register_debuggee_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
77
+ command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
78
+ command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
79
+ command.request_object = register_debuggee_request_object
80
+ command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
81
+ command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
82
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
83
+ command.query['fields'] = fields unless fields.nil?
84
+ execute_or_queue_command(command, &block)
85
+ end
86
+
87
+ # Updates the breakpoint state or mutable fields.
88
+ # The entire Breakpoint message must be sent back to the controller
89
+ # service.
90
+ # Updates to active breakpoint fields are only allowed if the new value
91
+ # does not change the breakpoint specification. Updates to the `location`,
92
+ # `condition` and `expression` fields should not alter the breakpoint
93
+ # semantics. These may only make changes such as canonicalizing a value
94
+ # or snapping the location to the correct line of code.
95
+ # @param [String] debuggee_id
96
+ # Identifies the debuggee being debugged.
97
+ # @param [String] id
98
+ # Breakpoint identifier, unique in the scope of the debuggee.
99
+ # @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
100
+ # @param [String] quota_user
101
+ # Available to use for quota purposes for server-side applications. Can be any
102
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
103
+ # @param [String] fields
104
+ # Selector specifying which fields to include in a partial response.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
118
+ command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
119
+ command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
120
+ command.request_object = update_active_breakpoint_request_object
121
+ command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
122
+ command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
123
+ command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
124
+ command.params['id'] = id unless id.nil?
125
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
126
+ command.query['fields'] = fields unless fields.nil?
127
+ execute_or_queue_command(command, &block)
128
+ end
129
+
130
+ # Returns the list of all active breakpoints for the debuggee.
131
+ # The breakpoint specification (location, condition, and expression
132
+ # fields) is semantically immutable, although the field values may
133
+ # change. For example, an agent may update the location line number
134
+ # to reflect the actual line where the breakpoint was set, but this
135
+ # doesn't change the breakpoint semantics.
136
+ # This means that an agent does not need to check if a breakpoint has changed
137
+ # when it encounters the same breakpoint on a successive call.
138
+ # Moreover, an agent should remember the breakpoints that are completed
139
+ # until the controller removes them from the active list to avoid
140
+ # setting those breakpoints again.
141
+ # @param [String] debuggee_id
142
+ # Identifies the debuggee.
143
+ # @param [Boolean] success_on_timeout
144
+ # If set to `true`, returns `google.rpc.Code.OK` status and sets the
145
+ # `wait_expired` response field to `true` when the server-selected timeout
146
+ # has expired (recommended).
147
+ # If set to `false`, returns `google.rpc.Code.ABORTED` status when the
148
+ # server-selected timeout has expired (deprecated).
149
+ # @param [String] wait_token
150
+ # A wait token that, if specified, blocks the method call until the list
151
+ # of active breakpoints has changed, or a server selected timeout has
152
+ # expired. The value should be set from the last returned response.
153
+ # @param [String] quota_user
154
+ # Available to use for quota purposes for server-side applications. Can be any
155
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
156
+ # @param [String] fields
157
+ # Selector specifying which fields to include in a partial response.
158
+ # @param [Google::Apis::RequestOptions] options
159
+ # Request-specific options
160
+ #
161
+ # @yield [result, err] Result & error if block supplied
162
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
163
+ # @yieldparam err [StandardError] error object if request failed
164
+ #
165
+ # @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
166
+ #
167
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
168
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
169
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
170
+ def list_controller_debuggee_breakpoints(debuggee_id, success_on_timeout: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
171
+ command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
172
+ command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
173
+ command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
174
+ command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
175
+ command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
176
+ command.query['waitToken'] = wait_token unless wait_token.nil?
177
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
178
+ command.query['fields'] = fields unless fields.nil?
179
+ execute_or_queue_command(command, &block)
180
+ end
181
+
182
+ # Lists all the debuggees that the user can set breakpoints to.
183
+ # @param [Boolean] include_inactive
184
+ # When set to `true`, the result includes all debuggees. Otherwise, the
185
+ # result includes only debuggees that are active.
186
+ # @param [String] project
187
+ # Project number of a Google Cloud project whose debuggees to list.
188
+ # @param [String] client_version
189
+ # The client version making the call.
190
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
191
+ # @param [String] quota_user
192
+ # Available to use for quota purposes for server-side applications. Can be any
193
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
194
+ # @param [String] fields
195
+ # Selector specifying which fields to include in a partial response.
196
+ # @param [Google::Apis::RequestOptions] options
197
+ # Request-specific options
198
+ #
199
+ # @yield [result, err] Result & error if block supplied
200
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
201
+ # @yieldparam err [StandardError] error object if request failed
202
+ #
203
+ # @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
204
+ #
205
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
206
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
207
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
208
+ def list_debugger_debuggees(include_inactive: nil, project: nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
209
+ command = make_simple_command(:get, 'v2/debugger/debuggees', options)
210
+ command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
211
+ command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
212
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
213
+ command.query['project'] = project unless project.nil?
214
+ command.query['clientVersion'] = client_version unless client_version.nil?
215
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
216
+ command.query['fields'] = fields unless fields.nil?
217
+ execute_or_queue_command(command, &block)
218
+ end
219
+
220
+ # Gets breakpoint information.
221
+ # @param [String] debuggee_id
222
+ # ID of the debuggee whose breakpoint to get.
223
+ # @param [String] breakpoint_id
224
+ # ID of the breakpoint to get.
225
+ # @param [String] client_version
226
+ # The client version making the call.
227
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
228
+ # @param [String] quota_user
229
+ # Available to use for quota purposes for server-side applications. Can be any
230
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
231
+ # @param [String] fields
232
+ # Selector specifying which fields to include in a partial response.
233
+ # @param [Google::Apis::RequestOptions] options
234
+ # Request-specific options
235
+ #
236
+ # @yield [result, err] Result & error if block supplied
237
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] parsed result object
238
+ # @yieldparam err [StandardError] error object if request failed
239
+ #
240
+ # @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
241
+ #
242
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
243
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
244
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
245
+ def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
246
+ command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
247
+ command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
248
+ command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
249
+ command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
250
+ command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
251
+ command.query['clientVersion'] = client_version unless client_version.nil?
252
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
253
+ command.query['fields'] = fields unless fields.nil?
254
+ execute_or_queue_command(command, &block)
255
+ end
256
+
257
+ # Lists all breakpoints for the debuggee.
258
+ # @param [String] debuggee_id
259
+ # ID of the debuggee whose breakpoints to list.
260
+ # @param [String] client_version
261
+ # The client version making the call.
262
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
263
+ # @param [Boolean] include_all_users
264
+ # When set to `true`, the response includes the list of breakpoints set by
265
+ # any user. Otherwise, it includes only breakpoints set by the caller.
266
+ # @param [Boolean] strip_results
267
+ # This field is deprecated. The following fields are always stripped out of
268
+ # the result: `stack_frames`, `evaluated_expressions` and `variable_table`.
269
+ # @param [String] action_value
270
+ # Only breakpoints with the specified action will pass the filter.
271
+ # @param [Boolean] include_inactive
272
+ # When set to `true`, the response includes active and inactive
273
+ # breakpoints. Otherwise, it includes only active breakpoints.
274
+ # @param [String] wait_token
275
+ # A wait token that, if specified, blocks the call until the breakpoints
276
+ # list has changed, or a server selected timeout has expired. The value
277
+ # should be set from the last response. The error code
278
+ # `google.rpc.Code.ABORTED` (RPC) is returned on wait timeout, which
279
+ # should be called again with the same `wait_token`.
280
+ # @param [String] quota_user
281
+ # Available to use for quota purposes for server-side applications. Can be any
282
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
283
+ # @param [String] fields
284
+ # Selector specifying which fields to include in a partial response.
285
+ # @param [Google::Apis::RequestOptions] options
286
+ # Request-specific options
287
+ #
288
+ # @yield [result, err] Result & error if block supplied
289
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse] parsed result object
290
+ # @yieldparam err [StandardError] error object if request failed
291
+ #
292
+ # @return [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse]
293
+ #
294
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
295
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
296
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
297
+ def list_debugger_debuggee_breakpoints(debuggee_id, client_version: nil, include_all_users: nil, strip_results: nil, action_value: nil, include_inactive: nil, wait_token: nil, quota_user: nil, fields: nil, options: nil, &block)
298
+ command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
299
+ command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
300
+ command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
301
+ command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
302
+ command.query['clientVersion'] = client_version unless client_version.nil?
303
+ command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
304
+ command.query['stripResults'] = strip_results unless strip_results.nil?
305
+ command.query['action.value'] = action_value unless action_value.nil?
306
+ command.query['includeInactive'] = include_inactive unless include_inactive.nil?
307
+ command.query['waitToken'] = wait_token unless wait_token.nil?
308
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
309
+ command.query['fields'] = fields unless fields.nil?
310
+ execute_or_queue_command(command, &block)
311
+ end
312
+
313
+ # Sets the breakpoint to the debuggee.
314
+ # @param [String] debuggee_id
315
+ # ID of the debuggee where the breakpoint is to be set.
316
+ # @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
317
+ # @param [String] client_version
318
+ # The client version making the call.
319
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
320
+ # @param [String] quota_user
321
+ # Available to use for quota purposes for server-side applications. Can be any
322
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
323
+ # @param [String] fields
324
+ # Selector specifying which fields to include in a partial response.
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::ClouddebuggerV2::SetBreakpointResponse] parsed result object
330
+ # @yieldparam err [StandardError] error object if request failed
331
+ #
332
+ # @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
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 set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
338
+ command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
339
+ command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
340
+ command.request_object = breakpoint_object
341
+ command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
342
+ command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
343
+ command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
344
+ command.query['clientVersion'] = client_version unless client_version.nil?
345
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
346
+ command.query['fields'] = fields unless fields.nil?
347
+ execute_or_queue_command(command, &block)
348
+ end
349
+
350
+ # Deletes the breakpoint from the debuggee.
351
+ # @param [String] debuggee_id
352
+ # ID of the debuggee whose breakpoint to delete.
353
+ # @param [String] breakpoint_id
354
+ # ID of the breakpoint to delete.
355
+ # @param [String] client_version
356
+ # The client version making the call.
357
+ # Following: `domain/type/version` (e.g., `google.com/intellij/v1`).
358
+ # @param [String] quota_user
359
+ # Available to use for quota purposes for server-side applications. Can be any
360
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
361
+ # @param [String] fields
362
+ # Selector specifying which fields to include in a partial response.
363
+ # @param [Google::Apis::RequestOptions] options
364
+ # Request-specific options
365
+ #
366
+ # @yield [result, err] Result & error if block supplied
367
+ # @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
368
+ # @yieldparam err [StandardError] error object if request failed
369
+ #
370
+ # @return [Google::Apis::ClouddebuggerV2::Empty]
371
+ #
372
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
373
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
374
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
375
+ def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, client_version: nil, quota_user: nil, fields: nil, options: nil, &block)
376
+ command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
377
+ command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
378
+ command.response_class = Google::Apis::ClouddebuggerV2::Empty
379
+ command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
380
+ command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
381
+ command.query['clientVersion'] = client_version unless client_version.nil?
382
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
383
+ command.query['fields'] = fields unless fields.nil?
384
+ execute_or_queue_command(command, &block)
385
+ end
386
+
387
+ protected
388
+
389
+ def apply_command_defaults(command)
390
+ command.query['key'] = key unless key.nil?
391
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
392
+ end
393
+ end
394
+ end
395
+ end
396
+ end
@@ -0,0 +1,34 @@
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/cloudkms_v1beta1/service.rb'
16
+ require 'google/apis/cloudkms_v1beta1/classes.rb'
17
+ require 'google/apis/cloudkms_v1beta1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Google Cloud KMS API
22
+ #
23
+ #
24
+ #
25
+ # @see https://cloud.google.com/kms/
26
+ module CloudkmsV1beta1
27
+ VERSION = 'V1beta1'
28
+ REVISION = '20170117'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,999 @@
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 CloudkmsV1beta1
24
+
25
+ # Write a Cloud Audit log
26
+ class CloudAuditOptions
27
+ include Google::Apis::Core::Hashable
28
+
29
+ def initialize(**args)
30
+ update!(**args)
31
+ end
32
+
33
+ # Update properties of this object
34
+ def update!(**args)
35
+ end
36
+ end
37
+
38
+ # Associates `members` with a `role`.
39
+ class Binding
40
+ include Google::Apis::Core::Hashable
41
+
42
+ # Specifies the identities requesting access for a Cloud Platform resource.
43
+ # `members` can have the following values:
44
+ # * `allUsers`: A special identifier that represents anyone who is
45
+ # on the internet; with or without a Google account.
46
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone
47
+ # who is authenticated with a Google account or a service account.
48
+ # * `user:`emailid``: An email address that represents a specific Google
49
+ # account. For example, `alice@gmail.com` or `joe@example.com`.
50
+ # * `serviceAccount:`emailid``: An email address that represents a service
51
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
52
+ # * `group:`emailid``: An email address that represents a Google group.
53
+ # For example, `admins@example.com`.
54
+ # * `domain:`domain``: A Google Apps domain name that represents all the
55
+ # users of that domain. For example, `google.com` or `example.com`.
56
+ # Corresponds to the JSON property `members`
57
+ # @return [Array<String>]
58
+ attr_accessor :members
59
+
60
+ # Role that is assigned to `members`.
61
+ # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
62
+ # Required
63
+ # Corresponds to the JSON property `role`
64
+ # @return [String]
65
+ attr_accessor :role
66
+
67
+ def initialize(**args)
68
+ update!(**args)
69
+ end
70
+
71
+ # Update properties of this object
72
+ def update!(**args)
73
+ @members = args[:members] if args.key?(:members)
74
+ @role = args[:role] if args.key?(:role)
75
+ end
76
+ end
77
+
78
+ # Request message for KeyManagementService.Encrypt.
79
+ class EncryptRequest
80
+ include Google::Apis::Core::Hashable
81
+
82
+ # Required. The data to encrypt. Must be no larger than 64KiB.
83
+ # Corresponds to the JSON property `plaintext`
84
+ # @return [String]
85
+ attr_accessor :plaintext
86
+
87
+ # Optional data that, if specified, must also be provided during decryption
88
+ # through DecryptRequest.additional_authenticated_data. Must be no
89
+ # larger than 64KiB.
90
+ # Corresponds to the JSON property `additionalAuthenticatedData`
91
+ # @return [String]
92
+ attr_accessor :additional_authenticated_data
93
+
94
+ def initialize(**args)
95
+ update!(**args)
96
+ end
97
+
98
+ # Update properties of this object
99
+ def update!(**args)
100
+ @plaintext = args[:plaintext] if args.key?(:plaintext)
101
+ @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
102
+ end
103
+ end
104
+
105
+ # Response message for KeyManagementService.ListCryptoKeyVersions.
106
+ class ListCryptoKeyVersionsResponse
107
+ include Google::Apis::Core::Hashable
108
+
109
+ # The list of CryptoKeyVersions.
110
+ # Corresponds to the JSON property `cryptoKeyVersions`
111
+ # @return [Array<Google::Apis::CloudkmsV1beta1::CryptoKeyVersion>]
112
+ attr_accessor :crypto_key_versions
113
+
114
+ # A token to retrieve next page of results. Pass this value in
115
+ # ListCryptoKeyVersionsRequest.page_token to retrieve the next page of
116
+ # results.
117
+ # Corresponds to the JSON property `nextPageToken`
118
+ # @return [String]
119
+ attr_accessor :next_page_token
120
+
121
+ # The total number of CryptoKeyVersions that matched the
122
+ # query.
123
+ # Corresponds to the JSON property `totalSize`
124
+ # @return [Fixnum]
125
+ attr_accessor :total_size
126
+
127
+ def initialize(**args)
128
+ update!(**args)
129
+ end
130
+
131
+ # Update properties of this object
132
+ def update!(**args)
133
+ @crypto_key_versions = args[:crypto_key_versions] if args.key?(:crypto_key_versions)
134
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
135
+ @total_size = args[:total_size] if args.key?(:total_size)
136
+ end
137
+ end
138
+
139
+ # Response message for `TestIamPermissions` method.
140
+ class TestIamPermissionsResponse
141
+ include Google::Apis::Core::Hashable
142
+
143
+ # A subset of `TestPermissionsRequest.permissions` that the caller is
144
+ # allowed.
145
+ # Corresponds to the JSON property `permissions`
146
+ # @return [Array<String>]
147
+ attr_accessor :permissions
148
+
149
+ def initialize(**args)
150
+ update!(**args)
151
+ end
152
+
153
+ # Update properties of this object
154
+ def update!(**args)
155
+ @permissions = args[:permissions] if args.key?(:permissions)
156
+ end
157
+ end
158
+
159
+ # Request message for KeyManagementService.DestroyCryptoKeyVersion.
160
+ class DestroyCryptoKeyVersionRequest
161
+ include Google::Apis::Core::Hashable
162
+
163
+ def initialize(**args)
164
+ update!(**args)
165
+ end
166
+
167
+ # Update properties of this object
168
+ def update!(**args)
169
+ end
170
+ end
171
+
172
+ # A CryptoKey represents a logical key that can be used for cryptographic
173
+ # operations.
174
+ # A CryptoKey is made up of one or more versions, which
175
+ # represent the actual key material used in cryptographic operations.
176
+ class CryptoKey
177
+ include Google::Apis::Core::Hashable
178
+
179
+ # Output only. The resource name for this CryptoKey in the format
180
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*`.
181
+ # Corresponds to the JSON property `name`
182
+ # @return [String]
183
+ attr_accessor :name
184
+
185
+ # The immutable purpose of this CryptoKey. Currently, the only acceptable
186
+ # purpose is ENCRYPT_DECRYPT.
187
+ # Corresponds to the JSON property `purpose`
188
+ # @return [String]
189
+ attr_accessor :purpose
190
+
191
+ # At next_rotation_time, the Key Management Service will automatically:
192
+ # 1. Create a new version of this CryptoKey.
193
+ # 2. Mark the new version as primary.
194
+ # Key rotations performed manually via
195
+ # CreateCryptoKeyVersion and
196
+ # UpdateCryptoKeyPrimaryVersion
197
+ # do not affect next_rotation_time.
198
+ # Corresponds to the JSON property `nextRotationTime`
199
+ # @return [String]
200
+ attr_accessor :next_rotation_time
201
+
202
+ # Output only. The time at which this CryptoKey was created.
203
+ # Corresponds to the JSON property `createTime`
204
+ # @return [String]
205
+ attr_accessor :create_time
206
+
207
+ # next_rotation_time will be advanced by this period when the service
208
+ # automatically rotates a key. Must be at least one day.
209
+ # If rotation_period is set, next_rotation_time must also be set.
210
+ # Corresponds to the JSON property `rotationPeriod`
211
+ # @return [String]
212
+ attr_accessor :rotation_period
213
+
214
+ # A CryptoKeyVersion represents an individual cryptographic key, and the
215
+ # associated key material.
216
+ # It can be used for cryptographic operations either directly, or via its
217
+ # parent CryptoKey, in which case the server will choose the appropriate
218
+ # version for the operation.
219
+ # Corresponds to the JSON property `primary`
220
+ # @return [Google::Apis::CloudkmsV1beta1::CryptoKeyVersion]
221
+ attr_accessor :primary
222
+
223
+ def initialize(**args)
224
+ update!(**args)
225
+ end
226
+
227
+ # Update properties of this object
228
+ def update!(**args)
229
+ @name = args[:name] if args.key?(:name)
230
+ @purpose = args[:purpose] if args.key?(:purpose)
231
+ @next_rotation_time = args[:next_rotation_time] if args.key?(:next_rotation_time)
232
+ @create_time = args[:create_time] if args.key?(:create_time)
233
+ @rotation_period = args[:rotation_period] if args.key?(:rotation_period)
234
+ @primary = args[:primary] if args.key?(:primary)
235
+ end
236
+ end
237
+
238
+ # A rule to be applied in a Policy.
239
+ class Rule
240
+ include Google::Apis::Core::Hashable
241
+
242
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
243
+ # that match the LOG action.
244
+ # Corresponds to the JSON property `logConfig`
245
+ # @return [Array<Google::Apis::CloudkmsV1beta1::LogConfig>]
246
+ attr_accessor :log_config
247
+
248
+ # If one or more 'in' clauses are specified, the rule matches if
249
+ # the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
250
+ # Corresponds to the JSON property `in`
251
+ # @return [Array<String>]
252
+ attr_accessor :in
253
+
254
+ # A permission is a string of form '<service>.<resource type>.<verb>'
255
+ # (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
256
+ # and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
257
+ # Corresponds to the JSON property `permissions`
258
+ # @return [Array<String>]
259
+ attr_accessor :permissions
260
+
261
+ # Required
262
+ # Corresponds to the JSON property `action`
263
+ # @return [String]
264
+ attr_accessor :action
265
+
266
+ # If one or more 'not_in' clauses are specified, the rule matches
267
+ # if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
268
+ # The format for in and not_in entries is the same as for members in a
269
+ # Binding (see google/iam/v1/policy.proto).
270
+ # Corresponds to the JSON property `notIn`
271
+ # @return [Array<String>]
272
+ attr_accessor :not_in
273
+
274
+ # Human-readable description of the rule.
275
+ # Corresponds to the JSON property `description`
276
+ # @return [String]
277
+ attr_accessor :description
278
+
279
+ # Additional restrictions that must be met
280
+ # Corresponds to the JSON property `conditions`
281
+ # @return [Array<Google::Apis::CloudkmsV1beta1::Condition>]
282
+ attr_accessor :conditions
283
+
284
+ def initialize(**args)
285
+ update!(**args)
286
+ end
287
+
288
+ # Update properties of this object
289
+ def update!(**args)
290
+ @log_config = args[:log_config] if args.key?(:log_config)
291
+ @in = args[:in] if args.key?(:in)
292
+ @permissions = args[:permissions] if args.key?(:permissions)
293
+ @action = args[:action] if args.key?(:action)
294
+ @not_in = args[:not_in] if args.key?(:not_in)
295
+ @description = args[:description] if args.key?(:description)
296
+ @conditions = args[:conditions] if args.key?(:conditions)
297
+ end
298
+ end
299
+
300
+ # Specifies what kind of log the caller must write
301
+ # Increment a streamz counter with the specified metric and field names.
302
+ # Metric names should start with a '/', generally be lowercase-only,
303
+ # and end in "_count". Field names should not contain an initial slash.
304
+ # The actual exported metric names will have "/iam/policy" prepended.
305
+ # Field names correspond to IAM request parameters and field values are
306
+ # their respective values.
307
+ # At present the only supported field names are
308
+ # - "iam_principal", corresponding to IAMContext.principal;
309
+ # - "" (empty string), resulting in one aggretated counter with no field.
310
+ # Examples:
311
+ # counter ` metric: "/debug_access_count" field: "iam_principal" `
312
+ # ==> increment counter /iam/policy/backend_debug_access_count
313
+ # `iam_principal=[value of IAMContext.principal]`
314
+ # At this time we do not support:
315
+ # * multiple field names (though this may be supported in the future)
316
+ # * decrementing the counter
317
+ # * incrementing it by anything other than 1
318
+ class LogConfig
319
+ include Google::Apis::Core::Hashable
320
+
321
+ # Write a Data Access (Gin) log
322
+ # Corresponds to the JSON property `dataAccess`
323
+ # @return [Google::Apis::CloudkmsV1beta1::DataAccessOptions]
324
+ attr_accessor :data_access
325
+
326
+ # Write a Cloud Audit log
327
+ # Corresponds to the JSON property `cloudAudit`
328
+ # @return [Google::Apis::CloudkmsV1beta1::CloudAuditOptions]
329
+ attr_accessor :cloud_audit
330
+
331
+ # Options for counters
332
+ # Corresponds to the JSON property `counter`
333
+ # @return [Google::Apis::CloudkmsV1beta1::CounterOptions]
334
+ attr_accessor :counter
335
+
336
+ def initialize(**args)
337
+ update!(**args)
338
+ end
339
+
340
+ # Update properties of this object
341
+ def update!(**args)
342
+ @data_access = args[:data_access] if args.key?(:data_access)
343
+ @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
344
+ @counter = args[:counter] if args.key?(:counter)
345
+ end
346
+ end
347
+
348
+ # Request message for `SetIamPolicy` method.
349
+ class SetIamPolicyRequest
350
+ include Google::Apis::Core::Hashable
351
+
352
+ # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
353
+ # the fields in the mask will be modified. If no mask is provided, a default
354
+ # mask is used:
355
+ # paths: "bindings, etag"
356
+ # This field is only used by Cloud IAM.
357
+ # Corresponds to the JSON property `updateMask`
358
+ # @return [String]
359
+ attr_accessor :update_mask
360
+
361
+ # Defines an Identity and Access Management (IAM) policy. It is used to
362
+ # specify access control policies for Cloud Platform resources.
363
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
364
+ # `members` to a `role`, where the members can be user accounts, Google groups,
365
+ # Google domains, and service accounts. A `role` is a named list of permissions
366
+ # defined by IAM.
367
+ # **Example**
368
+ # `
369
+ # "bindings": [
370
+ # `
371
+ # "role": "roles/owner",
372
+ # "members": [
373
+ # "user:mike@example.com",
374
+ # "group:admins@example.com",
375
+ # "domain:google.com",
376
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
377
+ # ]
378
+ # `,
379
+ # `
380
+ # "role": "roles/viewer",
381
+ # "members": ["user:sean@example.com"]
382
+ # `
383
+ # ]
384
+ # `
385
+ # For a description of IAM and its features, see the
386
+ # [IAM developer's guide](https://cloud.google.com/iam).
387
+ # Corresponds to the JSON property `policy`
388
+ # @return [Google::Apis::CloudkmsV1beta1::Policy]
389
+ attr_accessor :policy
390
+
391
+ def initialize(**args)
392
+ update!(**args)
393
+ end
394
+
395
+ # Update properties of this object
396
+ def update!(**args)
397
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
398
+ @policy = args[:policy] if args.key?(:policy)
399
+ end
400
+ end
401
+
402
+ # Request message for KeyManagementService.Decrypt.
403
+ class DecryptRequest
404
+ include Google::Apis::Core::Hashable
405
+
406
+ # Required. The encrypted data originally returned in
407
+ # EncryptResponse.ciphertext.
408
+ # Corresponds to the JSON property `ciphertext`
409
+ # @return [String]
410
+ attr_accessor :ciphertext
411
+
412
+ # Optional data that must match the data originally supplied in
413
+ # EncryptRequest.additional_authenticated_data.
414
+ # Corresponds to the JSON property `additionalAuthenticatedData`
415
+ # @return [String]
416
+ attr_accessor :additional_authenticated_data
417
+
418
+ def initialize(**args)
419
+ update!(**args)
420
+ end
421
+
422
+ # Update properties of this object
423
+ def update!(**args)
424
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
425
+ @additional_authenticated_data = args[:additional_authenticated_data] if args.key?(:additional_authenticated_data)
426
+ end
427
+ end
428
+
429
+ # A resource that represents Google Cloud Platform location.
430
+ class Location
431
+ include Google::Apis::Core::Hashable
432
+
433
+ # Cross-service attributes for the location. For example
434
+ # `"cloud.googleapis.com/region": "us-east1"`
435
+ # Corresponds to the JSON property `labels`
436
+ # @return [Hash<String,String>]
437
+ attr_accessor :labels
438
+
439
+ # Resource name for the location, which may vary between implementations.
440
+ # For example: `"projects/example-project/locations/us-east1"`
441
+ # Corresponds to the JSON property `name`
442
+ # @return [String]
443
+ attr_accessor :name
444
+
445
+ # The canonical id for this location. For example: `"us-east1"`.
446
+ # Corresponds to the JSON property `locationId`
447
+ # @return [String]
448
+ attr_accessor :location_id
449
+
450
+ # Service-specific metadata. For example the available capacity at the given
451
+ # location.
452
+ # Corresponds to the JSON property `metadata`
453
+ # @return [Hash<String,Object>]
454
+ attr_accessor :metadata
455
+
456
+ def initialize(**args)
457
+ update!(**args)
458
+ end
459
+
460
+ # Update properties of this object
461
+ def update!(**args)
462
+ @labels = args[:labels] if args.key?(:labels)
463
+ @name = args[:name] if args.key?(:name)
464
+ @location_id = args[:location_id] if args.key?(:location_id)
465
+ @metadata = args[:metadata] if args.key?(:metadata)
466
+ end
467
+ end
468
+
469
+ # Response message for KeyManagementService.ListCryptoKeys.
470
+ class ListCryptoKeysResponse
471
+ include Google::Apis::Core::Hashable
472
+
473
+ # A token to retrieve next page of results. Pass this value in
474
+ # ListCryptoKeysRequest.page_token to retrieve the next page of results.
475
+ # Corresponds to the JSON property `nextPageToken`
476
+ # @return [String]
477
+ attr_accessor :next_page_token
478
+
479
+ # The list of CryptoKeys.
480
+ # Corresponds to the JSON property `cryptoKeys`
481
+ # @return [Array<Google::Apis::CloudkmsV1beta1::CryptoKey>]
482
+ attr_accessor :crypto_keys
483
+
484
+ # The total number of CryptoKeys that matched the query.
485
+ # Corresponds to the JSON property `totalSize`
486
+ # @return [Fixnum]
487
+ attr_accessor :total_size
488
+
489
+ def initialize(**args)
490
+ update!(**args)
491
+ end
492
+
493
+ # Update properties of this object
494
+ def update!(**args)
495
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
496
+ @crypto_keys = args[:crypto_keys] if args.key?(:crypto_keys)
497
+ @total_size = args[:total_size] if args.key?(:total_size)
498
+ end
499
+ end
500
+
501
+ # A condition to be met.
502
+ class Condition
503
+ include Google::Apis::Core::Hashable
504
+
505
+ # Trusted attributes discharged by the service.
506
+ # Corresponds to the JSON property `svc`
507
+ # @return [String]
508
+ attr_accessor :svc
509
+
510
+ # Trusted attributes supplied by any service that owns resources and uses
511
+ # the IAM system for access control.
512
+ # Corresponds to the JSON property `sys`
513
+ # @return [String]
514
+ attr_accessor :sys
515
+
516
+ # DEPRECATED. Use 'values' instead.
517
+ # Corresponds to the JSON property `value`
518
+ # @return [String]
519
+ attr_accessor :value
520
+
521
+ # The objects of the condition. This is mutually exclusive with 'value'.
522
+ # Corresponds to the JSON property `values`
523
+ # @return [Array<String>]
524
+ attr_accessor :values
525
+
526
+ # Trusted attributes supplied by the IAM system.
527
+ # Corresponds to the JSON property `iam`
528
+ # @return [String]
529
+ attr_accessor :iam
530
+
531
+ # An operator to apply the subject with.
532
+ # Corresponds to the JSON property `op`
533
+ # @return [String]
534
+ attr_accessor :op
535
+
536
+ def initialize(**args)
537
+ update!(**args)
538
+ end
539
+
540
+ # Update properties of this object
541
+ def update!(**args)
542
+ @svc = args[:svc] if args.key?(:svc)
543
+ @sys = args[:sys] if args.key?(:sys)
544
+ @value = args[:value] if args.key?(:value)
545
+ @values = args[:values] if args.key?(:values)
546
+ @iam = args[:iam] if args.key?(:iam)
547
+ @op = args[:op] if args.key?(:op)
548
+ end
549
+ end
550
+
551
+ # Options for counters
552
+ class CounterOptions
553
+ include Google::Apis::Core::Hashable
554
+
555
+ # The metric to update.
556
+ # Corresponds to the JSON property `metric`
557
+ # @return [String]
558
+ attr_accessor :metric
559
+
560
+ # The field value to attribute.
561
+ # Corresponds to the JSON property `field`
562
+ # @return [String]
563
+ attr_accessor :field
564
+
565
+ def initialize(**args)
566
+ update!(**args)
567
+ end
568
+
569
+ # Update properties of this object
570
+ def update!(**args)
571
+ @metric = args[:metric] if args.key?(:metric)
572
+ @field = args[:field] if args.key?(:field)
573
+ end
574
+ end
575
+
576
+ # Provides the configuration for logging a type of permissions.
577
+ # Example:
578
+ # `
579
+ # "audit_log_configs": [
580
+ # `
581
+ # "log_type": "DATA_READ",
582
+ # "exempted_members": [
583
+ # "user:foo@gmail.com"
584
+ # ]
585
+ # `,
586
+ # `
587
+ # "log_type": "DATA_WRITE",
588
+ # `
589
+ # ]
590
+ # `
591
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
592
+ # foo@gmail.com from DATA_READ logging.
593
+ class AuditLogConfig
594
+ include Google::Apis::Core::Hashable
595
+
596
+ # Specifies the identities that do not cause logging for this type of
597
+ # permission.
598
+ # Follows the same format of Binding.members.
599
+ # Corresponds to the JSON property `exemptedMembers`
600
+ # @return [Array<String>]
601
+ attr_accessor :exempted_members
602
+
603
+ # The log type that this config enables.
604
+ # Corresponds to the JSON property `logType`
605
+ # @return [String]
606
+ attr_accessor :log_type
607
+
608
+ def initialize(**args)
609
+ update!(**args)
610
+ end
611
+
612
+ # Update properties of this object
613
+ def update!(**args)
614
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
615
+ @log_type = args[:log_type] if args.key?(:log_type)
616
+ end
617
+ end
618
+
619
+ # Response message for KeyManagementService.Decrypt.
620
+ class DecryptResponse
621
+ include Google::Apis::Core::Hashable
622
+
623
+ # The decrypted data originally supplied in EncryptRequest.plaintext.
624
+ # Corresponds to the JSON property `plaintext`
625
+ # @return [String]
626
+ attr_accessor :plaintext
627
+
628
+ def initialize(**args)
629
+ update!(**args)
630
+ end
631
+
632
+ # Update properties of this object
633
+ def update!(**args)
634
+ @plaintext = args[:plaintext] if args.key?(:plaintext)
635
+ end
636
+ end
637
+
638
+ # Request message for `TestIamPermissions` method.
639
+ class TestIamPermissionsRequest
640
+ include Google::Apis::Core::Hashable
641
+
642
+ # The set of permissions to check for the `resource`. Permissions with
643
+ # wildcards (such as '*' or 'storage.*') are not allowed. For more
644
+ # information see
645
+ # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
646
+ # Corresponds to the JSON property `permissions`
647
+ # @return [Array<String>]
648
+ attr_accessor :permissions
649
+
650
+ def initialize(**args)
651
+ update!(**args)
652
+ end
653
+
654
+ # Update properties of this object
655
+ def update!(**args)
656
+ @permissions = args[:permissions] if args.key?(:permissions)
657
+ end
658
+ end
659
+
660
+ # Defines an Identity and Access Management (IAM) policy. It is used to
661
+ # specify access control policies for Cloud Platform resources.
662
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
663
+ # `members` to a `role`, where the members can be user accounts, Google groups,
664
+ # Google domains, and service accounts. A `role` is a named list of permissions
665
+ # defined by IAM.
666
+ # **Example**
667
+ # `
668
+ # "bindings": [
669
+ # `
670
+ # "role": "roles/owner",
671
+ # "members": [
672
+ # "user:mike@example.com",
673
+ # "group:admins@example.com",
674
+ # "domain:google.com",
675
+ # "serviceAccount:my-other-app@appspot.gserviceaccount.com",
676
+ # ]
677
+ # `,
678
+ # `
679
+ # "role": "roles/viewer",
680
+ # "members": ["user:sean@example.com"]
681
+ # `
682
+ # ]
683
+ # `
684
+ # For a description of IAM and its features, see the
685
+ # [IAM developer's guide](https://cloud.google.com/iam).
686
+ class Policy
687
+ include Google::Apis::Core::Hashable
688
+
689
+ #
690
+ # Corresponds to the JSON property `iamOwned`
691
+ # @return [Boolean]
692
+ attr_accessor :iam_owned
693
+ alias_method :iam_owned?, :iam_owned
694
+
695
+ # If more than one rule is specified, the rules are applied in the following
696
+ # manner:
697
+ # - All matching LOG rules are always applied.
698
+ # - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
699
+ # Logging will be applied if one or more matching rule requires logging.
700
+ # - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
701
+ # granted.
702
+ # Logging will be applied if one or more matching rule requires logging.
703
+ # - Otherwise, if no rule applies, permission is denied.
704
+ # Corresponds to the JSON property `rules`
705
+ # @return [Array<Google::Apis::CloudkmsV1beta1::Rule>]
706
+ attr_accessor :rules
707
+
708
+ # Version of the `Policy`. The default version is 0.
709
+ # Corresponds to the JSON property `version`
710
+ # @return [Fixnum]
711
+ attr_accessor :version
712
+
713
+ # Specifies cloud audit logging configuration for this policy.
714
+ # Corresponds to the JSON property `auditConfigs`
715
+ # @return [Array<Google::Apis::CloudkmsV1beta1::AuditConfig>]
716
+ attr_accessor :audit_configs
717
+
718
+ # Associates a list of `members` to a `role`.
719
+ # Multiple `bindings` must not be specified for the same `role`.
720
+ # `bindings` with no members will result in an error.
721
+ # Corresponds to the JSON property `bindings`
722
+ # @return [Array<Google::Apis::CloudkmsV1beta1::Binding>]
723
+ attr_accessor :bindings
724
+
725
+ # `etag` is used for optimistic concurrency control as a way to help
726
+ # prevent simultaneous updates of a policy from overwriting each other.
727
+ # It is strongly suggested that systems make use of the `etag` in the
728
+ # read-modify-write cycle to perform policy updates in order to avoid race
729
+ # conditions: An `etag` is returned in the response to `getIamPolicy`, and
730
+ # systems are expected to put that etag in the request to `setIamPolicy` to
731
+ # ensure that their change will be applied to the same version of the policy.
732
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
733
+ # policy is overwritten blindly.
734
+ # Corresponds to the JSON property `etag`
735
+ # @return [String]
736
+ attr_accessor :etag
737
+
738
+ def initialize(**args)
739
+ update!(**args)
740
+ end
741
+
742
+ # Update properties of this object
743
+ def update!(**args)
744
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
745
+ @rules = args[:rules] if args.key?(:rules)
746
+ @version = args[:version] if args.key?(:version)
747
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
748
+ @bindings = args[:bindings] if args.key?(:bindings)
749
+ @etag = args[:etag] if args.key?(:etag)
750
+ end
751
+ end
752
+
753
+ # Response message for KeyManagementService.Encrypt.
754
+ class EncryptResponse
755
+ include Google::Apis::Core::Hashable
756
+
757
+ # The encrypted data.
758
+ # Corresponds to the JSON property `ciphertext`
759
+ # @return [String]
760
+ attr_accessor :ciphertext
761
+
762
+ # The resource name of the CryptoKeyVersion used in encryption.
763
+ # Corresponds to the JSON property `name`
764
+ # @return [String]
765
+ attr_accessor :name
766
+
767
+ def initialize(**args)
768
+ update!(**args)
769
+ end
770
+
771
+ # Update properties of this object
772
+ def update!(**args)
773
+ @ciphertext = args[:ciphertext] if args.key?(:ciphertext)
774
+ @name = args[:name] if args.key?(:name)
775
+ end
776
+ end
777
+
778
+ # A KeyRing is a toplevel logical grouping of CryptoKeys.
779
+ class KeyRing
780
+ include Google::Apis::Core::Hashable
781
+
782
+ # Output only. The time at which this KeyRing was created.
783
+ # Corresponds to the JSON property `createTime`
784
+ # @return [String]
785
+ attr_accessor :create_time
786
+
787
+ # Output only. The resource name for the KeyRing in the format
788
+ # `projects/*/locations/*/keyRings/*`.
789
+ # Corresponds to the JSON property `name`
790
+ # @return [String]
791
+ attr_accessor :name
792
+
793
+ def initialize(**args)
794
+ update!(**args)
795
+ end
796
+
797
+ # Update properties of this object
798
+ def update!(**args)
799
+ @create_time = args[:create_time] if args.key?(:create_time)
800
+ @name = args[:name] if args.key?(:name)
801
+ end
802
+ end
803
+
804
+ # The response message for Locations.ListLocations.
805
+ class ListLocationsResponse
806
+ include Google::Apis::Core::Hashable
807
+
808
+ # The standard List next-page token.
809
+ # Corresponds to the JSON property `nextPageToken`
810
+ # @return [String]
811
+ attr_accessor :next_page_token
812
+
813
+ # A list of locations that matches the specified filter in the request.
814
+ # Corresponds to the JSON property `locations`
815
+ # @return [Array<Google::Apis::CloudkmsV1beta1::Location>]
816
+ attr_accessor :locations
817
+
818
+ def initialize(**args)
819
+ update!(**args)
820
+ end
821
+
822
+ # Update properties of this object
823
+ def update!(**args)
824
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
825
+ @locations = args[:locations] if args.key?(:locations)
826
+ end
827
+ end
828
+
829
+ # Request message for KeyManagementService.UpdateCryptoKeyPrimaryVersion.
830
+ class UpdateCryptoKeyPrimaryVersionRequest
831
+ include Google::Apis::Core::Hashable
832
+
833
+ # The id of the child CryptoKeyVersion to use as primary.
834
+ # Corresponds to the JSON property `cryptoKeyVersionId`
835
+ # @return [String]
836
+ attr_accessor :crypto_key_version_id
837
+
838
+ def initialize(**args)
839
+ update!(**args)
840
+ end
841
+
842
+ # Update properties of this object
843
+ def update!(**args)
844
+ @crypto_key_version_id = args[:crypto_key_version_id] if args.key?(:crypto_key_version_id)
845
+ end
846
+ end
847
+
848
+ # Request message for KeyManagementService.RestoreCryptoKeyVersion.
849
+ class RestoreCryptoKeyVersionRequest
850
+ include Google::Apis::Core::Hashable
851
+
852
+ def initialize(**args)
853
+ update!(**args)
854
+ end
855
+
856
+ # Update properties of this object
857
+ def update!(**args)
858
+ end
859
+ end
860
+
861
+ # Write a Data Access (Gin) log
862
+ class DataAccessOptions
863
+ include Google::Apis::Core::Hashable
864
+
865
+ def initialize(**args)
866
+ update!(**args)
867
+ end
868
+
869
+ # Update properties of this object
870
+ def update!(**args)
871
+ end
872
+ end
873
+
874
+ # Response message for KeyManagementService.ListKeyRings.
875
+ class ListKeyRingsResponse
876
+ include Google::Apis::Core::Hashable
877
+
878
+ # A token to retrieve next page of results. Pass this value in
879
+ # ListKeyRingsRequest.page_token to retrieve the next page of results.
880
+ # Corresponds to the JSON property `nextPageToken`
881
+ # @return [String]
882
+ attr_accessor :next_page_token
883
+
884
+ # The total number of KeyRings that matched the query.
885
+ # Corresponds to the JSON property `totalSize`
886
+ # @return [Fixnum]
887
+ attr_accessor :total_size
888
+
889
+ # The list of KeyRings.
890
+ # Corresponds to the JSON property `keyRings`
891
+ # @return [Array<Google::Apis::CloudkmsV1beta1::KeyRing>]
892
+ attr_accessor :key_rings
893
+
894
+ def initialize(**args)
895
+ update!(**args)
896
+ end
897
+
898
+ # Update properties of this object
899
+ def update!(**args)
900
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
901
+ @total_size = args[:total_size] if args.key?(:total_size)
902
+ @key_rings = args[:key_rings] if args.key?(:key_rings)
903
+ end
904
+ end
905
+
906
+ # Specifies the audit configuration for a service.
907
+ # It consists of which permission types are logged, and what identities, if
908
+ # any, are exempted from logging.
909
+ # An AuditConifg must have one or more AuditLogConfigs.
910
+ class AuditConfig
911
+ include Google::Apis::Core::Hashable
912
+
913
+ # The configuration for logging of each type of permission.
914
+ # Next ID: 4
915
+ # Corresponds to the JSON property `auditLogConfigs`
916
+ # @return [Array<Google::Apis::CloudkmsV1beta1::AuditLogConfig>]
917
+ attr_accessor :audit_log_configs
918
+
919
+ # Specifies the identities that are exempted from "data access" audit
920
+ # logging for the `service` specified above.
921
+ # Follows the same format of Binding.members.
922
+ # This field is deprecated in favor of per-permission-type exemptions.
923
+ # Corresponds to the JSON property `exemptedMembers`
924
+ # @return [Array<String>]
925
+ attr_accessor :exempted_members
926
+
927
+ # Specifies a service that will be enabled for audit logging.
928
+ # For example, `resourcemanager`, `storage`, `compute`.
929
+ # `allServices` is a special value that covers all services.
930
+ # Corresponds to the JSON property `service`
931
+ # @return [String]
932
+ attr_accessor :service
933
+
934
+ def initialize(**args)
935
+ update!(**args)
936
+ end
937
+
938
+ # Update properties of this object
939
+ def update!(**args)
940
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
941
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
942
+ @service = args[:service] if args.key?(:service)
943
+ end
944
+ end
945
+
946
+ # A CryptoKeyVersion represents an individual cryptographic key, and the
947
+ # associated key material.
948
+ # It can be used for cryptographic operations either directly, or via its
949
+ # parent CryptoKey, in which case the server will choose the appropriate
950
+ # version for the operation.
951
+ class CryptoKeyVersion
952
+ include Google::Apis::Core::Hashable
953
+
954
+ # Output only. The time at which this CryptoKeyVersion was created.
955
+ # Corresponds to the JSON property `createTime`
956
+ # @return [String]
957
+ attr_accessor :create_time
958
+
959
+ # The current state of the CryptoKeyVersion.
960
+ # Corresponds to the JSON property `state`
961
+ # @return [String]
962
+ attr_accessor :state
963
+
964
+ # Output only. The resource name for this CryptoKeyVersion in the format
965
+ # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`.
966
+ # Corresponds to the JSON property `name`
967
+ # @return [String]
968
+ attr_accessor :name
969
+
970
+ # Output only. The time this CryptoKeyVersion's key material was
971
+ # destroyed. Only present if state is
972
+ # DESTROYED.
973
+ # Corresponds to the JSON property `destroyEventTime`
974
+ # @return [String]
975
+ attr_accessor :destroy_event_time
976
+
977
+ # Output only. The time this CryptoKeyVersion's key material is scheduled
978
+ # for destruction. Only present if state is
979
+ # DESTROY_SCHEDULED.
980
+ # Corresponds to the JSON property `destroyTime`
981
+ # @return [String]
982
+ attr_accessor :destroy_time
983
+
984
+ def initialize(**args)
985
+ update!(**args)
986
+ end
987
+
988
+ # Update properties of this object
989
+ def update!(**args)
990
+ @create_time = args[:create_time] if args.key?(:create_time)
991
+ @state = args[:state] if args.key?(:state)
992
+ @name = args[:name] if args.key?(:name)
993
+ @destroy_event_time = args[:destroy_event_time] if args.key?(:destroy_event_time)
994
+ @destroy_time = args[:destroy_time] if args.key?(:destroy_time)
995
+ end
996
+ end
997
+ end
998
+ end
999
+ end