google-api-client 0.9.8 → 0.10.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (320) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +15 -8
  3. data/CHANGELOG.md +84 -0
  4. data/Gemfile +10 -2
  5. data/README.md +10 -2
  6. data/api_names.yaml +37172 -135
  7. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1200 -0
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +526 -0
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +844 -0
  11. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  12. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +310 -28
  13. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +84 -0
  14. data/generated/google/apis/adexchangebuyer_v1_4/service.rb +60 -8
  15. data/generated/google/apis/adexchangeseller_v2_0.rb +2 -3
  16. data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -2
  17. data/generated/google/apis/admin_directory_v1.rb +1 -1
  18. data/generated/google/apis/admin_directory_v1/classes.rb +206 -0
  19. data/generated/google/apis/admin_directory_v1/representations.rb +63 -0
  20. data/generated/google/apis/admin_directory_v1/service.rb +41 -2
  21. data/generated/google/apis/admin_reports_v1.rb +5 -5
  22. data/generated/google/apis/admin_reports_v1/service.rb +6 -6
  23. data/generated/google/apis/adsense_v1_4.rb +1 -1
  24. data/generated/google/apis/adsense_v1_4/classes.rb +1 -1
  25. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  26. data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -2
  27. data/generated/google/apis/analytics_v3.rb +1 -1
  28. data/generated/google/apis/analytics_v3/classes.rb +379 -3
  29. data/generated/google/apis/analytics_v3/representations.rb +136 -0
  30. data/generated/google/apis/analytics_v3/service.rb +256 -0
  31. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  32. data/generated/google/apis/analyticsreporting_v4/classes.rb +858 -823
  33. data/generated/google/apis/analyticsreporting_v4/representations.rb +194 -193
  34. data/generated/google/apis/analyticsreporting_v4/service.rb +4 -4
  35. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  36. data/generated/google/apis/androidenterprise_v1/classes.rb +913 -220
  37. data/generated/google/apis/androidenterprise_v1/representations.rb +337 -30
  38. data/generated/google/apis/androidenterprise_v1/service.rb +1163 -561
  39. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  40. data/generated/google/apis/androidpublisher_v2/classes.rb +230 -8
  41. data/generated/google/apis/androidpublisher_v2/representations.rb +90 -0
  42. data/generated/google/apis/androidpublisher_v2/service.rb +116 -3
  43. data/generated/google/apis/appengine_v1beta5.rb +7 -1
  44. data/generated/google/apis/appengine_v1beta5/classes.rb +810 -395
  45. data/generated/google/apis/appengine_v1beta5/representations.rb +188 -22
  46. data/generated/google/apis/appengine_v1beta5/service.rb +343 -39
  47. data/generated/google/apis/appsactivity_v1.rb +3 -3
  48. data/generated/google/apis/appsactivity_v1/classes.rb +7 -0
  49. data/generated/google/apis/appsactivity_v1/representations.rb +1 -0
  50. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  51. data/generated/google/apis/appstate_v1.rb +1 -1
  52. data/generated/google/apis/bigquery_v2.rb +1 -1
  53. data/generated/google/apis/bigquery_v2/classes.rb +360 -38
  54. data/generated/google/apis/bigquery_v2/representations.rb +106 -0
  55. data/generated/google/apis/bigquery_v2/service.rb +18 -4
  56. data/generated/google/apis/books_v1.rb +2 -2
  57. data/generated/google/apis/books_v1/classes.rb +83 -0
  58. data/generated/google/apis/books_v1/representations.rb +35 -0
  59. data/generated/google/apis/books_v1/service.rb +7 -3
  60. data/generated/google/apis/calendar_v3.rb +1 -1
  61. data/generated/google/apis/calendar_v3/classes.rb +208 -5
  62. data/generated/google/apis/calendar_v3/representations.rb +97 -0
  63. data/generated/google/apis/civicinfo_v2.rb +3 -2
  64. data/generated/google/apis/civicinfo_v2/classes.rb +377 -5
  65. data/generated/google/apis/civicinfo_v2/representations.rb +149 -0
  66. data/generated/google/apis/civicinfo_v2/service.rb +27 -6
  67. data/generated/google/apis/classroom_v1.rb +22 -25
  68. data/generated/google/apis/classroom_v1/classes.rb +998 -761
  69. data/generated/google/apis/classroom_v1/representations.rb +263 -198
  70. data/generated/google/apis/classroom_v1/service.rb +1349 -672
  71. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  72. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  73. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  74. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  75. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  76. data/generated/google/apis/cloudbuild_v1/classes.rb +661 -264
  77. data/generated/google/apis/cloudbuild_v1/representations.rb +198 -48
  78. data/generated/google/apis/cloudbuild_v1/service.rb +259 -44
  79. data/generated/google/apis/clouddebugger_v2.rb +5 -8
  80. data/generated/google/apis/clouddebugger_v2/classes.rb +686 -616
  81. data/generated/google/apis/clouddebugger_v2/representations.rb +151 -151
  82. data/generated/google/apis/clouddebugger_v2/service.rb +165 -159
  83. data/generated/google/apis/cloudkms_v1.rb +35 -0
  84. data/generated/google/apis/cloudkms_v1/classes.rb +1022 -0
  85. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  86. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  87. data/generated/google/apis/cloudkms_v1beta1.rb +35 -0
  88. data/generated/google/apis/cloudkms_v1beta1/classes.rb +1039 -0
  89. data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
  90. data/generated/google/apis/cloudkms_v1beta1/service.rb +933 -0
  91. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  92. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  93. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1529 -167
  94. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +491 -26
  95. data/generated/google/apis/cloudresourcemanager_v1/service.rb +1593 -135
  96. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  97. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1155 -235
  98. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +344 -44
  99. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +702 -310
  100. data/generated/google/apis/cloudtrace_v1.rb +9 -9
  101. data/generated/google/apis/cloudtrace_v1/classes.rb +98 -92
  102. data/generated/google/apis/cloudtrace_v1/representations.rb +24 -24
  103. data/generated/google/apis/cloudtrace_v1/service.rb +42 -37
  104. data/generated/google/apis/compute_beta.rb +1 -1
  105. data/generated/google/apis/compute_beta/classes.rb +7007 -3648
  106. data/generated/google/apis/compute_beta/representations.rb +1459 -120
  107. data/generated/google/apis/compute_beta/service.rb +7943 -3726
  108. data/generated/google/apis/compute_v1.rb +1 -1
  109. data/generated/google/apis/compute_v1/classes.rb +2567 -370
  110. data/generated/google/apis/compute_v1/representations.rb +855 -0
  111. data/generated/google/apis/compute_v1/service.rb +6388 -2908
  112. data/generated/google/apis/container_v1.rb +1 -1
  113. data/generated/google/apis/container_v1/classes.rb +287 -16
  114. data/generated/google/apis/container_v1/representations.rb +113 -2
  115. data/generated/google/apis/container_v1/service.rb +130 -0
  116. data/generated/google/apis/content_v2.rb +1 -1
  117. data/generated/google/apis/content_v2/classes.rb +778 -10
  118. data/generated/google/apis/content_v2/representations.rb +339 -0
  119. data/generated/google/apis/content_v2/service.rb +364 -49
  120. data/generated/google/apis/dataflow_v1b3.rb +37 -0
  121. data/generated/google/apis/dataflow_v1b3/classes.rb +4941 -0
  122. data/generated/google/apis/dataflow_v1b3/representations.rb +2037 -0
  123. data/generated/google/apis/dataflow_v1b3/service.rb +957 -0
  124. data/generated/google/apis/dataproc_v1.rb +1 -1
  125. data/generated/google/apis/dataproc_v1/classes.rb +1235 -963
  126. data/generated/google/apis/dataproc_v1/representations.rb +299 -225
  127. data/generated/google/apis/dataproc_v1/service.rb +277 -192
  128. data/generated/google/apis/datastore_v1.rb +38 -0
  129. data/generated/google/apis/datastore_v1/classes.rb +1289 -0
  130. data/generated/google/apis/datastore_v1/representations.rb +572 -0
  131. data/generated/google/apis/datastore_v1/service.rb +259 -0
  132. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  133. data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
  134. data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
  135. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  136. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  137. data/generated/google/apis/deploymentmanager_v2/classes.rb +436 -3
  138. data/generated/google/apis/deploymentmanager_v2/representations.rb +178 -0
  139. data/generated/google/apis/deploymentmanager_v2/service.rb +226 -61
  140. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  141. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  142. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  143. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  144. data/generated/google/apis/dfareporting_v2_6.rb +40 -0
  145. data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
  146. data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
  147. data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
  148. data/generated/google/apis/dfareporting_v2_7.rb +40 -0
  149. data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
  150. data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
  151. data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -0
  152. data/generated/google/apis/dns_v1.rb +1 -1
  153. data/generated/google/apis/dns_v1/classes.rb +1 -1
  154. data/generated/google/apis/dns_v2beta1.rb +43 -0
  155. data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
  156. data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
  157. data/generated/google/apis/dns_v2beta1/service.rb +768 -0
  158. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  159. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +79 -86
  160. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +25 -28
  161. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +10 -8
  162. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  163. data/generated/google/apis/doubleclicksearch_v2/classes.rb +6 -4
  164. data/generated/google/apis/drive_v2.rb +1 -1
  165. data/generated/google/apis/drive_v2/classes.rb +595 -37
  166. data/generated/google/apis/drive_v2/representations.rb +140 -0
  167. data/generated/google/apis/drive_v2/service.rb +406 -40
  168. data/generated/google/apis/drive_v3.rb +1 -1
  169. data/generated/google/apis/drive_v3/classes.rb +507 -40
  170. data/generated/google/apis/drive_v3/representations.rb +105 -0
  171. data/generated/google/apis/drive_v3/service.rb +326 -29
  172. data/generated/google/apis/fitness_v1.rb +38 -2
  173. data/generated/google/apis/fitness_v1/classes.rb +65 -7
  174. data/generated/google/apis/fitness_v1/representations.rb +20 -0
  175. data/generated/google/apis/fitness_v1/service.rb +17 -18
  176. data/generated/google/apis/fusiontables_v2.rb +1 -1
  177. data/generated/google/apis/fusiontables_v2/classes.rb +4 -3
  178. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  179. data/generated/google/apis/games_management_v1management.rb +1 -1
  180. data/generated/google/apis/games_v1.rb +1 -1
  181. data/generated/google/apis/genomics_v1.rb +10 -12
  182. data/generated/google/apis/genomics_v1/classes.rb +2276 -2165
  183. data/generated/google/apis/genomics_v1/representations.rb +468 -496
  184. data/generated/google/apis/genomics_v1/service.rb +978 -882
  185. data/generated/google/apis/gmail_v1.rb +11 -2
  186. data/generated/google/apis/gmail_v1/classes.rb +655 -5
  187. data/generated/google/apis/gmail_v1/representations.rb +261 -0
  188. data/generated/google/apis/gmail_v1/service.rb +1211 -48
  189. data/generated/google/apis/groupssettings_v1.rb +2 -2
  190. data/generated/google/apis/groupssettings_v1/classes.rb +12 -0
  191. data/generated/google/apis/groupssettings_v1/representations.rb +2 -0
  192. data/generated/google/apis/iam_v1.rb +2 -2
  193. data/generated/google/apis/iam_v1/classes.rb +446 -368
  194. data/generated/google/apis/iam_v1/representations.rb +109 -91
  195. data/generated/google/apis/iam_v1/service.rb +249 -162
  196. data/generated/google/apis/identitytoolkit_v3.rb +7 -1
  197. data/generated/google/apis/identitytoolkit_v3/classes.rb +254 -2
  198. data/generated/google/apis/identitytoolkit_v3/representations.rb +38 -0
  199. data/generated/google/apis/kgsearch_v1.rb +2 -3
  200. data/generated/google/apis/kgsearch_v1/classes.rb +13 -13
  201. data/generated/google/apis/kgsearch_v1/representations.rb +2 -2
  202. data/generated/google/apis/kgsearch_v1/service.rb +26 -24
  203. data/generated/google/apis/language_v1beta1.rb +36 -0
  204. data/generated/google/apis/language_v1beta1/classes.rb +757 -0
  205. data/generated/google/apis/language_v1beta1/representations.rb +339 -0
  206. data/generated/google/apis/language_v1beta1/service.rb +185 -0
  207. data/generated/google/apis/licensing_v1.rb +3 -3
  208. data/generated/google/apis/licensing_v1/classes.rb +14 -2
  209. data/generated/google/apis/licensing_v1/representations.rb +2 -0
  210. data/generated/google/apis/licensing_v1/service.rb +1 -1
  211. data/generated/google/apis/logging_v2beta1.rb +6 -6
  212. data/generated/google/apis/logging_v2beta1/classes.rb +900 -775
  213. data/generated/google/apis/logging_v2beta1/representations.rb +163 -142
  214. data/generated/google/apis/logging_v2beta1/service.rb +427 -155
  215. data/generated/google/apis/manufacturers_v1.rb +34 -0
  216. data/generated/google/apis/manufacturers_v1/classes.rb +605 -0
  217. data/generated/google/apis/manufacturers_v1/representations.rb +223 -0
  218. data/generated/google/apis/manufacturers_v1/service.rb +138 -0
  219. data/generated/google/apis/mirror_v1.rb +2 -2
  220. data/generated/google/apis/mirror_v1/service.rb +1 -1
  221. data/generated/google/apis/monitoring_v3.rb +45 -0
  222. data/generated/google/apis/monitoring_v3/classes.rb +1333 -0
  223. data/generated/google/apis/monitoring_v3/representations.rb +516 -0
  224. data/generated/google/apis/monitoring_v3/service.rb +706 -0
  225. data/generated/google/apis/oauth2_v2.rb +1 -1
  226. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  227. data/generated/google/apis/partners_v2.rb +3 -3
  228. data/generated/google/apis/partners_v2/classes.rb +1831 -477
  229. data/generated/google/apis/partners_v2/representations.rb +571 -114
  230. data/generated/google/apis/partners_v2/service.rb +898 -167
  231. data/generated/google/apis/people_v1.rb +15 -16
  232. data/generated/google/apis/people_v1/classes.rb +1047 -859
  233. data/generated/google/apis/people_v1/representations.rb +252 -213
  234. data/generated/google/apis/people_v1/service.rb +75 -62
  235. data/generated/google/apis/plus_domains_v1.rb +1 -1
  236. data/generated/google/apis/plus_v1.rb +1 -1
  237. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  238. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +527 -456
  239. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +101 -100
  240. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +467 -343
  241. data/generated/google/apis/pubsub_v1.rb +1 -1
  242. data/generated/google/apis/pubsub_v1/classes.rb +363 -310
  243. data/generated/google/apis/pubsub_v1/representations.rb +76 -76
  244. data/generated/google/apis/pubsub_v1/service.rb +464 -335
  245. data/generated/google/apis/qpx_express_v1.rb +1 -1
  246. data/generated/google/apis/qpx_express_v1/classes.rb +6 -0
  247. data/generated/google/apis/qpx_express_v1/representations.rb +1 -0
  248. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  249. data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -2
  250. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +3 -1
  251. data/generated/google/apis/reseller_v1.rb +1 -1
  252. data/generated/google/apis/reseller_v1/classes.rb +222 -61
  253. data/generated/google/apis/reseller_v1/representations.rb +28 -0
  254. data/generated/google/apis/reseller_v1/service.rb +240 -47
  255. data/generated/google/apis/script_v1.rb +19 -19
  256. data/generated/google/apis/script_v1/classes.rb +151 -137
  257. data/generated/google/apis/script_v1/representations.rb +26 -26
  258. data/generated/google/apis/script_v1/service.rb +9 -8
  259. data/generated/google/apis/sheets_v4.rb +7 -7
  260. data/generated/google/apis/sheets_v4/classes.rb +4530 -3506
  261. data/generated/google/apis/sheets_v4/representations.rb +988 -737
  262. data/generated/google/apis/sheets_v4/service.rb +266 -99
  263. data/generated/google/apis/site_verification_v1.rb +1 -1
  264. data/generated/google/apis/slides_v1.rb +49 -0
  265. data/generated/google/apis/slides_v1/classes.rb +4480 -0
  266. data/generated/google/apis/slides_v1/representations.rb +1926 -0
  267. data/generated/google/apis/slides_v1/service.rb +245 -0
  268. data/generated/google/apis/speech_v1beta1.rb +34 -0
  269. data/generated/google/apis/speech_v1beta1/classes.rb +498 -0
  270. data/generated/google/apis/speech_v1beta1/representations.rb +206 -0
  271. data/generated/google/apis/speech_v1beta1/service.rb +270 -0
  272. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  273. data/generated/google/apis/sqladmin_v1beta4/classes.rb +131 -10
  274. data/generated/google/apis/sqladmin_v1beta4/representations.rb +50 -0
  275. data/generated/google/apis/sqladmin_v1beta4/service.rb +92 -2
  276. data/generated/google/apis/storage_v1.rb +1 -1
  277. data/generated/google/apis/storage_v1/classes.rb +205 -21
  278. data/generated/google/apis/storage_v1/representations.rb +51 -1
  279. data/generated/google/apis/storage_v1/service.rb +263 -9
  280. data/generated/google/apis/tagmanager_v1.rb +5 -5
  281. data/generated/google/apis/translate_v2.rb +2 -2
  282. data/generated/google/apis/translate_v2/service.rb +1 -1
  283. data/generated/google/apis/vision_v1.rb +1 -1
  284. data/generated/google/apis/vision_v1/classes.rb +1275 -731
  285. data/generated/google/apis/vision_v1/representations.rb +378 -111
  286. data/generated/google/apis/vision_v1/service.rb +4 -4
  287. data/generated/google/apis/webmasters_v3.rb +1 -1
  288. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  289. data/generated/google/apis/youtube_analytics_v1/classes.rb +0 -209
  290. data/generated/google/apis/youtube_analytics_v1/representations.rb +0 -99
  291. data/generated/google/apis/youtube_analytics_v1/service.rb +5 -77
  292. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  293. data/generated/google/apis/youtube_partner_v1/classes.rb +155 -0
  294. data/generated/google/apis/youtube_partner_v1/representations.rb +69 -0
  295. data/generated/google/apis/youtube_partner_v1/service.rb +107 -3
  296. data/generated/google/apis/youtube_v3.rb +1 -1
  297. data/generated/google/apis/youtube_v3/classes.rb +430 -22
  298. data/generated/google/apis/youtube_v3/representations.rb +171 -4
  299. data/generated/google/apis/youtube_v3/service.rb +100 -9
  300. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  301. data/generated/google/apis/youtubereporting_v1/classes.rb +140 -131
  302. data/generated/google/apis/youtubereporting_v1/representations.rb +37 -37
  303. data/generated/google/apis/youtubereporting_v1/service.rb +139 -135
  304. data/google-api-client.gemspec +4 -3
  305. data/lib/google/apis/core/api_command.rb +16 -6
  306. data/lib/google/apis/core/base_service.rb +17 -9
  307. data/lib/google/apis/core/download.rb +7 -2
  308. data/lib/google/apis/core/http_command.rb +5 -1
  309. data/lib/google/apis/core/json_representation.rb +2 -2
  310. data/lib/google/apis/core/upload.rb +7 -1
  311. data/lib/google/apis/errors.rb +6 -2
  312. data/lib/google/apis/generator/annotator.rb +6 -0
  313. data/lib/google/apis/version.rb +1 -1
  314. data/samples/cli/lib/samples/bigquery.rb +101 -0
  315. data/samples/cli/lib/samples/calendar.rb +1 -1
  316. data/samples/cli/lib/samples/gmail.rb +74 -0
  317. data/samples/cli/lib/samples/sheets.rb +61 -0
  318. data/samples/cli/lib/samples/you_tube.rb +4 -1
  319. data/sync.rb +71 -0
  320. metadata +86 -18
