google-api-client 0.31.0 → 0.32.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (295) hide show
  1. checksums.yaml +4 -4
  2. data/.kokoro/continuous/linux.cfg +11 -1
  3. data/.kokoro/continuous/osx.cfg +5 -0
  4. data/.kokoro/continuous/windows.cfg +10 -0
  5. data/.kokoro/presubmit/linux.cfg +11 -1
  6. data/.kokoro/presubmit/osx.cfg +5 -0
  7. data/.kokoro/presubmit/windows.cfg +10 -0
  8. data/CHANGELOG.md +107 -0
  9. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  10. data/generated/google/apis/androidmanagement_v1/classes.rb +12 -1
  11. data/generated/google/apis/androidmanagement_v1/representations.rb +1 -0
  12. data/generated/google/apis/bigquery_v2.rb +1 -1
  13. data/generated/google/apis/bigquery_v2/classes.rb +241 -0
  14. data/generated/google/apis/bigquery_v2/representations.rb +115 -0
  15. data/generated/google/apis/bigqueryconnection_v1beta1.rb +1 -1
  16. data/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +62 -29
  17. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  18. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +2 -2
  19. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +30 -26
  20. data/generated/google/apis/bigqueryreservation_v1.rb +1 -1
  21. data/generated/google/apis/bigqueryreservation_v1/classes.rb +7 -7
  22. data/generated/google/apis/bigqueryreservation_v1/representations.rb +3 -3
  23. data/generated/google/apis/bigqueryreservation_v1alpha2.rb +1 -1
  24. data/generated/google/apis/bigqueryreservation_v1alpha2/classes.rb +0 -175
  25. data/generated/google/apis/bigqueryreservation_v1alpha2/representations.rb +0 -65
  26. data/generated/google/apis/bigqueryreservation_v1alpha2/service.rb +0 -140
  27. data/generated/google/apis/bigqueryreservation_v1beta1.rb +37 -0
  28. data/generated/google/apis/bigqueryreservation_v1beta1/classes.rb +497 -0
  29. data/generated/google/apis/bigqueryreservation_v1beta1/representations.rb +236 -0
  30. data/generated/google/apis/bigqueryreservation_v1beta1/service.rb +713 -0
  31. data/generated/google/apis/binaryauthorization_v1.rb +1 -1
  32. data/generated/google/apis/binaryauthorization_v1/classes.rb +307 -0
  33. data/generated/google/apis/binaryauthorization_v1/representations.rb +88 -0
  34. data/generated/google/apis/binaryauthorization_v1/service.rb +230 -0
  35. data/generated/google/apis/binaryauthorization_v1beta1.rb +1 -1
  36. data/generated/google/apis/binaryauthorization_v1beta1/classes.rb +62 -29
  37. data/generated/google/apis/blogger_v3.rb +1 -1
  38. data/generated/google/apis/blogger_v3/service.rb +6 -6
  39. data/generated/google/apis/calendar_v3.rb +1 -1
  40. data/generated/google/apis/calendar_v3/classes.rb +1 -0
  41. data/generated/google/apis/cloudasset_v1.rb +1 -1
  42. data/generated/google/apis/cloudasset_v1/classes.rb +72 -29
  43. data/generated/google/apis/cloudasset_v1/representations.rb +1 -0
  44. data/generated/google/apis/cloudasset_v1/service.rb +1 -1
  45. data/generated/google/apis/cloudasset_v1beta1.rb +1 -1
  46. data/generated/google/apis/cloudasset_v1beta1/classes.rb +62 -29
  47. data/generated/google/apis/cloudasset_v1beta1/service.rb +2 -2
  48. data/generated/google/apis/cloudfunctions_v1.rb +1 -1
  49. data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -2
  50. data/generated/google/apis/cloudfunctions_v1/service.rb +10 -7
  51. data/generated/google/apis/cloudfunctions_v1beta2.rb +1 -1
  52. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +1 -1
  53. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +7 -6
  54. data/generated/google/apis/cloudidentity_v1.rb +4 -1
  55. data/generated/google/apis/cloudidentity_v1beta1.rb +4 -1
  56. data/generated/google/apis/cloudiot_v1.rb +1 -1
  57. data/generated/google/apis/cloudiot_v1/classes.rb +68 -35
  58. data/generated/google/apis/cloudiot_v1/service.rb +18 -17
  59. data/generated/google/apis/cloudkms_v1.rb +1 -1
  60. data/generated/google/apis/cloudkms_v1/classes.rb +77 -35
  61. data/generated/google/apis/cloudkms_v1/service.rb +33 -27
  62. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1.rb +1 -1
  63. data/generated/google/apis/cloudprivatecatalogproducer_v1beta1/classes.rb +62 -29
  64. data/generated/google/apis/cloudsearch_v1.rb +1 -1
  65. data/generated/google/apis/cloudsearch_v1/classes.rb +354 -0
  66. data/generated/google/apis/cloudsearch_v1/representations.rb +196 -0
  67. data/generated/google/apis/cloudsearch_v1/service.rb +314 -2
  68. data/generated/google/apis/cloudtasks_v2beta3.rb +1 -1
  69. data/generated/google/apis/cloudtasks_v2beta3/classes.rb +62 -29
  70. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  71. data/generated/google/apis/cloudtrace_v1/classes.rb +1 -1
  72. data/generated/google/apis/cloudtrace_v1/service.rb +10 -10
  73. data/generated/google/apis/cloudtrace_v2.rb +1 -1
  74. data/generated/google/apis/cloudtrace_v2/classes.rb +3 -3
  75. data/generated/google/apis/commentanalyzer_v1alpha1.rb +1 -1
  76. data/generated/google/apis/commentanalyzer_v1alpha1/classes.rb +7 -10
  77. data/generated/google/apis/compute_alpha.rb +1 -1
  78. data/generated/google/apis/compute_alpha/classes.rb +38 -42
  79. data/generated/google/apis/compute_alpha/representations.rb +5 -16
  80. data/generated/google/apis/compute_beta.rb +1 -1
  81. data/generated/google/apis/compute_beta/classes.rb +10 -5
  82. data/generated/google/apis/compute_v1.rb +1 -1
  83. data/generated/google/apis/compute_v1/classes.rb +1327 -4
  84. data/generated/google/apis/compute_v1/representations.rb +439 -0
  85. data/generated/google/apis/container_v1.rb +1 -1
  86. data/generated/google/apis/container_v1/classes.rb +111 -0
  87. data/generated/google/apis/container_v1/representations.rb +51 -0
  88. data/generated/google/apis/containeranalysis_v1alpha1.rb +1 -1
  89. data/generated/google/apis/containeranalysis_v1alpha1/classes.rb +76 -30
  90. data/generated/google/apis/containeranalysis_v1alpha1/representations.rb +1 -0
  91. data/generated/google/apis/containeranalysis_v1beta1.rb +1 -1
  92. data/generated/google/apis/containeranalysis_v1beta1/classes.rb +70 -30
  93. data/generated/google/apis/content_v2.rb +1 -1
  94. data/generated/google/apis/content_v2/service.rb +0 -226
  95. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  96. data/generated/google/apis/dataflow_v1b3/classes.rb +42 -0
  97. data/generated/google/apis/dataflow_v1b3/representations.rb +4 -0
  98. data/generated/google/apis/dataproc_v1.rb +1 -1
  99. data/generated/google/apis/dataproc_v1/classes.rb +324 -38
  100. data/generated/google/apis/dataproc_v1/representations.rb +97 -0
  101. data/generated/google/apis/dataproc_v1/service.rb +613 -1
  102. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  103. data/generated/google/apis/dataproc_v1beta2/classes.rb +100 -54
  104. data/generated/google/apis/dataproc_v1beta2/service.rb +29 -22
  105. data/generated/google/apis/dialogflow_v2.rb +1 -1
  106. data/generated/google/apis/dialogflow_v2/classes.rb +363 -167
  107. data/generated/google/apis/dialogflow_v2/representations.rb +160 -49
  108. data/generated/google/apis/dialogflow_v2/service.rb +1 -1
  109. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  110. data/generated/google/apis/dialogflow_v2beta1/classes.rb +433 -178
  111. data/generated/google/apis/dialogflow_v2beta1/representations.rb +199 -59
  112. data/generated/google/apis/dialogflow_v2beta1/service.rb +39 -0
  113. data/generated/google/apis/dlp_v2.rb +1 -1
  114. data/generated/google/apis/dlp_v2/classes.rb +3 -4
  115. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  116. data/generated/google/apis/drive_v2.rb +1 -1
  117. data/generated/google/apis/drive_v2/classes.rb +2 -2
  118. data/generated/google/apis/drive_v3.rb +1 -1
  119. data/generated/google/apis/drive_v3/classes.rb +2 -2
  120. data/generated/google/apis/fcm_v1.rb +1 -1
  121. data/generated/google/apis/fcm_v1/classes.rb +9 -4
  122. data/generated/google/apis/file_v1.rb +1 -1
  123. data/generated/google/apis/file_v1/classes.rb +8 -0
  124. data/generated/google/apis/file_v1/representations.rb +1 -0
  125. data/generated/google/apis/file_v1/service.rb +2 -0
  126. data/generated/google/apis/file_v1beta1.rb +1 -1
  127. data/generated/google/apis/file_v1beta1/classes.rb +8 -0
  128. data/generated/google/apis/file_v1beta1/representations.rb +1 -0
  129. data/generated/google/apis/file_v1beta1/service.rb +2 -0
  130. data/generated/google/apis/firebase_v1beta1.rb +1 -1
  131. data/generated/google/apis/firebase_v1beta1/classes.rb +41 -4
  132. data/generated/google/apis/firebase_v1beta1/representations.rb +2 -0
  133. data/generated/google/apis/firebase_v1beta1/service.rb +22 -14
  134. data/generated/google/apis/fitness_v1.rb +19 -19
  135. data/generated/google/apis/healthcare_v1beta1.rb +1 -1
  136. data/generated/google/apis/healthcare_v1beta1/classes.rb +136 -100
  137. data/generated/google/apis/healthcare_v1beta1/representations.rb +1 -1
  138. data/generated/google/apis/healthcare_v1beta1/service.rb +124 -119
  139. data/generated/google/apis/iam_v1.rb +1 -1
  140. data/generated/google/apis/iam_v1/classes.rb +87 -41
  141. data/generated/google/apis/iap_v1.rb +1 -1
  142. data/generated/google/apis/iap_v1/classes.rb +62 -29
  143. data/generated/google/apis/iap_v1beta1.rb +1 -1
  144. data/generated/google/apis/iap_v1beta1/classes.rb +62 -29
  145. data/generated/google/apis/ml_v1.rb +1 -1
  146. data/generated/google/apis/ml_v1/classes.rb +114 -49
  147. data/generated/google/apis/ml_v1/representations.rb +2 -0
  148. data/generated/google/apis/ml_v1/service.rb +12 -6
  149. data/generated/google/apis/monitoring_v3.rb +1 -1
  150. data/generated/google/apis/monitoring_v3/classes.rb +14 -10
  151. data/generated/google/apis/monitoring_v3/representations.rb +1 -0
  152. data/generated/google/apis/oslogin_v1.rb +1 -1
  153. data/generated/google/apis/oslogin_v1/classes.rb +12 -0
  154. data/generated/google/apis/oslogin_v1/representations.rb +2 -0
  155. data/generated/google/apis/oslogin_v1alpha.rb +1 -1
  156. data/generated/google/apis/oslogin_v1alpha/classes.rb +12 -0
  157. data/generated/google/apis/oslogin_v1alpha/representations.rb +2 -0
  158. data/generated/google/apis/oslogin_v1beta.rb +1 -1
  159. data/generated/google/apis/oslogin_v1beta/classes.rb +12 -0
  160. data/generated/google/apis/oslogin_v1beta/representations.rb +2 -0
  161. data/generated/google/apis/policytroubleshooter_v1beta.rb +34 -0
  162. data/generated/google/apis/policytroubleshooter_v1beta/classes.rb +621 -0
  163. data/generated/google/apis/policytroubleshooter_v1beta/representations.rb +203 -0
  164. data/generated/google/apis/policytroubleshooter_v1beta/service.rb +91 -0
  165. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  166. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +7 -4
  167. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +60 -58
  168. data/generated/google/apis/recommender_v1beta1.rb +34 -0
  169. data/generated/google/apis/recommender_v1beta1/classes.rb +502 -0
  170. data/generated/google/apis/recommender_v1beta1/representations.rb +232 -0
  171. data/generated/google/apis/recommender_v1beta1/service.rb +262 -0
  172. data/generated/google/apis/remotebuildexecution_v1.rb +1 -1
  173. data/generated/google/apis/remotebuildexecution_v1/classes.rb +49 -1100
  174. data/generated/google/apis/remotebuildexecution_v1/representations.rb +1 -276
  175. data/generated/google/apis/remotebuildexecution_v1/service.rb +0 -77
  176. data/generated/google/apis/remotebuildexecution_v1alpha.rb +1 -1
  177. data/generated/google/apis/remotebuildexecution_v1alpha/classes.rb +12 -990
  178. data/generated/google/apis/remotebuildexecution_v1alpha/representations.rb +1 -245
  179. data/generated/google/apis/remotebuildexecution_v2.rb +1 -1
  180. data/generated/google/apis/remotebuildexecution_v2/classes.rb +12 -990
  181. data/generated/google/apis/remotebuildexecution_v2/representations.rb +1 -245
  182. data/generated/google/apis/run_v1.rb +1 -1
  183. data/generated/google/apis/run_v1/classes.rb +3553 -33
  184. data/generated/google/apis/run_v1/representations.rb +1186 -4
  185. data/generated/google/apis/run_v1/service.rb +2509 -23
  186. data/generated/google/apis/run_v1alpha1.rb +1 -1
  187. data/generated/google/apis/run_v1alpha1/classes.rb +103 -140
  188. data/generated/google/apis/run_v1alpha1/representations.rb +5 -43
  189. data/generated/google/apis/run_v1beta1.rb +35 -0
  190. data/generated/google/apis/run_v1beta1/classes.rb +1209 -0
  191. data/generated/google/apis/run_v1beta1/representations.rb +421 -0
  192. data/generated/google/apis/run_v1beta1/service.rb +172 -0
  193. data/generated/google/apis/runtimeconfig_v1beta1.rb +1 -1
  194. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +62 -29
  195. data/generated/google/apis/safebrowsing_v4.rb +5 -2
  196. data/generated/google/apis/safebrowsing_v4/service.rb +4 -1
  197. data/generated/google/apis/securitycenter_v1.rb +1 -1
  198. data/generated/google/apis/securitycenter_v1/classes.rb +70 -35
  199. data/generated/google/apis/securitycenter_v1/service.rb +13 -12
  200. data/generated/google/apis/securitycenter_v1beta1.rb +1 -1
  201. data/generated/google/apis/securitycenter_v1beta1/classes.rb +71 -35
  202. data/generated/google/apis/securitycenter_v1beta1/service.rb +13 -12
  203. data/generated/google/apis/servicebroker_v1.rb +1 -1
  204. data/generated/google/apis/servicebroker_v1/classes.rb +62 -29
  205. data/generated/google/apis/servicebroker_v1alpha1.rb +1 -1
  206. data/generated/google/apis/servicebroker_v1alpha1/classes.rb +62 -29
  207. data/generated/google/apis/servicebroker_v1beta1.rb +1 -1
  208. data/generated/google/apis/servicebroker_v1beta1/classes.rb +62 -29
  209. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  210. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +11 -2
  211. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +1 -0
  212. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  213. data/generated/google/apis/servicemanagement_v1/classes.rb +63 -33
  214. data/generated/google/apis/servicenetworking_v1.rb +1 -1
  215. data/generated/google/apis/servicenetworking_v1/classes.rb +11 -2
  216. data/generated/google/apis/servicenetworking_v1/representations.rb +1 -0
  217. data/generated/google/apis/servicenetworking_v1beta.rb +1 -1
  218. data/generated/google/apis/servicenetworking_v1beta/classes.rb +11 -2
  219. data/generated/google/apis/servicenetworking_v1beta/representations.rb +1 -0
  220. data/generated/google/apis/serviceusage_v1.rb +1 -1
  221. data/generated/google/apis/serviceusage_v1/classes.rb +11 -2
  222. data/generated/google/apis/serviceusage_v1/representations.rb +1 -0
  223. data/generated/google/apis/serviceusage_v1beta1.rb +1 -1
  224. data/generated/google/apis/serviceusage_v1beta1/classes.rb +11 -2
  225. data/generated/google/apis/serviceusage_v1beta1/representations.rb +1 -0
  226. data/generated/google/apis/spanner_v1.rb +1 -1
  227. data/generated/google/apis/spanner_v1/classes.rb +78 -2
  228. data/generated/google/apis/spanner_v1/representations.rb +44 -0
  229. data/generated/google/apis/spanner_v1/service.rb +35 -0
  230. data/generated/google/apis/speech_v1.rb +1 -1
  231. data/generated/google/apis/speech_v1/classes.rb +73 -19
  232. data/generated/google/apis/speech_v1/representations.rb +18 -0
  233. data/generated/google/apis/speech_v1p1beta1.rb +1 -1
  234. data/generated/google/apis/speech_v1p1beta1/classes.rb +31 -35
  235. data/generated/google/apis/speech_v2beta.rb +1 -1
  236. data/generated/google/apis/speech_v2beta/classes.rb +6 -6
  237. data/generated/google/apis/speech_v2beta/representations.rb +2 -2
  238. data/generated/google/apis/storage_v1.rb +1 -1
  239. data/generated/google/apis/storage_v1/classes.rb +1 -1
  240. data/generated/google/apis/storage_v1/representations.rb +2 -1
  241. data/generated/google/apis/storage_v1beta1.rb +1 -1
  242. data/generated/google/apis/storage_v1beta2.rb +1 -1
  243. data/generated/google/apis/streetviewpublish_v1.rb +1 -1
  244. data/generated/google/apis/streetviewpublish_v1/classes.rb +1 -1
  245. data/generated/google/apis/streetviewpublish_v1/service.rb +9 -5
  246. data/generated/google/apis/testing_v1.rb +1 -1
  247. data/generated/google/apis/testing_v1/classes.rb +42 -0
  248. data/generated/google/apis/testing_v1/representations.rb +18 -0
  249. data/generated/google/apis/texttospeech_v1.rb +1 -1
  250. data/generated/google/apis/texttospeech_v1/classes.rb +6 -5
  251. data/generated/google/apis/texttospeech_v1/service.rb +1 -1
  252. data/generated/google/apis/texttospeech_v1beta1.rb +1 -1
  253. data/generated/google/apis/texttospeech_v1beta1/classes.rb +6 -5
  254. data/generated/google/apis/texttospeech_v1beta1/service.rb +1 -1
  255. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  256. data/generated/google/apis/toolresults_v1beta3/classes.rb +1 -1
  257. data/generated/google/apis/translate_v3beta1.rb +1 -1
  258. data/generated/google/apis/translate_v3beta1/classes.rb +22 -16
  259. data/generated/google/apis/translate_v3beta1/service.rb +31 -31
  260. data/generated/google/apis/videointelligence_v1.rb +1 -1
  261. data/generated/google/apis/videointelligence_v1/classes.rb +45 -10
  262. data/generated/google/apis/videointelligence_v1beta2.rb +1 -1
  263. data/generated/google/apis/videointelligence_v1beta2/classes.rb +45 -10
  264. data/generated/google/apis/videointelligence_v1p1beta1.rb +1 -1
  265. data/generated/google/apis/videointelligence_v1p1beta1/classes.rb +45 -10
  266. data/generated/google/apis/videointelligence_v1p2beta1.rb +1 -1
  267. data/generated/google/apis/videointelligence_v1p2beta1/classes.rb +45 -10
  268. data/generated/google/apis/videointelligence_v1p3beta1.rb +1 -1
  269. data/generated/google/apis/videointelligence_v1p3beta1/classes.rb +45 -10
  270. data/generated/google/apis/vision_v1.rb +1 -1
  271. data/generated/google/apis/vision_v1/classes.rb +6 -156
  272. data/generated/google/apis/vision_v1/representations.rb +0 -44
  273. data/generated/google/apis/vision_v1p1beta1.rb +1 -1
  274. data/generated/google/apis/vision_v1p1beta1/classes.rb +6 -156
  275. data/generated/google/apis/vision_v1p1beta1/representations.rb +0 -44
  276. data/generated/google/apis/vision_v1p2beta1.rb +1 -1
  277. data/generated/google/apis/vision_v1p2beta1/classes.rb +6 -156
  278. data/generated/google/apis/vision_v1p2beta1/representations.rb +0 -44
  279. data/generated/google/apis/websecurityscanner_v1.rb +1 -1
  280. data/generated/google/apis/websecurityscanner_v1alpha.rb +1 -1
  281. data/generated/google/apis/websecurityscanner_v1alpha/classes.rb +21 -31
  282. data/generated/google/apis/websecurityscanner_v1alpha/service.rb +1 -1
  283. data/generated/google/apis/websecurityscanner_v1beta.rb +1 -1
  284. data/generated/google/apis/websecurityscanner_v1beta/classes.rb +30 -42
  285. data/generated/google/apis/websecurityscanner_v1beta/service.rb +1 -1
  286. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  287. data/generated/google/apis/youtube_partner_v1/classes.rb +0 -83
  288. data/generated/google/apis/youtube_partner_v1/representations.rb +0 -35
  289. data/generated/google/apis/youtube_partner_v1/service.rb +0 -100
  290. data/lib/google/apis/version.rb +1 -1
  291. metadata +18 -6
  292. data/generated/google/apis/dfareporting_v3_1.rb +0 -40
  293. data/generated/google/apis/dfareporting_v3_1/classes.rb +0 -11998
  294. data/generated/google/apis/dfareporting_v3_1/representations.rb +0 -4313
  295. data/generated/google/apis/dfareporting_v3_1/service.rb +0 -8688
