google-api-client 0.19.8 → 0.20.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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
@@ -34,12 +34,30 @@ module Google
34
34
  include Google::Apis::Core::JsonObjectSupport
35
35
  end
36
36
 
37
+ class ContainerStartedEvent
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class ContainerStoppedEvent
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
37
49
  class ControllerConfig
38
50
  class Representation < Google::Apis::Core::JsonRepresentation; end
39
51
 
40
52
  include Google::Apis::Core::JsonObjectSupport
41
53
  end
42
54
 
55
+ class DelayedEvent
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
43
61
  class Disk
44
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
45
63
 
@@ -58,6 +76,18 @@ module Google
58
76
  include Google::Apis::Core::JsonObjectSupport
59
77
  end
60
78
 
79
+ class Event
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
85
+ class FailedEvent
86
+ class Representation < Google::Apis::Core::JsonRepresentation; end
87
+
88
+ include Google::Apis::Core::JsonObjectSupport
89
+ end
90
+
61
91
  class ImportReadGroupSetsResponse
62
92
  class Representation < Google::Apis::Core::JsonRepresentation; end
63
93
 
@@ -130,6 +160,18 @@ module Google
130
160
  include Google::Apis::Core::JsonObjectSupport
131
161
  end
132
162
 
163
+ class PullStartedEvent
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
169
+ class PullStoppedEvent
170
+ class Representation < Google::Apis::Core::JsonRepresentation; end
171
+
172
+ include Google::Apis::Core::JsonObjectSupport
173
+ end
174
+
133
175
  class RepeatedString
134
176
  class Representation < Google::Apis::Core::JsonRepresentation; end
135
177
 
@@ -178,6 +220,24 @@ module Google
178
220
  include Google::Apis::Core::JsonObjectSupport
179
221
  end
180
222
 
223
+ class UnexpectedExitStatusEvent
224
+ class Representation < Google::Apis::Core::JsonRepresentation; end
225
+
226
+ include Google::Apis::Core::JsonObjectSupport
227
+ end
228
+
229
+ class WorkerAssignedEvent
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class WorkerReleasedEvent
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
181
241
  class CancelOperationRequest
182
242
  # @private
183
243
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -194,6 +254,23 @@ module Google
194
254
  end
195
255
  end
196
256
 
257
+ class ContainerStartedEvent
258
+ # @private
259
+ class Representation < Google::Apis::Core::JsonRepresentation
260
+ property :action_id, as: 'actionId'
261
+ property :ip_address, as: 'ipAddress'
262
+ hash :port_mappings, as: 'portMappings'
263
+ end
264
+ end
265
+
266
+ class ContainerStoppedEvent
267
+ # @private
268
+ class Representation < Google::Apis::Core::JsonRepresentation
269
+ property :action_id, as: 'actionId'
270
+ property :exit_status, as: 'exitStatus'
271
+ end
272
+ end
273
+
197
274
  class ControllerConfig
198
275
  # @private
199
276
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -210,6 +287,14 @@ module Google
210
287
  end
211
288
  end
212
289
 
290
+ class DelayedEvent
291
+ # @private
292
+ class Representation < Google::Apis::Core::JsonRepresentation
293
+ property :cause, as: 'cause'
294
+ collection :metrics, as: 'metrics'
295
+ end
296
+ end
297
+
213
298
  class Disk
214
299
  # @private
215
300
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -237,6 +322,23 @@ module Google
237
322
  end
238
323
  end
239
324
 
325
+ class Event
326
+ # @private
327
+ class Representation < Google::Apis::Core::JsonRepresentation
328
+ property :description, as: 'description'
329
+ hash :details, as: 'details'
330
+ property :timestamp, as: 'timestamp'
331
+ end
332
+ end
333
+
334
+ class FailedEvent
335
+ # @private
336
+ class Representation < Google::Apis::Core::JsonRepresentation
337
+ property :cause, as: 'cause'
338
+ property :code, as: 'code'
339
+ end
340
+ end
341
+
240
342
  class ImportReadGroupSetsResponse
241
343
  # @private
242
344
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -366,6 +468,20 @@ module Google
366
468
  end
367
469
  end
368
470
 
471
+ class PullStartedEvent
472
+ # @private
473
+ class Representation < Google::Apis::Core::JsonRepresentation
474
+ property :image_uri, as: 'imageUri'
475
+ end
476
+ end
477
+
478
+ class PullStoppedEvent
479
+ # @private
480
+ class Representation < Google::Apis::Core::JsonRepresentation
481
+ property :image_uri, as: 'imageUri'
482
+ end
483
+ end
484
+
369
485
  class RepeatedString
370
486
  # @private
371
487
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -446,6 +562,30 @@ module Google
446
562
  property :timestamp, as: 'timestamp'
447
563
  end
448
564
  end
565
+
566
+ class UnexpectedExitStatusEvent
567
+ # @private
568
+ class Representation < Google::Apis::Core::JsonRepresentation
569
+ property :action_id, as: 'actionId'
570
+ property :exit_status, as: 'exitStatus'
571
+ end
572
+ end
573
+
574
+ class WorkerAssignedEvent
575
+ # @private
576
+ class Representation < Google::Apis::Core::JsonRepresentation
577
+ property :instance, as: 'instance'
578
+ property :zone, as: 'zone'
579
+ end
580
+ end
581
+
582
+ class WorkerReleasedEvent
583
+ # @private
584
+ class Representation < Google::Apis::Core::JsonRepresentation
585
+ property :instance, as: 'instance'
586
+ property :zone, as: 'zone'
587
+ end
588
+ end
449
589
  end
450
590
  end
451
591
  end
@@ -120,7 +120,15 @@ module Google
120
120
  # The name of the operation's parent resource.
121
121
  # @param [String] filter
122
122
  # A string for filtering Operations.
123
- # The following filter fields are supported&#58;
123
+ # In v2alpha1, the following filter fields are supported&#58;
124
+ # * createTime&#58; The time this job was created
125
+ # * events&#58; The set of event (names) that have occurred while running
126
+ # the pipeline. The &#58; operator can be used to determine if a
127
+ # particular event has occurred.
128
+ # * error&#58; If the pipeline is running, this value is NULL. Once the
129
+ # pipeline finishes, the value is the standard Google error code.
130
+ # * labels.key or labels."key with space" where key is a label key.
131
+ # In v1 and v1alpha2, the following filter fields are supported&#58;
124
132
  # * projectId&#58; Required. Corresponds to
125
133
  # OperationMetadata.projectId.
126
134
  # * createTime&#58; The time this job was created, in seconds from the