@@ -0,0 +1,259 @@
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 DatastoreV1beta3
23
+ # Google Cloud Datastore API
24
+ #
25
+ # Accesses the schemaless NoSQL database to provide fully managed, robust,
26
+ # scalable storage for your application.
27
+ #
28
+ # @example
29
+ # require 'google/apis/datastore_v1beta3'
30
+ #
31
+ # Datastore = Google::Apis::DatastoreV1beta3 # Alias the module
32
+ # service = Datastore::DatastoreService.new
33
+ #
34
+ # @see https://cloud.google.com/datastore/
35
+ class DatastoreService < 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://datastore.googleapis.com/', '')
48
+ end
49
+
50
+ # Queries for entities.
51
+ # @param [String] project_id
52
+ # The ID of the project against which to make the request.
53
+ # @param [Google::Apis::DatastoreV1beta3::RunQueryRequest] run_query_request_object
54
+ # @param [String] quota_user
55
+ # Available to use for quota purposes for server-side applications. Can be any
56
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
57
+ # @param [String] fields
58
+ # Selector specifying which fields to include in a partial response.
59
+ # @param [Google::Apis::RequestOptions] options
60
+ # Request-specific options
61
+ #
62
+ # @yield [result, err] Result & error if block supplied
63
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::RunQueryResponse] parsed result object
64
+ # @yieldparam err [StandardError] error object if request failed
65
+ #
66
+ # @return [Google::Apis::DatastoreV1beta3::RunQueryResponse]
67
+ #
68
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71
+ def run_project_query(project_id, run_query_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
72
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:runQuery', options)
73
+ command.request_representation = Google::Apis::DatastoreV1beta3::RunQueryRequest::Representation
74
+ command.request_object = run_query_request_object
75
+ command.response_representation = Google::Apis::DatastoreV1beta3::RunQueryResponse::Representation
76
+ command.response_class = Google::Apis::DatastoreV1beta3::RunQueryResponse
77
+ command.params['projectId'] = project_id unless project_id.nil?
78
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
79
+ command.query['fields'] = fields unless fields.nil?
80
+ execute_or_queue_command(command, &block)
81
+ end
82
+
83
+ # Begins a new transaction.
84
+ # @param [String] project_id
85
+ # The ID of the project against which to make the request.
86
+ # @param [Google::Apis::DatastoreV1beta3::BeginTransactionRequest] begin_transaction_request_object
87
+ # @param [String] quota_user
88
+ # Available to use for quota purposes for server-side applications. Can be any
89
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
90
+ # @param [String] fields
91
+ # Selector specifying which fields to include in a partial response.
92
+ # @param [Google::Apis::RequestOptions] options
93
+ # Request-specific options
94
+ #
95
+ # @yield [result, err] Result & error if block supplied
96
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::BeginTransactionResponse] parsed result object
97
+ # @yieldparam err [StandardError] error object if request failed
98
+ #
99
+ # @return [Google::Apis::DatastoreV1beta3::BeginTransactionResponse]
100
+ #
101
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
102
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
103
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
104
+ def begin_project_transaction(project_id, begin_transaction_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
105
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:beginTransaction', options)
106
+ command.request_representation = Google::Apis::DatastoreV1beta3::BeginTransactionRequest::Representation
107
+ command.request_object = begin_transaction_request_object
108
+ command.response_representation = Google::Apis::DatastoreV1beta3::BeginTransactionResponse::Representation
109
+ command.response_class = Google::Apis::DatastoreV1beta3::BeginTransactionResponse
110
+ command.params['projectId'] = project_id unless project_id.nil?
111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
112
+ command.query['fields'] = fields unless fields.nil?
113
+ execute_or_queue_command(command, &block)
114
+ end
115
+
116
+ # Allocates IDs for the given keys, which is useful for referencing an entity
117
+ # before it is inserted.
118
+ # @param [String] project_id
119
+ # The ID of the project against which to make the request.
120
+ # @param [Google::Apis::DatastoreV1beta3::AllocateIdsRequest] allocate_ids_request_object
121
+ # @param [String] quota_user
122
+ # Available to use for quota purposes for server-side applications. Can be any
123
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
124
+ # @param [String] fields
125
+ # Selector specifying which fields to include in a partial response.
126
+ # @param [Google::Apis::RequestOptions] options
127
+ # Request-specific options
128
+ #
129
+ # @yield [result, err] Result & error if block supplied
130
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::AllocateIdsResponse] parsed result object
131
+ # @yieldparam err [StandardError] error object if request failed
132
+ #
133
+ # @return [Google::Apis::DatastoreV1beta3::AllocateIdsResponse]
134
+ #
135
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
136
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
137
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
138
+ def allocate_project_ids(project_id, allocate_ids_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
139
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:allocateIds', options)
140
+ command.request_representation = Google::Apis::DatastoreV1beta3::AllocateIdsRequest::Representation
141
+ command.request_object = allocate_ids_request_object
142
+ command.response_representation = Google::Apis::DatastoreV1beta3::AllocateIdsResponse::Representation
143
+ command.response_class = Google::Apis::DatastoreV1beta3::AllocateIdsResponse
144
+ command.params['projectId'] = project_id unless project_id.nil?
145
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
146
+ command.query['fields'] = fields unless fields.nil?
147
+ execute_or_queue_command(command, &block)
148
+ end
149
+
150
+ # Looks up entities by key.
151
+ # @param [String] project_id
152
+ # The ID of the project against which to make the request.
153
+ # @param [Google::Apis::DatastoreV1beta3::LookupRequest] lookup_request_object
154
+ # @param [String] quota_user
155
+ # Available to use for quota purposes for server-side applications. Can be any
156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
157
+ # @param [String] fields
158
+ # Selector specifying which fields to include in a partial response.
159
+ # @param [Google::Apis::RequestOptions] options
160
+ # Request-specific options
161
+ #
162
+ # @yield [result, err] Result & error if block supplied
163
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::LookupResponse] parsed result object
164
+ # @yieldparam err [StandardError] error object if request failed
165
+ #
166
+ # @return [Google::Apis::DatastoreV1beta3::LookupResponse]
167
+ #
168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
171
+ def lookup_project(project_id, lookup_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
172
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:lookup', options)
173
+ command.request_representation = Google::Apis::DatastoreV1beta3::LookupRequest::Representation
174
+ command.request_object = lookup_request_object
175
+ command.response_representation = Google::Apis::DatastoreV1beta3::LookupResponse::Representation
176
+ command.response_class = Google::Apis::DatastoreV1beta3::LookupResponse
177
+ command.params['projectId'] = project_id unless project_id.nil?
178
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
179
+ command.query['fields'] = fields unless fields.nil?
180
+ execute_or_queue_command(command, &block)
181
+ end
182
+
183
+ # Commits a transaction, optionally creating, deleting or modifying some
184
+ # entities.
185
+ # @param [String] project_id
186
+ # The ID of the project against which to make the request.
187
+ # @param [Google::Apis::DatastoreV1beta3::CommitRequest] commit_request_object
188
+ # @param [String] quota_user
189
+ # Available to use for quota purposes for server-side applications. Can be any
190
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
191
+ # @param [String] fields
192
+ # Selector specifying which fields to include in a partial response.
193
+ # @param [Google::Apis::RequestOptions] options
194
+ # Request-specific options
195
+ #
196
+ # @yield [result, err] Result & error if block supplied
197
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::CommitResponse] parsed result object
198
+ # @yieldparam err [StandardError] error object if request failed
199
+ #
200
+ # @return [Google::Apis::DatastoreV1beta3::CommitResponse]
201
+ #
202
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
203
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
204
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
205
+ def commit_project(project_id, commit_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
206
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:commit', options)
207
+ command.request_representation = Google::Apis::DatastoreV1beta3::CommitRequest::Representation
208
+ command.request_object = commit_request_object
209
+ command.response_representation = Google::Apis::DatastoreV1beta3::CommitResponse::Representation
210
+ command.response_class = Google::Apis::DatastoreV1beta3::CommitResponse
211
+ command.params['projectId'] = project_id unless project_id.nil?
212
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
213
+ command.query['fields'] = fields unless fields.nil?
214
+ execute_or_queue_command(command, &block)
215
+ end
216
+
217
+ # Rolls back a transaction.
218
+ # @param [String] project_id
219
+ # The ID of the project against which to make the request.
220
+ # @param [Google::Apis::DatastoreV1beta3::RollbackRequest] rollback_request_object
221
+ # @param [String] quota_user
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
224
+ # @param [String] fields
225
+ # Selector specifying which fields to include in a partial response.
226
+ # @param [Google::Apis::RequestOptions] options
227
+ # Request-specific options
228
+ #
229
+ # @yield [result, err] Result & error if block supplied
230
+ # @yieldparam result [Google::Apis::DatastoreV1beta3::RollbackResponse] parsed result object
231
+ # @yieldparam err [StandardError] error object if request failed
232
+ #
233
+ # @return [Google::Apis::DatastoreV1beta3::RollbackResponse]
234
+ #
235
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
236
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
237
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
238
+ def rollback_project(project_id, rollback_request_object = nil, quota_user: nil, fields: nil, options: nil, &block)
239
+ command = make_simple_command(:post, 'v1beta3/projects/{projectId}:rollback', options)
240
+ command.request_representation = Google::Apis::DatastoreV1beta3::RollbackRequest::Representation
241
+ command.request_object = rollback_request_object
242
+ command.response_representation = Google::Apis::DatastoreV1beta3::RollbackResponse::Representation
243
+ command.response_class = Google::Apis::DatastoreV1beta3::RollbackResponse
244
+ command.params['projectId'] = project_id unless project_id.nil?
245
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
246
+ command.query['fields'] = fields unless fields.nil?
247
+ execute_or_queue_command(command, &block)
248
+ end
249
+
250
+ protected
251
+
252
+ def apply_command_defaults(command)
253
+ command.query['key'] = key unless key.nil?
254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
255
+ end
256
+ end
257
+ end
258
+ end
259
+ end
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://cloud.google.com/deployment-manager/
26
26
  module DeploymentmanagerV2
27
27
  VERSION = 'V2'
28
- REVISION = '20160426'
28
+ REVISION = '20170315'
29
29
 
30
30
  # View and manage your data across Google Cloud Platform services
31
31
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -22,6 +22,172 @@ module Google
22
22
  module Apis
23
23
  module DeploymentmanagerV2
24
24
 
25
+ # Specifies the audit configuration for a service. The configuration determines
26
+ # which permission types are logged, and what identities, if any, are exempted
27
+ # from logging. An AuditConifg must have one or more AuditLogConfigs.
28
+ # If there are AuditConfigs for both `allServices` and a specific service, the
29
+ # union of the two AuditConfigs is used for that service: the log_types
30
+ # specified in each AuditConfig are enabled, and the exempted_members in each
31
+ # AuditConfig are exempted. Example Policy with multiple AuditConfigs: ` "
32
+ # audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
33
+ # log_type": "DATA_READ", "exempted_members": [ "user:foo@gmail.com" ] `, ` "
34
+ # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": "
35
+ # fooservice@googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", `,
36
+ # ` "log_type": "DATA_WRITE", "exempted_members": [ "user:bar@gmail.com" ] ` ] `
37
+ # ] ` For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
38
+ # logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.
39
+ # com from DATA_WRITE logging.
40
+ class AuditConfig
41
+ include Google::Apis::Core::Hashable
42
+
43
+ # The configuration for logging of each type of permission.
44
+ # Corresponds to the JSON property `auditLogConfigs`
45
+ # @return [Array<Google::Apis::DeploymentmanagerV2::AuditLogConfig>]
46
+ attr_accessor :audit_log_configs
47
+
48
+ #
49
+ # Corresponds to the JSON property `exemptedMembers`
50
+ # @return [Array<String>]
51
+ attr_accessor :exempted_members
52
+
53
+ # Specifies a service that will be enabled for audit logging. For example, `
54
+ # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
55
+ # value that covers all services.
56
+ # Corresponds to the JSON property `service`
57
+ # @return [String]
58
+ attr_accessor :service
59
+
60
+ def initialize(**args)
61
+ update!(**args)
62
+ end
63
+
64
+ # Update properties of this object
65
+ def update!(**args)
66
+ @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
67
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
68
+ @service = args[:service] if args.key?(:service)
69
+ end
70
+ end
71
+
72
+ # Provides the configuration for logging a type of permissions. Example:
73
+ # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "
74
+ # user:foo@gmail.com" ] `, ` "log_type": "DATA_WRITE", ` ] `
75
+ # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting foo@gmail.
76
+ # com from DATA_READ logging.
77
+ class AuditLogConfig
78
+ include Google::Apis::Core::Hashable
79
+
80
+ # Specifies the identities that do not cause logging for this type of permission.
81
+ # Follows the same format of [Binding.members][].
82
+ # Corresponds to the JSON property `exemptedMembers`
83
+ # @return [Array<String>]
84
+ attr_accessor :exempted_members
85
+
86
+ # The log type that this config enables.
87
+ # Corresponds to the JSON property `logType`
88
+ # @return [String]
89
+ attr_accessor :log_type
90
+
91
+ def initialize(**args)
92
+ update!(**args)
93
+ end
94
+
95
+ # Update properties of this object
96
+ def update!(**args)
97
+ @exempted_members = args[:exempted_members] if args.key?(:exempted_members)
98
+ @log_type = args[:log_type] if args.key?(:log_type)
99
+ end
100
+ end
101
+
102
+ # Associates `members` with a `role`.
103
+ class Binding
104
+ include Google::Apis::Core::Hashable
105
+
106
+ # Specifies the identities requesting access for a Cloud Platform resource. `
107
+ # members` can have the following values:
108
+ # * `allUsers`: A special identifier that represents anyone who is on the
109
+ # internet; with or without a Google account.
110
+ # * `allAuthenticatedUsers`: A special identifier that represents anyone who is
111
+ # authenticated with a Google account or a service account.
112
+ # * `user:`emailid``: An email address that represents a specific Google account.
113
+ # For example, `alice@gmail.com` or `joe@example.com`.
114
+ # * `serviceAccount:`emailid``: An email address that represents a service
115
+ # account. For example, `my-other-app@appspot.gserviceaccount.com`.
116
+ # * `group:`emailid``: An email address that represents a Google group. For
117
+ # example, `admins@example.com`.
118
+ # * `domain:`domain``: A Google Apps domain name that represents all the users
119
+ # of that domain. For example, `google.com` or `example.com`.
120
+ # Corresponds to the JSON property `members`
121
+ # @return [Array<String>]
122
+ attr_accessor :members
123
+
124
+ # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
125
+ # , or `roles/owner`.
126
+ # Corresponds to the JSON property `role`
127
+ # @return [String]
128
+ attr_accessor :role
129
+
130
+ def initialize(**args)
131
+ update!(**args)
132
+ end
133
+
134
+ # Update properties of this object
135
+ def update!(**args)
136
+ @members = args[:members] if args.key?(:members)
137
+ @role = args[:role] if args.key?(:role)
138
+ end
139
+ end
140
+
141
+ # A condition to be met.
142
+ class Condition
143
+ include Google::Apis::Core::Hashable
144
+
145
+ # Trusted attributes supplied by the IAM system.
146
+ # Corresponds to the JSON property `iam`
147
+ # @return [String]
148
+ attr_accessor :iam
149
+
150
+ # An operator to apply the subject with.
151
+ # Corresponds to the JSON property `op`
152
+ # @return [String]
153
+ attr_accessor :op
154
+
155
+ # Trusted attributes discharged by the service.
156
+ # Corresponds to the JSON property `svc`
157
+ # @return [String]
158
+ attr_accessor :svc
159
+
160
+ # Trusted attributes supplied by any service that owns resources and uses the
161
+ # IAM system for access control.
162
+ # Corresponds to the JSON property `sys`
163
+ # @return [String]
164
+ attr_accessor :sys
165
+
166
+ # DEPRECATED. Use 'values' instead.
167
+ # Corresponds to the JSON property `value`
168
+ # @return [String]
169
+ attr_accessor :value
170
+
171
+ # The objects of the condition. This is mutually exclusive with 'value'.
172
+ # Corresponds to the JSON property `values`
173
+ # @return [Array<String>]
174
+ attr_accessor :values
175
+
176
+ def initialize(**args)
177
+ update!(**args)
178
+ end
179
+
180
+ # Update properties of this object
181
+ def update!(**args)
182
+ @iam = args[:iam] if args.key?(:iam)
183
+ @op = args[:op] if args.key?(:op)
184
+ @svc = args[:svc] if args.key?(:svc)
185
+ @sys = args[:sys] if args.key?(:sys)
186
+ @value = args[:value] if args.key?(:value)
187
+ @values = args[:values] if args.key?(:values)
188
+ end
189
+ end
190
+
25
191
  #
26
192
  class ConfigFile
27
193
  include Google::Apis::Core::Hashable
@@ -167,6 +333,12 @@ module Google
167
333
  class DeploymentUpdate
168
334
  include Google::Apis::Core::Hashable
169
335
 
336
+ # [Output Only] An optional user-provided description of the deployment after
337
+ # the current update has been applied.
338
+ # Corresponds to the JSON property `description`
339
+ # @return [String]
340
+ attr_accessor :description
341
+
170
342
  # [Output Only] Map of labels; provided by the client when the resource is
171
343
  # created or updated. Specifically: Label keys must be between 1 and 63
172
344
  # characters long and must conform to the following regular expression: [a-z]([-
@@ -188,6 +360,7 @@ module Google
188
360
 
189
361
  # Update properties of this object
190
362
  def update!(**args)
363
+ @description = args[:description] if args.key?(:description)
191
364
  @labels = args[:labels] if args.key?(:labels)
192
365
  @manifest = args[:manifest] if args.key?(:manifest)
193
366
  end
@@ -323,6 +496,50 @@ module Google
323
496
  end
324
497
  end
325
498
 
499
+ # Specifies what kind of log the caller must write
500
+ class LogConfig
501
+ include Google::Apis::Core::Hashable
502
+
503
+ # Options for counters
504
+ # Corresponds to the JSON property `counter`
505
+ # @return [Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions]
506
+ attr_accessor :counter
507
+
508
+ def initialize(**args)
509
+ update!(**args)
510
+ end
511
+
512
+ # Update properties of this object
513
+ def update!(**args)
514
+ @counter = args[:counter] if args.key?(:counter)
515
+ end
516
+ end
517
+
518
+ # Options for counters
519
+ class LogConfigCounterOptions
520
+ include Google::Apis::Core::Hashable
521
+
522
+ # The field value to attribute.
523
+ # Corresponds to the JSON property `field`
524
+ # @return [String]
525
+ attr_accessor :field
526
+
527
+ # The metric to update.
528
+ # Corresponds to the JSON property `metric`
529
+ # @return [String]
530
+ attr_accessor :metric
531
+
532
+ def initialize(**args)
533
+ update!(**args)
534
+ end
535
+
536
+ # Update properties of this object
537
+ def update!(**args)
538
+ @field = args[:field] if args.key?(:field)
539
+ @metric = args[:metric] if args.key?(:metric)
540
+ end
541
+ end
542
+
326
543
  #
327
544
  class Manifest
328
545
  include Google::Apis::Core::Hashable
@@ -420,7 +637,7 @@ module Google
420
637
  # @return [String]
421
638
  attr_accessor :client_operation_id
422
639
 
423
- # [Output Only] Creation timestamp in RFC3339 text format.
640
+ # [Deprecated] This field is deprecated.
424
641
  # Corresponds to the JSON property `creationTimestamp`
425
642
  # @return [String]
426
643
  attr_accessor :creation_timestamp
@@ -528,7 +745,9 @@ module Google
528
745
  # @return [String]
529
746
  attr_accessor :target_id
530
747
 
531
- # [Output Only] The URL of the resource that the operation modifies.
748
+ # [Output Only] The URL of the resource that the operation modifies. For
749
+ # operations related to creating a snapshot, this points to the persistent disk
750
+ # that the snapshot was created from.
532
751
  # Corresponds to the JSON property `targetLink`
533
752
  # @return [String]
534
753
  attr_accessor :target_link
@@ -724,10 +943,93 @@ module Google
724
943
  end
725
944
  end
726
945
 
946
+ # Defines an Identity and Access Management (IAM) policy. It is used to specify
947
+ # access control policies for Cloud Platform resources.
948
+ # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of `
949
+ # members` to a `role`, where the members can be user accounts, Google groups,
950
+ # Google domains, and service accounts. A `role` is a named list of permissions
951
+ # defined by IAM.
952
+ # **Example**
953
+ # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com",
954
+ # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
955
+ # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
956
+ # sean@example.com"] ` ] `
957
+ # For a description of IAM and its features, see the [IAM developer's guide](
958
+ # https://cloud.google.com/iam).
959
+ class Policy
960
+ include Google::Apis::Core::Hashable
961
+
962
+ # Specifies cloud audit logging configuration for this policy.
963
+ # Corresponds to the JSON property `auditConfigs`
964
+ # @return [Array<Google::Apis::DeploymentmanagerV2::AuditConfig>]
965
+ attr_accessor :audit_configs
966
+
967
+ # Associates a list of `members` to a `role`. Multiple `bindings` must not be
968
+ # specified for the same `role`. `bindings` with no members will result in an
969
+ # error.
970
+ # Corresponds to the JSON property `bindings`
971
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Binding>]
972
+ attr_accessor :bindings
973
+
974
+ # `etag` is used for optimistic concurrency control as a way to help prevent
975
+ # simultaneous updates of a policy from overwriting each other. It is strongly
976
+ # suggested that systems make use of the `etag` in the read-modify-write cycle
977
+ # to perform policy updates in order to avoid race conditions: An `etag` is
978
+ # returned in the response to `getIamPolicy`, and systems are expected to put
979
+ # that etag in the request to `setIamPolicy` to ensure that their change will be
980
+ # applied to the same version of the policy.
981
+ # If no `etag` is provided in the call to `setIamPolicy`, then the existing
982
+ # policy is overwritten blindly.
983
+ # Corresponds to the JSON property `etag`
984
+ # @return [String]
985
+ attr_accessor :etag
986
+
987
+ #
988
+ # Corresponds to the JSON property `iamOwned`
989
+ # @return [Boolean]
990
+ attr_accessor :iam_owned
991
+ alias_method :iam_owned?, :iam_owned
992
+
993
+ # If more than one rule is specified, the rules are applied in the following
994
+ # manner: - All matching LOG rules are always applied. - If any DENY/
995
+ # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if
996
+ # one or more matching rule requires logging. - Otherwise, if any ALLOW/
997
+ # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if
998
+ # one or more matching rule requires logging. - Otherwise, if no rule applies,
999
+ # permission is denied.
1000
+ # Corresponds to the JSON property `rules`
1001
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Rule>]
1002
+ attr_accessor :rules
1003
+
1004
+ # Version of the `Policy`. The default version is 0.
1005
+ # Corresponds to the JSON property `version`
1006
+ # @return [Fixnum]
1007
+ attr_accessor :version
1008
+
1009
+ def initialize(**args)
1010
+ update!(**args)
1011
+ end
1012
+
1013
+ # Update properties of this object
1014
+ def update!(**args)
1015
+ @audit_configs = args[:audit_configs] if args.key?(:audit_configs)
1016
+ @bindings = args[:bindings] if args.key?(:bindings)
1017
+ @etag = args[:etag] if args.key?(:etag)
1018
+ @iam_owned = args[:iam_owned] if args.key?(:iam_owned)
1019
+ @rules = args[:rules] if args.key?(:rules)
1020
+ @version = args[:version] if args.key?(:version)
1021
+ end
1022
+ end
1023
+
727
1024
  #