@@ -225,6 +225,47 @@ module Google
225
225
  execute_or_queue_command(command, &block)
226
226
  end
227
227
 
228
+ # Gets the access control policy for a resource.
229
+ # Returns an empty policy if the resource exists and does not have a policy
230
+ # set.
231
+ # @param [String] resource
232
+ # REQUIRED: The resource for which the policy is being requested.
233
+ # See the operation documentation for the appropriate value for this field.
234
+ # @param [Fixnum] options_requested_policy_version
235
+ # Optional. The policy format version to be returned.
236
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
237
+ # rejected.
238
+ # Requests for policies with any conditional bindings must specify version 3.
239
+ # Policies without any conditional bindings may specify any valid value or
240
+ # leave the field unset.
241
+ # @param [String] fields
242
+ # Selector specifying which fields to include in a partial response.
243
+ # @param [String] quota_user
244
+ # Available to use for quota purposes for server-side applications. Can be any
245
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
246
+ # @param [Google::Apis::RequestOptions] options
247
+ # Request-specific options
248
+ #
249
+ # @yield [result, err] Result & error if block supplied
250
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::IamPolicy] parsed result object
251
+ # @yieldparam err [StandardError] error object if request failed
252
+ #
253
+ # @return [Google::Apis::BinaryauthorizationV1::IamPolicy]
254
+ #
255
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
256
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
257
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
258
+ def get_project_attestor_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
259
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
260
+ command.response_representation = Google::Apis::BinaryauthorizationV1::IamPolicy::Representation
261
+ command.response_class = Google::Apis::BinaryauthorizationV1::IamPolicy
262
+ command.params['resource'] = resource unless resource.nil?
263
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
264
+ command.query['fields'] = fields unless fields.nil?
265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
266
+ execute_or_queue_command(command, &block)
267
+ end
268
+
228
269
  # Lists attestors.