@@ -0,0 +1,37 @@
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/genomics_v2alpha1/service.rb'
16
+ require 'google/apis/genomics_v2alpha1/classes.rb'
17
+ require 'google/apis/genomics_v2alpha1/representations.rb'
18
+
19
+ module Google
20
+ module Apis
21
+ # Genomics API
22
+ #
23
+ # Upload, process, query, and search Genomics data in the cloud.
24
+ #
25
+ # @see https://cloud.google.com/genomics
26
+ module GenomicsV2alpha1
27
+ VERSION = 'V2alpha1'
28
+ REVISION = '20180307'
29
+
30
+ # View and manage your data across Google Cloud Platform services
31
+ AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
32
+
33
+ # View and manage Genomics data
34
+ AUTH_GENOMICS = 'https://www.googleapis.com/auth/genomics'
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,1306 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'date'
16
+ require 'google/apis/core/base_service'
17
+ require 'google/apis/core/json_representation'
18
+ require 'google/apis/core/hashable'
19
+ require 'google/apis/errors'
20
+
21
+ module Google
22
+ module Apis
23
+ module GenomicsV2alpha1
24
+
25
+ # Action specifies a single action that runs a docker container.
26
+ class Action
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # If specified, overrides the CMD specified in the container. If the
30
+ # container also has an ENTRYPOINT the values are used as entrypoint
31
+ # arguments. Otherwise, they are used as a command and arguments to run
32
+ # inside the container.
33
+ # Corresponds to the JSON property `commands`
34
+ # @return [Array<String>]
35
+ attr_accessor :commands
36
+
37
+ # If specified, overrides the ENTRYPOINT specified in the container.
38
+ # Corresponds to the JSON property `entrypoint`
39
+ # @return [String]
40
+ attr_accessor :entrypoint
41
+
42
+ # The environment to pass into the container. This environment is merged
43
+ # with any values specified in the Pipeline message. These values overwrite
44
+ # any in the Pipeline message.
45
+ # In addition to the values passed here, a few other values are
46
+ # automatically injected into the environment. These cannot be hidden or
47
+ # overwritten.
48
+ # `GOOGLE_PIPELINE_FAILED` will be set to "1" if the pipeline has failed
49
+ # because an action has exited with a non-zero status (and did not have the
50
+ # IGNORE_EXIT_STATUS flag set). This can be used to determine if additional
51
+ # debug or logging actions should execute.
52
+ # `GOOGLE_LAST_EXIT_STATUS` will be set to the exit status of the last
53
+ # non-background action that executed. This can be used by workflow engine
54
+ # authors to determine whether an individual action has succeeded or failed.
55
+ # Corresponds to the JSON property `environment`
56
+ # @return [Hash<String,String>]
57
+ attr_accessor :environment
58
+
59
+ # The set of flags to apply to this action.
60
+ # Corresponds to the JSON property `flags`
61
+ # @return [Array<String>]
62
+ attr_accessor :flags
63
+
64
+ # The URI to pull the container image from. Note that all images referenced
65
+ # by actions in the pipeline are pulled before the first action runs. If
66
+ # multiple actions reference the same image, it is only pulled once,
67
+ # ensuring that the same image is used for all actions in a single pipeline.
68
+ # Corresponds to the JSON property `imageUri`
69
+ # @return [String]
70
+ attr_accessor :image_uri
71
+
72
+ # Labels to associate with the action. This field is provided to assist
73
+ # workflow engine authors in identifying actions (for example, to indicate
74
+ # what sort of action they perform: eg. localization, debugging, etc). They
75
+ # are returned in the operation metadata but are otherwise ignored.
76
+ # Corresponds to the JSON property `labels`
77
+ # @return [Hash<String,String>]
78
+ attr_accessor :labels
79
+
80
+ # A list of mounts to make available to the action.
81
+ # In addition to the values specified here, every action has a special
82
+ # virtual disk mounted under /google that contains log files and other
83
+ # operational components.
84
+ # <ul>
85
+ # <li><code>/google/logs</code>: all logs written during the pipeline
86
+ # execution are stored here.</li>
87
+ # <li><code>/google/logs/output</code>: the combined standard output and
88
+ # standard error of all actions run as part of the pipeline
89
+ # execution.</li>
90
+ # <li><code>/google/logs/action/*/stdout</code>: the complete contents of
91
+ # each individual action's standard output</li>
92
+ # <li><code>/google/logs/action/*/stderr</code>: the complete contents of
93
+ # each individual action's standard error output</li>
94
+ # </ul>
95
+ # Corresponds to the JSON property `mounts`
96
+ # @return [Array<Google::Apis::GenomicsV2alpha1::Mount>]
97
+ attr_accessor :mounts
98
+
99
+ # An optional name for the container. The container hostname will be set to
100
+ # this name, making it useful for inter-container communication. The name
101
+ # must contain only upper and lowercase alphanumeric characters and hypens
102
+ # and cannot start with a hypen.
103
+ # Corresponds to the JSON property `name`
104
+ # @return [String]
105
+ attr_accessor :name
106
+
107
+ # The PID namespace to run the action inside. If unspecified, a separate
108
+ # isolated namespace is used.
109
+ # Corresponds to the JSON property `pidNamespace`
110
+ # @return [String]
111
+ attr_accessor :pid_namespace
112
+
113
+ # A map of container to host port mappings for this container. Note that if
114
+ # the container already specifies exposed ports, the PUBLISH_EXPOSED_PORTS
115
+ # flag should be used instead.
116
+ # The host port number must be less than 65536. If it is zero, an unused
117
+ # random port is assigned. To determine the resulting port number, consult
118
+ # the ContainerStartedEvent in the operation metadata.
119
+ # Corresponds to the JSON property `portMappings`
120
+ # @return [Hash<String,Fixnum>]
121
+ attr_accessor :port_mappings
122
+
123
+ def initialize(**args)
124
+ update!(**args)
125
+ end
126
+
127
+ # Update properties of this object
128
+ def update!(**args)
129
+ @commands = args[:commands] if args.key?(:commands)
130
+ @entrypoint = args[:entrypoint] if args.key?(:entrypoint)
131
+ @environment = args[:environment] if args.key?(:environment)
132
+ @flags = args[:flags] if args.key?(:flags)
133
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
134
+ @labels = args[:labels] if args.key?(:labels)
135
+ @mounts = args[:mounts] if args.key?(:mounts)
136
+ @name = args[:name] if args.key?(:name)
137
+ @pid_namespace = args[:pid_namespace] if args.key?(:pid_namespace)
138
+ @port_mappings = args[:port_mappings] if args.key?(:port_mappings)
139
+ end
140
+ end
141
+
142
+ # The request message for Operations.CancelOperation.
143
+ class CancelOperationRequest
144
+ include Google::Apis::Core::Hashable
145
+
146
+ def initialize(**args)
147
+ update!(**args)
148
+ end
149
+
150
+ # Update properties of this object
151
+ def update!(**args)
152
+ end
153
+ end
154
+
155
+ # The parameters to the CheckIn method.
156
+ class CheckInRequest
157
+ include Google::Apis::Core::Hashable
158
+
159
+ # A generic empty message that you can re-use to avoid defining duplicated
160
+ # empty messages in your APIs. A typical example is to use it as the request
161
+ # or the response type of an API method. For instance:
162
+ # service Foo `
163
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
164
+ # `
165
+ # The JSON representation for `Empty` is empty JSON object ````.
166
+ # Corresponds to the JSON property `deadlineExpired`
167
+ # @return [Google::Apis::GenomicsV2alpha1::Empty]
168
+ attr_accessor :deadline_expired
169
+
170
+ # A workflow specific event occurred.
171
+ # Corresponds to the JSON property `event`
172
+ # @return [Hash<String,Object>]
173
+ attr_accessor :event
174
+
175
+ # The `Status` type defines a logical error model that is suitable for different
176
+ # programming environments, including REST APIs and RPC APIs. It is used by
177
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
178
+ # - Simple to use and understand for most users
179
+ # - Flexible enough to meet unexpected needs
180
+ # # Overview
181
+ # The `Status` message contains three pieces of data: error code, error message,
182
+ # and error details. The error code should be an enum value of
183
+ # google.rpc.Code, but it may accept additional error codes if needed. The
184
+ # error message should be a developer-facing English message that helps
185
+ # developers *understand* and *resolve* the error. If a localized user-facing
186
+ # error message is needed, put the localized message in the error details or
187
+ # localize it in the client. The optional error details may contain arbitrary
188
+ # information about the error. There is a predefined set of error detail types
189
+ # in the package `google.rpc` that can be used for common error conditions.
190
+ # # Language mapping
191
+ # The `Status` message is the logical representation of the error model, but it
192
+ # is not necessarily the actual wire format. When the `Status` message is
193
+ # exposed in different client libraries and different wire protocols, it can be
194
+ # mapped differently. For example, it will likely be mapped to some exceptions
195
+ # in Java, but more likely mapped to some error codes in C.
196
+ # # Other uses
197
+ # The error model and the `Status` message can be used in a variety of
198
+ # environments, either with or without APIs, to provide a
199
+ # consistent developer experience across different environments.
200
+ # Example uses of this error model include:
201
+ # - Partial errors. If a service needs to return partial errors to the client,
202
+ # it may embed the `Status` in the normal response to indicate the partial
203
+ # errors.
204
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
205
+ # have a `Status` message for error reporting.
206
+ # - Batch operations. If a client uses batch request and batch response, the
207
+ # `Status` message should be used directly inside batch response, one for
208
+ # each error sub-response.
209
+ # - Asynchronous operations. If an API call embeds asynchronous operation
210
+ # results in its response, the status of those operations should be
211
+ # represented directly using the `Status` message.
212
+ # - Logging. If some API errors are stored in logs, the message `Status` could
213
+ # be used directly after any stripping needed for security/privacy reasons.
214
+ # Corresponds to the JSON property `result`
215
+ # @return [Google::Apis::GenomicsV2alpha1::Status]
216
+ attr_accessor :result
217
+
218
+ def initialize(**args)
219
+ update!(**args)
220
+ end
221
+
222
+ # Update properties of this object
223
+ def update!(**args)
224
+ @deadline_expired = args[:deadline_expired] if args.key?(:deadline_expired)
225
+ @event = args[:event] if args.key?(:event)
226
+ @result = args[:result] if args.key?(:result)
227
+ end
228
+ end
229
+
230
+ # The response to the CheckIn method.
231
+ class CheckInResponse
232
+ include Google::Apis::Core::Hashable
233
+
234
+ # The deadline by which the worker must request an extension. The backend
235
+ # will allow for network transmission time and other delays, but the worker
236
+ # must attempt to transmit the extension request no later than the deadline.
237
+ # Corresponds to the JSON property `deadline`
238
+ # @return [String]
239
+ attr_accessor :deadline
240
+
241
+ # The metadata that describes the operation assigned to the worker.
242
+ # Corresponds to the JSON property `metadata`
243
+ # @return [Hash<String,Object>]
244
+ attr_accessor :metadata
245
+
246
+ def initialize(**args)
247
+ update!(**args)
248
+ end
249
+
250
+ # Update properties of this object
251
+ def update!(**args)
252
+ @deadline = args[:deadline] if args.key?(:deadline)
253
+ @metadata = args[:metadata] if args.key?(:metadata)
254
+ end
255
+ end
256
+
257
+ # Describes a Compute Engine resource that is being managed by a running
258
+ # pipeline.
259
+ class ComputeEngine
260
+ include Google::Apis::Core::Hashable
261
+
262
+ # The names of the disks that were created for this pipeline.
263
+ # Corresponds to the JSON property `diskNames`
264
+ # @return [Array<String>]
265
+ attr_accessor :disk_names
266
+
267
+ # The instance on which the operation is running.
268
+ # Corresponds to the JSON property `instanceName`
269
+ # @return [String]
270
+ attr_accessor :instance_name
271
+
272
+ # The machine type of the instance.
273
+ # Corresponds to the JSON property `machineType`
274
+ # @return [String]
275
+ attr_accessor :machine_type
276
+
277
+ # The availability zone in which the instance resides.
278
+ # Corresponds to the JSON property `zone`
279
+ # @return [String]
280
+ attr_accessor :zone
281
+
282
+ def initialize(**args)
283
+ update!(**args)
284
+ end
285
+
286
+ # Update properties of this object
287
+ def update!(**args)
288
+ @disk_names = args[:disk_names] if args.key?(:disk_names)
289
+ @instance_name = args[:instance_name] if args.key?(:instance_name)
290
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
291
+ @zone = args[:zone] if args.key?(:zone)
292
+ end
293
+ end
294
+
295
+ # This event is generated when a container starts.
296
+ class ContainerStartedEvent
297
+ include Google::Apis::Core::Hashable
298
+
299
+ # The numeric ID of the action that started this container.
300
+ # Corresponds to the JSON property `actionId`
301
+ # @return [Fixnum]
302
+ attr_accessor :action_id
303
+
304
+ # The public IP address that can be used to connect to the container. This
305
+ # field is only populated when at least one port mapping is present. If the
306
+ # instance was created with a private address this field will be empty even
307
+ # if port mappings exist.
308
+ # Corresponds to the JSON property `ipAddress`
309
+ # @return [String]
310
+ attr_accessor :ip_address
311
+
312
+ # The container to host port mappings installed for this container. This
313
+ # set will contain any ports exposed using the PUBLISH_EXPOSED_PORTS flag as
314
+ # well as any specified in the Action definition.
315
+ # Corresponds to the JSON property `portMappings`
316
+ # @return [Hash<String,Fixnum>]
317
+ attr_accessor :port_mappings
318
+
319
+ def initialize(**args)
320
+ update!(**args)
321
+ end
322
+
323
+ # Update properties of this object
324
+ def update!(**args)
325
+ @action_id = args[:action_id] if args.key?(:action_id)
326
+ @ip_address = args[:ip_address] if args.key?(:ip_address)
327
+ @port_mappings = args[:port_mappings] if args.key?(:port_mappings)
328
+ end
329
+ end
330
+
331
+ # This event is generated when a container exits.
332
+ class ContainerStoppedEvent
333
+ include Google::Apis::Core::Hashable
334
+
335
+ # The numeric ID of the action that started this container.
336
+ # Corresponds to the JSON property `actionId`
337
+ # @return [Fixnum]
338
+ attr_accessor :action_id
339
+
340
+ # The exit status of the container.
341
+ # Corresponds to the JSON property `exitStatus`
342
+ # @return [Fixnum]
343
+ attr_accessor :exit_status
344
+
345
+ def initialize(**args)
346
+ update!(**args)
347
+ end
348
+
349
+ # Update properties of this object
350
+ def update!(**args)
351
+ @action_id = args[:action_id] if args.key?(:action_id)
352
+ @exit_status = args[:exit_status] if args.key?(:exit_status)
353
+ end
354
+ end
355
+
356
+ # This event is generated whenever a resource limitation or transient error
357
+ # delays execution of a pipeline that was otherwise ready to run.
358
+ class DelayedEvent
359
+ include Google::Apis::Core::Hashable
360
+
361
+ # A textual description of the cause of the delay. The string may change
362
+ # without notice since it is often generated by another service (such as
363
+ # Compute Engine).
364
+ # Corresponds to the JSON property `cause`
365
+ # @return [String]
366
+ attr_accessor :cause
367
+
368
+ # If the delay was caused by a resource shortage, this field lists the
369
+ # Compute Engine metrics that are preventing this operation from running
370
+ # (for example, CPUS or INSTANCES). If the particular metric is not known,
371
+ # a single UNKNOWN metric will be present.
372
+ # Corresponds to the JSON property `metrics`
373
+ # @return [Array<String>]
374
+ attr_accessor :metrics
375
+
376
+ def initialize(**args)
377
+ update!(**args)
378
+ end
379
+
380
+ # Update properties of this object
381
+ def update!(**args)
382
+ @cause = args[:cause] if args.key?(:cause)
383
+ @metrics = args[:metrics] if args.key?(:metrics)
384
+ end
385
+ end
386
+
387
+ # Carries information about a disk that can be attached to a VM.
388
+ class Disk
389
+ include Google::Apis::Core::Hashable
390
+
391
+ # A user supplied name for the disk, used when mounting it into actions.
392
+ # The name must contain only upper and lowercase alphanumeric characters and
393
+ # hypens and cannot start with a hypen.
394
+ # Corresponds to the JSON property `name`
395
+ # @return [String]
396
+ attr_accessor :name
397
+
398
+ # The size, in gigabytes, of the disk to attach. Note that this value is
399
+ # not configurable for some disk types such as local-ssd. If the size is
400
+ # not specified, a size of at least 500gb is used to ensure reasonable I/O
401
+ # performance.
402
+ # Corresponds to the JSON property `sizeGb`
403
+ # @return [Fixnum]
404
+ attr_accessor :size_gb
405
+
406
+ # An optional image to put on the disk before attaching it to the VM.
407
+ # Corresponds to the JSON property `sourceImage`
408
+ # @return [String]
409
+ attr_accessor :source_image
410
+
411
+ # The Compute Engine disk type. If unspecified, 'standard-pd' is used.
412
+ # Corresponds to the JSON property `type`
413
+ # @return [String]
414
+ attr_accessor :type
415
+
416
+ def initialize(**args)
417
+ update!(**args)
418
+ end
419
+
420
+ # Update properties of this object
421
+ def update!(**args)
422
+ @name = args[:name] if args.key?(:name)
423
+ @size_gb = args[:size_gb] if args.key?(:size_gb)
424
+ @source_image = args[:source_image] if args.key?(:source_image)
425
+ @type = args[:type] if args.key?(:type)
426
+ end
427
+ end
428
+
429
+ # A generic empty message that you can re-use to avoid defining duplicated
430
+ # empty messages in your APIs. A typical example is to use it as the request
431
+ # or the response type of an API method. For instance:
432
+ # service Foo `
433
+ # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
434
+ # `
435
+ # The JSON representation for `Empty` is empty JSON object ````.
436
+ class Empty
437
+ include Google::Apis::Core::Hashable
438
+
439
+ def initialize(**args)
440
+ update!(**args)
441
+ end
442
+
443
+ # Update properties of this object
444
+ def update!(**args)
445
+ end
446
+ end
447
+
448
+ # Event carries information about events that occur during pipeline execution.
449
+ class Event
450
+ include Google::Apis::Core::Hashable
451
+
452
+ # A human readable description of the event. Note that these strings may
453
+ # change at any time without notice. Any application logic must use the
454
+ # information in the details field.
455
+ # Corresponds to the JSON property `description`
456
+ # @return [String]
457
+ attr_accessor :description
458
+
459
+ # Machine readable details about the event.
460
+ # Corresponds to the JSON property `details`
461
+ # @return [Hash<String,Object>]
462
+ attr_accessor :details
463
+
464
+ # The time that the event occurred.
465
+ # Corresponds to the JSON property `timestamp`
466
+ # @return [String]
467
+ attr_accessor :timestamp
468
+
469
+ def initialize(**args)
470
+ update!(**args)
471
+ end
472
+
473
+ # Update properties of this object
474
+ def update!(**args)
475
+ @description = args[:description] if args.key?(:description)
476
+ @details = args[:details] if args.key?(:details)
477
+ @timestamp = args[:timestamp] if args.key?(:timestamp)
478
+ end
479
+ end
480
+
481
+ # This event is generated when the execution of a pipeline has failed. Note
482
+ # that other events may continue to occur after this event.
483
+ class FailedEvent
484
+ include Google::Apis::Core::Hashable
485
+
486
+ # The human readable description of the cause of the failure.
487
+ # Corresponds to the JSON property `cause`
488
+ # @return [String]
489
+ attr_accessor :cause
490
+
491
+ # The Google standard error code that best describes this failure.
492
+ # Corresponds to the JSON property `code`
493
+ # @return [String]
494
+ attr_accessor :code
495
+
496
+ def initialize(**args)
497
+ update!(**args)
498
+ end
499
+
500
+ # Update properties of this object
501
+ def update!(**args)
502
+ @cause = args[:cause] if args.key?(:cause)
503
+ @code = args[:code] if args.key?(:code)
504
+ end
505
+ end
506
+
507
+ # The read group set import response.
508
+ class ImportReadGroupSetsResponse
509
+ include Google::Apis::Core::Hashable
510
+
511
+ # IDs of the read group sets that were created.
512
+ # Corresponds to the JSON property `readGroupSetIds`
513
+ # @return [Array<String>]
514
+ attr_accessor :read_group_set_ids
515
+
516
+ def initialize(**args)
517
+ update!(**args)
518
+ end
519
+
520
+ # Update properties of this object
521
+ def update!(**args)
522
+ @read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids)
523
+ end
524
+ end
525
+
526
+ # The variant data import response.
527
+ class ImportVariantsResponse
528
+ include Google::Apis::Core::Hashable
529
+
530
+ # IDs of the call sets created during the import.
531
+ # Corresponds to the JSON property `callSetIds`
532
+ # @return [Array<String>]
533
+ attr_accessor :call_set_ids
534
+
535
+ def initialize(**args)
536
+ update!(**args)
537
+ end
538
+
539
+ # Update properties of this object
540
+ def update!(**args)
541
+ @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids)
542
+ end
543
+ end
544
+
545
+ # The response message for Operations.ListOperations.
546
+ class ListOperationsResponse
547
+ include Google::Apis::Core::Hashable
548
+
549
+ # The standard List next-page token.
550
+ # Corresponds to the JSON property `nextPageToken`
551
+ # @return [String]
552
+ attr_accessor :next_page_token
553
+
554
+ # A list of operations that matches the specified filter in the request.
555
+ # Corresponds to the JSON property `operations`
556
+ # @return [Array<Google::Apis::GenomicsV2alpha1::Operation>]
557
+ attr_accessor :operations
558
+
559
+ def initialize(**args)
560
+ update!(**args)
561
+ end
562
+
563
+ # Update properties of this object
564
+ def update!(**args)
565
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
566
+ @operations = args[:operations] if args.key?(:operations)
567
+ end
568
+ end
569
+
570
+ # Metadata carries information about the pipeline execution that is returned
571
+ # in the long running operation's metadata field.
572
+ class Metadata
573
+ include Google::Apis::Core::Hashable
574
+
575
+ # The time that the operation was created by the API.
576
+ # Corresponds to the JSON property `createTime`
577
+ # @return [String]
578
+ attr_accessor :create_time
579
+
580
+ # The list of events that have happened so far during the execution of this
581
+ # operation.
582
+ # Corresponds to the JSON property `events`
583
+ # @return [Array<Google::Apis::GenomicsV2alpha1::Event>]
584
+ attr_accessor :events
585
+
586
+ # The user defined labels associated with this operation.
587
+ # Corresponds to the JSON property `labels`
588
+ # @return [Hash<String,String>]
589
+ attr_accessor :labels
590
+
591
+ # The Pipeline object describes a series of actions to execute, expressed as
592
+ # docker containers.
593
+ # Corresponds to the JSON property `pipeline`
594
+ # @return [Google::Apis::GenomicsV2alpha1::Pipeline]
595
+ attr_accessor :pipeline
596
+
597
+ def initialize(**args)
598
+ update!(**args)
599
+ end
600
+
601
+ # Update properties of this object
602
+ def update!(**args)
603
+ @create_time = args[:create_time] if args.key?(:create_time)
604
+ @events = args[:events] if args.key?(:events)
605
+ @labels = args[:labels] if args.key?(:labels)
606
+ @pipeline = args[:pipeline] if args.key?(:pipeline)
607
+ end
608
+ end
609
+
610
+ # Mount carries information about a particular disk mount inside a container.
611
+ class Mount
612
+ include Google::Apis::Core::Hashable
613
+
614
+ # The name of the disk to mount, as specified in the resources section.
615
+ # Corresponds to the JSON property `disk`
616
+ # @return [String]
617
+ attr_accessor :disk
618
+
619
+ # The path to mount the disk at inside the container.
620
+ # Corresponds to the JSON property `path`
621
+ # @return [String]
622
+ attr_accessor :path
623
+
624
+ # If true, the disk is mounted read only inside the container.
625
+ # Corresponds to the JSON property `readOnly`
626
+ # @return [Boolean]
627
+ attr_accessor :read_only
628
+ alias_method :read_only?, :read_only
629
+
630
+ def initialize(**args)
631
+ update!(**args)
632
+ end
633
+
634
+ # Update properties of this object
635
+ def update!(**args)
636
+ @disk = args[:disk] if args.key?(:disk)
637
+ @path = args[:path] if args.key?(:path)
638
+ @read_only = args[:read_only] if args.key?(:read_only)
639
+ end
640
+ end
641
+
642
+ # VM networking options.
643
+ class Network
644
+ include Google::Apis::Core::Hashable
645
+
646
+ # The network name to attach the VM's network interface to. If unspecified,
647
+ # the global default network is used.
648
+ # Corresponds to the JSON property `name`
649
+ # @return [String]
650
+ attr_accessor :name
651
+
652
+ # If set to true, do not attach a public IP address to the VM. Note that
653
+ # without an public IP address, additional configuration is required to
654
+ # allow the VM to access Google services.
655
+ # See https://cloud.google.com/vpc/docs/configure-private-google-access
656
+ # for more information.
657
+ # Corresponds to the JSON property `usePrivateAddress`
658
+ # @return [Boolean]
659
+ attr_accessor :use_private_address
660
+ alias_method :use_private_address?, :use_private_address
661
+
662
+ def initialize(**args)
663
+ update!(**args)
664
+ end
665
+
666
+ # Update properties of this object
667
+ def update!(**args)
668
+ @name = args[:name] if args.key?(:name)
669
+ @use_private_address = args[:use_private_address] if args.key?(:use_private_address)
670
+ end
671
+ end
672
+
673
+ # This resource represents a long-running operation that is the result of a
674
+ # network API call.
675
+ class Operation
676
+ include Google::Apis::Core::Hashable
677
+
678
+ # If the value is `false`, it means the operation is still in progress.
679
+ # If `true`, the operation is completed, and either `error` or `response` is
680
+ # available.
681
+ # Corresponds to the JSON property `done`
682
+ # @return [Boolean]
683
+ attr_accessor :done
684
+ alias_method :done?, :done
685
+
686
+ # The `Status` type defines a logical error model that is suitable for different
687
+ # programming environments, including REST APIs and RPC APIs. It is used by
688
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
689
+ # - Simple to use and understand for most users
690
+ # - Flexible enough to meet unexpected needs
691
+ # # Overview
692
+ # The `Status` message contains three pieces of data: error code, error message,
693
+ # and error details. The error code should be an enum value of
694
+ # google.rpc.Code, but it may accept additional error codes if needed. The
695
+ # error message should be a developer-facing English message that helps
696
+ # developers *understand* and *resolve* the error. If a localized user-facing
697
+ # error message is needed, put the localized message in the error details or
698
+ # localize it in the client. The optional error details may contain arbitrary
699
+ # information about the error. There is a predefined set of error detail types
700
+ # in the package `google.rpc` that can be used for common error conditions.
701
+ # # Language mapping
702
+ # The `Status` message is the logical representation of the error model, but it
703
+ # is not necessarily the actual wire format. When the `Status` message is
704
+ # exposed in different client libraries and different wire protocols, it can be
705
+ # mapped differently. For example, it will likely be mapped to some exceptions
706
+ # in Java, but more likely mapped to some error codes in C.
707
+ # # Other uses
708
+ # The error model and the `Status` message can be used in a variety of
709
+ # environments, either with or without APIs, to provide a
710
+ # consistent developer experience across different environments.
711
+ # Example uses of this error model include:
712
+ # - Partial errors. If a service needs to return partial errors to the client,
713
+ # it may embed the `Status` in the normal response to indicate the partial
714
+ # errors.
715
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
716
+ # have a `Status` message for error reporting.
717
+ # - Batch operations. If a client uses batch request and batch response, the
718
+ # `Status` message should be used directly inside batch response, one for
719
+ # each error sub-response.
720
+ # - Asynchronous operations. If an API call embeds asynchronous operation
721
+ # results in its response, the status of those operations should be
722
+ # represented directly using the `Status` message.
723
+ # - Logging. If some API errors are stored in logs, the message `Status` could
724
+ # be used directly after any stripping needed for security/privacy reasons.
725
+ # Corresponds to the JSON property `error`
726
+ # @return [Google::Apis::GenomicsV2alpha1::Status]
727
+ attr_accessor :error
728
+
729
+ # An OperationMetadata or Metadata object. This will always be returned with the
730
+ # Operation.
731
+ # Corresponds to the JSON property `metadata`
732
+ # @return [Hash<String,Object>]
733
+ attr_accessor :metadata
734
+
735
+ # The server-assigned name, which is only unique within the same service that
736
+ # originally returns it. For example&#58; `operations/CJHU7Oi_ChDrveSpBRjfuL-
737
+ # qzoWAgEw`
738
+ # Corresponds to the JSON property `name`
739
+ # @return [String]
740
+ attr_accessor :name
741
+
742
+ # If importing ReadGroupSets, an ImportReadGroupSetsResponse is returned. If
743
+ # importing Variants, an ImportVariantsResponse is returned. For pipelines and
744
+ # exports, an Empty response is returned.
745
+ # Corresponds to the JSON property `response`
746
+ # @return [Hash<String,Object>]
747
+ attr_accessor :response
748
+
749
+ def initialize(**args)
750
+ update!(**args)
751
+ end
752
+
753
+ # Update properties of this object
754
+ def update!(**args)
755
+ @done = args[:done] if args.key?(:done)
756
+ @error = args[:error] if args.key?(:error)
757
+ @metadata = args[:metadata] if args.key?(:metadata)
758
+ @name = args[:name] if args.key?(:name)
759
+ @response = args[:response] if args.key?(:response)
760
+ end
761
+ end
762
+
763
+ # An event that occurred during an Operation.
764
+ class OperationEvent
765
+ include Google::Apis::Core::Hashable
766
+
767
+ # Required description of event.
768
+ # Corresponds to the JSON property `description`
769
+ # @return [String]
770
+ attr_accessor :description
771
+
772
+ # Optional time of when event finished. An event can have a start time and no
773
+ # finish time. If an event has a finish time, there must be a start time.
774
+ # Corresponds to the JSON property `endTime`
775
+ # @return [String]
776
+ attr_accessor :end_time
777
+
778
+ # Optional time of when event started.
779
+ # Corresponds to the JSON property `startTime`
780
+ # @return [String]
781
+ attr_accessor :start_time
782
+
783
+ def initialize(**args)
784
+ update!(**args)
785
+ end
786
+
787
+ # Update properties of this object
788
+ def update!(**args)
789
+ @description = args[:description] if args.key?(:description)
790
+ @end_time = args[:end_time] if args.key?(:end_time)
791
+ @start_time = args[:start_time] if args.key?(:start_time)
792
+ end
793
+ end
794
+
795
+ # Metadata describing an Operation.
796
+ class OperationMetadata
797
+ include Google::Apis::Core::Hashable
798
+
799
+ # This field is deprecated. Use `labels` instead. Optionally provided by the
800
+ # caller when submitting the request that creates the operation.
801
+ # Corresponds to the JSON property `clientId`
802
+ # @return [String]
803
+ attr_accessor :client_id
804
+
805
+ # The time at which the job was submitted to the Genomics service.
806
+ # Corresponds to the JSON property `createTime`
807
+ # @return [String]
808
+ attr_accessor :create_time
809
+
810
+ # The time at which the job stopped running.
811
+ # Corresponds to the JSON property `endTime`
812
+ # @return [String]
813
+ attr_accessor :end_time
814
+
815
+ # Optional event messages that were generated during the job's execution.
816
+ # This also contains any warnings that were generated during import
817
+ # or export.
818
+ # Corresponds to the JSON property `events`
819
+ # @return [Array<Google::Apis::GenomicsV2alpha1::OperationEvent>]
820
+ attr_accessor :events
821
+
822
+ # Optionally provided by the caller when submitting the request that creates
823
+ # the operation.
824
+ # Corresponds to the JSON property `labels`
825
+ # @return [Hash<String,String>]
826
+ attr_accessor :labels
827
+
828
+ # The Google Cloud Project in which the job is scoped.
829
+ # Corresponds to the JSON property `projectId`
830
+ # @return [String]
831
+ attr_accessor :project_id
832
+
833
+ # The original request that started the operation. Note that this will be in
834
+ # current version of the API. If the operation was started with v1beta2 API
835
+ # and a GetOperation is performed on v1 API, a v1 request will be returned.
836
+ # Corresponds to the JSON property `request`
837
+ # @return [Hash<String,Object>]
838
+ attr_accessor :request
839
+
840
+ # Runtime metadata on this Operation.
841
+ # Corresponds to the JSON property `runtimeMetadata`
842
+ # @return [Hash<String,Object>]
843
+ attr_accessor :runtime_metadata
844
+
845
+ # The time at which the job began to run.
846
+ # Corresponds to the JSON property `startTime`
847
+ # @return [String]
848
+ attr_accessor :start_time
849
+
850
+ def initialize(**args)
851
+ update!(**args)
852
+ end
853
+
854
+ # Update properties of this object
855
+ def update!(**args)
856
+ @client_id = args[:client_id] if args.key?(:client_id)
857
+ @create_time = args[:create_time] if args.key?(:create_time)
858
+ @end_time = args[:end_time] if args.key?(:end_time)
859
+ @events = args[:events] if args.key?(:events)
860
+ @labels = args[:labels] if args.key?(:labels)
861
+ @project_id = args[:project_id] if args.key?(:project_id)
862
+ @request = args[:request] if args.key?(:request)
863
+ @runtime_metadata = args[:runtime_metadata] if args.key?(:runtime_metadata)
864
+ @start_time = args[:start_time] if args.key?(:start_time)
865
+ end
866
+ end
867
+
868
+ # The Pipeline object describes a series of actions to execute, expressed as
869
+ # docker containers.
870
+ class Pipeline
871
+ include Google::Apis::Core::Hashable
872
+
873
+ # The list of actions to execute, in the order they are specified.
874
+ # Corresponds to the JSON property `actions`
875
+ # @return [Array<Google::Apis::GenomicsV2alpha1::Action>]
876
+ attr_accessor :actions
877
+
878
+ # The environment to pass into every action. Each action may also specify
879
+ # additional environment variables but cannot delete an entry from this map
880
+ # (though they may overwrite it with a different value).
881
+ # Corresponds to the JSON property `environment`
882
+ # @return [Hash<String,String>]
883
+ attr_accessor :environment
884
+
885
+ # The system resources for the pipeline run.
886
+ # At least one zone or region must be specified or the pipeline run will fail.
887
+ # Corresponds to the JSON property `resources`
888
+ # @return [Google::Apis::GenomicsV2alpha1::Resources]
889
+ attr_accessor :resources
890
+
891
+ def initialize(**args)
892
+ update!(**args)
893
+ end
894
+
895
+ # Update properties of this object
896
+ def update!(**args)
897
+ @actions = args[:actions] if args.key?(:actions)
898
+ @environment = args[:environment] if args.key?(:environment)
899
+ @resources = args[:resources] if args.key?(:resources)
900
+ end
901
+ end
902
+
903
+ # This event is generated when the worker starts pulling an image.
904
+ class PullStartedEvent
905
+ include Google::Apis::Core::Hashable
906
+
907
+ # The URI of the image that was pulled.
908
+ # Corresponds to the JSON property `imageUri`
909
+ # @return [String]
910
+ attr_accessor :image_uri
911
+
912
+ def initialize(**args)
913
+ update!(**args)
914
+ end
915
+
916
+ # Update properties of this object
917
+ def update!(**args)
918
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
919
+ end
920
+ end
921
+
922
+ # This event is generated when the worker stops pulling an image.
923
+ class PullStoppedEvent
924
+ include Google::Apis::Core::Hashable
925
+
926
+ # The URI of the image that was pulled.
927
+ # Corresponds to the JSON property `imageUri`
928
+ # @return [String]
929
+ attr_accessor :image_uri
930
+
931
+ def initialize(**args)
932
+ update!(**args)
933
+ end
934
+
935
+ # Update properties of this object
936
+ def update!(**args)
937
+ @image_uri = args[:image_uri] if args.key?(:image_uri)
938
+ end
939
+ end
940
+
941
+ # The system resources for the pipeline run.
942
+ # At least one zone or region must be specified or the pipeline run will fail.
943
+ class Resources
944
+ include Google::Apis::Core::Hashable
945
+
946
+ # The customer project ID to allocate resources in.
947
+ # Corresponds to the JSON property `projectId`
948
+ # @return [String]
949
+ attr_accessor :project_id
950
+
951
+ # The list of regions allowed for VM allocation. If set, the zones field
952
+ # must not be set.
953
+ # Corresponds to the JSON property `regions`
954
+ # @return [Array<String>]
955
+ attr_accessor :regions
956
+
957
+ # Carries information about a Compute Engine VM resource.
958
+ # Corresponds to the JSON property `virtualMachine`
959
+ # @return [Google::Apis::GenomicsV2alpha1::VirtualMachine]
960
+ attr_accessor :virtual_machine
961
+
962
+ # The list of zones allowed for VM allocation. If set, the regions field
963
+ # must not be set.
964
+ # Corresponds to the JSON property `zones`
965
+ # @return [Array<String>]
966
+ attr_accessor :zones
967
+
968
+ def initialize(**args)
969
+ update!(**args)
970
+ end
971
+
972
+ # Update properties of this object
973
+ def update!(**args)
974
+ @project_id = args[:project_id] if args.key?(:project_id)
975
+ @regions = args[:regions] if args.key?(:regions)
976
+ @virtual_machine = args[:virtual_machine] if args.key?(:virtual_machine)
977
+ @zones = args[:zones] if args.key?(:zones)
978
+ end
979
+ end
980
+
981
+ # The arguments to the RunPipeline method. The requesting user must have
982
+ # the iam.serviceAccounts.actAs permission for the Google Genomics Service
983
+ # Account or the request will fail.
984
+ class RunPipelineRequest
985
+ include Google::Apis::Core::Hashable
986
+
987
+ # User defined labels to associate with the returned operation. These
988
+ # labels are not propagated to any Google Cloud Platform resources used by
989
+ # the operation, and may be modified at any time.
990
+ # To associate labels with resources created while executing the operation,
991
+ # see the appropriate resource message (i.e., VirtualMachine).
992
+ # Corresponds to the JSON property `labels`
993
+ # @return [Hash<String,String>]
994
+ attr_accessor :labels
995
+
996
+ # The Pipeline object describes a series of actions to execute, expressed as
997
+ # docker containers.
998
+ # Corresponds to the JSON property `pipeline`
999
+ # @return [Google::Apis::GenomicsV2alpha1::Pipeline]
1000
+ attr_accessor :pipeline
1001
+
1002
+ def initialize(**args)
1003
+ update!(**args)
1004
+ end
1005
+
1006
+ # Update properties of this object
1007
+ def update!(**args)
1008
+ @labels = args[:labels] if args.key?(:labels)
1009
+ @pipeline = args[:pipeline] if args.key?(:pipeline)
1010
+ end
1011
+ end
1012
+
1013
+ # Runtime metadata that will be populated in the
1014
+ # runtimeMetadata
1015
+ # field of the Operation associated with a RunPipeline execution.
1016
+ class RuntimeMetadata
1017
+ include Google::Apis::Core::Hashable
1018
+
1019
+ # Describes a Compute Engine resource that is being managed by a running
1020
+ # pipeline.
1021
+ # Corresponds to the JSON property `computeEngine`
1022
+ # @return [Google::Apis::GenomicsV2alpha1::ComputeEngine]
1023
+ attr_accessor :compute_engine
1024
+
1025
+ def initialize(**args)
1026
+ update!(**args)
1027
+ end
1028
+
1029
+ # Update properties of this object
1030
+ def update!(**args)
1031
+ @compute_engine = args[:compute_engine] if args.key?(:compute_engine)
1032
+ end
1033
+ end
1034
+
1035
+ # Carries information about a Google Cloud Service Account.
1036
+ class ServiceAccount
1037
+ include Google::Apis::Core::Hashable
1038
+
1039
+ # Email address of the service account. If not specified, the default
1040
+ # compute engine service account for the project will be used.
1041
+ # Corresponds to the JSON property `email`
1042
+ # @return [String]
1043
+ attr_accessor :email
1044
+
1045
+ # List of scopes to be enabled for this service account on the VM, in
1046
+ # addition to the Google Genomics API scope.
1047
+ # Corresponds to the JSON property `scopes`
1048
+ # @return [Array<String>]
1049
+ attr_accessor :scopes
1050
+
1051
+ def initialize(**args)
1052
+ update!(**args)
1053
+ end
1054
+
1055
+ # Update properties of this object
1056
+ def update!(**args)
1057
+ @email = args[:email] if args.key?(:email)
1058
+ @scopes = args[:scopes] if args.key?(:scopes)
1059
+ end
1060
+ end
1061
+
1062
+ # The `Status` type defines a logical error model that is suitable for different
1063
+ # programming environments, including REST APIs and RPC APIs. It is used by
1064
+ # [gRPC](https://github.com/grpc). The error model is designed to be:
1065
+ # - Simple to use and understand for most users
1066
+ # - Flexible enough to meet unexpected needs
1067
+ # # Overview
1068
+ # The `Status` message contains three pieces of data: error code, error message,
1069
+ # and error details. The error code should be an enum value of
1070
+ # google.rpc.Code, but it may accept additional error codes if needed. The
1071
+ # error message should be a developer-facing English message that helps
1072
+ # developers *understand* and *resolve* the error. If a localized user-facing
1073
+ # error message is needed, put the localized message in the error details or
1074
+ # localize it in the client. The optional error details may contain arbitrary
1075
+ # information about the error. There is a predefined set of error detail types
1076
+ # in the package `google.rpc` that can be used for common error conditions.
1077
+ # # Language mapping
1078
+ # The `Status` message is the logical representation of the error model, but it
1079
+ # is not necessarily the actual wire format. When the `Status` message is
1080
+ # exposed in different client libraries and different wire protocols, it can be
1081
+ # mapped differently. For example, it will likely be mapped to some exceptions
1082
+ # in Java, but more likely mapped to some error codes in C.
1083
+ # # Other uses
1084
+ # The error model and the `Status` message can be used in a variety of
1085
+ # environments, either with or without APIs, to provide a
1086
+ # consistent developer experience across different environments.
1087
+ # Example uses of this error model include:
1088
+ # - Partial errors. If a service needs to return partial errors to the client,
1089
+ # it may embed the `Status` in the normal response to indicate the partial
1090
+ # errors.
1091
+ # - Workflow errors. A typical workflow has multiple steps. Each step may
1092
+ # have a `Status` message for error reporting.
1093
+ # - Batch operations. If a client uses batch request and batch response, the
1094
+ # `Status` message should be used directly inside batch response, one for
1095
+ # each error sub-response.
1096
+ # - Asynchronous operations. If an API call embeds asynchronous operation
1097
+ # results in its response, the status of those operations should be
1098
+ # represented directly using the `Status` message.
1099
+ # - Logging. If some API errors are stored in logs, the message `Status` could
1100
+ # be used directly after any stripping needed for security/privacy reasons.
1101
+ class Status
1102
+ include Google::Apis::Core::Hashable
1103
+
1104
+ # The status code, which should be an enum value of google.rpc.Code.
1105
+ # Corresponds to the JSON property `code`
1106
+ # @return [Fixnum]
1107
+ attr_accessor :code
1108
+
1109
+ # A list of messages that carry the error details. There is a common set of
1110
+ # message types for APIs to use.
1111
+ # Corresponds to the JSON property `details`
1112
+ # @return [Array<Hash<String,Object>>]
1113
+ attr_accessor :details
1114
+
1115
+ # A developer-facing error message, which should be in English. Any
1116
+ # user-facing error message should be localized and sent in the
1117
+ # google.rpc.Status.details field, or localized by the client.
1118
+ # Corresponds to the JSON property `message`
1119
+ # @return [String]
1120
+ attr_accessor :message
1121
+
1122
+ def initialize(**args)
1123
+ update!(**args)
1124
+ end
1125
+
1126
+ # Update properties of this object
1127
+ def update!(**args)
1128
+ @code = args[:code] if args.key?(:code)
1129
+ @details = args[:details] if args.key?(:details)
1130
+ @message = args[:message] if args.key?(:message)
1131
+ end
1132
+ end
1133
+
1134
+ # This event is generated when the execution of a container results in a
1135
+ # non-zero exit status that was not otherwise ignored. Execution will
1136
+ # continue, but only actions that are flagged as ALWAYS_RUN will be executed:
1137
+ # other actions will be skipped.
1138
+ class UnexpectedExitStatusEvent
1139
+ include Google::Apis::Core::Hashable
1140
+
1141
+ # The numeric ID of the action that started the container.
1142
+ # Corresponds to the JSON property `actionId`
1143
+ # @return [Fixnum]
1144
+ attr_accessor :action_id
1145
+
1146
+ # The exit status of the container.
1147
+ # Corresponds to the JSON property `exitStatus`
1148
+ # @return [Fixnum]
1149
+ attr_accessor :exit_status
1150
+
1151
+ def initialize(**args)
1152
+ update!(**args)
1153
+ end
1154
+
1155
+ # Update properties of this object
1156
+ def update!(**args)
1157
+ @action_id = args[:action_id] if args.key?(:action_id)
1158
+ @exit_status = args[:exit_status] if args.key?(:exit_status)
1159
+ end
1160
+ end
1161
+
1162
+ # Carries information about a Compute Engine VM resource.
1163
+ class VirtualMachine
1164
+ include Google::Apis::Core::Hashable
1165
+
1166
+ # The size of the boot disk, in gigabytes. The boot disk must be large
1167
+ # enough to accommodate all of the docker images from each action in the
1168
+ # pipeline at the same time. If not specified, a small but reasonable
1169
+ # default value is used.
1170
+ # Corresponds to the JSON property `bootDiskSizeGb`
1171
+ # @return [Fixnum]
1172
+ attr_accessor :boot_disk_size_gb
1173
+
1174
+ # The host operating system image to use.
1175
+ # At present, only Container Optimized OS images may be used.
1176
+ # The default value is "projects/cos-cloud/global/images/family/cos-stable"
1177
+ # which selects the latest stable release of Container Optimized OS.
1178
+ # This option is provided to allow testing against the beta release of the
1179
+ # operating system to ensure that the new version does not interact
1180
+ # negatively with production pipelines.
1181
+ # To test a pipeline against the beta release of COS, use the value
1182
+ # "projects/cos-cloud/global/images/family/cos-beta".
1183
+ # Corresponds to the JSON property `bootImage`
1184
+ # @return [String]
1185
+ attr_accessor :boot_image
1186
+
1187
+ # The CPU platform to request. An instance based on a newer platform may be
1188
+ # allocated but never one with less capabilities. The value of this
1189
+ # parameter must be a valid Compute Engine CPU platform name (such as "Intel
1190
+ # Skylake"). This parameter is only useful for carefully optimized work
1191
+ # loads where the CPU platform has a significant impact.
1192
+ # For more information about the effect of this parameter, please visit
1193
+ # https://cloud.google.com/compute/docs/instances/specify-min-cpu-platform.
1194
+ # Corresponds to the JSON property `cpuPlatform`
1195
+ # @return [String]
1196
+ attr_accessor :cpu_platform
1197
+
1198
+ # The list of disks to create and attach to the VM.
1199
+ # Corresponds to the JSON property `disks`
1200
+ # @return [Array<Google::Apis::GenomicsV2alpha1::Disk>]
1201
+ attr_accessor :disks
1202
+
1203
+ # Optional set of labels to apply to the VM and any attached disk resources.
1204
+ # These labels must adhere to the name and value restrictions on VM labels
1205
+ # imposed by Compute Engine.
1206
+ # These labels are applied at creation time to the VM and are applied on a
1207
+ # best-effort basis to attached disk resources shortly after VM creation.
1208
+ # Corresponds to the JSON property `labels`
1209
+ # @return [Hash<String,String>]
1210
+ attr_accessor :labels
1211
+
1212
+ # The machine type of the virtual machine to create. Must be the short name
1213
+ # of a standard machine type (such as "n1-standard-1") or a custom machine
1214
+ # type (such as "custom-1-4096").
1215
+ # Corresponds to the JSON property `machineType`
1216
+ # @return [String]
1217
+ attr_accessor :machine_type
1218
+
1219
+ # VM networking options.
1220
+ # Corresponds to the JSON property `network`
1221
+ # @return [Google::Apis::GenomicsV2alpha1::Network]
1222
+ attr_accessor :network
1223
+
1224
+ # If true, allocate a preemptible VM.
1225
+ # Corresponds to the JSON property `preemptible`
1226
+ # @return [Boolean]
1227
+ attr_accessor :preemptible
1228
+ alias_method :preemptible?, :preemptible
1229
+
1230
+ # Carries information about a Google Cloud Service Account.
1231
+ # Corresponds to the JSON property `serviceAccount`
1232
+ # @return [Google::Apis::GenomicsV2alpha1::ServiceAccount]
1233
+ attr_accessor :service_account
1234
+
1235
+ def initialize(**args)
1236
+ update!(**args)
1237
+ end
1238
+
1239
+ # Update properties of this object
1240
+ def update!(**args)
1241
+ @boot_disk_size_gb = args[:boot_disk_size_gb] if args.key?(:boot_disk_size_gb)
1242
+ @boot_image = args[:boot_image] if args.key?(:boot_image)
1243
+ @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform)
1244
+ @disks = args[:disks] if args.key?(:disks)
1245
+ @labels = args[:labels] if args.key?(:labels)
1246
+ @machine_type = args[:machine_type] if args.key?(:machine_type)
1247
+ @network = args[:network] if args.key?(:network)
1248
+ @preemptible = args[:preemptible] if args.key?(:preemptible)
1249
+ @service_account = args[:service_account] if args.key?(:service_account)
1250
+ end
1251
+ end
1252
+
1253
+ # This event is generated once a worker VM has been assigned to run the
1254
+ # pipeline.
1255
+ class WorkerAssignedEvent
1256
+ include Google::Apis::Core::Hashable
1257
+
1258
+ # The worker's instance name.
1259
+ # Corresponds to the JSON property `instance`
1260
+ # @return [String]
1261
+ attr_accessor :instance
1262
+
1263
+ # The zone the worker is running in.
1264
+ # Corresponds to the JSON property `zone`
1265
+ # @return [String]
1266
+ attr_accessor :zone
1267
+
1268
+ def initialize(**args)
1269
+ update!(**args)
1270
+ end
1271
+
1272
+ # Update properties of this object
1273
+ def update!(**args)
1274
+ @instance = args[:instance] if args.key?(:instance)
1275
+ @zone = args[:zone] if args.key?(:zone)
1276
+ end
1277
+ end
1278
+
1279
+ # This event is generated when the worker VM that was assigned to the pipeline
1280
+ # has been released (i.e., deleted).
1281
+ class WorkerReleasedEvent
1282
+ include Google::Apis::Core::Hashable
1283
+
1284
+ # The worker's instance name.
1285
+ # Corresponds to the JSON property `instance`
1286
+ # @return [String]
1287
+ attr_accessor :instance
1288
+
1289
+ # The zone the worker was running in.
1290
+ # Corresponds to the JSON property `zone`
1291
+ # @return [String]
1292
+ attr_accessor :zone
1293
+
1294
+ def initialize(**args)
1295
+ update!(**args)
1296
+ end
1297
+
1298
+ # Update properties of this object
1299
+ def update!(**args)
1300
+ @instance = args[:instance] if args.key?(:instance)
1301
+ @zone = args[:zone] if args.key?(:zone)
1302
+ end
1303
+ end
1304
+ end
1305
+ end
1306
+ end