728
1025
  class Resource
729
1026
  include Google::Apis::Core::Hashable
730
1027
 
1028
+ # The access controls set on the resource.
1029
+ # Corresponds to the JSON property `accessControl`
1030
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl]
1031
+ attr_accessor :access_control
1032
+
731
1033
  # [Output Only] The evaluated properties of the resource with references
732
1034
  # expanded. Returned as serialized YAML.
733
1035
  # Corresponds to the JSON property `finalProperties`
@@ -763,7 +1065,7 @@ module Google
763
1065
  attr_accessor :properties
764
1066
 
765
1067
  # [Output Only] The type of the resource, for example compute.v1.instance, or
766
- # replicaPools.v1beta2.instanceGroupManager.
1068
+ # cloudfunctions.v1beta1.function.
767
1069
  # Corresponds to the JSON property `type`
768
1070
  # @return [String]
769
1071
  attr_accessor :type
@@ -795,6 +1097,7 @@ module Google
795
1097
 
796
1098
  # Update properties of this object
797
1099
  def update!(**args)
1100
+ @access_control = args[:access_control] if args.key?(:access_control)
798
1101
  @final_properties = args[:final_properties] if args.key?(:final_properties)
799
1102
  @id = args[:id] if args.key?(:id)
800
1103
  @insert_time = args[:insert_time] if args.key?(:insert_time)