229
270
  # Returns INVALID_ARGUMENT if the project does not exist.
230
271
  # @param [String] parent
@@ -266,6 +307,80 @@ module Google
266
307
  execute_or_queue_command(command, &block)
267
308
  end
268
309
 
310
+ # Sets the access control policy on the specified resource. Replaces any
311
+ # existing policy.
312
+ # @param [String] resource
313
+ # REQUIRED: The resource for which the policy is being specified.
314
+ # See the operation documentation for the appropriate value for this field.
315
+ # @param [Google::Apis::BinaryauthorizationV1::SetIamPolicyRequest] set_iam_policy_request_object
316
+ # @param [String] fields
317
+ # Selector specifying which fields to include in a partial response.
318
+ # @param [String] quota_user
319
+ # Available to use for quota purposes for server-side applications. Can be any
320
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
321
+ # @param [Google::Apis::RequestOptions] options
322
+ # Request-specific options
323
+ #
324
+ # @yield [result, err] Result & error if block supplied
325
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::IamPolicy] parsed result object
326
+ # @yieldparam err [StandardError] error object if request failed
327
+ #
328
+ # @return [Google::Apis::BinaryauthorizationV1::IamPolicy]
329
+ #
330
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
331
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
332
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
333
+ def set_attestor_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
334
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
335
+ command.request_representation = Google::Apis::BinaryauthorizationV1::SetIamPolicyRequest::Representation
336
+ command.request_object = set_iam_policy_request_object
337
+ command.response_representation = Google::Apis::BinaryauthorizationV1::IamPolicy::Representation
338
+ command.response_class = Google::Apis::BinaryauthorizationV1::IamPolicy
339
+ command.params['resource'] = resource unless resource.nil?
340
+ command.query['fields'] = fields unless fields.nil?
341
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
342
+ execute_or_queue_command(command, &block)
343
+ end
344
+
345
+ # Returns permissions that a caller has on the specified resource.
346
+ # If the resource does not exist, this will return an empty set of
347
+ # permissions, not a NOT_FOUND error.
348
+ # Note: This operation is designed to be used for building permission-aware
349
+ # UIs and command-line tools, not for authorization checking. This operation
350
+ # may "fail open" without warning.
351
+ # @param [String] resource
352
+ # REQUIRED: The resource for which the policy detail is being requested.
353
+ # See the operation documentation for the appropriate value for this field.
354
+ # @param [Google::Apis::BinaryauthorizationV1::TestIamPermissionsRequest] test_iam_permissions_request_object
355
+ # @param [String] fields
356
+ # Selector specifying which fields to include in a partial response.
357
+ # @param [String] quota_user
358
+ # Available to use for quota purposes for server-side applications. Can be any
359
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
360
+ # @param [Google::Apis::RequestOptions] options
361
+ # Request-specific options
362
+ #
363
+ # @yield [result, err] Result & error if block supplied
364
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse] parsed result object
365
+ # @yieldparam err [StandardError] error object if request failed
366
+ #
367
+ # @return [Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse]
368
+ #
369
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
370
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
371
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
372
+ def test_attestor_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
373
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
374
+ command.request_representation = Google::Apis::BinaryauthorizationV1::TestIamPermissionsRequest::Representation
375
+ command.request_object = test_iam_permissions_request_object
376
+ command.response_representation = Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse::Representation
377
+ command.response_class = Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse
378
+ command.params['resource'] = resource unless resource.nil?
379
+ command.query['fields'] = fields unless fields.nil?
380
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
381
+ execute_or_queue_command(command, &block)
382
+ end
383
+
269
384
  # Updates an attestor.
