google-api-client 0.19.8 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (355) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -4
  3. data/CHANGELOG.md +106 -0
  4. data/MIGRATING.md +3 -3
  5. data/README.md +6 -9
  6. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1 -7
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +0 -1
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +2 -8
  10. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  11. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +84 -9
  12. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +33 -0
  13. data/generated/google/apis/admin_directory_v1.rb +1 -1
  14. data/generated/google/apis/admin_directory_v1/classes.rb +11 -10
  15. data/generated/google/apis/admin_directory_v1/service.rb +21 -7
  16. data/generated/google/apis/analytics_v3.rb +1 -1
  17. data/generated/google/apis/analytics_v3/service.rb +1 -1
  18. data/generated/google/apis/androiddeviceprovisioning_v1.rb +1 -1
  19. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +52 -35
  20. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +33 -20
  21. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  22. data/generated/google/apis/androidenterprise_v1/classes.rb +44 -0
  23. data/generated/google/apis/androidenterprise_v1/representations.rb +17 -0
  24. data/generated/google/apis/androidmanagement_v1.rb +1 -1
  25. data/generated/google/apis/androidmanagement_v1/classes.rb +66 -0
  26. data/generated/google/apis/androidmanagement_v1/representations.rb +10 -0
  27. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  28. data/generated/google/apis/androidpublisher_v2/classes.rb +37 -72
  29. data/generated/google/apis/androidpublisher_v2/representations.rb +5 -34
  30. data/generated/google/apis/androidpublisher_v2/service.rb +6 -52
  31. data/generated/google/apis/appengine_v1.rb +2 -2
  32. data/generated/google/apis/appengine_v1/classes.rb +82 -7
  33. data/generated/google/apis/appengine_v1/representations.rb +32 -0
  34. data/generated/google/apis/appengine_v1/service.rb +2 -2
  35. data/generated/google/apis/appengine_v1alpha.rb +2 -2
  36. data/generated/google/apis/appengine_v1alpha/classes.rb +35 -0
  37. data/generated/google/apis/appengine_v1alpha/representations.rb +16 -0
  38. data/generated/google/apis/appengine_v1alpha/service.rb +2 -2
  39. data/generated/google/apis/appengine_v1beta.rb +2 -2
  40. data/generated/google/apis/appengine_v1beta/classes.rb +51 -7
  41. data/generated/google/apis/appengine_v1beta/representations.rb +17 -0
  42. data/generated/google/apis/appengine_v1beta/service.rb +2 -2
  43. data/generated/google/apis/appengine_v1beta4.rb +2 -2
  44. data/generated/google/apis/appengine_v1beta4/classes.rb +50 -6
  45. data/generated/google/apis/appengine_v1beta4/representations.rb +17 -0
  46. data/generated/google/apis/appengine_v1beta4/service.rb +2 -2
  47. data/generated/google/apis/appengine_v1beta5.rb +2 -2
  48. data/generated/google/apis/appengine_v1beta5/classes.rb +50 -6
  49. data/generated/google/apis/appengine_v1beta5/representations.rb +17 -0
  50. data/generated/google/apis/appengine_v1beta5/service.rb +2 -2
  51. data/generated/google/apis/bigquery_v2.rb +1 -1
  52. data/generated/google/apis/bigquery_v2/classes.rb +19 -11
  53. data/generated/google/apis/bigquery_v2/representations.rb +4 -3
  54. data/generated/google/apis/bigquery_v2/service.rb +9 -1
  55. data/generated/google/apis/bigquerydatatransfer_v1.rb +1 -1
  56. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +9 -6
  57. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +1 -0
  58. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1 -1
  59. data/generated/google/apis/calendar_v3.rb +1 -1
  60. data/generated/google/apis/calendar_v3/classes.rb +3 -1
  61. data/generated/google/apis/{firebaseremoteconfig_v1.rb → chat_v1.rb} +8 -9
  62. data/generated/google/apis/chat_v1/classes.rb +890 -0
  63. data/generated/google/apis/chat_v1/representations.rb +445 -0
  64. data/generated/google/apis/chat_v1/service.rb +344 -0
  65. data/generated/google/apis/cloudbilling_v1.rb +2 -2
  66. data/generated/google/apis/cloudbilling_v1/classes.rb +341 -5
  67. data/generated/google/apis/cloudbilling_v1/representations.rb +103 -0
  68. data/generated/google/apis/cloudbilling_v1/service.rb +217 -10
  69. data/generated/google/apis/cloudbuild_v1.rb +2 -2
  70. data/generated/google/apis/cloudbuild_v1/classes.rb +180 -84
  71. data/generated/google/apis/cloudbuild_v1/representations.rb +35 -0
  72. data/generated/google/apis/cloudbuild_v1/service.rb +25 -25
  73. data/generated/google/apis/cloudiot_v1.rb +2 -2
  74. data/generated/google/apis/cloudiot_v1/classes.rb +13 -142
  75. data/generated/google/apis/cloudiot_v1/representations.rb +0 -32
  76. data/generated/google/apis/cloudiot_v1/service.rb +2 -2
  77. data/generated/google/apis/cloudkms_v1.rb +1 -1
  78. data/generated/google/apis/cloudkms_v1/classes.rb +7 -1
  79. data/generated/google/apis/cloudkms_v1/representations.rb +1 -0
  80. data/generated/google/apis/cloudkms_v1/service.rb +1 -1
  81. data/generated/google/apis/cloudresourcemanager_v1.rb +2 -2
  82. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +2 -2
  83. data/generated/google/apis/cloudresourcemanager_v1/service.rb +4 -5
  84. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +2 -2
  85. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +1 -1
  86. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +6 -6
  87. data/generated/google/apis/{clouduseraccounts_beta.rb → cloudresourcemanager_v2.rb} +10 -16
  88. data/generated/google/apis/cloudresourcemanager_v2/classes.rb +821 -0
  89. data/generated/google/apis/cloudresourcemanager_v2/representations.rb +304 -0
  90. data/generated/google/apis/cloudresourcemanager_v2/service.rb +534 -0
  91. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +2 -2
  92. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +1 -1
  93. data/generated/google/apis/cloudtasks_v2beta2.rb +1 -1
  94. data/generated/google/apis/cloudtasks_v2beta2/classes.rb +7 -0
  95. data/generated/google/apis/cloudtasks_v2beta2/representations.rb +1 -0
  96. data/generated/google/apis/cloudtrace_v1.rb +1 -1
  97. data/generated/google/apis/cloudtrace_v1/classes.rb +2 -0
  98. data/generated/google/apis/compute_alpha.rb +1 -1
  99. data/generated/google/apis/compute_alpha/classes.rb +216 -120
  100. data/generated/google/apis/compute_alpha/representations.rb +25 -1
  101. data/generated/google/apis/compute_alpha/service.rb +1354 -1621
  102. data/generated/google/apis/compute_beta.rb +1 -1
  103. data/generated/google/apis/compute_beta/classes.rb +548 -85
  104. data/generated/google/apis/compute_beta/representations.rb +159 -0
  105. data/generated/google/apis/compute_beta/service.rb +1971 -1460
  106. data/generated/google/apis/compute_v1.rb +1 -1
  107. data/generated/google/apis/compute_v1/classes.rb +206 -70
  108. data/generated/google/apis/compute_v1/representations.rb +32 -0
  109. data/generated/google/apis/compute_v1/service.rb +1184 -1278
  110. data/generated/google/apis/container_v1.rb +1 -1
  111. data/generated/google/apis/container_v1/classes.rb +742 -9
  112. data/generated/google/apis/container_v1/representations.rb +90 -0
  113. data/generated/google/apis/container_v1/service.rb +1380 -100
  114. data/generated/google/apis/container_v1beta1.rb +1 -1
  115. data/generated/google/apis/container_v1beta1/classes.rb +191 -138
  116. data/generated/google/apis/container_v1beta1/representations.rb +2 -0
  117. data/generated/google/apis/container_v1beta1/service.rb +236 -231
  118. data/generated/google/apis/content_v2.rb +1 -1
  119. data/generated/google/apis/content_v2/classes.rb +2690 -1540
  120. data/generated/google/apis/content_v2/representations.rb +491 -0
  121. data/generated/google/apis/content_v2/service.rb +684 -0
  122. data/generated/google/apis/content_v2sandbox.rb +1 -1
  123. data/generated/google/apis/content_v2sandbox/classes.rb +2 -1
  124. data/generated/google/apis/dataflow_v1b3.rb +2 -2
  125. data/generated/google/apis/dataflow_v1b3/classes.rb +95 -0
  126. data/generated/google/apis/dataflow_v1b3/representations.rb +36 -0
  127. data/generated/google/apis/dataflow_v1b3/service.rb +1 -1
  128. data/generated/google/apis/dataproc_v1.rb +1 -1
  129. data/generated/google/apis/dataproc_v1/classes.rb +56 -45
  130. data/generated/google/apis/dataproc_v1/representations.rb +1 -0
  131. data/generated/google/apis/dataproc_v1/service.rb +30 -3
  132. data/generated/google/apis/dataproc_v1beta2.rb +1 -1
  133. data/generated/google/apis/dataproc_v1beta2/classes.rb +77 -53
  134. data/generated/google/apis/dataproc_v1beta2/representations.rb +2 -0
  135. data/generated/google/apis/dataproc_v1beta2/service.rb +484 -18
  136. data/generated/google/apis/datastore_v1.rb +1 -1
  137. data/generated/google/apis/datastore_v1/classes.rb +372 -0
  138. data/generated/google/apis/datastore_v1/representations.rb +132 -0
  139. data/generated/google/apis/datastore_v1/service.rb +77 -0
  140. data/generated/google/apis/datastore_v1beta1.rb +1 -1
  141. data/generated/google/apis/datastore_v1beta1/classes.rb +255 -0
  142. data/generated/google/apis/datastore_v1beta1/representations.rb +100 -0
  143. data/generated/google/apis/datastore_v1beta3.rb +1 -1
  144. data/generated/google/apis/datastore_v1beta3/classes.rb +255 -0
  145. data/generated/google/apis/datastore_v1beta3/representations.rb +100 -0
  146. data/generated/google/apis/deploymentmanager_alpha.rb +1 -1
  147. data/generated/google/apis/deploymentmanager_alpha/classes.rb +6 -1
  148. data/generated/google/apis/deploymentmanager_alpha/service.rb +121 -145
  149. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  150. data/generated/google/apis/deploymentmanager_v2/service.rb +79 -91
  151. data/generated/google/apis/deploymentmanager_v2beta.rb +1 -1
  152. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +6 -1
  153. data/generated/google/apis/deploymentmanager_v2beta/service.rb +121 -145
  154. data/generated/google/apis/dialogflow_v2.rb +35 -0
  155. data/generated/google/apis/dialogflow_v2/classes.rb +3994 -0
  156. data/generated/google/apis/dialogflow_v2/representations.rb +1670 -0
  157. data/generated/google/apis/dialogflow_v2/service.rb +1397 -0
  158. data/generated/google/apis/dialogflow_v2beta1.rb +1 -1
  159. data/generated/google/apis/dialogflow_v2beta1/classes.rb +39 -11
  160. data/generated/google/apis/dialogflow_v2beta1/representations.rb +1 -0
  161. data/generated/google/apis/dialogflow_v2beta1/service.rb +559 -16
  162. data/generated/google/apis/dlp_v2.rb +36 -0
  163. data/generated/google/apis/dlp_v2/classes.rb +6431 -0
  164. data/generated/google/apis/dlp_v2/representations.rb +3116 -0
  165. data/generated/google/apis/dlp_v2/service.rb +1300 -0
  166. data/generated/google/apis/dlp_v2beta1.rb +4 -4
  167. data/generated/google/apis/dlp_v2beta1/classes.rb +38 -0
  168. data/generated/google/apis/dlp_v2beta1/representations.rb +17 -0
  169. data/generated/google/apis/dlp_v2beta1/service.rb +3 -3
  170. data/generated/google/apis/dlp_v2beta2.rb +4 -4
  171. data/generated/google/apis/dlp_v2beta2/classes.rb +229 -1
  172. data/generated/google/apis/dlp_v2beta2/representations.rb +91 -0
  173. data/generated/google/apis/dlp_v2beta2/service.rb +3 -3
  174. data/generated/google/apis/dns_v1.rb +1 -1
  175. data/generated/google/apis/dns_v1/classes.rb +496 -0
  176. data/generated/google/apis/dns_v1/representations.rb +188 -0
  177. data/generated/google/apis/dns_v1/service.rb +319 -6
  178. data/generated/google/apis/dns_v1beta2.rb +1 -1
  179. data/generated/google/apis/dns_v1beta2/classes.rb +0 -19
  180. data/generated/google/apis/dns_v1beta2/representations.rb +0 -14
  181. data/generated/google/apis/dns_v1beta2/service.rb +2 -4
  182. data/generated/google/apis/dns_v2beta1.rb +1 -1
  183. data/generated/google/apis/dns_v2beta1/classes.rb +6 -19
  184. data/generated/google/apis/dns_v2beta1/representations.rb +1 -14
  185. data/generated/google/apis/dns_v2beta1/service.rb +2 -4
  186. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  187. data/generated/google/apis/doubleclicksearch_v2/classes.rb +4 -0
  188. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  189. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +2 -2
  190. data/generated/google/apis/firestore_v1beta1.rb +1 -1
  191. data/generated/google/apis/firestore_v1beta1/classes.rb +1 -1
  192. data/generated/google/apis/genomics_v1.rb +1 -1
  193. data/generated/google/apis/genomics_v1/classes.rb +271 -1
  194. data/generated/google/apis/genomics_v1/representations.rb +140 -0
  195. data/generated/google/apis/genomics_v1/service.rb +9 -1
  196. data/generated/google/apis/genomics_v1alpha2.rb +1 -1
  197. data/generated/google/apis/genomics_v1alpha2/classes.rb +271 -1
  198. data/generated/google/apis/genomics_v1alpha2/representations.rb +140 -0
  199. data/generated/google/apis/genomics_v1alpha2/service.rb +9 -1
  200. data/generated/google/apis/genomics_v2alpha1.rb +37 -0
  201. data/generated/google/apis/genomics_v2alpha1/classes.rb +1306 -0
  202. data/generated/google/apis/genomics_v2alpha1/representations.rb +535 -0
  203. data/generated/google/apis/genomics_v2alpha1/service.rb +261 -0
  204. data/generated/google/apis/gmail_v1.rb +1 -1
  205. data/generated/google/apis/gmail_v1/classes.rb +2 -1
  206. data/generated/google/apis/iam_v1.rb +1 -1
  207. data/generated/google/apis/iam_v1/classes.rb +1 -1
  208. data/generated/google/apis/language_v1.rb +2 -2
  209. data/generated/google/apis/language_v1/classes.rb +2 -1
  210. data/generated/google/apis/language_v1/service.rb +1 -1
  211. data/generated/google/apis/language_v1beta1.rb +2 -2
  212. data/generated/google/apis/language_v1beta1/service.rb +1 -1
  213. data/generated/google/apis/language_v1beta2.rb +2 -2
  214. data/generated/google/apis/language_v1beta2/classes.rb +2 -1
  215. data/generated/google/apis/language_v1beta2/service.rb +1 -1
  216. data/generated/google/apis/logging_v2.rb +1 -1
  217. data/generated/google/apis/logging_v2beta1.rb +1 -1
  218. data/generated/google/apis/manufacturers_v1.rb +1 -1
  219. data/generated/google/apis/manufacturers_v1/service.rb +14 -11
  220. data/generated/google/apis/ml_v1.rb +2 -2
  221. data/generated/google/apis/ml_v1/classes.rb +180 -5
  222. data/generated/google/apis/ml_v1/representations.rb +49 -0
  223. data/generated/google/apis/ml_v1/service.rb +1 -1
  224. data/generated/google/apis/monitoring_v3.rb +1 -1
  225. data/generated/google/apis/monitoring_v3/classes.rb +797 -2
  226. data/generated/google/apis/monitoring_v3/representations.rb +279 -0
  227. data/generated/google/apis/monitoring_v3/service.rb +612 -0
  228. data/generated/google/apis/oslogin_v1.rb +2 -2
  229. data/generated/google/apis/oslogin_v1/service.rb +1 -1
  230. data/generated/google/apis/oslogin_v1alpha.rb +2 -2
  231. data/generated/google/apis/oslogin_v1alpha/service.rb +1 -1
  232. data/generated/google/apis/oslogin_v1beta.rb +2 -2
  233. data/generated/google/apis/oslogin_v1beta/service.rb +1 -1
  234. data/generated/google/apis/pagespeedonline_v4.rb +32 -0
  235. data/generated/google/apis/pagespeedonline_v4/classes.rb +795 -0
  236. data/generated/google/apis/pagespeedonline_v4/representations.rb +335 -0
  237. data/generated/google/apis/pagespeedonline_v4/service.rb +129 -0
  238. data/generated/google/apis/people_v1.rb +2 -2
  239. data/generated/google/apis/people_v1/classes.rb +5 -2
  240. data/generated/google/apis/people_v1/service.rb +9 -7
  241. data/generated/google/apis/poly_v1.rb +1 -1
  242. data/generated/google/apis/poly_v1/classes.rb +153 -0
  243. data/generated/google/apis/poly_v1/representations.rb +67 -0
  244. data/generated/google/apis/proximitybeacon_v1beta1.rb +2 -2
  245. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +1 -1
  246. data/generated/google/apis/pubsub_v1.rb +1 -1
  247. data/generated/google/apis/pubsub_v1/classes.rb +3 -0
  248. data/generated/google/apis/pubsub_v1/service.rb +7 -0
  249. data/generated/google/apis/script_v1.rb +2 -2
  250. data/generated/google/apis/script_v1/service.rb +1 -1
  251. data/generated/google/apis/serviceconsumermanagement_v1.rb +1 -1
  252. data/generated/google/apis/serviceconsumermanagement_v1/classes.rb +21 -126
  253. data/generated/google/apis/serviceconsumermanagement_v1/representations.rb +0 -30
  254. data/generated/google/apis/serviceconsumermanagement_v1/service.rb +14 -13
  255. data/generated/google/apis/servicecontrol_v1.rb +1 -1
  256. data/generated/google/apis/servicecontrol_v1/classes.rb +2 -1
  257. data/generated/google/apis/servicecontrol_v1/service.rb +9 -6
  258. data/generated/google/apis/servicemanagement_v1.rb +1 -1
  259. data/generated/google/apis/servicemanagement_v1/classes.rb +44 -157
  260. data/generated/google/apis/servicemanagement_v1/representations.rb +2 -48
  261. data/generated/google/apis/servicemanagement_v1/service.rb +9 -0
  262. data/generated/google/apis/{serviceusage_v1.rb → serviceusage_v1beta1.rb} +6 -6
  263. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/classes.rb +290 -325
  264. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/representations.rb +105 -163
  265. data/generated/google/apis/{serviceusage_v1 → serviceusage_v1beta1}/service.rb +105 -163
  266. data/generated/google/apis/serviceuser_v1.rb +2 -2
  267. data/generated/google/apis/serviceuser_v1/classes.rb +44 -101
  268. data/generated/google/apis/serviceuser_v1/representations.rb +2 -30
  269. data/generated/google/apis/serviceuser_v1/service.rb +1 -1
  270. data/generated/google/apis/sheets_v4.rb +1 -1
  271. data/generated/google/apis/sheets_v4/classes.rb +643 -10
  272. data/generated/google/apis/sheets_v4/representations.rb +53 -0
  273. data/generated/google/apis/slides_v1.rb +1 -1
  274. data/generated/google/apis/slides_v1/classes.rb +92 -9
  275. data/generated/google/apis/slides_v1/representations.rb +21 -0
  276. data/generated/google/apis/slides_v1/service.rb +3 -2
  277. data/generated/google/apis/sourcerepo_v1.rb +1 -1
  278. data/generated/google/apis/sourcerepo_v1/classes.rb +4 -73
  279. data/generated/google/apis/sourcerepo_v1/representations.rb +0 -20
  280. data/generated/google/apis/spanner_v1.rb +1 -1
  281. data/generated/google/apis/spanner_v1/classes.rb +238 -2
  282. data/generated/google/apis/spanner_v1/representations.rb +86 -0
  283. data/generated/google/apis/spanner_v1/service.rb +80 -0
  284. data/generated/google/apis/speech_v1.rb +2 -2
  285. data/generated/google/apis/speech_v1/classes.rb +14 -19
  286. data/generated/google/apis/speech_v1/representations.rb +0 -1
  287. data/generated/google/apis/speech_v1/service.rb +1 -1
  288. data/generated/google/apis/speech_v1beta1.rb +2 -2
  289. data/generated/google/apis/speech_v1beta1/service.rb +1 -1
  290. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  291. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -6
  292. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  293. data/generated/google/apis/storage_v1.rb +1 -1
  294. data/generated/google/apis/storage_v1/service.rb +3 -6
  295. data/generated/google/apis/storagetransfer_v1.rb +2 -2
  296. data/generated/google/apis/storagetransfer_v1/service.rb +1 -1
  297. data/generated/google/apis/testing_v1.rb +1 -1
  298. data/generated/google/apis/testing_v1/classes.rb +107 -2
  299. data/generated/google/apis/testing_v1/representations.rb +38 -0
  300. data/generated/google/apis/texttospeech_v1beta1.rb +34 -0
  301. data/generated/google/apis/texttospeech_v1beta1/classes.rb +278 -0
  302. data/generated/google/apis/texttospeech_v1beta1/representations.rb +133 -0
  303. data/generated/google/apis/texttospeech_v1beta1/service.rb +128 -0
  304. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  305. data/generated/google/apis/toolresults_v1beta3/classes.rb +30 -16
  306. data/generated/google/apis/tpu_v1alpha1.rb +1 -1
  307. data/generated/google/apis/tpu_v1alpha1/classes.rb +57 -0
  308. data/generated/google/apis/tpu_v1alpha1/representations.rb +30 -0
  309. data/generated/google/apis/tpu_v1alpha1/service.rb +73 -1
  310. data/generated/google/apis/vault_v1.rb +1 -1
  311. data/generated/google/apis/vault_v1/classes.rb +29 -3
  312. data/generated/google/apis/vault_v1/representations.rb +15 -0
  313. data/generated/google/apis/vault_v1/service.rb +8 -2
  314. data/generated/google/apis/videointelligence_v1beta1.rb +1 -1
  315. data/generated/google/apis/videointelligence_v1beta1/classes.rb +650 -0
  316. data/generated/google/apis/videointelligence_v1beta1/representations.rb +315 -0
  317. data/generated/google/apis/vision_v1.rb +2 -2
  318. data/generated/google/apis/vision_v1/classes.rb +290 -2
  319. data/generated/google/apis/vision_v1/representations.rb +128 -0
  320. data/generated/google/apis/vision_v1/service.rb +187 -1
  321. data/generated/google/apis/vision_v1p1beta1.rb +2 -2
  322. data/generated/google/apis/vision_v1p1beta1/classes.rb +136 -2
  323. data/generated/google/apis/vision_v1p1beta1/representations.rb +71 -0
  324. data/generated/google/apis/vision_v1p1beta1/service.rb +1 -1
  325. data/generated/google/apis/vision_v1p2beta1.rb +39 -0
  326. data/generated/google/apis/vision_v1p2beta1/classes.rb +2172 -0
  327. data/generated/google/apis/vision_v1p2beta1/representations.rb +895 -0
  328. data/generated/google/apis/vision_v1p2beta1/service.rb +126 -0
  329. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  330. data/generated/google/apis/youtube_v3.rb +1 -1
  331. data/generated/google/apis/youtube_v3/classes.rb +12 -0
  332. data/generated/google/apis/youtube_v3/representations.rb +2 -0
  333. data/generated/google/apis/youtubereporting_v1.rb +1 -1
  334. data/lib/google/apis/core/json_representation.rb +1 -1
  335. data/lib/google/apis/version.rb +3 -3
  336. data/samples/web/Gemfile +3 -0
  337. metadata +38 -26
  338. data/generated/google/apis/clouduseraccounts_alpha.rb +0 -44
  339. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +0 -1188
  340. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +0 -494
  341. data/generated/google/apis/clouduseraccounts_alpha/service.rb +0 -1152
  342. data/generated/google/apis/clouduseraccounts_beta/classes.rb +0 -845
  343. data/generated/google/apis/clouduseraccounts_beta/representations.rb +0 -352
  344. data/generated/google/apis/clouduseraccounts_beta/service.rb +0 -908
  345. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +0 -44
  346. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +0 -1188
  347. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +0 -494
  348. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +0 -1152
  349. data/generated/google/apis/clouduseraccounts_vm_beta.rb +0 -44
  350. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +0 -845
  351. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +0 -352
  352. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +0 -908
  353. data/generated/google/apis/firebaseremoteconfig_v1/classes.rb +0 -200
  354. data/generated/google/apis/firebaseremoteconfig_v1/representations.rb +0 -89
  355. data/generated/google/apis/firebaseremoteconfig_v1/service.rb +0 -153