@@ -873,10 +1176,34 @@ module Google
873
1176
  end
874
1177
  end
875
1178
 
1179
+ # The access controls set on the resource.
1180
+ class ResourceAccessControl
1181
+ include Google::Apis::Core::Hashable
1182
+
1183
+ # The GCP IAM Policy to set on the resource.
1184
+ # Corresponds to the JSON property `gcpIamPolicy`
1185
+ # @return [String]
1186
+ attr_accessor :gcp_iam_policy
1187
+
1188
+ def initialize(**args)
1189
+ update!(**args)
1190
+ end
1191
+
1192
+ # Update properties of this object
1193
+ def update!(**args)
1194
+ @gcp_iam_policy = args[:gcp_iam_policy] if args.key?(:gcp_iam_policy)
1195
+ end
1196
+ end
1197
+
876
1198
  #
877
1199
  class ResourceUpdate
878
1200
  include Google::Apis::Core::Hashable
879
1201
 
1202
+ # The access controls set on the resource.
1203
+ # Corresponds to the JSON property `accessControl`
1204
+ # @return [Google::Apis::DeploymentmanagerV2::ResourceAccessControl]
1205
+ attr_accessor :access_control
1206
+
880
1207
  # [Output Only] If errors are generated during update of the resource, this
881
1208
  # field will be populated.