270
385
  # Returns NOT_FOUND if the attestor does not exist.
271
386
  # @param [String] name
@@ -300,6 +415,121 @@ module Google
300
415
  command.query['quotaUser'] = quota_user unless quota_user.nil?
301
416
  execute_or_queue_command(command, &block)
302
417
  end
418
+
419
+ # Gets the access control policy for a resource.
420
+ # Returns an empty policy if the resource exists and does not have a policy
421
+ # set.
422
+ # @param [String] resource
423
+ # REQUIRED: The resource for which the policy is being requested.
424
+ # See the operation documentation for the appropriate value for this field.
425
+ # @param [Fixnum] options_requested_policy_version
426
+ # Optional. The policy format version to be returned.
427
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
428
+ # rejected.
429
+ # Requests for policies with any conditional bindings must specify version 3.
430
+ # Policies without any conditional bindings may specify any valid value or
431
+ # leave the field unset.
432
+ # @param [String] fields
433
+ # Selector specifying which fields to include in a partial response.
434
+ # @param [String] quota_user
435
+ # Available to use for quota purposes for server-side applications. Can be any
436
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
437
+ # @param [Google::Apis::RequestOptions] options
438
+ # Request-specific options
439
+ #
440
+ # @yield [result, err] Result & error if block supplied
441
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::IamPolicy] parsed result object
442
+ # @yieldparam err [StandardError] error object if request failed
443
+ #
444
+ # @return [Google::Apis::BinaryauthorizationV1::IamPolicy]
445
+ #
446
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
447
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
448
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
449
+ def get_project_policy_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block)
450
+ command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
451
+ command.response_representation = Google::Apis::BinaryauthorizationV1::IamPolicy::Representation
452
+ command.response_class = Google::Apis::BinaryauthorizationV1::IamPolicy
453
+ command.params['resource'] = resource unless resource.nil?
454
+ command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
455
+ command.query['fields'] = fields unless fields.nil?
456
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
457
+ execute_or_queue_command(command, &block)
458
+ end
459
+
460
+ # Sets the access control policy on the specified resource. Replaces any
461
+ # existing policy.
462
+ # @param [String] resource
463
+ # REQUIRED: The resource for which the policy is being specified.
464
+ # See the operation documentation for the appropriate value for this field.
465
+ # @param [Google::Apis::BinaryauthorizationV1::SetIamPolicyRequest] set_iam_policy_request_object
466
+ # @param [String] fields
467
+ # Selector specifying which fields to include in a partial response.
468
+ # @param [String] quota_user
469
+ # Available to use for quota purposes for server-side applications. Can be any
470
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
471
+ # @param [Google::Apis::RequestOptions] options
472
+ # Request-specific options
473
+ #
474
+ # @yield [result, err] Result & error if block supplied
475
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::IamPolicy] parsed result object
476
+ # @yieldparam err [StandardError] error object if request failed
477
+ #
478
+ # @return [Google::Apis::BinaryauthorizationV1::IamPolicy]
479
+ #
480
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
483
+ def set_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
484
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
485
+ command.request_representation = Google::Apis::BinaryauthorizationV1::SetIamPolicyRequest::Representation
486
+ command.request_object = set_iam_policy_request_object
487
+ command.response_representation = Google::Apis::BinaryauthorizationV1::IamPolicy::Representation
488
+ command.response_class = Google::Apis::BinaryauthorizationV1::IamPolicy
489
+ command.params['resource'] = resource unless resource.nil?
490
+ command.query['fields'] = fields unless fields.nil?
491
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
492
+ execute_or_queue_command(command, &block)
493
+ end
494
+
495
+ # Returns permissions that a caller has on the specified resource.
496
+ # If the resource does not exist, this will return an empty set of
497
+ # permissions, not a NOT_FOUND error.
498
+ # Note: This operation is designed to be used for building permission-aware
499
+ # UIs and command-line tools, not for authorization checking. This operation
500
+ # may "fail open" without warning.
501
+ # @param [String] resource
502
+ # REQUIRED: The resource for which the policy detail is being requested.
503
+ # See the operation documentation for the appropriate value for this field.
504
+ # @param [Google::Apis::BinaryauthorizationV1::TestIamPermissionsRequest] test_iam_permissions_request_object
505
+ # @param [String] fields
506
+ # Selector specifying which fields to include in a partial response.
507
+ # @param [String] quota_user
508
+ # Available to use for quota purposes for server-side applications. Can be any
509
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
510
+ # @param [Google::Apis::RequestOptions] options
511
+ # Request-specific options
512
+ #
513
+ # @yield [result, err] Result & error if block supplied
514
+ # @yieldparam result [Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse] parsed result object
515
+ # @yieldparam err [StandardError] error object if request failed
516
+ #
517
+ # @return [Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse]
518
+ #
519
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
520
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
521
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
522
+ def test_policy_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
523
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
524
+ command.request_representation = Google::Apis::BinaryauthorizationV1::TestIamPermissionsRequest::Representation
525
+ command.request_object = test_iam_permissions_request_object
526
+ command.response_representation = Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse::Representation
527
+ command.response_class = Google::Apis::BinaryauthorizationV1::TestIamPermissionsResponse
528
+ command.params['resource'] = resource unless resource.nil?
529
+ command.query['fields'] = fields unless fields.nil?
530
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
531
+ execute_or_queue_command(command, &block)
532
+ end
303
533
 