@@ -1,1152 +0,0 @@
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 ClouduseraccountsVmAlpha
23
- # Cloud User Accounts API
24
- #
25
- # Creates and manages users and groups for accessing Google Compute Engine
26
- # virtual machines.
27
- #
28
- # @example
29
- # require 'google/apis/clouduseraccounts_vm_alpha'
30
- #
31
- # Clouduseraccounts = Google::Apis::ClouduseraccountsVmAlpha # Alias the module
32
- # service = Clouduseraccounts::CloudUserAccountsService.new
33
- #
34
- # @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
35
- class CloudUserAccountsService < 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
- # Overrides userIp if both are provided.
45
- attr_accessor :quota_user
46
-
47
- # @return [String]
48
- # IP address of the site where the request originates. Use this if you want to
49
- # enforce per-user limits.
50
- attr_accessor :user_ip
51
-
52
- def initialize
53
- super('https://www.googleapis.com/', 'clouduseraccounts/vm_alpha/projects/')
54
- @batch_path = 'batch/clouduseraccounts/vm_alpha'
55
- end
56
-
57
- # Deletes the specified operation resource.
58
- # @param [String] project
59
- # Project ID for this request.
60
- # @param [String] operation
61
- # Name of the Operations resource to delete.
62
- # @param [String] fields
63
- # Selector specifying which fields to include in a partial response.
64
- # @param [String] quota_user
65
- # Available to use for quota purposes for server-side applications. Can be any
66
- # arbitrary string assigned to a user, but should not exceed 40 characters.
67
- # Overrides userIp if both are provided.
68
- # @param [String] user_ip
69
- # IP address of the site where the request originates. Use this if you want to
70
- # enforce per-user limits.
71
- # @param [Google::Apis::RequestOptions] options
72
- # Request-specific options
73
- #
74
- # @yield [result, err] Result & error if block supplied
75
- # @yieldparam result [NilClass] No result returned for this method
76
- # @yieldparam err [StandardError] error object if request failed
77
- #
78
- # @return [void]
79
- #
80
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
81
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
82
- # @raise [Google::Apis::AuthorizationError] Authorization is required
83
- def delete_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
84
- command = make_simple_command(:delete, '{project}/global/operations/{operation}', options)
85
- command.params['project'] = project unless project.nil?
86
- command.params['operation'] = operation unless operation.nil?
87
- command.query['fields'] = fields unless fields.nil?
88
- command.query['quotaUser'] = quota_user unless quota_user.nil?
89
- command.query['userIp'] = user_ip unless user_ip.nil?
90
- execute_or_queue_command(command, &block)
91
- end
92
-
93
- # Retrieves the specified operation resource.
94
- # @param [String] project
95
- # Project ID for this request.
96
- # @param [String] operation
97
- # Name of the Operations resource to return.
98
- # @param [String] fields
99
- # Selector specifying which fields to include in a partial response.
100
- # @param [String] quota_user
101
- # Available to use for quota purposes for server-side applications. Can be any
102
- # arbitrary string assigned to a user, but should not exceed 40 characters.
103
- # Overrides userIp if both are provided.
104
- # @param [String] user_ip
105
- # IP address of the site where the request originates. Use this if you want to
106
- # enforce per-user limits.
107
- # @param [Google::Apis::RequestOptions] options
108
- # Request-specific options
109
- #
110
- # @yield [result, err] Result & error if block supplied
111
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
112
- # @yieldparam err [StandardError] error object if request failed
113
- #
114
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
115
- #
116
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
117
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
118
- # @raise [Google::Apis::AuthorizationError] Authorization is required
119
- def get_global_accounts_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
120
- command = make_simple_command(:get, '{project}/global/operations/{operation}', options)
121
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
122
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
123
- command.params['project'] = project unless project.nil?
124
- command.params['operation'] = operation unless operation.nil?
125
- command.query['fields'] = fields unless fields.nil?
126
- command.query['quotaUser'] = quota_user unless quota_user.nil?
127
- command.query['userIp'] = user_ip unless user_ip.nil?
128
- execute_or_queue_command(command, &block)
129
- end
130
-
131
- # Retrieves the list of operation resources contained within the specified
132
- # project.
133
- # @param [String] project
134
- # Project ID for this request.
135
- # @param [String] filter
136
- # Sets a filter expression for filtering listed resources, in the form filter=`
137
- # expression`. Your `expression` must be in the format: field_name
138
- # comparison_string literal_string.
139
- # The field_name is the name of the field you want to compare. Only atomic field
140
- # types are supported (string, number, boolean). The comparison_string must be
141
- # either eq (equals) or ne (not equals). The literal_string is the string value
142
- # to filter to. The literal value must be valid for the type of field you are
143
- # filtering by (string, number, boolean). For string fields, the literal value
144
- # is interpreted as a regular expression using RE2 syntax. The literal value
145
- # must match the entire field.
146
- # For example, to filter for instances that do not have a name of example-
147
- # instance, you would use filter=name ne example-instance.
148
- # Compute Engine Beta API Only: If you use filtering in the Beta API, you can
149
- # also filter on nested fields. For example, you could filter on instances that
150
- # have set the scheduling.automaticRestart field to true. In particular, use
151
- # filtering on nested fields to take advantage of instance labels to organize
152
- # and filter results based on label values.
153
- # The Beta API also supports filtering on multiple expressions by providing each
154
- # separate expression within parentheses. For example, (scheduling.
155
- # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
156
- # treated as AND expressions, meaning that resources must match all expressions
157
- # to pass the filters.
158
- # @param [Fixnum] max_results
159
- # The maximum number of results per page that should be returned. If the number
160
- # of available results is larger than maxResults, Compute Engine returns a
161
- # nextPageToken that can be used to get the next page of results in subsequent
162
- # list requests.
163
- # @param [String] order_by
164
- # Sorts list results by a certain order. By default, results are returned in
165
- # alphanumerical order based on the resource name.
166
- # You can also sort results in descending order based on the creation timestamp
167
- # using orderBy="creationTimestamp desc". This sorts results based on the
168
- # creationTimestamp field in reverse chronological order (newest result first).
169
- # Use this to sort resources like operations so that the newest operation is
170
- # returned first.
171
- # Currently, only sorting by name or creationTimestamp desc is supported.
172
- # @param [String] page_token
173
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
174
- # a previous list request to get the next page of results.
175
- # @param [String] fields
176
- # Selector specifying which fields to include in a partial response.
177
- # @param [String] quota_user
178
- # Available to use for quota purposes for server-side applications. Can be any
179
- # arbitrary string assigned to a user, but should not exceed 40 characters.
180
- # Overrides userIp if both are provided.
181
- # @param [String] user_ip
182
- # IP address of the site where the request originates. Use this if you want to
183
- # enforce per-user limits.
184
- # @param [Google::Apis::RequestOptions] options
185
- # Request-specific options
186
- #
187
- # @yield [result, err] Result & error if block supplied
188
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::OperationList] parsed result object
189
- # @yieldparam err [StandardError] error object if request failed
190
- #
191
- # @return [Google::Apis::ClouduseraccountsVmAlpha::OperationList]
192
- #
193
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
194
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
195
- # @raise [Google::Apis::AuthorizationError] Authorization is required
196
- def list_global_accounts_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
197
- command = make_simple_command(:get, '{project}/global/operations', options)
198
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::OperationList::Representation
199
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::OperationList
200
- command.params['project'] = project unless project.nil?
201
- command.query['filter'] = filter unless filter.nil?
202
- command.query['maxResults'] = max_results unless max_results.nil?
203
- command.query['orderBy'] = order_by unless order_by.nil?
204
- command.query['pageToken'] = page_token unless page_token.nil?
205
- command.query['fields'] = fields unless fields.nil?
206
- command.query['quotaUser'] = quota_user unless quota_user.nil?
207
- command.query['userIp'] = user_ip unless user_ip.nil?
208
- execute_or_queue_command(command, &block)
209
- end
210
-
211
- # Adds users to the specified group.
212
- # @param [String] project
213
- # Project ID for this request.
214
- # @param [String] group_name
215
- # Name of the group for this request.
216
- # @param [Google::Apis::ClouduseraccountsVmAlpha::GroupsAddMemberRequest] groups_add_member_request_object
217
- # @param [String] fields
218
- # Selector specifying which fields to include in a partial response.
219
- # @param [String] quota_user
220
- # Available to use for quota purposes for server-side applications. Can be any
221
- # arbitrary string assigned to a user, but should not exceed 40 characters.
222
- # Overrides userIp if both are provided.
223
- # @param [String] user_ip
224
- # IP address of the site where the request originates. Use this if you want to
225
- # enforce per-user limits.
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::ClouduseraccountsVmAlpha::Operation] parsed result object
231
- # @yieldparam err [StandardError] error object if request failed
232
- #
233
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
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 add_group_member(project, group_name, groups_add_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
239
- command = make_simple_command(:post, '{project}/global/groups/{groupName}/addMember', options)
240
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::GroupsAddMemberRequest::Representation
241
- command.request_object = groups_add_member_request_object
242
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
243
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
244
- command.params['project'] = project unless project.nil?
245
- command.params['groupName'] = group_name unless group_name.nil?
246
- command.query['fields'] = fields unless fields.nil?
247
- command.query['quotaUser'] = quota_user unless quota_user.nil?
248
- command.query['userIp'] = user_ip unless user_ip.nil?
249
- execute_or_queue_command(command, &block)
250
- end
251
-
252
- # Deletes the specified Group resource.
253
- # @param [String] project
254
- # Project ID for this request.
255
- # @param [String] group_name
256
- # Name of the Group resource to delete.
257
- # @param [String] fields
258
- # Selector specifying which fields to include in a partial response.
259
- # @param [String] quota_user
260
- # Available to use for quota purposes for server-side applications. Can be any
261
- # arbitrary string assigned to a user, but should not exceed 40 characters.
262
- # Overrides userIp if both are provided.
263
- # @param [String] user_ip
264
- # IP address of the site where the request originates. Use this if you want to
265
- # enforce per-user limits.
266
- # @param [Google::Apis::RequestOptions] options
267
- # Request-specific options
268
- #
269
- # @yield [result, err] Result & error if block supplied
270
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
271
- # @yieldparam err [StandardError] error object if request failed
272
- #
273
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
274
- #
275
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
276
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
277
- # @raise [Google::Apis::AuthorizationError] Authorization is required
278
- def delete_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
279
- command = make_simple_command(:delete, '{project}/global/groups/{groupName}', options)
280
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
281
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
282
- command.params['project'] = project unless project.nil?
283
- command.params['groupName'] = group_name unless group_name.nil?
284
- command.query['fields'] = fields unless fields.nil?
285
- command.query['quotaUser'] = quota_user unless quota_user.nil?
286
- command.query['userIp'] = user_ip unless user_ip.nil?
287
- execute_or_queue_command(command, &block)
288
- end
289
-
290
- # Returns the specified Group resource.
291
- # @param [String] project
292
- # Project ID for this request.
293
- # @param [String] group_name
294
- # Name of the Group resource to return.
295
- # @param [String] fields
296
- # Selector specifying which fields to include in a partial response.
297
- # @param [String] quota_user
298
- # Available to use for quota purposes for server-side applications. Can be any
299
- # arbitrary string assigned to a user, but should not exceed 40 characters.
300
- # Overrides userIp if both are provided.
301
- # @param [String] user_ip
302
- # IP address of the site where the request originates. Use this if you want to
303
- # enforce per-user limits.
304
- # @param [Google::Apis::RequestOptions] options
305
- # Request-specific options
306
- #
307
- # @yield [result, err] Result & error if block supplied
308
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Group] parsed result object
309
- # @yieldparam err [StandardError] error object if request failed
310
- #
311
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Group]
312
- #
313
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
314
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
315
- # @raise [Google::Apis::AuthorizationError] Authorization is required
316
- def get_group(project, group_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
317
- command = make_simple_command(:get, '{project}/global/groups/{groupName}', options)
318
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Group::Representation
319
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Group
320
- command.params['project'] = project unless project.nil?
321
- command.params['groupName'] = group_name unless group_name.nil?
322
- command.query['fields'] = fields unless fields.nil?
323
- command.query['quotaUser'] = quota_user unless quota_user.nil?
324
- command.query['userIp'] = user_ip unless user_ip.nil?
325
- execute_or_queue_command(command, &block)
326
- end
327
-
328
- # Gets the access control policy for a resource. May be empty if no such policy
329
- # or resource exists.
330
- # @param [String] project
331
- # Project ID for this request.
332
- # @param [String] resource
333
- # Name of the resource for this request.
334
- # @param [String] fields
335
- # Selector specifying which fields to include in a partial response.
336
- # @param [String] quota_user
337
- # Available to use for quota purposes for server-side applications. Can be any
338
- # arbitrary string assigned to a user, but should not exceed 40 characters.
339
- # Overrides userIp if both are provided.
340
- # @param [String] user_ip
341
- # IP address of the site where the request originates. Use this if you want to
342
- # enforce per-user limits.
343
- # @param [Google::Apis::RequestOptions] options
344
- # Request-specific options
345
- #
346
- # @yield [result, err] Result & error if block supplied
347
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Policy] parsed result object
348
- # @yieldparam err [StandardError] error object if request failed
349
- #
350
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy]
351
- #
352
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
353
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
354
- # @raise [Google::Apis::AuthorizationError] Authorization is required
355
- def get_group_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
356
- command = make_simple_command(:get, '{project}/global/groups/{resource}/getIamPolicy', options)
357
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation
358
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy
359
- command.params['project'] = project unless project.nil?
360
- command.params['resource'] = resource unless resource.nil?
361
- command.query['fields'] = fields unless fields.nil?
362
- command.query['quotaUser'] = quota_user unless quota_user.nil?
363
- command.query['userIp'] = user_ip unless user_ip.nil?
364
- execute_or_queue_command(command, &block)
365
- end
366
-
367
- # Creates a Group resource in the specified project using the data included in
368
- # the request.
369
- # @param [String] project
370
- # Project ID for this request.
371
- # @param [Google::Apis::ClouduseraccountsVmAlpha::Group] group_object
372
- # @param [String] fields
373
- # Selector specifying which fields to include in a partial response.
374
- # @param [String] quota_user
375
- # Available to use for quota purposes for server-side applications. Can be any
376
- # arbitrary string assigned to a user, but should not exceed 40 characters.
377
- # Overrides userIp if both are provided.
378
- # @param [String] user_ip
379
- # IP address of the site where the request originates. Use this if you want to
380
- # enforce per-user limits.
381
- # @param [Google::Apis::RequestOptions] options
382
- # Request-specific options
383
- #
384
- # @yield [result, err] Result & error if block supplied
385
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
386
- # @yieldparam err [StandardError] error object if request failed
387
- #
388
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
389
- #
390
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
391
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
392
- # @raise [Google::Apis::AuthorizationError] Authorization is required
393
- def insert_group(project, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
394
- command = make_simple_command(:post, '{project}/global/groups', options)
395
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::Group::Representation
396
- command.request_object = group_object
397
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
398
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
399
- command.params['project'] = project unless project.nil?
400
- command.query['fields'] = fields unless fields.nil?
401
- command.query['quotaUser'] = quota_user unless quota_user.nil?
402
- command.query['userIp'] = user_ip unless user_ip.nil?
403
- execute_or_queue_command(command, &block)
404
- end
405
-
406
- # Retrieves the list of groups contained within the specified project.
407
- # @param [String] project
408
- # Project ID for this request.
409
- # @param [String] filter
410
- # Sets a filter expression for filtering listed resources, in the form filter=`
411
- # expression`. Your `expression` must be in the format: field_name
412
- # comparison_string literal_string.
413
- # The field_name is the name of the field you want to compare. Only atomic field
414
- # types are supported (string, number, boolean). The comparison_string must be
415
- # either eq (equals) or ne (not equals). The literal_string is the string value
416
- # to filter to. The literal value must be valid for the type of field you are
417
- # filtering by (string, number, boolean). For string fields, the literal value
418
- # is interpreted as a regular expression using RE2 syntax. The literal value
419
- # must match the entire field.
420
- # For example, to filter for instances that do not have a name of example-
421
- # instance, you would use filter=name ne example-instance.
422
- # Compute Engine Beta API Only: If you use filtering in the Beta API, you can
423
- # also filter on nested fields. For example, you could filter on instances that
424
- # have set the scheduling.automaticRestart field to true. In particular, use
425
- # filtering on nested fields to take advantage of instance labels to organize
426
- # and filter results based on label values.
427
- # The Beta API also supports filtering on multiple expressions by providing each
428
- # separate expression within parentheses. For example, (scheduling.
429
- # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
430
- # treated as AND expressions, meaning that resources must match all expressions
431
- # to pass the filters.
432
- # @param [Fixnum] max_results
433
- # The maximum number of results per page that should be returned. If the number
434
- # of available results is larger than maxResults, Compute Engine returns a
435
- # nextPageToken that can be used to get the next page of results in subsequent
436
- # list requests.
437
- # @param [String] order_by
438
- # Sorts list results by a certain order. By default, results are returned in
439
- # alphanumerical order based on the resource name.
440
- # You can also sort results in descending order based on the creation timestamp
441
- # using orderBy="creationTimestamp desc". This sorts results based on the
442
- # creationTimestamp field in reverse chronological order (newest result first).
443
- # Use this to sort resources like operations so that the newest operation is
444
- # returned first.
445
- # Currently, only sorting by name or creationTimestamp desc is supported.
446
- # @param [String] page_token
447
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
448
- # a previous list request to get the next page of results.
449
- # @param [String] fields
450
- # Selector specifying which fields to include in a partial response.
451
- # @param [String] quota_user
452
- # Available to use for quota purposes for server-side applications. Can be any
453
- # arbitrary string assigned to a user, but should not exceed 40 characters.
454
- # Overrides userIp if both are provided.
455
- # @param [String] user_ip
456
- # IP address of the site where the request originates. Use this if you want to
457
- # enforce per-user limits.
458
- # @param [Google::Apis::RequestOptions] options
459
- # Request-specific options
460
- #
461
- # @yield [result, err] Result & error if block supplied
462
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::GroupList] parsed result object
463
- # @yieldparam err [StandardError] error object if request failed
464
- #
465
- # @return [Google::Apis::ClouduseraccountsVmAlpha::GroupList]
466
- #
467
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
468
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
469
- # @raise [Google::Apis::AuthorizationError] Authorization is required
470
- def list_groups(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
471
- command = make_simple_command(:get, '{project}/global/groups', options)
472
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::GroupList::Representation
473
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::GroupList
474
- command.params['project'] = project unless project.nil?
475
- command.query['filter'] = filter unless filter.nil?
476
- command.query['maxResults'] = max_results unless max_results.nil?
477
- command.query['orderBy'] = order_by unless order_by.nil?
478
- command.query['pageToken'] = page_token unless page_token.nil?
479
- command.query['fields'] = fields unless fields.nil?
480
- command.query['quotaUser'] = quota_user unless quota_user.nil?
481
- command.query['userIp'] = user_ip unless user_ip.nil?
482
- execute_or_queue_command(command, &block)
483
- end
484
-
485
- # Removes users from the specified group.
486
- # @param [String] project
487
- # Project ID for this request.
488
- # @param [String] group_name
489
- # Name of the group for this request.
490
- # @param [Google::Apis::ClouduseraccountsVmAlpha::GroupsRemoveMemberRequest] groups_remove_member_request_object
491
- # @param [String] fields
492
- # Selector specifying which fields to include in a partial response.
493
- # @param [String] quota_user
494
- # Available to use for quota purposes for server-side applications. Can be any
495
- # arbitrary string assigned to a user, but should not exceed 40 characters.
496
- # Overrides userIp if both are provided.
497
- # @param [String] user_ip
498
- # IP address of the site where the request originates. Use this if you want to
499
- # enforce per-user limits.
500
- # @param [Google::Apis::RequestOptions] options
501
- # Request-specific options
502
- #
503
- # @yield [result, err] Result & error if block supplied
504
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
505
- # @yieldparam err [StandardError] error object if request failed
506
- #
507
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
508
- #
509
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
510
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
511
- # @raise [Google::Apis::AuthorizationError] Authorization is required
512
- def remove_group_member(project, group_name, groups_remove_member_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
513
- command = make_simple_command(:post, '{project}/global/groups/{groupName}/removeMember', options)
514
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::GroupsRemoveMemberRequest::Representation
515
- command.request_object = groups_remove_member_request_object
516
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
517
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
518
- command.params['project'] = project unless project.nil?
519
- command.params['groupName'] = group_name unless group_name.nil?
520
- command.query['fields'] = fields unless fields.nil?
521
- command.query['quotaUser'] = quota_user unless quota_user.nil?
522
- command.query['userIp'] = user_ip unless user_ip.nil?
523
- execute_or_queue_command(command, &block)
524
- end
525
-
526
- # Sets the access control policy on the specified resource. Replaces any
527
- # existing policy.
528
- # @param [String] project
529
- # Project ID for this request.
530
- # @param [String] resource
531
- # Name of the resource for this request.
532
- # @param [Google::Apis::ClouduseraccountsVmAlpha::Policy] policy_object
533
- # @param [String] fields
534
- # Selector specifying which fields to include in a partial response.
535
- # @param [String] quota_user
536
- # Available to use for quota purposes for server-side applications. Can be any
537
- # arbitrary string assigned to a user, but should not exceed 40 characters.
538
- # Overrides userIp if both are provided.
539
- # @param [String] user_ip
540
- # IP address of the site where the request originates. Use this if you want to
541
- # enforce per-user limits.
542
- # @param [Google::Apis::RequestOptions] options
543
- # Request-specific options
544
- #
545
- # @yield [result, err] Result & error if block supplied
546
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Policy] parsed result object
547
- # @yieldparam err [StandardError] error object if request failed
548
- #
549
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy]
550
- #
551
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
552
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
553
- # @raise [Google::Apis::AuthorizationError] Authorization is required
554
- def set_group_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
555
- command = make_simple_command(:post, '{project}/global/groups/{resource}/setIamPolicy', options)
556
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation
557
- command.request_object = policy_object
558
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation
559
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy
560
- command.params['project'] = project unless project.nil?
561
- command.params['resource'] = resource unless resource.nil?
562
- command.query['fields'] = fields unless fields.nil?
563
- command.query['quotaUser'] = quota_user unless quota_user.nil?
564
- command.query['userIp'] = user_ip unless user_ip.nil?
565
- execute_or_queue_command(command, &block)
566
- end
567
-
568
- # Returns permissions that a caller has on the specified resource.
569
- # @param [String] project
570
- # Project ID for this request.
571
- # @param [String] resource
572
- # Name of the resource for this request.
573
- # @param [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest] test_permissions_request_object
574
- # @param [String] fields
575
- # Selector specifying which fields to include in a partial response.
576
- # @param [String] quota_user
577
- # Available to use for quota purposes for server-side applications. Can be any
578
- # arbitrary string assigned to a user, but should not exceed 40 characters.
579
- # Overrides userIp if both are provided.
580
- # @param [String] user_ip
581
- # IP address of the site where the request originates. Use this if you want to
582
- # enforce per-user limits.
583
- # @param [Google::Apis::RequestOptions] options
584
- # Request-specific options
585
- #
586
- # @yield [result, err] Result & error if block supplied
587
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse] parsed result object
588
- # @yieldparam err [StandardError] error object if request failed
589
- #
590
- # @return [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse]
591
- #
592
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
593
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
594
- # @raise [Google::Apis::AuthorizationError] Authorization is required
595
- def test_group_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
596
- command = make_simple_command(:post, '{project}/global/groups/{resource}/testIamPermissions', options)
597
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest::Representation
598
- command.request_object = test_permissions_request_object
599
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse::Representation
600
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse
601
- command.params['project'] = project unless project.nil?
602
- command.params['resource'] = resource unless resource.nil?
603
- command.query['fields'] = fields unless fields.nil?
604
- command.query['quotaUser'] = quota_user unless quota_user.nil?
605
- command.query['userIp'] = user_ip unless user_ip.nil?
606
- execute_or_queue_command(command, &block)
607
- end
608
-
609
- # Returns a list of authorized public keys for a specific user account.
610
- # @param [String] project
611
- # Project ID for this request.
612
- # @param [String] zone
613
- # Name of the zone for this request.
614
- # @param [String] user
615
- # The user account for which you want to get a list of authorized public keys.
616
- # @param [String] instance
617
- # The fully-qualified URL of the virtual machine requesting the view.
618
- # @param [Boolean] login
619
- # Whether the view was requested as part of a user-initiated login.
620
- # @param [String] fields
621
- # Selector specifying which fields to include in a partial response.
622
- # @param [String] quota_user
623
- # Available to use for quota purposes for server-side applications. Can be any
624
- # arbitrary string assigned to a user, but should not exceed 40 characters.
625
- # Overrides userIp if both are provided.
626
- # @param [String] user_ip
627
- # IP address of the site where the request originates. Use this if you want to
628
- # enforce per-user limits.
629
- # @param [Google::Apis::RequestOptions] options
630
- # Request-specific options
631
- #
632
- # @yield [result, err] Result & error if block supplied
633
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::LinuxGetAuthorizedKeysViewResponse] parsed result object
634
- # @yieldparam err [StandardError] error object if request failed
635
- #
636
- # @return [Google::Apis::ClouduseraccountsVmAlpha::LinuxGetAuthorizedKeysViewResponse]
637
- #
638
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
639
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
640
- # @raise [Google::Apis::AuthorizationError] Authorization is required
641
- def get_linux_authorized_keys_view(project, zone, user, instance, login: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
642
- command = make_simple_command(:post, '{project}/zones/{zone}/authorizedKeysView/{user}', options)
643
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::LinuxGetAuthorizedKeysViewResponse::Representation
644
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::LinuxGetAuthorizedKeysViewResponse
645
- command.params['project'] = project unless project.nil?
646
- command.params['zone'] = zone unless zone.nil?
647
- command.params['user'] = user unless user.nil?
648
- command.query['instance'] = instance unless instance.nil?
649
- command.query['login'] = login unless login.nil?
650
- command.query['fields'] = fields unless fields.nil?
651
- command.query['quotaUser'] = quota_user unless quota_user.nil?
652
- command.query['userIp'] = user_ip unless user_ip.nil?
653
- execute_or_queue_command(command, &block)
654
- end
655
-
656
- # Retrieves a list of user accounts for an instance within a specific project.
657
- # @param [String] project
658
- # Project ID for this request.
659
- # @param [String] zone
660
- # Name of the zone for this request.
661
- # @param [String] instance
662
- # The fully-qualified URL of the virtual machine requesting the views.
663
- # @param [String] filter
664
- # Sets a filter expression for filtering listed resources, in the form filter=`
665
- # expression`. Your `expression` must be in the format: field_name
666
- # comparison_string literal_string.
667
- # The field_name is the name of the field you want to compare. Only atomic field
668
- # types are supported (string, number, boolean). The comparison_string must be
669
- # either eq (equals) or ne (not equals). The literal_string is the string value
670
- # to filter to. The literal value must be valid for the type of field you are
671
- # filtering by (string, number, boolean). For string fields, the literal value
672
- # is interpreted as a regular expression using RE2 syntax. The literal value
673
- # must match the entire field.
674
- # For example, to filter for instances that do not have a name of example-
675
- # instance, you would use filter=name ne example-instance.
676
- # Compute Engine Beta API Only: If you use filtering in the Beta API, you can
677
- # also filter on nested fields. For example, you could filter on instances that
678
- # have set the scheduling.automaticRestart field to true. In particular, use
679
- # filtering on nested fields to take advantage of instance labels to organize
680
- # and filter results based on label values.
681
- # The Beta API also supports filtering on multiple expressions by providing each
682
- # separate expression within parentheses. For example, (scheduling.
683
- # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
684
- # treated as AND expressions, meaning that resources must match all expressions
685
- # to pass the filters.
686
- # @param [Fixnum] max_results
687
- # The maximum number of results per page that should be returned. If the number
688
- # of available results is larger than maxResults, Compute Engine returns a
689
- # nextPageToken that can be used to get the next page of results in subsequent
690
- # list requests.
691
- # @param [String] order_by
692
- # Sorts list results by a certain order. By default, results are returned in
693
- # alphanumerical order based on the resource name.
694
- # You can also sort results in descending order based on the creation timestamp
695
- # using orderBy="creationTimestamp desc". This sorts results based on the
696
- # creationTimestamp field in reverse chronological order (newest result first).
697
- # Use this to sort resources like operations so that the newest operation is
698
- # returned first.
699
- # Currently, only sorting by name or creationTimestamp desc is supported.
700
- # @param [String] page_token
701
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
702
- # a previous list request to get the next page of results.
703
- # @param [String] fields
704
- # Selector specifying which fields to include in a partial response.
705
- # @param [String] quota_user
706
- # Available to use for quota purposes for server-side applications. Can be any
707
- # arbitrary string assigned to a user, but should not exceed 40 characters.
708
- # Overrides userIp if both are provided.
709
- # @param [String] user_ip
710
- # IP address of the site where the request originates. Use this if you want to
711
- # enforce per-user limits.
712
- # @param [Google::Apis::RequestOptions] options
713
- # Request-specific options
714
- #
715
- # @yield [result, err] Result & error if block supplied
716
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::LinuxGetLinuxAccountViewsResponse] parsed result object
717
- # @yieldparam err [StandardError] error object if request failed
718
- #
719
- # @return [Google::Apis::ClouduseraccountsVmAlpha::LinuxGetLinuxAccountViewsResponse]
720
- #
721
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
722
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
723
- # @raise [Google::Apis::AuthorizationError] Authorization is required
724
- def get_linux_linux_account_views(project, zone, instance, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
725
- command = make_simple_command(:post, '{project}/zones/{zone}/linuxAccountViews', options)
726
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::LinuxGetLinuxAccountViewsResponse::Representation
727
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::LinuxGetLinuxAccountViewsResponse
728
- command.params['project'] = project unless project.nil?
729
- command.params['zone'] = zone unless zone.nil?
730
- command.query['filter'] = filter unless filter.nil?
731
- command.query['instance'] = instance unless instance.nil?
732
- command.query['maxResults'] = max_results unless max_results.nil?
733
- command.query['orderBy'] = order_by unless order_by.nil?
734
- command.query['pageToken'] = page_token unless page_token.nil?
735
- command.query['fields'] = fields unless fields.nil?
736
- command.query['quotaUser'] = quota_user unless quota_user.nil?
737
- command.query['userIp'] = user_ip unless user_ip.nil?
738
- execute_or_queue_command(command, &block)
739
- end
740
-
741
- # Adds a public key to the specified User resource with the data included in the
742
- # request.
743
- # @param [String] project
744
- # Project ID for this request.
745
- # @param [String] user
746
- # Name of the user for this request.
747
- # @param [Google::Apis::ClouduseraccountsVmAlpha::PublicKey] public_key_object
748
- # @param [String] fields
749
- # Selector specifying which fields to include in a partial response.
750
- # @param [String] quota_user
751
- # Available to use for quota purposes for server-side applications. Can be any
752
- # arbitrary string assigned to a user, but should not exceed 40 characters.
753
- # Overrides userIp if both are provided.
754
- # @param [String] user_ip
755
- # IP address of the site where the request originates. Use this if you want to
756
- # enforce per-user limits.
757
- # @param [Google::Apis::RequestOptions] options
758
- # Request-specific options
759
- #
760
- # @yield [result, err] Result & error if block supplied
761
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
762
- # @yieldparam err [StandardError] error object if request failed
763
- #
764
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
765
- #
766
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
- # @raise [Google::Apis::AuthorizationError] Authorization is required
769
- def add_user_public_key(project, user, public_key_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
770
- command = make_simple_command(:post, '{project}/global/users/{user}/addPublicKey', options)
771
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::PublicKey::Representation
772
- command.request_object = public_key_object
773
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
774
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
775
- command.params['project'] = project unless project.nil?
776
- command.params['user'] = user unless user.nil?
777
- command.query['fields'] = fields unless fields.nil?
778
- command.query['quotaUser'] = quota_user unless quota_user.nil?
779
- command.query['userIp'] = user_ip unless user_ip.nil?
780
- execute_or_queue_command(command, &block)
781
- end
782
-
783
- # Deletes the specified User resource.
784
- # @param [String] project
785
- # Project ID for this request.
786
- # @param [String] user
787
- # Name of the user resource to delete.
788
- # @param [String] fields
789
- # Selector specifying which fields to include in a partial response.
790
- # @param [String] quota_user
791
- # Available to use for quota purposes for server-side applications. Can be any
792
- # arbitrary string assigned to a user, but should not exceed 40 characters.
793
- # Overrides userIp if both are provided.
794
- # @param [String] user_ip
795
- # IP address of the site where the request originates. Use this if you want to
796
- # enforce per-user limits.
797
- # @param [Google::Apis::RequestOptions] options
798
- # Request-specific options
799
- #
800
- # @yield [result, err] Result & error if block supplied
801
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
802
- # @yieldparam err [StandardError] error object if request failed
803
- #
804
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
805
- #
806
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
807
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
808
- # @raise [Google::Apis::AuthorizationError] Authorization is required
809
- def delete_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
810
- command = make_simple_command(:delete, '{project}/global/users/{user}', options)
811
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
812
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
813
- command.params['project'] = project unless project.nil?
814
- command.params['user'] = user unless user.nil?
815
- command.query['fields'] = fields unless fields.nil?
816
- command.query['quotaUser'] = quota_user unless quota_user.nil?
817
- command.query['userIp'] = user_ip unless user_ip.nil?
818
- execute_or_queue_command(command, &block)
819
- end
820
-
821
- # Returns the specified User resource.
822
- # @param [String] project
823
- # Project ID for this request.
824
- # @param [String] user
825
- # Name of the user resource to return.
826
- # @param [String] fields
827
- # Selector specifying which fields to include in a partial response.
828
- # @param [String] quota_user
829
- # Available to use for quota purposes for server-side applications. Can be any
830
- # arbitrary string assigned to a user, but should not exceed 40 characters.
831
- # Overrides userIp if both are provided.
832
- # @param [String] user_ip
833
- # IP address of the site where the request originates. Use this if you want to
834
- # enforce per-user limits.
835
- # @param [Google::Apis::RequestOptions] options
836
- # Request-specific options
837
- #
838
- # @yield [result, err] Result & error if block supplied
839
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::User] parsed result object
840
- # @yieldparam err [StandardError] error object if request failed
841
- #
842
- # @return [Google::Apis::ClouduseraccountsVmAlpha::User]
843
- #
844
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
845
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
846
- # @raise [Google::Apis::AuthorizationError] Authorization is required
847
- def get_user(project, user, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
848
- command = make_simple_command(:get, '{project}/global/users/{user}', options)
849
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::User::Representation
850
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::User
851
- command.params['project'] = project unless project.nil?
852
- command.params['user'] = user unless user.nil?
853
- command.query['fields'] = fields unless fields.nil?
854
- command.query['quotaUser'] = quota_user unless quota_user.nil?
855
- command.query['userIp'] = user_ip unless user_ip.nil?
856
- execute_or_queue_command(command, &block)
857
- end
858
-
859
- # Gets the access control policy for a resource. May be empty if no such policy
860
- # or resource exists.
861
- # @param [String] project
862
- # Project ID for this request.
863
- # @param [String] resource
864
- # Name of the resource for this request.
865
- # @param [String] fields
866
- # Selector specifying which fields to include in a partial response.
867
- # @param [String] quota_user
868
- # Available to use for quota purposes for server-side applications. Can be any
869
- # arbitrary string assigned to a user, but should not exceed 40 characters.
870
- # Overrides userIp if both are provided.
871
- # @param [String] user_ip
872
- # IP address of the site where the request originates. Use this if you want to
873
- # enforce per-user limits.
874
- # @param [Google::Apis::RequestOptions] options
875
- # Request-specific options
876
- #
877
- # @yield [result, err] Result & error if block supplied
878
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Policy] parsed result object
879
- # @yieldparam err [StandardError] error object if request failed
880
- #
881
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy]
882
- #
883
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
884
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
885
- # @raise [Google::Apis::AuthorizationError] Authorization is required
886
- def get_user_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
887
- command = make_simple_command(:get, '{project}/global/users/{resource}/getIamPolicy', options)
888
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation
889
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy
890
- command.params['project'] = project unless project.nil?
891
- command.params['resource'] = resource unless resource.nil?
892
- command.query['fields'] = fields unless fields.nil?
893
- command.query['quotaUser'] = quota_user unless quota_user.nil?
894
- command.query['userIp'] = user_ip unless user_ip.nil?
895
- execute_or_queue_command(command, &block)
896
- end
897
-
898
- # Creates a User resource in the specified project using the data included in
899
- # the request.
900
- # @param [String] project
901
- # Project ID for this request.
902
- # @param [Google::Apis::ClouduseraccountsVmAlpha::User] user_object
903
- # @param [String] fields
904
- # Selector specifying which fields to include in a partial response.
905
- # @param [String] quota_user
906
- # Available to use for quota purposes for server-side applications. Can be any
907
- # arbitrary string assigned to a user, but should not exceed 40 characters.
908
- # Overrides userIp if both are provided.
909
- # @param [String] user_ip
910
- # IP address of the site where the request originates. Use this if you want to
911
- # enforce per-user limits.
912
- # @param [Google::Apis::RequestOptions] options
913
- # Request-specific options
914
- #
915
- # @yield [result, err] Result & error if block supplied
916
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
917
- # @yieldparam err [StandardError] error object if request failed
918
- #
919
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
920
- #
921
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
922
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
923
- # @raise [Google::Apis::AuthorizationError] Authorization is required
924
- def insert_user(project, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
925
- command = make_simple_command(:post, '{project}/global/users', options)
926
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::User::Representation
927
- command.request_object = user_object
928
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
929
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
930
- command.params['project'] = project unless project.nil?
931
- command.query['fields'] = fields unless fields.nil?
932
- command.query['quotaUser'] = quota_user unless quota_user.nil?
933
- command.query['userIp'] = user_ip unless user_ip.nil?
934
- execute_or_queue_command(command, &block)
935
- end
936
-
937
- # Retrieves a list of users contained within the specified project.
938
- # @param [String] project
939
- # Project ID for this request.
940
- # @param [String] filter
941
- # Sets a filter expression for filtering listed resources, in the form filter=`
942
- # expression`. Your `expression` must be in the format: field_name
943
- # comparison_string literal_string.
944
- # The field_name is the name of the field you want to compare. Only atomic field
945
- # types are supported (string, number, boolean). The comparison_string must be
946
- # either eq (equals) or ne (not equals). The literal_string is the string value
947
- # to filter to. The literal value must be valid for the type of field you are
948
- # filtering by (string, number, boolean). For string fields, the literal value
949
- # is interpreted as a regular expression using RE2 syntax. The literal value
950
- # must match the entire field.
951
- # For example, to filter for instances that do not have a name of example-
952
- # instance, you would use filter=name ne example-instance.
953
- # Compute Engine Beta API Only: If you use filtering in the Beta API, you can
954
- # also filter on nested fields. For example, you could filter on instances that
955
- # have set the scheduling.automaticRestart field to true. In particular, use
956
- # filtering on nested fields to take advantage of instance labels to organize
957
- # and filter results based on label values.
958
- # The Beta API also supports filtering on multiple expressions by providing each
959
- # separate expression within parentheses. For example, (scheduling.
960
- # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are
961
- # treated as AND expressions, meaning that resources must match all expressions
962
- # to pass the filters.
963
- # @param [Fixnum] max_results
964
- # The maximum number of results per page that should be returned. If the number
965
- # of available results is larger than maxResults, Compute Engine returns a
966
- # nextPageToken that can be used to get the next page of results in subsequent
967
- # list requests.
968
- # @param [String] order_by
969
- # Sorts list results by a certain order. By default, results are returned in
970
- # alphanumerical order based on the resource name.
971
- # You can also sort results in descending order based on the creation timestamp
972
- # using orderBy="creationTimestamp desc". This sorts results based on the
973
- # creationTimestamp field in reverse chronological order (newest result first).
974
- # Use this to sort resources like operations so that the newest operation is
975
- # returned first.
976
- # Currently, only sorting by name or creationTimestamp desc is supported.
977
- # @param [String] page_token
978
- # Specifies a page token to use. Set pageToken to the nextPageToken returned by
979
- # a previous list request to get the next page of results.
980
- # @param [String] fields
981
- # Selector specifying which fields to include in a partial response.
982
- # @param [String] quota_user
983
- # Available to use for quota purposes for server-side applications. Can be any
984
- # arbitrary string assigned to a user, but should not exceed 40 characters.
985
- # Overrides userIp if both are provided.
986
- # @param [String] user_ip
987
- # IP address of the site where the request originates. Use this if you want to
988
- # enforce per-user limits.
989
- # @param [Google::Apis::RequestOptions] options
990
- # Request-specific options
991
- #
992
- # @yield [result, err] Result & error if block supplied
993
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::UserList] parsed result object
994
- # @yieldparam err [StandardError] error object if request failed
995
- #
996
- # @return [Google::Apis::ClouduseraccountsVmAlpha::UserList]
997
- #
998
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
999
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1000
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1001
- def list_users(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1002
- command = make_simple_command(:get, '{project}/global/users', options)
1003
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::UserList::Representation
1004
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::UserList
1005
- command.params['project'] = project unless project.nil?
1006
- command.query['filter'] = filter unless filter.nil?
1007
- command.query['maxResults'] = max_results unless max_results.nil?
1008
- command.query['orderBy'] = order_by unless order_by.nil?
1009
- command.query['pageToken'] = page_token unless page_token.nil?
1010
- command.query['fields'] = fields unless fields.nil?
1011
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1012
- command.query['userIp'] = user_ip unless user_ip.nil?
1013
- execute_or_queue_command(command, &block)
1014
- end
1015
-
1016
- # Removes the specified public key from the user.
1017
- # @param [String] project
1018
- # Project ID for this request.
1019
- # @param [String] user
1020
- # Name of the user for this request.
1021
- # @param [String] fingerprint
1022
- # The fingerprint of the public key to delete. Public keys are identified by
1023
- # their fingerprint, which is defined by RFC4716 to be the MD5 digest of the
1024
- # public key.
1025
- # @param [String] fields
1026
- # Selector specifying which fields to include in a partial response.
1027
- # @param [String] quota_user
1028
- # Available to use for quota purposes for server-side applications. Can be any
1029
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1030
- # Overrides userIp if both are provided.
1031
- # @param [String] user_ip
1032
- # IP address of the site where the request originates. Use this if you want to
1033
- # enforce per-user limits.
1034
- # @param [Google::Apis::RequestOptions] options
1035
- # Request-specific options
1036
- #
1037
- # @yield [result, err] Result & error if block supplied
1038
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Operation] parsed result object
1039
- # @yieldparam err [StandardError] error object if request failed
1040
- #
1041
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Operation]
1042
- #
1043
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1044
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1045
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1046
- def remove_user_public_key(project, user, fingerprint, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1047
- command = make_simple_command(:post, '{project}/global/users/{user}/removePublicKey', options)
1048
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Operation::Representation
1049
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Operation
1050
- command.params['project'] = project unless project.nil?
1051
- command.params['user'] = user unless user.nil?
1052
- command.query['fingerprint'] = fingerprint unless fingerprint.nil?
1053
- command.query['fields'] = fields unless fields.nil?
1054
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1055
- command.query['userIp'] = user_ip unless user_ip.nil?
1056
- execute_or_queue_command(command, &block)
1057
- end
1058
-
1059
- # Sets the access control policy on the specified resource. Replaces any
1060
- # existing policy.
1061
- # @param [String] project
1062
- # Project ID for this request.
1063
- # @param [String] resource
1064
- # Name of the resource for this request.
1065
- # @param [Google::Apis::ClouduseraccountsVmAlpha::Policy] policy_object
1066
- # @param [String] fields
1067
- # Selector specifying which fields to include in a partial response.
1068
- # @param [String] quota_user
1069
- # Available to use for quota purposes for server-side applications. Can be any
1070
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1071
- # Overrides userIp if both are provided.
1072
- # @param [String] user_ip
1073
- # IP address of the site where the request originates. Use this if you want to
1074
- # enforce per-user limits.
1075
- # @param [Google::Apis::RequestOptions] options
1076
- # Request-specific options
1077
- #
1078
- # @yield [result, err] Result & error if block supplied
1079
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::Policy] parsed result object
1080
- # @yieldparam err [StandardError] error object if request failed
1081
- #
1082
- # @return [Google::Apis::ClouduseraccountsVmAlpha::Policy]
1083
- #
1084
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1085
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1086
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1087
- def set_user_iam_policy(project, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1088
- command = make_simple_command(:post, '{project}/global/users/{resource}/setIamPolicy', options)
1089
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation
1090
- command.request_object = policy_object
1091
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::Policy::Representation
1092
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::Policy
1093
- command.params['project'] = project unless project.nil?
1094
- command.params['resource'] = resource unless resource.nil?
1095
- command.query['fields'] = fields unless fields.nil?
1096
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1097
- command.query['userIp'] = user_ip unless user_ip.nil?
1098
- execute_or_queue_command(command, &block)
1099
- end
1100
-
1101
- # Returns permissions that a caller has on the specified resource.
1102
- # @param [String] project
1103
- # Project ID for this request.
1104
- # @param [String] resource
1105
- # Name of the resource for this request.
1106
- # @param [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest] test_permissions_request_object
1107
- # @param [String] fields
1108
- # Selector specifying which fields to include in a partial response.
1109
- # @param [String] quota_user
1110
- # Available to use for quota purposes for server-side applications. Can be any
1111
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1112
- # Overrides userIp if both are provided.
1113
- # @param [String] user_ip
1114
- # IP address of the site where the request originates. Use this if you want to
1115
- # enforce per-user limits.
1116
- # @param [Google::Apis::RequestOptions] options
1117
- # Request-specific options
1118
- #
1119
- # @yield [result, err] Result & error if block supplied
1120
- # @yieldparam result [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse] parsed result object
1121
- # @yieldparam err [StandardError] error object if request failed
1122
- #
1123
- # @return [Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse]
1124
- #
1125
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1126
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1127
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1128
- def test_user_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1129
- command = make_simple_command(:post, '{project}/global/users/{resource}/testIamPermissions', options)
1130
- command.request_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsRequest::Representation
1131
- command.request_object = test_permissions_request_object
1132
- command.response_representation = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse::Representation
1133
- command.response_class = Google::Apis::ClouduseraccountsVmAlpha::TestPermissionsResponse
1134
- command.params['project'] = project unless project.nil?
1135
- command.params['resource'] = resource unless resource.nil?
1136
- command.query['fields'] = fields unless fields.nil?
1137
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1138
- command.query['userIp'] = user_ip unless user_ip.nil?
1139
- execute_or_queue_command(command, &block)
1140
- end
1141
-
1142
- protected
1143
-
1144
- def apply_command_defaults(command)
1145
- command.query['key'] = key unless key.nil?
1146
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1147
- command.query['userIp'] = user_ip unless user_ip.nil?
1148
- end
1149
- end
1150
- end
1151
- end
1152
- end