882
1209
  # Corresponds to the JSON property `error`
@@ -923,6 +1250,7 @@ module Google
923
1250
 
924
1251
  # Update properties of this object
925
1252
  def update!(**args)
1253
+ @access_control = args[:access_control] if args.key?(:access_control)
926
1254
  @error = args[:error] if args.key?(:error)
927
1255
  @final_properties = args[:final_properties] if args.key?(:final_properties)
928
1256
  @intent = args[:intent] if args.key?(:intent)
@@ -1075,6 +1403,66 @@ module Google
1075
1403
  end
1076
1404
  end
1077
1405
 
1406
+ # A rule to be applied in a Policy.
1407
+ class Rule
1408
+ include Google::Apis::Core::Hashable
1409
+
1410
+ # Required
1411
+ # Corresponds to the JSON property `action`
1412
+ # @return [String]
1413
+ attr_accessor :action
1414
+
1415
+ # Additional restrictions that must be met
1416
+ # Corresponds to the JSON property `conditions`
1417
+ # @return [Array<Google::Apis::DeploymentmanagerV2::Condition>]
1418
+ attr_accessor :conditions
1419
+
1420
+ # Human-readable description of the rule.
1421
+ # Corresponds to the JSON property `description`
1422
+ # @return [String]
1423
+ attr_accessor :description
1424
+
1425
+ # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/
1426
+ # AUTHORITY_SELECTOR is in at least one of these entries.
1427
+ # Corresponds to the JSON property `ins`
1428
+ # @return [Array<String>]
1429
+ attr_accessor :ins
1430
+
1431
+ # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
1432
+ # that match the LOG action.
1433
+ # Corresponds to the JSON property `logConfigs`
1434
+ # @return [Array<Google::Apis::DeploymentmanagerV2::LogConfig>]
1435
+ attr_accessor :log_configs
1436
+
1437
+ # If one or more 'not_in' clauses are specified, the rule matches if the
1438
+ # PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
1439
+ # Corresponds to the JSON property `notIns`
1440
+ # @return [Array<String>]
1441
+ attr_accessor :not_ins
1442
+
1443
+ # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value
1444
+ # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets.
1445
+ # *') matches all verbs.
1446
+ # Corresponds to the JSON property `permissions`
1447
+ # @return [Array<String>]
1448
+ attr_accessor :permissions
1449
+
1450
+ def initialize(**args)
1451
+ update!(**args)
1452
+ end
1453
+
1454
+ # Update properties of this object
1455
+ def update!(**args)
1456
+ @action = args[:action] if args.key?(:action)
1457
+ @conditions = args[:conditions] if args.key?(:conditions)
1458
+ @description = args[:description] if args.key?(:description)
1459
+ @ins = args[:ins] if args.key?(:ins)
1460
+ @log_configs = args[:log_configs] if args.key?(:log_configs)
1461
+ @not_ins = args[:not_ins] if args.key?(:not_ins)
1462
+ @permissions = args[:permissions] if args.key?(:permissions)
1463
+ end
1464
+ end
1465
+
1078
1466
  #