304
534
  protected
305
535
 
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://cloud.google.com/binary-authorization/
27
27
  module BinaryauthorizationV1beta1
28
28
  VERSION = 'V1beta1'
29
- REVISION = '20190906'
29
+ REVISION = '20190919'
30
30
 
31
31
  # View and manage your data across Google Cloud Platform services
32
32
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
@@ -298,25 +298,34 @@ module Google
298
298
 
299
299
  # Defines an Identity and Access Management (IAM) policy. It is used to
300
300
  # specify access control policies for Cloud Platform resources.
301
- # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
302
- # `members` to a `role`, where the members can be user accounts, Google groups,
303
- # Google domains, and service accounts. A `role` is a named list of permissions
304
- # defined by IAM.
301
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
302
+ # `members` to a single `role`. Members can be user accounts, service accounts,
303
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
304
+ # permissions (defined by IAM or configured by users). A `binding` can
305
+ # optionally specify a `condition`, which is a logic expression that further
306
+ # constrains the role binding based on attributes about the request and/or
307
+ # target resource.
305
308
  # **JSON Example**
306
309
  # `
307
310
  # "bindings": [
308
311
  # `
309
- # "role": "roles/owner",
312
+ # "role": "role/resourcemanager.organizationAdmin",
310
313
  # "members": [