1079
1467
  class TargetConfiguration
1080
1468
  include Google::Apis::Core::Hashable
@@ -1102,6 +1490,45 @@ module Google
1102
1490
  end
1103
1491
  end
1104
1492
 
1493
+ #
1494
+ class TestPermissionsRequest
1495
+ include Google::Apis::Core::Hashable
1496
+
1497
+ # The set of permissions to check for the 'resource'. Permissions with wildcards
1498
+ # (such as '*' or 'storage.*') are not allowed.
1499
+ # Corresponds to the JSON property `permissions`
1500
+ # @return [Array<String>]
1501
+ attr_accessor :permissions
1502
+
1503
+ def initialize(**args)
1504
+ update!(**args)
1505
+ end
1506
+
1507
+ # Update properties of this object
1508
+ def update!(**args)
1509
+ @permissions = args[:permissions] if args.key?(:permissions)
1510
+ end
1511
+ end
1512
+
1513
+ #
1514
+ class TestPermissionsResponse
1515
+ include Google::Apis::Core::Hashable
1516
+
1517
+ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1518
+ # Corresponds to the JSON property `permissions`
1519
+ # @return [Array<String>]
1520
+ attr_accessor :permissions
1521
+
1522
+ def initialize(**args)
1523
+ update!(**args)
1524
+ end
1525
+
1526
+ # Update properties of this object
1527
+ def update!(**args)
1528
+ @permissions = args[:permissions] if args.key?(:permissions)
1529
+ end
1530
+ end
1531
+
1105
1532
  # A resource type supported by Deployment Manager.
1106
1533
  class Type
1107
1534
  include Google::Apis::Core::Hashable
@@ -1121,6 +1548,11 @@ module Google
1121
1548
  # @return [String]
1122
1549
  attr_accessor :name
1123
1550
 
1551
+ # An Operation resource, used to manage asynchronous API requests.
1552
+ # Corresponds to the JSON property `operation`
1553
+ # @return [Google::Apis::DeploymentmanagerV2::Operation]
1554
+ attr_accessor :operation
1555
+
1124
1556
  # [Output Only] Self link for the type.
1125
1557
  # Corresponds to the JSON property `selfLink`
1126
1558
  # @return [String]
@@ -1135,6 +1567,7 @@ module Google
1135
1567
  @id = args[:id] if args.key?(:id)
1136
1568
  @insert_time = args[:insert_time] if args.key?(:insert_time)
1137
1569
  @name = args[:name] if args.key?(:name)
1570
+ @operation = args[:operation] if args.key?(:operation)
1138
1571
  @self_link = args[:self_link] if args.key?(:self_link)
1139
1572
  end
1140
1573
  end