311
314
  # "user:mike@example.com",
312
315
  # "group:admins@example.com",
313
316
  # "domain:google.com",
314
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
317
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
315
318
  # ]
316
319
  # `,
317
320
  # `
318
- # "role": "roles/viewer",
319
- # "members": ["user:sean@example.com"]
321
+ # "role": "roles/resourcemanager.organizationViewer",
322
+ # "members": ["user:eve@example.com"],
323
+ # "condition": `
324
+ # "title": "expirable access",
325
+ # "description": "Does not grant access after Sep 2020",
326
+ # "expression": "request.time <
327
+ # timestamp('2020-10-01T00:00:00.000Z')",
328
+ # `
320
329
  # `
321
330
  # ]
322
331
  # `
@@ -326,17 +335,22 @@ module Google
326
335
  # - user:mike@example.com
327
336
  # - group:admins@example.com
328
337
  # - domain:google.com
329
- # - serviceAccount:my-other-app@appspot.gserviceaccount.com
330
- # role: roles/owner
338
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
339
+ # role: roles/resourcemanager.organizationAdmin
331
340
  # - members:
332
- # - user:sean@example.com
333
- # role: roles/viewer
341
+ # - user:eve@example.com
342
+ # role: roles/resourcemanager.organizationViewer
343
+ # condition:
344
+ # title: expirable access
345
+ # description: Does not grant access after Sep 2020
346
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
334
347
  # For a description of IAM and its features, see the
335
348
  # [IAM developer's guide](https://cloud.google.com/iam/docs).
336
349
  class IamPolicy
337
350
  include Google::Apis::Core::Hashable
338
351
 
339
- # Associates a list of `members` to a `role`.
352
+ # Associates a list of `members` to a `role`. Optionally may specify a
353
+ # `condition` that determines when binding is in effect.
340
354
  # `bindings` with no members will result in an error.
341
355
  # Corresponds to the JSON property `bindings`
342
356
  # @return [Array<Google::Apis::BinaryauthorizationV1beta1::Binding>]
@@ -350,7 +364,9 @@ module Google
350
364
  # systems are expected to put that etag in the request to `setIamPolicy` to
351
365
  # ensure that their change will be applied to the same version of the policy.
352
366
  # If no `etag` is provided in the call to `setIamPolicy`, then the existing
353
- # policy is overwritten.
367
+ # policy is overwritten. Due to blind-set semantics of an etag-less policy,
368
+ # 'setIamPolicy' will not fail even if either of incoming or stored policy
369
+ # does not meet the version requirements.
354
370
  # Corresponds to the JSON property `etag`
355
371
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
356
372
  # @return [String]
@@ -359,9 +375,13 @@ module Google
359
375
  # Specifies the format of the policy.
360
376
  # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
361
377
  # rejected.
362
- # Policies with any conditional bindings must specify version 3. Policies
363
- # without any conditional bindings may specify any valid value or leave the
364
- # field unset.
378
+ # Operations affecting conditional bindings must specify version 3. This can
379
+ # be either setting a conditional policy, modifying a conditional binding,
380
+ # or removing a conditional binding from the stored conditional policy.
381
+ # Operations on non-conditional policies may specify any valid value or
382
+ # leave the field unset.
383
+ # If no etag is provided in the call to `setIamPolicy`, any version
384
+ # compliance checks on the incoming and/or stored policy is skipped.
365
385
  # Corresponds to the JSON property `version`
366
386
  # @return [Fixnum]
367
387
  attr_accessor :version
@@ -517,25 +537,34 @@ module Google
517
537
 
518
538
  # Defines an Identity and Access Management (IAM) policy. It is used to
519
539
  # specify access control policies for Cloud Platform resources.
520
- # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
521
- # `members` to a `role`, where the members can be user accounts, Google groups,
522
- # Google domains, and service accounts. A `role` is a named list of permissions
523
- # defined by IAM.
540
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
541
+ # `members` to a single `role`. Members can be user accounts, service accounts,
542
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
543
+ # permissions (defined by IAM or configured by users). A `binding` can
544
+ # optionally specify a `condition`, which is a logic expression that further
545
+ # constrains the role binding based on attributes about the request and/or
546
+ # target resource.
524
547
  # **JSON Example**
525
548
  # `
526
549
  # "bindings": [
527
550
  # `
528
- # "role": "roles/owner",
551
+ # "role": "role/resourcemanager.organizationAdmin",
529
552
  # "members": [
530
553
  # "user:mike@example.com",
531
554
  # "group:admins@example.com",
532
555
  # "domain:google.com",
533
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
556
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
534
557
  # ]
535
558
  # `,
536
559
  # `
537
- # "role": "roles/viewer",
538
- # "members": ["user:sean@example.com"]
560
+ # "role": "roles/resourcemanager.organizationViewer",
561
+ # "members": ["user:eve@example.com"],
562
+ # "condition": `
563
+ # "title": "expirable access",
564
+ # "description": "Does not grant access after Sep 2020",
565
+ # "expression": "request.time <
566
+ # timestamp('2020-10-01T00:00:00.000Z')",
567
+ # `
539
568
  # `
540
569
  # ]
541
570
  # `
@@ -545,11 +574,15 @@ module Google
545
574
  # - user:mike@example.com
546
575
  # - group:admins@example.com
547
576
  # - domain:google.com
548
- # - serviceAccount:my-other-app@appspot.gserviceaccount.com
549
- # role: roles/owner
577
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
578
+ # role: roles/resourcemanager.organizationAdmin
550
579
  # - members:
551
- # - user:sean@example.com
552
- # role: roles/viewer
580
+ # - user:eve@example.com
581
+ # role: roles/resourcemanager.organizationViewer
582
+ # condition:
583
+ # title: expirable access
584
+ # description: Does not grant access after Sep 2020
585
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
553
586
  # For a description of IAM and its features, see the
554
587
  # [IAM developer's guide](https://cloud.google.com/iam/docs).
555
588
  # Corresponds to the JSON property `policy`
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/blogger/docs/3.0/getting_started
26
26
  module BloggerV3
27
27
  VERSION = 'V3'
28
- REVISION = '20150422'
28
+ REVISION = '20190917'
29
29
 
30
30
  # Manage your Blogger account
31
31
  AUTH_BLOGGER = 'https://www.googleapis.com/auth/blogger'
@@ -53,8 +53,8 @@ module Google
53
53
 
54
54
  # Gets one blog and user info pair by blogId and userId.
55
55
  # @param [String] user_id
56
- # ID of the user whose blogs are to be fetched. Either the word 'self' (sans
57
- # quote marks) or the user's profile identifier.
56
+ # ID of the user whose blogs are to be fetched. Either the word 'self' or the
57
+ # user's profile identifier.
58
58
  # @param [String] blog_id
59
59
  # The ID of the blog to get.
60
60
  # @param [Fixnum] max_posts
@@ -170,8 +170,8 @@ module Google
170
170
 
171
171
  # Retrieves a list of blogs, possibly filtered.
172
172
  # @param [String] user_id
173
- # ID of the user whose blogs are to be fetched. Either the word 'self' (sans
174
- # quote marks) or the user's profile identifier.
173
+ # ID of the user whose blogs are to be fetched. Either the word 'self' or the
174
+ # user's profile identifier.
175
175
  # @param [Boolean] fetch_user_info
176
176
  # Whether the response is a list of blogs with per-user information instead of
177
177
  # just blogs.
@@ -890,7 +890,7 @@ module Google
890
890
  # to the user.
891
891
  # @param [String] user_id
892
892
  # ID of the user for the per-user information to be fetched. Either the word '
893
- # self' (sans quote marks) or the user's profile identifier.
893
+ # self' or the user's profile identifier.
894
894
  # @param [String] blog_id
895
895
  # The ID of the blog.
896
896
  # @param [String] post_id
@@ -935,7 +935,7 @@ module Google
935
935
  # specific to the user.
936
936
  # @param [String] user_id
937
937
  # ID of the user for the per-user information to be fetched. Either the word '
938
- # self' (sans quote marks) or the user's profile identifier.
938
+ # self' or the user's profile identifier.
939
939
  # @param [String] blog_id
940
940
  # ID of the blog to fetch posts from.
941
941
  # @param [DateTime] end_date