google-api-client 0.13.2 → 0.13.3

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 (524) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +149 -0
  3. data/bin/generate-api +6 -2
  4. data/generated/google/apis/acceleratedmobilepageurl_v1.rb +3 -3
  5. data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +46 -46
  6. data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +15 -15
  7. data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +6 -6
  8. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +2 -2
  9. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1394 -1394
  10. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +322 -322
  11. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +449 -449
  12. data/generated/google/apis/adexchangebuyer_v1_2.rb +35 -0
  13. data/generated/google/apis/adexchangebuyer_v1_2/classes.rb +457 -0
  14. data/generated/google/apis/adexchangebuyer_v1_2/representations.rb +189 -0
  15. data/generated/google/apis/adexchangebuyer_v1_2/service.rb +329 -0
  16. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1347 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +498 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +873 -0
  20. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  21. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +1 -1
  22. data/generated/google/apis/adexchangeseller_v1.rb +37 -0
  23. data/generated/google/apis/adexchangeseller_v1/classes.rb +557 -0
  24. data/generated/google/apis/adexchangeseller_v1/representations.rb +248 -0
  25. data/generated/google/apis/adexchangeseller_v1/service.rb +568 -0
  26. data/generated/google/apis/adexchangeseller_v1_1.rb +37 -0
  27. data/generated/google/apis/adexchangeseller_v1_1/classes.rb +842 -0
  28. data/generated/google/apis/adexchangeseller_v1_1/representations.rb +364 -0
  29. data/generated/google/apis/adexchangeseller_v1_1/service.rb +771 -0
  30. data/generated/google/apis/adexperiencereport_v1.rb +35 -0
  31. data/generated/google/apis/adexperiencereport_v1/classes.rb +138 -0
  32. data/generated/google/apis/adexperiencereport_v1/representations.rb +77 -0
  33. data/generated/google/apis/adexperiencereport_v1/service.rb +123 -0
  34. data/generated/google/apis/admin_directory_v1.rb +1 -1
  35. data/generated/google/apis/admin_directory_v1/classes.rb +60 -0
  36. data/generated/google/apis/admin_directory_v1/representations.rb +29 -0
  37. data/generated/google/apis/admin_directory_v1/service.rb +39 -0
  38. data/generated/google/apis/adsense_v1_4.rb +1 -1
  39. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  40. data/generated/google/apis/analytics_v2_4.rb +37 -0
  41. data/generated/google/apis/analytics_v2_4/classes.rb +26 -0
  42. data/generated/google/apis/analytics_v2_4/representations.rb +26 -0
  43. data/generated/google/apis/analytics_v2_4/service.rb +345 -0
  44. data/generated/google/apis/analytics_v3.rb +1 -1
  45. data/generated/google/apis/analytics_v3/classes.rb +15 -2
  46. data/generated/google/apis/analytics_v3/representations.rb +3 -0
  47. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  48. data/generated/google/apis/analyticsreporting_v4/classes.rb +891 -891
  49. data/generated/google/apis/analyticsreporting_v4/representations.rb +189 -189
  50. data/generated/google/apis/androiddeviceprovisioning_v1.rb +32 -0
  51. data/generated/google/apis/androiddeviceprovisioning_v1/classes.rb +917 -0
  52. data/generated/google/apis/androiddeviceprovisioning_v1/representations.rb +447 -0
  53. data/generated/google/apis/androiddeviceprovisioning_v1/service.rb +419 -0
  54. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  55. data/generated/google/apis/androidenterprise_v1/classes.rb +31 -0
  56. data/generated/google/apis/androidenterprise_v1/representations.rb +14 -0
  57. data/generated/google/apis/androidenterprise_v1/service.rb +76 -0
  58. data/generated/google/apis/androidmanagement_v1.rb +35 -0
  59. data/generated/google/apis/androidmanagement_v1/classes.rb +2039 -0
  60. data/generated/google/apis/androidmanagement_v1/representations.rb +702 -0
  61. data/generated/google/apis/androidmanagement_v1/service.rb +796 -0
  62. data/generated/google/apis/androidpublisher_v1.rb +34 -0
  63. data/generated/google/apis/androidpublisher_v1/classes.rb +67 -0
  64. data/generated/google/apis/androidpublisher_v1/representations.rb +42 -0
  65. data/generated/google/apis/androidpublisher_v1/service.rb +150 -0
  66. data/generated/google/apis/androidpublisher_v1_1.rb +34 -0
  67. data/generated/google/apis/androidpublisher_v1_1/classes.rb +123 -0
  68. data/generated/google/apis/androidpublisher_v1_1/representations.rb +60 -0
  69. data/generated/google/apis/androidpublisher_v1_1/service.rb +192 -0
  70. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  71. data/generated/google/apis/androidpublisher_v2/classes.rb +21 -0
  72. data/generated/google/apis/androidpublisher_v2/representations.rb +3 -0
  73. data/generated/google/apis/androidpublisher_v2/service.rb +6 -2
  74. data/generated/google/apis/appengine_v1.rb +4 -4
  75. data/generated/google/apis/appengine_v1/classes.rb +1519 -1474
  76. data/generated/google/apis/appengine_v1/representations.rb +351 -335
  77. data/generated/google/apis/appengine_v1/service.rb +255 -239
  78. data/generated/google/apis/appengine_v1alpha.rb +41 -0
  79. data/generated/google/apis/appengine_v1alpha/classes.rb +987 -0
  80. data/generated/google/apis/appengine_v1alpha/representations.rb +397 -0
  81. data/generated/google/apis/appengine_v1alpha/service.rb +631 -0
  82. data/generated/google/apis/appengine_v1beta.rb +41 -0
  83. data/generated/google/apis/appengine_v1beta/classes.rb +2876 -0
  84. data/generated/google/apis/appengine_v1beta/representations.rb +1138 -0
  85. data/generated/google/apis/appengine_v1beta/service.rb +1546 -0
  86. data/generated/google/apis/appengine_v1beta4.rb +41 -0
  87. data/generated/google/apis/appengine_v1beta4/classes.rb +2170 -0
  88. data/generated/google/apis/appengine_v1beta4/representations.rb +824 -0
  89. data/generated/google/apis/appengine_v1beta4/service.rb +876 -0
  90. data/generated/google/apis/appengine_v1beta5.rb +41 -0
  91. data/generated/google/apis/appengine_v1beta5/classes.rb +2168 -0
  92. data/generated/google/apis/appengine_v1beta5/representations.rb +822 -0
  93. data/generated/google/apis/appengine_v1beta5/service.rb +877 -0
  94. data/generated/google/apis/appsactivity_v1.rb +1 -1
  95. data/generated/google/apis/appstate_v1.rb +1 -1
  96. data/generated/google/apis/bigquery_v2.rb +1 -1
  97. data/generated/google/apis/bigquery_v2/classes.rb +106 -18
  98. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  99. data/generated/google/apis/bigquerydatatransfer_v1.rb +41 -0
  100. data/generated/google/apis/bigquerydatatransfer_v1/classes.rb +886 -0
  101. data/generated/google/apis/bigquerydatatransfer_v1/representations.rb +343 -0
  102. data/generated/google/apis/bigquerydatatransfer_v1/service.rb +1317 -0
  103. data/generated/google/apis/blogger_v2.rb +34 -0
  104. data/generated/google/apis/blogger_v2/classes.rb +947 -0
  105. data/generated/google/apis/blogger_v2/representations.rb +465 -0
  106. data/generated/google/apis/blogger_v2/service.rb +424 -0
  107. data/generated/google/apis/calendar_v3.rb +1 -1
  108. data/generated/google/apis/calendar_v3/classes.rb +4 -207
  109. data/generated/google/apis/calendar_v3/representations.rb +0 -97
  110. data/generated/google/apis/calendar_v3/service.rb +8 -4
  111. data/generated/google/apis/classroom_v1.rb +27 -27
  112. data/generated/google/apis/classroom_v1/classes.rb +1037 -926
  113. data/generated/google/apis/classroom_v1/representations.rb +294 -244
  114. data/generated/google/apis/classroom_v1/service.rb +1114 -1109
  115. data/generated/google/apis/cloudbilling_v1.rb +1 -1
  116. data/generated/google/apis/cloudbilling_v1/classes.rb +473 -56
  117. data/generated/google/apis/cloudbilling_v1/representations.rb +176 -10
  118. data/generated/google/apis/cloudbilling_v1/service.rb +182 -89
  119. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  120. data/generated/google/apis/cloudbuild_v1/classes.rb +666 -625
  121. data/generated/google/apis/cloudbuild_v1/representations.rb +132 -116
  122. data/generated/google/apis/cloudbuild_v1/service.rb +158 -158
  123. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  124. data/generated/google/apis/clouddebugger_v2/classes.rb +637 -639
  125. data/generated/google/apis/clouddebugger_v2/representations.rb +139 -139
  126. data/generated/google/apis/clouddebugger_v2/service.rb +157 -157
  127. data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
  128. data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +310 -310
  129. data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +77 -77
  130. data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +144 -144
  131. data/generated/google/apis/cloudfunctions_v1.rb +4 -1
  132. data/generated/google/apis/cloudfunctions_v1/classes.rb +265 -6
  133. data/generated/google/apis/cloudfunctions_v1/representations.rb +80 -1
  134. data/generated/google/apis/cloudfunctions_v1/service.rb +118 -0
  135. data/generated/google/apis/cloudfunctions_v1beta2.rb +35 -0
  136. data/generated/google/apis/cloudfunctions_v1beta2/classes.rb +678 -0
  137. data/generated/google/apis/cloudfunctions_v1beta2/representations.rb +264 -0
  138. data/generated/google/apis/cloudfunctions_v1beta2/service.rb +385 -0
  139. data/generated/google/apis/cloudkms_v1.rb +1 -1
  140. data/generated/google/apis/cloudkms_v1/classes.rb +652 -622
  141. data/generated/google/apis/cloudkms_v1/representations.rb +138 -137
  142. data/generated/google/apis/cloudkms_v1/service.rb +320 -320
  143. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  144. data/generated/google/apis/cloudresourcemanager_v1.rb +4 -4
  145. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1129 -1129
  146. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +188 -188
  147. data/generated/google/apis/cloudresourcemanager_v1/service.rb +609 -609
  148. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  149. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +404 -404
  150. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +83 -83
  151. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +328 -328
  152. data/generated/google/apis/cloudresourcemanager_v2beta1.rb +38 -0
  153. data/generated/google/apis/cloudresourcemanager_v2beta1/classes.rb +819 -0
  154. data/generated/google/apis/cloudresourcemanager_v2beta1/representations.rb +304 -0
  155. data/generated/google/apis/cloudresourcemanager_v2beta1/service.rb +528 -0
  156. data/generated/google/apis/cloudtrace_v1.rb +5 -5
  157. data/generated/google/apis/cloudtrace_v1/classes.rb +67 -67
  158. data/generated/google/apis/cloudtrace_v1/representations.rb +21 -21
  159. data/generated/google/apis/cloudtrace_v1/service.rb +36 -36
  160. data/generated/google/apis/cloudtrace_v2.rb +43 -0
  161. data/generated/google/apis/cloudtrace_v2/classes.rb +797 -0
  162. data/generated/google/apis/cloudtrace_v2/representations.rb +353 -0
  163. data/generated/google/apis/cloudtrace_v2/service.rb +238 -0
  164. data/generated/google/apis/clouduseraccounts_alpha.rb +44 -0
  165. data/generated/google/apis/clouduseraccounts_alpha/classes.rb +1188 -0
  166. data/generated/google/apis/clouduseraccounts_alpha/representations.rb +494 -0
  167. data/generated/google/apis/clouduseraccounts_alpha/service.rb +1152 -0
  168. data/generated/google/apis/clouduseraccounts_vm_alpha.rb +44 -0
  169. data/generated/google/apis/clouduseraccounts_vm_alpha/classes.rb +1188 -0
  170. data/generated/google/apis/clouduseraccounts_vm_alpha/representations.rb +494 -0
  171. data/generated/google/apis/clouduseraccounts_vm_alpha/service.rb +1152 -0
  172. data/generated/google/apis/clouduseraccounts_vm_beta.rb +44 -0
  173. data/generated/google/apis/clouduseraccounts_vm_beta/classes.rb +845 -0
  174. data/generated/google/apis/clouduseraccounts_vm_beta/representations.rb +352 -0
  175. data/generated/google/apis/clouduseraccounts_vm_beta/service.rb +908 -0
  176. data/generated/google/apis/compute_alpha.rb +49 -0
  177. data/generated/google/apis/compute_alpha/classes.rb +23796 -0
  178. data/generated/google/apis/compute_alpha/representations.rb +9391 -0
  179. data/generated/google/apis/compute_alpha/service.rb +24188 -0
  180. data/generated/google/apis/compute_beta.rb +1 -1
  181. data/generated/google/apis/compute_beta/classes.rb +1597 -235
  182. data/generated/google/apis/compute_beta/representations.rb +477 -0
  183. data/generated/google/apis/compute_beta/service.rb +2875 -1677
  184. data/generated/google/apis/compute_v1.rb +1 -1
  185. data/generated/google/apis/compute_v1/classes.rb +319 -197
  186. data/generated/google/apis/compute_v1/representations.rb +51 -0
  187. data/generated/google/apis/compute_v1/service.rb +2057 -172
  188. data/generated/google/apis/consumersurveys_v2.rb +40 -0
  189. data/generated/google/apis/consumersurveys_v2/classes.rb +736 -0
  190. data/generated/google/apis/consumersurveys_v2/representations.rb +343 -0
  191. data/generated/google/apis/consumersurveys_v2/service.rb +478 -0
  192. data/generated/google/apis/container_v1.rb +1 -1
  193. data/generated/google/apis/container_v1/classes.rb +1072 -936
  194. data/generated/google/apis/container_v1/representations.rb +266 -202
  195. data/generated/google/apis/container_v1/service.rb +243 -243
  196. data/generated/google/apis/container_v1beta1.rb +35 -0
  197. data/generated/google/apis/container_v1beta1/classes.rb +1900 -0
  198. data/generated/google/apis/container_v1beta1/representations.rb +662 -0
  199. data/generated/google/apis/container_v1beta1/service.rb +1875 -0
  200. data/generated/google/apis/content_v2.rb +1 -1
  201. data/generated/google/apis/content_v2/classes.rb +72 -3
  202. data/generated/google/apis/content_v2/representations.rb +23 -0
  203. data/generated/google/apis/content_v2/service.rb +23 -18
  204. data/generated/google/apis/content_v2sandbox.rb +35 -0
  205. data/generated/google/apis/content_v2sandbox/classes.rb +2406 -0
  206. data/generated/google/apis/content_v2sandbox/representations.rb +1042 -0
  207. data/generated/google/apis/content_v2sandbox/service.rb +709 -0
  208. data/generated/google/apis/dataflow_v1b3.rb +5 -5
  209. data/generated/google/apis/dataflow_v1b3/classes.rb +3341 -3341
  210. data/generated/google/apis/dataflow_v1b3/representations.rb +807 -807
  211. data/generated/google/apis/dataflow_v1b3/service.rb +492 -444
  212. data/generated/google/apis/dataproc_v1.rb +1 -1
  213. data/generated/google/apis/dataproc_v1/classes.rb +1101 -1101
  214. data/generated/google/apis/dataproc_v1/representations.rb +227 -227
  215. data/generated/google/apis/dataproc_v1/service.rb +254 -254
  216. data/generated/google/apis/dataproc_v1beta2.rb +34 -0
  217. data/generated/google/apis/dataproc_v1beta2/classes.rb +1756 -0
  218. data/generated/google/apis/dataproc_v1beta2/representations.rb +675 -0
  219. data/generated/google/apis/dataproc_v1beta2/service.rb +739 -0
  220. data/generated/google/apis/datastore_v1.rb +4 -4
  221. data/generated/google/apis/datastore_v1/classes.rb +1311 -773
  222. data/generated/google/apis/datastore_v1/representations.rb +351 -148
  223. data/generated/google/apis/datastore_v1/service.rb +206 -55
  224. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  225. data/generated/google/apis/datastore_v1beta3/classes.rb +1621 -0
  226. data/generated/google/apis/datastore_v1beta3/representations.rb +715 -0
  227. data/generated/google/apis/datastore_v1beta3/service.rb +260 -0
  228. data/generated/google/apis/deploymentmanager_alpha.rb +44 -0
  229. data/generated/google/apis/deploymentmanager_alpha/classes.rb +2422 -0
  230. data/generated/google/apis/deploymentmanager_alpha/representations.rb +1054 -0
  231. data/generated/google/apis/deploymentmanager_alpha/service.rb +1883 -0
  232. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  233. data/generated/google/apis/deploymentmanager_v2/classes.rb +81 -2
  234. data/generated/google/apis/deploymentmanager_v2/representations.rb +30 -0
  235. data/generated/google/apis/deploymentmanager_v2beta.rb +44 -0
  236. data/generated/google/apis/deploymentmanager_v2beta/classes.rb +2426 -0
  237. data/generated/google/apis/deploymentmanager_v2beta/representations.rb +1054 -0
  238. data/generated/google/apis/deploymentmanager_v2beta/service.rb +1687 -0
  239. data/generated/google/apis/dfareporting_v2_7.rb +1 -1
  240. data/generated/google/apis/dfareporting_v2_7/classes.rb +9 -26
  241. data/generated/google/apis/dfareporting_v2_7/service.rb +1 -0
  242. data/generated/google/apis/dfareporting_v2_8.rb +1 -1
  243. data/generated/google/apis/dfareporting_v2_8/classes.rb +26 -34
  244. data/generated/google/apis/dfareporting_v2_8/representations.rb +1 -0
  245. data/generated/google/apis/dfareporting_v2_8/service.rb +1 -0
  246. data/generated/google/apis/dlp_v2beta1.rb +36 -0
  247. data/generated/google/apis/dlp_v2beta1/classes.rb +1735 -0
  248. data/generated/google/apis/dlp_v2beta1/representations.rb +879 -0
  249. data/generated/google/apis/dlp_v2beta1/service.rb +406 -0
  250. data/generated/google/apis/dns_v1.rb +1 -1
  251. data/generated/google/apis/dns_v2beta1.rb +1 -1
  252. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  253. data/generated/google/apis/drive_v2.rb +1 -1
  254. data/generated/google/apis/drive_v3.rb +1 -1
  255. data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
  256. data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +267 -261
  257. data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +73 -72
  258. data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -1
  259. data/generated/google/apis/firebaserules_v1.rb +1 -1
  260. data/generated/google/apis/firebaserules_v1/classes.rb +283 -283
  261. data/generated/google/apis/firebaserules_v1/representations.rb +75 -75
  262. data/generated/google/apis/firebaserules_v1/service.rb +113 -113
  263. data/generated/google/apis/fitness_v1.rb +1 -1
  264. data/generated/google/apis/fitness_v1/classes.rb +1 -1
  265. data/generated/google/apis/fusiontables_v1.rb +37 -0
  266. data/generated/google/apis/fusiontables_v1/classes.rb +977 -0
  267. data/generated/google/apis/fusiontables_v1/representations.rb +449 -0
  268. data/generated/google/apis/fusiontables_v1/service.rb +1373 -0
  269. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  270. data/generated/google/apis/games_management_v1management.rb +1 -1
  271. data/generated/google/apis/games_v1.rb +1 -1
  272. data/generated/google/apis/genomics_v1.rb +8 -8
  273. data/generated/google/apis/genomics_v1/classes.rb +2288 -2288
  274. data/generated/google/apis/genomics_v1/representations.rb +482 -482
  275. data/generated/google/apis/genomics_v1/service.rb +966 -966
  276. data/generated/google/apis/genomics_v1alpha2.rb +40 -0
  277. data/generated/google/apis/genomics_v1alpha2/classes.rb +1207 -0
  278. data/generated/google/apis/genomics_v1alpha2/representations.rb +449 -0
  279. data/generated/google/apis/genomics_v1alpha2/service.rb +426 -0
  280. data/generated/google/apis/gmail_v1.rb +1 -1
  281. data/generated/google/apis/iam_v1.rb +1 -1
  282. data/generated/google/apis/iam_v1/classes.rb +664 -395
  283. data/generated/google/apis/iam_v1/representations.rb +194 -81
  284. data/generated/google/apis/iam_v1/service.rb +657 -92
  285. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  286. data/generated/google/apis/kgsearch_v1/classes.rb +7 -7
  287. data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
  288. data/generated/google/apis/kgsearch_v1/service.rb +8 -8
  289. data/generated/google/apis/language_v1.rb +4 -1
  290. data/generated/google/apis/language_v1/classes.rb +393 -393
  291. data/generated/google/apis/language_v1/representations.rb +95 -95
  292. data/generated/google/apis/language_v1/service.rb +42 -42
  293. data/generated/google/apis/language_v1beta1.rb +4 -1
  294. data/generated/google/apis/language_v1beta1/classes.rb +457 -457
  295. data/generated/google/apis/language_v1beta1/representations.rb +114 -114
  296. data/generated/google/apis/language_v1beta1/service.rb +48 -48
  297. data/generated/google/apis/language_v1beta2.rb +39 -0
  298. data/generated/google/apis/language_v1beta2/classes.rb +824 -0
  299. data/generated/google/apis/language_v1beta2/representations.rb +373 -0
  300. data/generated/google/apis/language_v1beta2/service.rb +217 -0
  301. data/generated/google/apis/logging_v2.rb +9 -9
  302. data/generated/google/apis/logging_v2/classes.rb +840 -834
  303. data/generated/google/apis/logging_v2/representations.rb +168 -167
  304. data/generated/google/apis/logging_v2/service.rb +667 -463
  305. data/generated/google/apis/logging_v2beta1.rb +9 -9
  306. data/generated/google/apis/logging_v2beta1/classes.rb +856 -850
  307. data/generated/google/apis/logging_v2beta1/representations.rb +169 -168
  308. data/generated/google/apis/logging_v2beta1/service.rb +253 -255
  309. data/generated/google/apis/manufacturers_v1.rb +1 -1
  310. data/generated/google/apis/manufacturers_v1/classes.rb +396 -389
  311. data/generated/google/apis/manufacturers_v1/representations.rb +92 -91
  312. data/generated/google/apis/manufacturers_v1/service.rb +8 -7
  313. data/generated/google/apis/ml_v1.rb +1 -1
  314. data/generated/google/apis/ml_v1/classes.rb +1487 -1676
  315. data/generated/google/apis/ml_v1/representations.rb +229 -299
  316. data/generated/google/apis/ml_v1/service.rb +359 -253
  317. data/generated/google/apis/ml_v1beta1.rb +34 -0
  318. data/generated/google/apis/ml_v1beta1/classes.rb +2396 -0
  319. data/generated/google/apis/ml_v1beta1/representations.rb +755 -0
  320. data/generated/google/apis/ml_v1beta1/service.rb +975 -0
  321. data/generated/google/apis/monitoring_v3.rb +6 -6
  322. data/generated/google/apis/monitoring_v3/classes.rb +834 -834
  323. data/generated/google/apis/monitoring_v3/representations.rb +168 -168
  324. data/generated/google/apis/monitoring_v3/service.rb +330 -330
  325. data/generated/google/apis/mybusiness_v3/classes.rb +1181 -1181
  326. data/generated/google/apis/mybusiness_v3/representations.rb +242 -242
  327. data/generated/google/apis/mybusiness_v3/service.rb +241 -241
  328. data/generated/google/apis/oauth2_v1.rb +43 -0
  329. data/generated/google/apis/oauth2_v1/classes.rb +321 -0
  330. data/generated/google/apis/oauth2_v1/representations.rb +135 -0
  331. data/generated/google/apis/oauth2_v1/service.rb +337 -0
  332. data/generated/google/apis/oauth2_v2.rb +1 -1
  333. data/generated/google/apis/oslogin_v1alpha.rb +37 -0
  334. data/generated/google/apis/oslogin_v1alpha/classes.rb +200 -0
  335. data/generated/google/apis/oslogin_v1alpha/representations.rb +105 -0
  336. data/generated/google/apis/oslogin_v1alpha/service.rb +228 -0
  337. data/generated/google/apis/pagespeedonline_v1.rb +32 -0
  338. data/generated/google/apis/pagespeedonline_v1/classes.rb +536 -0
  339. data/generated/google/apis/pagespeedonline_v1/representations.rb +257 -0
  340. data/generated/google/apis/pagespeedonline_v1/service.rb +120 -0
  341. data/generated/google/apis/partners_v2.rb +1 -1
  342. data/generated/google/apis/partners_v2/classes.rb +1512 -1512
  343. data/generated/google/apis/partners_v2/representations.rb +368 -368
  344. data/generated/google/apis/partners_v2/service.rb +596 -596
  345. data/generated/google/apis/people_v1.rb +15 -15
  346. data/generated/google/apis/people_v1/classes.rb +1384 -1383
  347. data/generated/google/apis/people_v1/representations.rb +311 -311
  348. data/generated/google/apis/people_v1/service.rb +208 -202
  349. data/generated/google/apis/playcustomapp_v1.rb +34 -0
  350. data/generated/google/apis/playcustomapp_v1/classes.rb +51 -0
  351. data/generated/google/apis/playcustomapp_v1/representations.rb +40 -0
  352. data/generated/google/apis/playcustomapp_v1/service.rb +114 -0
  353. data/generated/google/apis/playmoviespartner_v1.rb +34 -0
  354. data/generated/google/apis/playmoviespartner_v1/classes.rb +782 -0
  355. data/generated/google/apis/playmoviespartner_v1/representations.rb +191 -0
  356. data/generated/google/apis/playmoviespartner_v1/service.rb +354 -0
  357. data/generated/google/apis/plus_domains_v1.rb +1 -1
  358. data/generated/google/apis/plus_v1.rb +1 -1
  359. data/generated/google/apis/prediction_v1_2.rb +44 -0
  360. data/generated/google/apis/prediction_v1_2/classes.rb +237 -0
  361. data/generated/google/apis/prediction_v1_2/representations.rb +133 -0
  362. data/generated/google/apis/prediction_v1_2/service.rb +287 -0
  363. data/generated/google/apis/prediction_v1_3.rb +44 -0
  364. data/generated/google/apis/prediction_v1_3/classes.rb +286 -0
  365. data/generated/google/apis/prediction_v1_3/representations.rb +139 -0
  366. data/generated/google/apis/prediction_v1_3/service.rb +284 -0
  367. data/generated/google/apis/prediction_v1_4.rb +44 -0
  368. data/generated/google/apis/prediction_v1_4/classes.rb +336 -0
  369. data/generated/google/apis/prediction_v1_4/representations.rb +158 -0
  370. data/generated/google/apis/prediction_v1_4/service.rb +284 -0
  371. data/generated/google/apis/prediction_v1_5.rb +44 -0
  372. data/generated/google/apis/prediction_v1_5/classes.rb +708 -0
  373. data/generated/google/apis/prediction_v1_5/representations.rb +352 -0
  374. data/generated/google/apis/prediction_v1_5/service.rb +357 -0
  375. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  376. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +539 -539
  377. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +105 -105
  378. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +312 -312
  379. data/generated/google/apis/pubsub_v1.rb +4 -4
  380. data/generated/google/apis/pubsub_v1/classes.rb +352 -352
  381. data/generated/google/apis/pubsub_v1/representations.rb +77 -77
  382. data/generated/google/apis/pubsub_v1/service.rb +346 -346
  383. data/generated/google/apis/pubsub_v1beta1a.rb +37 -0
  384. data/generated/google/apis/pubsub_v1beta1a/classes.rb +605 -0
  385. data/generated/google/apis/pubsub_v1beta1a/representations.rb +306 -0
  386. data/generated/google/apis/pubsub_v1beta1a/service.rb +549 -0
  387. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  388. data/generated/google/apis/pubsub_v1beta2/classes.rb +679 -0
  389. data/generated/google/apis/pubsub_v1beta2/representations.rb +324 -0
  390. data/generated/google/apis/pubsub_v1beta2/service.rb +779 -0
  391. data/generated/google/apis/replicapool_v1beta1.rb +50 -0
  392. data/generated/google/apis/replicapool_v1beta1/classes.rb +918 -0
  393. data/generated/google/apis/replicapool_v1beta1/representations.rb +409 -0
  394. data/generated/google/apis/replicapool_v1beta1/service.rb +511 -0
  395. data/generated/google/apis/resourceviews_v1beta1.rb +50 -0
  396. data/generated/google/apis/resourceviews_v1beta1/classes.rb +338 -0
  397. data/generated/google/apis/resourceviews_v1beta1/representations.rb +201 -0
  398. data/generated/google/apis/resourceviews_v1beta1/service.rb +667 -0
  399. data/generated/google/apis/runtimeconfig_v1.rb +4 -4
  400. data/generated/google/apis/runtimeconfig_v1/classes.rb +118 -118
  401. data/generated/google/apis/runtimeconfig_v1/representations.rb +18 -18
  402. data/generated/google/apis/runtimeconfig_v1/service.rb +21 -21
  403. data/generated/google/apis/runtimeconfig_v1beta1.rb +40 -0
  404. data/generated/google/apis/runtimeconfig_v1beta1/classes.rb +805 -0
  405. data/generated/google/apis/runtimeconfig_v1beta1/representations.rb +280 -0
  406. data/generated/google/apis/runtimeconfig_v1beta1/service.rb +903 -0
  407. data/generated/google/apis/safebrowsing_v4.rb +32 -0
  408. data/generated/google/apis/safebrowsing_v4/classes.rb +771 -0
  409. data/generated/google/apis/safebrowsing_v4/representations.rb +379 -0
  410. data/generated/google/apis/safebrowsing_v4/service.rb +252 -0
  411. data/generated/google/apis/script_v1.rb +19 -19
  412. data/generated/google/apis/script_v1/classes.rb +99 -157
  413. data/generated/google/apis/script_v1/representations.rb +17 -47
  414. data/generated/google/apis/script_v1/service.rb +12 -12
  415. data/generated/google/apis/searchconsole_v1.rb +1 -1
  416. data/generated/google/apis/searchconsole_v1/classes.rb +84 -84
  417. data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
  418. data/generated/google/apis/servicecontrol_v1.rb +4 -4
  419. data/generated/google/apis/servicecontrol_v1/classes.rb +1086 -1042
  420. data/generated/google/apis/servicecontrol_v1/representations.rb +216 -200
  421. data/generated/google/apis/servicecontrol_v1/service.rb +120 -114
  422. data/generated/google/apis/servicemanagement_v1.rb +7 -7
  423. data/generated/google/apis/servicemanagement_v1/classes.rb +3375 -3383
  424. data/generated/google/apis/servicemanagement_v1/representations.rb +551 -552
  425. data/generated/google/apis/servicemanagement_v1/service.rb +386 -386
  426. data/generated/google/apis/serviceuser_v1.rb +5 -5
  427. data/generated/google/apis/serviceuser_v1/classes.rb +2667 -2598
  428. data/generated/google/apis/serviceuser_v1/representations.rb +406 -389
  429. data/generated/google/apis/serviceuser_v1/service.rb +43 -43
  430. data/generated/google/apis/sheets_v4.rb +7 -7
  431. data/generated/google/apis/sheets_v4/classes.rb +5031 -5024
  432. data/generated/google/apis/sheets_v4/representations.rb +931 -930
  433. data/generated/google/apis/sheets_v4/service.rb +244 -244
  434. data/generated/google/apis/slides_v1.rb +10 -10
  435. data/generated/google/apis/slides_v1/classes.rb +2915 -2915
  436. data/generated/google/apis/slides_v1/representations.rb +698 -698
  437. data/generated/google/apis/slides_v1/service.rb +35 -35
  438. data/generated/google/apis/sourcerepo_v1.rb +3 -3
  439. data/generated/google/apis/sourcerepo_v1/classes.rb +313 -313
  440. data/generated/google/apis/sourcerepo_v1/representations.rb +77 -77
  441. data/generated/google/apis/sourcerepo_v1/service.rb +102 -102
  442. data/generated/google/apis/spanner_v1.rb +4 -4
  443. data/generated/google/apis/spanner_v1/classes.rb +2304 -2251
  444. data/generated/google/apis/spanner_v1/representations.rb +338 -323
  445. data/generated/google/apis/spanner_v1/service.rb +689 -689
  446. data/generated/google/apis/spectrum_v1explorer.rb +31 -0
  447. data/generated/google/apis/spectrum_v1explorer/classes.rb +1612 -0
  448. data/generated/google/apis/spectrum_v1explorer/representations.rb +611 -0
  449. data/generated/google/apis/spectrum_v1explorer/service.rb +285 -0
  450. data/generated/google/apis/speech_v1.rb +34 -0
  451. data/generated/google/apis/speech_v1/classes.rb +572 -0
  452. data/generated/google/apis/speech_v1/representations.rb +236 -0
  453. data/generated/google/apis/speech_v1/service.rb +277 -0
  454. data/generated/google/apis/speech_v1beta1.rb +1 -1
  455. data/generated/google/apis/speech_v1beta1/classes.rb +312 -312
  456. data/generated/google/apis/speech_v1beta1/representations.rb +48 -48
  457. data/generated/google/apis/speech_v1beta1/service.rb +46 -46
  458. data/generated/google/apis/sqladmin_v1beta3.rb +38 -0
  459. data/generated/google/apis/sqladmin_v1beta3/classes.rb +1615 -0
  460. data/generated/google/apis/sqladmin_v1beta3/representations.rb +731 -0
  461. data/generated/google/apis/sqladmin_v1beta3/service.rb +1045 -0
  462. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  463. data/generated/google/apis/sqladmin_v1beta4/classes.rb +15 -7
  464. data/generated/google/apis/sqladmin_v1beta4/representations.rb +1 -0
  465. data/generated/google/apis/storage_v1.rb +1 -1
  466. data/generated/google/apis/storage_v1/classes.rb +7 -6
  467. data/generated/google/apis/storage_v1/service.rb +51 -29
  468. data/generated/google/apis/storage_v1beta1.rb +40 -0
  469. data/generated/google/apis/storage_v1beta1/classes.rb +616 -0
  470. data/generated/google/apis/storage_v1beta1/representations.rb +249 -0
  471. data/generated/google/apis/storage_v1beta1/service.rb +1082 -0
  472. data/generated/google/apis/storage_v1beta2.rb +40 -0
  473. data/generated/google/apis/storage_v1beta2/classes.rb +1048 -0
  474. data/generated/google/apis/storage_v1beta2/representations.rb +425 -0
  475. data/generated/google/apis/storage_v1beta2/service.rb +1736 -0
  476. data/generated/google/apis/storagetransfer_v1.rb +1 -1
  477. data/generated/google/apis/storagetransfer_v1/classes.rb +556 -556
  478. data/generated/google/apis/storagetransfer_v1/representations.rb +139 -139
  479. data/generated/google/apis/storagetransfer_v1/service.rb +148 -148
  480. data/generated/google/apis/streetviewpublish_v1.rb +36 -0
  481. data/generated/google/apis/streetviewpublish_v1/classes.rb +705 -0
  482. data/generated/google/apis/streetviewpublish_v1/representations.rb +296 -0
  483. data/generated/google/apis/streetviewpublish_v1/service.rb +485 -0
  484. data/generated/google/apis/taskqueue_v1beta1.rb +37 -0
  485. data/generated/google/apis/taskqueue_v1beta1/classes.rb +242 -0
  486. data/generated/google/apis/taskqueue_v1beta1/representations.rb +124 -0
  487. data/generated/google/apis/taskqueue_v1beta1/service.rb +269 -0
  488. data/generated/google/apis/toolresults_v1beta3.rb +1 -1
  489. data/generated/google/apis/toolresults_v1beta3/classes.rb +382 -4
  490. data/generated/google/apis/toolresults_v1beta3/representations.rb +139 -0
  491. data/generated/google/apis/toolresults_v1beta3/service.rb +50 -0
  492. data/generated/google/apis/toolresults_v1beta3firstparty.rb +31 -0
  493. data/generated/google/apis/toolresults_v1beta3firstparty/classes.rb +2630 -0
  494. data/generated/google/apis/toolresults_v1beta3firstparty/representations.rb +886 -0
  495. data/generated/google/apis/toolresults_v1beta3firstparty/service.rb +1288 -0
  496. data/generated/google/apis/translate_v2/classes.rb +111 -111
  497. data/generated/google/apis/translate_v2/representations.rb +49 -49
  498. data/generated/google/apis/translate_v2/service.rb +94 -94
  499. data/generated/google/apis/vault_v1.rb +31 -0
  500. data/generated/google/apis/vault_v1/classes.rb +554 -0
  501. data/generated/google/apis/vault_v1/representations.rb +318 -0
  502. data/generated/google/apis/vault_v1/service.rb +677 -0
  503. data/generated/google/apis/videointelligence_v1beta1.rb +34 -0
  504. data/generated/google/apis/videointelligence_v1beta1/classes.rb +903 -0
  505. data/generated/google/apis/videointelligence_v1beta1/representations.rb +351 -0
  506. data/generated/google/apis/videointelligence_v1beta1/service.rb +92 -0
  507. data/generated/google/apis/vision_v1.rb +4 -4
  508. data/generated/google/apis/vision_v1/classes.rb +1176 -1178
  509. data/generated/google/apis/vision_v1/representations.rb +235 -235
  510. data/generated/google/apis/webmasters_v3.rb +1 -1
  511. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  512. data/generated/google/apis/youtube_analytics_v1beta1.rb +46 -0
  513. data/generated/google/apis/youtube_analytics_v1beta1/classes.rb +337 -0
  514. data/generated/google/apis/youtube_analytics_v1beta1/representations.rb +174 -0
  515. data/generated/google/apis/youtube_analytics_v1beta1/service.rb +491 -0
  516. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  517. data/generated/google/apis/youtube_partner_v1/classes.rb +3 -3
  518. data/generated/google/apis/youtube_partner_v1/representations.rb +1 -1
  519. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  520. data/generated/google/apis/youtubereporting_v1/classes.rb +134 -134
  521. data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
  522. data/generated/google/apis/youtubereporting_v1/service.rb +131 -131
  523. data/lib/google/apis/version.rb +1 -1
  524. metadata +246 -2
@@ -47,10 +47,19 @@ module Google
47
47
  @batch_path = 'batch'
48
48
  end
49
49
 
50
- # Deletes an annotation. Caller must have WRITE permission for
51
- # the associated annotation set.
52
- # @param [String] annotation_id
53
- # The ID of the annotation to be deleted.
50
+ # Creates one or more new annotations atomically. All annotations must
51
+ # belong to the same annotation set. Caller must have WRITE
52
+ # permission for this annotation set. For optimal performance, batch
53
+ # positionally adjacent annotations together.
54
+ # If the request has a systemic issue, such as an attempt to write to
55
+ # an inaccessible annotation set, the entire RPC will fail accordingly. For
56
+ # lesser data issues, when possible an error will be isolated to the
57
+ # corresponding batch entry in the response; the remaining well formed
58
+ # annotations will be created normally.
59
+ # For details on the requirements for each individual annotation resource,
60
+ # see
61
+ # CreateAnnotation.
62
+ # @param [Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest] batch_create_annotations_request_object
54
63
  # @param [String] fields
55
64
  # Selector specifying which fields to include in a partial response.
56
65
  # @param [String] quota_user
@@ -60,19 +69,20 @@ module Google
60
69
  # Request-specific options
61
70
  #
62
71
  # @yield [result, err] Result & error if block supplied
63
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
72
+ # @yieldparam result [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse] parsed result object
64
73
  # @yieldparam err [StandardError] error object if request failed
65
74
  #
66
- # @return [Google::Apis::GenomicsV1::Empty]
75
+ # @return [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse]
67
76
  #
68
77
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
69
78
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70
79
  # @raise [Google::Apis::AuthorizationError] Authorization is required
71
- def delete_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block)
72
- command = make_simple_command(:delete, 'v1/annotations/{annotationId}', options)
73
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
74
- command.response_class = Google::Apis::GenomicsV1::Empty
75
- command.params['annotationId'] = annotation_id unless annotation_id.nil?
80
+ def batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
81
+ command = make_simple_command(:post, 'v1/annotations:batchCreate', options)
82
+ command.request_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest::Representation
83
+ command.request_object = batch_create_annotations_request_object
84
+ command.response_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse::Representation
85
+ command.response_class = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse
76
86
  command.query['fields'] = fields unless fields.nil?
77
87
  command.query['quotaUser'] = quota_user unless quota_user.nil?
78
88
  execute_or_queue_command(command, &block)
@@ -123,19 +133,10 @@ module Google
123
133
  execute_or_queue_command(command, &block)
124
134
  end
125
135
 
126
- # Creates one or more new annotations atomically. All annotations must
127
- # belong to the same annotation set. Caller must have WRITE
128
- # permission for this annotation set. For optimal performance, batch
129
- # positionally adjacent annotations together.
130
- # If the request has a systemic issue, such as an attempt to write to
131
- # an inaccessible annotation set, the entire RPC will fail accordingly. For
132
- # lesser data issues, when possible an error will be isolated to the
133
- # corresponding batch entry in the response; the remaining well formed
134
- # annotations will be created normally.
135
- # For details on the requirements for each individual annotation resource,
136
- # see
137
- # CreateAnnotation.
138
- # @param [Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest] batch_create_annotations_request_object
136
+ # Deletes an annotation. Caller must have WRITE permission for
137
+ # the associated annotation set.
138
+ # @param [String] annotation_id
139
+ # The ID of the annotation to be deleted.
139
140
  # @param [String] fields
140
141
  # Selector specifying which fields to include in a partial response.
141
142
  # @param [String] quota_user
@@ -145,33 +146,28 @@ module Google
145
146
  # Request-specific options
146
147
  #
147
148
  # @yield [result, err] Result & error if block supplied
148
- # @yieldparam result [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse] parsed result object
149
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
149
150
  # @yieldparam err [StandardError] error object if request failed
150
151
  #
151
- # @return [Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse]
152
+ # @return [Google::Apis::GenomicsV1::Empty]
152
153
  #
153
154
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
154
155
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
155
156
  # @raise [Google::Apis::AuthorizationError] Authorization is required
156
- def batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
157
- command = make_simple_command(:post, 'v1/annotations:batchCreate', options)
158
- command.request_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsRequest::Representation
159
- command.request_object = batch_create_annotations_request_object
160
- command.response_representation = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse::Representation
161
- command.response_class = Google::Apis::GenomicsV1::BatchCreateAnnotationsResponse
157
+ def delete_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block)
158
+ command = make_simple_command(:delete, 'v1/annotations/{annotationId}', options)
159
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
160
+ command.response_class = Google::Apis::GenomicsV1::Empty
161
+ command.params['annotationId'] = annotation_id unless annotation_id.nil?
162
162
  command.query['fields'] = fields unless fields.nil?
163
163
  command.query['quotaUser'] = quota_user unless quota_user.nil?
164
164
  execute_or_queue_command(command, &block)
165
165
  end
166
166
 
167
- # Searches for annotations that match the given criteria. Results are
168
- # ordered by genomic coordinate (by reference sequence, then position).
169
- # Annotations with equivalent genomic coordinates are returned in an
170
- # unspecified order. This order is consistent, such that two queries for the
171
- # same content (regardless of page size) yield annotations in the same order
172
- # across their respective streams of paginated responses. Caller must have
173
- # READ permission for the queried annotation sets.
174
- # @param [Google::Apis::GenomicsV1::SearchAnnotationsRequest] search_annotations_request_object
167
+ # Gets an annotation. Caller must have READ permission
168
+ # for the associated annotation set.
169
+ # @param [String] annotation_id
170
+ # The ID of the annotation to be retrieved.
175
171
  # @param [String] fields
176
172
  # Selector specifying which fields to include in a partial response.
177
173
  # @param [String] quota_user
@@ -181,29 +177,32 @@ module Google
181
177
  # Request-specific options
182
178
  #
183
179
  # @yield [result, err] Result & error if block supplied
184
- # @yieldparam result [Google::Apis::GenomicsV1::SearchAnnotationsResponse] parsed result object
180
+ # @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object
185
181
  # @yieldparam err [StandardError] error object if request failed
186
182
  #
187
- # @return [Google::Apis::GenomicsV1::SearchAnnotationsResponse]
183
+ # @return [Google::Apis::GenomicsV1::Annotation]
188
184
  #
189
185
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
186
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
187
  # @raise [Google::Apis::AuthorizationError] Authorization is required
192
- def search_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
193
- command = make_simple_command(:post, 'v1/annotations/search', options)
194
- command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationsRequest::Representation
195
- command.request_object = search_annotations_request_object
196
- command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationsResponse::Representation
197
- command.response_class = Google::Apis::GenomicsV1::SearchAnnotationsResponse
188
+ def get_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block)
189
+ command = make_simple_command(:get, 'v1/annotations/{annotationId}', options)
190
+ command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation
191
+ command.response_class = Google::Apis::GenomicsV1::Annotation
192
+ command.params['annotationId'] = annotation_id unless annotation_id.nil?
198
193
  command.query['fields'] = fields unless fields.nil?
199
194
  command.query['quotaUser'] = quota_user unless quota_user.nil?
200
195
  execute_or_queue_command(command, &block)
201
196
  end
202
197
 
203
- # Gets an annotation. Caller must have READ permission
204
- # for the associated annotation set.
205
- # @param [String] annotation_id
206
- # The ID of the annotation to be retrieved.
198
+ # Searches for annotations that match the given criteria. Results are
199
+ # ordered by genomic coordinate (by reference sequence, then position).
200
+ # Annotations with equivalent genomic coordinates are returned in an
201
+ # unspecified order. This order is consistent, such that two queries for the
202
+ # same content (regardless of page size) yield annotations in the same order
203
+ # across their respective streams of paginated responses. Caller must have
204
+ # READ permission for the queried annotation sets.
205
+ # @param [Google::Apis::GenomicsV1::SearchAnnotationsRequest] search_annotations_request_object
207
206
  # @param [String] fields
208
207
  # Selector specifying which fields to include in a partial response.
209
208
  # @param [String] quota_user
@@ -213,19 +212,20 @@ module Google
213
212
  # Request-specific options
214
213
  #
215
214
  # @yield [result, err] Result & error if block supplied
216
- # @yieldparam result [Google::Apis::GenomicsV1::Annotation] parsed result object
215
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchAnnotationsResponse] parsed result object
217
216
  # @yieldparam err [StandardError] error object if request failed
218
217
  #
219
- # @return [Google::Apis::GenomicsV1::Annotation]
218
+ # @return [Google::Apis::GenomicsV1::SearchAnnotationsResponse]
220
219
  #
221
220
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
222
221
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
223
222
  # @raise [Google::Apis::AuthorizationError] Authorization is required
224
- def get_annotation(annotation_id, fields: nil, quota_user: nil, options: nil, &block)
225
- command = make_simple_command(:get, 'v1/annotations/{annotationId}', options)
226
- command.response_representation = Google::Apis::GenomicsV1::Annotation::Representation
227
- command.response_class = Google::Apis::GenomicsV1::Annotation
228
- command.params['annotationId'] = annotation_id unless annotation_id.nil?
223
+ def search_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
224
+ command = make_simple_command(:post, 'v1/annotations/search', options)
225
+ command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationsRequest::Representation
226
+ command.request_object = search_annotations_request_object
227
+ command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationsResponse::Representation
228
+ command.response_class = Google::Apis::GenomicsV1::SearchAnnotationsResponse
229
229
  command.query['fields'] = fields unless fields.nil?
230
230
  command.query['quotaUser'] = quota_user unless quota_user.nil?
231
231
  execute_or_queue_command(command, &block)
@@ -273,13 +273,14 @@ module Google
273
273
  execute_or_queue_command(command, &block)
274
274
  end
275
275
 
276
- # Deletes a variant set including all variants, call sets, and calls within.
277
- # This is not reversible.
278
- # For the definitions of variant sets and other genomics resources, see
279
- # [Fundamentals of Google
280
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
281
- # @param [String] variant_set_id
282
- # The ID of the variant set to be deleted.
276
+ # Creates a new annotation set. Caller must have WRITE permission for the
277
+ # associated dataset.
278
+ # The following fields are required:
279
+ # * datasetId
280
+ # * referenceSetId
281
+ # All other fields may be optionally specified, unless documented as being
282
+ # server-generated (for example, the `id` field).
283
+ # @param [Google::Apis::GenomicsV1::AnnotationSet] annotation_set_object
283
284
  # @param [String] fields
284
285
  # Selector specifying which fields to include in a partial response.
285
286
  # @param [String] quota_user
@@ -289,32 +290,29 @@ module Google
289
290
  # Request-specific options
290
291
  #
291
292
  # @yield [result, err] Result & error if block supplied
292
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
293
+ # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
293
294
  # @yieldparam err [StandardError] error object if request failed
294
295
  #
295
- # @return [Google::Apis::GenomicsV1::Empty]
296
+ # @return [Google::Apis::GenomicsV1::AnnotationSet]
296
297
  #
297
298
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
298
299
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
299
300
  # @raise [Google::Apis::AuthorizationError] Authorization is required
300
- def delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block)
301
- command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', options)
302
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
303
- command.response_class = Google::Apis::GenomicsV1::Empty
304
- command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
301
+ def create_annotation_set(annotation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
302
+ command = make_simple_command(:post, 'v1/annotationsets', options)
303
+ command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
304
+ command.request_object = annotation_set_object
305
+ command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
306
+ command.response_class = Google::Apis::GenomicsV1::AnnotationSet
305
307
  command.query['fields'] = fields unless fields.nil?
306
308
  command.query['quotaUser'] = quota_user unless quota_user.nil?
307
309
  execute_or_queue_command(command, &block)
308
310
  end
309
311
 
310
- # Creates a new variant set.
311
- # For the definitions of variant sets and other genomics resources, see
312
- # [Fundamentals of Google
313
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
314
- # The provided variant set must have a valid `datasetId` set - all other
315
- # fields are optional. Note that the `id` field will be ignored, as this is
316
- # assigned by the server.
317
- # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object
312
+ # Deletes an annotation set. Caller must have WRITE permission
313
+ # for the associated annotation set.
314
+ # @param [String] annotation_set_id
315
+ # The ID of the annotation set to be deleted.
318
316
  # @param [String] fields
319
317
  # Selector specifying which fields to include in a partial response.
320
318
  # @param [String] quota_user
@@ -324,33 +322,28 @@ module Google
324
322
  # Request-specific options
325
323
  #
326
324
  # @yield [result, err] Result & error if block supplied
327
- # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
325
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
328
326
  # @yieldparam err [StandardError] error object if request failed
329
327
  #
330
- # @return [Google::Apis::GenomicsV1::VariantSet]
328
+ # @return [Google::Apis::GenomicsV1::Empty]
331
329
  #
332
330
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
333
331
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
334
332
  # @raise [Google::Apis::AuthorizationError] Authorization is required
335
- def create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
336
- command = make_simple_command(:post, 'v1/variantsets', options)
337
- command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation
338
- command.request_object = variant_set_object
339
- command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
340
- command.response_class = Google::Apis::GenomicsV1::VariantSet
333
+ def delete_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block)
334
+ command = make_simple_command(:delete, 'v1/annotationsets/{annotationSetId}', options)
335
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
336
+ command.response_class = Google::Apis::GenomicsV1::Empty
337
+ command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
341
338
  command.query['fields'] = fields unless fields.nil?
342
339
  command.query['quotaUser'] = quota_user unless quota_user.nil?
343
340
  execute_or_queue_command(command, &block)
344
341
  end
345
342
 
346
- # Exports variant set data to an external destination.
347
- # For the definitions of variant sets and other genomics resources, see
348
- # [Fundamentals of Google
349
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
350
- # @param [String] variant_set_id
351
- # Required. The ID of the variant set that contains variant data which
352
- # should be exported. The caller must have READ access to this variant set.
353
- # @param [Google::Apis::GenomicsV1::ExportVariantSetRequest] export_variant_set_request_object
343
+ # Gets an annotation set. Caller must have READ permission for
344
+ # the associated dataset.
345
+ # @param [String] annotation_set_id
346
+ # The ID of the annotation set to be retrieved.
354
347
  # @param [String] fields
355
348
  # Selector specifying which fields to include in a partial response.
356
349
  # @param [String] quota_user
@@ -360,34 +353,30 @@ module Google
360
353
  # Request-specific options
361
354
  #
362
355
  # @yield [result, err] Result & error if block supplied
363
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
356
+ # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
364
357
  # @yieldparam err [StandardError] error object if request failed
365
358
  #
366
- # @return [Google::Apis::GenomicsV1::Operation]
359
+ # @return [Google::Apis::GenomicsV1::AnnotationSet]
367
360
  #
368
361
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
369
362
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
370
363
  # @raise [Google::Apis::AuthorizationError] Authorization is required
371
- def export_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
372
- command = make_simple_command(:post, 'v1/variantsets/{variantSetId}:export', options)
373
- command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation
374
- command.request_object = export_variant_set_request_object
375
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
376
- command.response_class = Google::Apis::GenomicsV1::Operation
377
- command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
364
+ def get_annotation_set(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block)
365
+ command = make_simple_command(:get, 'v1/annotationsets/{annotationSetId}', options)
366
+ command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
367
+ command.response_class = Google::Apis::GenomicsV1::AnnotationSet
368
+ command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
378
369
  command.query['fields'] = fields unless fields.nil?
379
370
  command.query['quotaUser'] = quota_user unless quota_user.nil?
380
371
  execute_or_queue_command(command, &block)
381
372
  end
382
373
 
383
- # Returns a list of all variant sets matching search criteria.
384
- # For the definitions of variant sets and other genomics resources, see
385
- # [Fundamentals of Google
386
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
387
- # Implements
388
- # [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0.
389
- # 5.1/src/main/resources/avro/variantmethods.avdl#L49).
390
- # @param [Google::Apis::GenomicsV1::SearchVariantSetsRequest] search_variant_sets_request_object
374
+ # Searches for annotation sets that match the given criteria. Annotation sets
375
+ # are returned in an unspecified order. This order is consistent, such that
376
+ # two queries for the same content (regardless of page size) yield annotation
377
+ # sets in the same order across their respective streams of paginated
378
+ # responses. Caller must have READ permission for the queried datasets.
379
+ # @param [Google::Apis::GenomicsV1::SearchAnnotationSetsRequest] search_annotation_sets_request_object
391
380
  # @param [String] fields
392
381
  # Selector specifying which fields to include in a partial response.
393
382
  # @param [String] quota_user
@@ -397,31 +386,37 @@ module Google
397
386
  # Request-specific options
398
387
  #
399
388
  # @yield [result, err] Result & error if block supplied
400
- # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantSetsResponse] parsed result object
389
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchAnnotationSetsResponse] parsed result object
401
390
  # @yieldparam err [StandardError] error object if request failed
402
391
  #
403
- # @return [Google::Apis::GenomicsV1::SearchVariantSetsResponse]
392
+ # @return [Google::Apis::GenomicsV1::SearchAnnotationSetsResponse]
404
393
  #
405
394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
406
395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
407
396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
408
- def search_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
409
- command = make_simple_command(:post, 'v1/variantsets/search', options)
410
- command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation
411
- command.request_object = search_variant_sets_request_object
412
- command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation
413
- command.response_class = Google::Apis::GenomicsV1::SearchVariantSetsResponse
397
+ def search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
398
+ command = make_simple_command(:post, 'v1/annotationsets/search', options)
399
+ command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsRequest::Representation
400
+ command.request_object = search_annotation_sets_request_object
401
+ command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse::Representation
402
+ command.response_class = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse
414
403
  command.query['fields'] = fields unless fields.nil?
415
404
  command.query['quotaUser'] = quota_user unless quota_user.nil?
416
405
  execute_or_queue_command(command, &block)
417
406
  end
418
407
 
419
- # Gets a variant set by ID.
420
- # For the definitions of variant sets and other genomics resources, see
421
- # [Fundamentals of Google
422
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
423
- # @param [String] variant_set_id
424
- # Required. The ID of the variant set.
408
+ # Updates an annotation set. The update must respect all mutability
409
+ # restrictions and other invariants described on the annotation set resource.
410
+ # Caller must have WRITE permission for the associated dataset.
411
+ # @param [String] annotation_set_id
412
+ # The ID of the annotation set to be updated.
413
+ # @param [Google::Apis::GenomicsV1::AnnotationSet] annotation_set_object
414
+ # @param [String] update_mask
415
+ # An optional mask specifying which fields to update. Mutable fields are
416
+ # name,
417
+ # source_uri, and
418
+ # info. If unspecified, all
419
+ # mutable fields will be updated.
425
420
  # @param [String] fields
426
421
  # Selector specifying which fields to include in a partial response.
427
422
  # @param [String] quota_user
@@ -431,38 +426,32 @@ module Google
431
426
  # Request-specific options
432
427
  #
433
428
  # @yield [result, err] Result & error if block supplied
434
- # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
429
+ # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
435
430
  # @yieldparam err [StandardError] error object if request failed
436
431
  #
437
- # @return [Google::Apis::GenomicsV1::VariantSet]
432
+ # @return [Google::Apis::GenomicsV1::AnnotationSet]
438
433
  #
439
434
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
440
435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
441
436
  # @raise [Google::Apis::AuthorizationError] Authorization is required
442
- def get_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block)
443
- command = make_simple_command(:get, 'v1/variantsets/{variantSetId}', options)
444
- command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
445
- command.response_class = Google::Apis::GenomicsV1::VariantSet
446
- command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
437
+ def update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
438
+ command = make_simple_command(:put, 'v1/annotationsets/{annotationSetId}', options)
439
+ command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
440
+ command.request_object = annotation_set_object
441
+ command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
442
+ command.response_class = Google::Apis::GenomicsV1::AnnotationSet
443
+ command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
444
+ command.query['updateMask'] = update_mask unless update_mask.nil?
447
445
  command.query['fields'] = fields unless fields.nil?
448
446
  command.query['quotaUser'] = quota_user unless quota_user.nil?
449
447
  execute_or_queue_command(command, &block)
450
448
  end
451
449
 
452
- # Updates a variant set using patch semantics.
453
- # For the definitions of variant sets and other genomics resources, see
450
+ # Creates a new call set.
451
+ # For the definitions of call sets and other genomics resources, see
454
452
  # [Fundamentals of Google
455
453
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
456
- # @param [String] variant_set_id
457
- # The ID of the variant to be updated (must already exist).
458
- # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object
459
- # @param [String] update_mask
460
- # An optional mask specifying which fields to update. Supported fields:
461
- # * metadata.
462
- # * name.
463
- # * description.
464
- # Leaving `updateMask` unset is equivalent to specifying all mutable
465
- # fields.
454
+ # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
466
455
  # @param [String] fields
467
456
  # Selector specifying which fields to include in a partial response.
468
457
  # @param [String] quota_user
@@ -472,34 +461,31 @@ module Google
472
461
  # Request-specific options
473
462
  #
474
463
  # @yield [result, err] Result & error if block supplied
475
- # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
464
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
476
465
  # @yieldparam err [StandardError] error object if request failed
477
466
  #
478
- # @return [Google::Apis::GenomicsV1::VariantSet]
467
+ # @return [Google::Apis::GenomicsV1::CallSet]
479
468
  #
480
469
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
481
470
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
482
471
  # @raise [Google::Apis::AuthorizationError] Authorization is required
483
- def patch_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
484
- command = make_simple_command(:patch, 'v1/variantsets/{variantSetId}', options)
485
- command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation
486
- command.request_object = variant_set_object
487
- command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
488
- command.response_class = Google::Apis::GenomicsV1::VariantSet
489
- command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
490
- command.query['updateMask'] = update_mask unless update_mask.nil?
472
+ def create_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
473
+ command = make_simple_command(:post, 'v1/callsets', options)
474
+ command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
475
+ command.request_object = call_set_object
476
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
477
+ command.response_class = Google::Apis::GenomicsV1::CallSet
491
478
  command.query['fields'] = fields unless fields.nil?
492
479
  command.query['quotaUser'] = quota_user unless quota_user.nil?
493
480
  execute_or_queue_command(command, &block)
494
481
  end
495
482
 
496
- # Starts asynchronous cancellation on a long-running operation. The server makes
497
- # a best effort to cancel the operation, but success is not guaranteed. Clients
498
- # may use Operations.GetOperation or Operations.ListOperations to check whether
499
- # the cancellation succeeded or the operation completed despite cancellation.
500
- # @param [String] name
501
- # The name of the operation resource to be cancelled.
502
- # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object
483
+ # Deletes a call set.
484
+ # For the definitions of call sets and other genomics resources, see
485
+ # [Fundamentals of Google
486
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
487
+ # @param [String] call_set_id
488
+ # The ID of the call set to be deleted.
503
489
  # @param [String] fields
504
490
  # Selector specifying which fields to include in a partial response.
505
491
  # @param [String] quota_user
@@ -517,23 +503,22 @@ module Google
517
503
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
518
504
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
519
505
  # @raise [Google::Apis::AuthorizationError] Authorization is required
520
- def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
521
- command = make_simple_command(:post, 'v1/{+name}:cancel', options)
522
- command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation
523
- command.request_object = cancel_operation_request_object
506
+ def delete_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
507
+ command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options)
524
508
  command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
525
509
  command.response_class = Google::Apis::GenomicsV1::Empty
526
- command.params['name'] = name unless name.nil?
510
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
527
511
  command.query['fields'] = fields unless fields.nil?
528
512
  command.query['quotaUser'] = quota_user unless quota_user.nil?
529
513
  execute_or_queue_command(command, &block)
530
514
  end
531
515
 
532
- # Gets the latest state of a long-running operation. Clients can use this
533
- # method to poll the operation result at intervals as recommended by the API
534
- # service.
535
- # @param [String] name
536
- # The name of the operation resource.
516
+ # Gets a call set by ID.
517
+ # For the definitions of call sets and other genomics resources, see
518
+ # [Fundamentals of Google
519
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
520
+ # @param [String] call_set_id
521
+ # The ID of the call set.
537
522
  # @param [String] fields
538
523
  # Selector specifying which fields to include in a partial response.
539
524
  # @param [String] quota_user
@@ -543,49 +528,37 @@ module Google
543
528
  # Request-specific options
544
529
  #
545
530
  # @yield [result, err] Result & error if block supplied
546
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
531
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
547
532
  # @yieldparam err [StandardError] error object if request failed
548
533
  #
549
- # @return [Google::Apis::GenomicsV1::Operation]
534
+ # @return [Google::Apis::GenomicsV1::CallSet]
550
535
  #
551
536
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
552
537
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
553
538
  # @raise [Google::Apis::AuthorizationError] Authorization is required
554
- def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
555
- command = make_simple_command(:get, 'v1/{+name}', options)
556
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
557
- command.response_class = Google::Apis::GenomicsV1::Operation
558
- command.params['name'] = name unless name.nil?
539
+ def get_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
540
+ command = make_simple_command(:get, 'v1/callsets/{callSetId}', options)
541
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
542
+ command.response_class = Google::Apis::GenomicsV1::CallSet
543
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
559
544
  command.query['fields'] = fields unless fields.nil?
560
545
  command.query['quotaUser'] = quota_user unless quota_user.nil?
561
546
  execute_or_queue_command(command, &block)
562
547
  end
563
548
 
564
- # Lists operations that match the specified filter in the request.
565
- # @param [String] name
566
- # The name of the operation's parent resource.
567
- # @param [String] page_token
568
- # The standard list page token.
569
- # @param [Fixnum] page_size
570
- # The maximum number of results to return. If unspecified, defaults to
571
- # 256. The maximum value is 2048.
572
- # @param [String] filter
573
- # A string for filtering Operations.
574
- # The following filter fields are supported:
575
- # * projectId: Required. Corresponds to
576
- # OperationMetadata.projectId.
577
- # * createTime: The time this job was created, in seconds from the
578
- # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=`
579
- # operators.
580
- # * status&#58; Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only
581
- # one status may be specified.
582
- # * labels.key where key is a label key.
583
- # Examples&#58;
584
- # * `projectId = my-project AND createTime >= 1432140000`
585
- # * `projectId = my-project AND createTime >= 1432140000 AND createTime <=
586
- # 1432150000 AND status = RUNNING`
587
- # * `projectId = my-project AND labels.color = *`
588
- # * `projectId = my-project AND labels.color = red`
549
+ # Updates a call set.
550
+ # For the definitions of call sets and other genomics resources, see
551
+ # [Fundamentals of Google
552
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
553
+ # This method supports patch semantics.
554
+ # @param [String] call_set_id
555
+ # The ID of the call set to be updated.
556
+ # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
557
+ # @param [String] update_mask
558
+ # An optional mask specifying which fields to update. At this time, the only
559
+ # mutable field is name. The only
560
+ # acceptable value is "name". If unspecified, all mutable fields will be
561
+ # updated.
589
562
  # @param [String] fields
590
563
  # Selector specifying which fields to include in a partial response.
591
564
  # @param [String] quota_user
@@ -595,35 +568,35 @@ module Google
595
568
  # Request-specific options
596
569
  #
597
570
  # @yield [result, err] Result & error if block supplied
598
- # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object
571
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
599
572
  # @yieldparam err [StandardError] error object if request failed
600
573
  #
601
- # @return [Google::Apis::GenomicsV1::ListOperationsResponse]
574
+ # @return [Google::Apis::GenomicsV1::CallSet]
602
575
  #
603
576
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
604
577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
605
578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
606
- def list_operations(name, page_token: nil, page_size: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
607
- command = make_simple_command(:get, 'v1/{+name}', options)
608
- command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation
609
- command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse
610
- command.params['name'] = name unless name.nil?
611
- command.query['pageToken'] = page_token unless page_token.nil?
612
- command.query['pageSize'] = page_size unless page_size.nil?
613
- command.query['filter'] = filter unless filter.nil?
579
+ def patch_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
580
+ command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options)
581
+ command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
582
+ command.request_object = call_set_object
583
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
584
+ command.response_class = Google::Apis::GenomicsV1::CallSet
585
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
586
+ command.query['updateMask'] = update_mask unless update_mask.nil?
614
587
  command.query['fields'] = fields unless fields.nil?
615
588
  command.query['quotaUser'] = quota_user unless quota_user.nil?
616
589
  execute_or_queue_command(command, &block)
617
590
  end
618
591
 
619
- # Searches for reference sets which match the given criteria.
620
- # For the definitions of references and other genomics resources, see
592
+ # Gets a list of call sets matching the criteria.
593
+ # For the definitions of call sets and other genomics resources, see
621
594
  # [Fundamentals of Google
622
595
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
623
596
  # Implements
624
- # [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/schemas/blob/
625
- # v0.5.1/src/main/resources/avro/referencemethods.avdl#L71)
626
- # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object
597
+ # [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.
598
+ # 1/src/main/resources/avro/variantmethods.avdl#L178).
599
+ # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object
627
600
  # @param [String] fields
628
601
  # Selector specifying which fields to include in a partial response.
629
602
  # @param [String] quota_user
@@ -633,34 +606,30 @@ module Google
633
606
  # Request-specific options
634
607
  #
635
608
  # @yield [result, err] Result & error if block supplied
636
- # @yieldparam result [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] parsed result object
609
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchCallSetsResponse] parsed result object
637
610
  # @yieldparam err [StandardError] error object if request failed
638
611
  #
639
- # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse]
612
+ # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse]
640
613
  #
641
614
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
642
615
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
643
616
  # @raise [Google::Apis::AuthorizationError] Authorization is required
644
- def search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
645
- command = make_simple_command(:post, 'v1/referencesets/search', options)
646
- command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation
647
- command.request_object = search_reference_sets_request_object
648
- command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation
649
- command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse
617
+ def search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
618
+ command = make_simple_command(:post, 'v1/callsets/search', options)
619
+ command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation
620
+ command.request_object = search_call_sets_request_object
621
+ command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation
622
+ command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse
650
623
  command.query['fields'] = fields unless fields.nil?
651
624
  command.query['quotaUser'] = quota_user unless quota_user.nil?
652
625
  execute_or_queue_command(command, &block)
653
626
  end
654
627
 
655
- # Gets a reference set.
656
- # For the definitions of references and other genomics resources, see
628
+ # Creates a new dataset.
629
+ # For the definitions of datasets and other genomics resources, see
657
630
  # [Fundamentals of Google
658
631
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
659
- # Implements
660
- # [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5.
661
- # 1/src/main/resources/avro/referencemethods.avdl#L83).
662
- # @param [String] reference_set_id
663
- # The ID of the reference set.
632
+ # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
664
633
  # @param [String] fields
665
634
  # Selector specifying which fields to include in a partial response.
666
635
  # @param [String] quota_user
@@ -670,32 +639,36 @@ module Google
670
639
  # Request-specific options
671
640
  #
672
641
  # @yield [result, err] Result & error if block supplied
673
- # @yieldparam result [Google::Apis::GenomicsV1::ReferenceSet] parsed result object
642
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
674
643
  # @yieldparam err [StandardError] error object if request failed
675
644
  #
676
- # @return [Google::Apis::GenomicsV1::ReferenceSet]
645
+ # @return [Google::Apis::GenomicsV1::Dataset]
677
646
  #
678
647
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
679
648
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
680
649
  # @raise [Google::Apis::AuthorizationError] Authorization is required
681
- def get_reference_set(reference_set_id, fields: nil, quota_user: nil, options: nil, &block)
682
- command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', options)
683
- command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation
684
- command.response_class = Google::Apis::GenomicsV1::ReferenceSet
685
- command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil?
650
+ def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
651
+ command = make_simple_command(:post, 'v1/datasets', options)
652
+ command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
653
+ command.request_object = dataset_object
654
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
655
+ command.response_class = Google::Apis::GenomicsV1::Dataset
686
656
  command.query['fields'] = fields unless fields.nil?
687
657
  command.query['quotaUser'] = quota_user unless quota_user.nil?
688
658
  execute_or_queue_command(command, &block)
689
659
  end
690
660
 
691
- # Searches for read group sets matching the criteria.
692
- # For the definitions of read group sets and other genomics resources, see
661
+ # Deletes a dataset and all of its contents (all read group sets,
662
+ # reference sets, variant sets, call sets, annotation sets, etc.)
663
+ # This is reversible (up to one week after the deletion) via
664
+ # the
665
+ # datasets.undelete
666
+ # operation.
667
+ # For the definitions of datasets and other genomics resources, see
693
668
  # [Fundamentals of Google
694
669
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
695
- # Implements
696
- # [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/
697
- # v0.5.1/src/main/resources/avro/readmethods.avdl#L135).
698
- # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object
670
+ # @param [String] dataset_id
671
+ # The ID of the dataset to be deleted.
699
672
  # @param [String] fields
700
673
  # Selector specifying which fields to include in a partial response.
701
674
  # @param [String] quota_user
@@ -705,31 +678,30 @@ module Google
705
678
  # Request-specific options
706
679
  #
707
680
  # @yield [result, err] Result & error if block supplied
708
- # @yieldparam result [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] parsed result object
681
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
709
682
  # @yieldparam err [StandardError] error object if request failed
710
683
  #
711
- # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse]
684
+ # @return [Google::Apis::GenomicsV1::Empty]
712
685
  #
713
686
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
714
687
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
715
688
  # @raise [Google::Apis::AuthorizationError] Authorization is required
716
- def search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
717
- command = make_simple_command(:post, 'v1/readgroupsets/search', options)
718
- command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation
719
- command.request_object = search_read_group_sets_request_object
720
- command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation
721
- command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse
689
+ def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
690
+ command = make_simple_command(:delete, 'v1/datasets/{datasetId}', options)
691
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
692
+ command.response_class = Google::Apis::GenomicsV1::Empty
693
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
722
694
  command.query['fields'] = fields unless fields.nil?
723
695
  command.query['quotaUser'] = quota_user unless quota_user.nil?
724
696
  execute_or_queue_command(command, &block)
725
697
  end
726
698
 
727
- # Gets a read group set by ID.
728
- # For the definitions of read group sets and other genomics resources, see
699
+ # Gets a dataset by ID.
700
+ # For the definitions of datasets and other genomics resources, see
729
701
  # [Fundamentals of Google
730
702
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
731
- # @param [String] read_group_set_id
732
- # The ID of the read group set.
703
+ # @param [String] dataset_id
704
+ # The ID of the dataset.
733
705
  # @param [String] fields
734
706
  # Selector specifying which fields to include in a partial response.
735
707
  # @param [String] quota_user
@@ -739,39 +711,35 @@ module Google
739
711
  # Request-specific options
740
712
  #
741
713
  # @yield [result, err] Result & error if block supplied
742
- # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
714
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
743
715
  # @yieldparam err [StandardError] error object if request failed
744
716
  #
745
- # @return [Google::Apis::GenomicsV1::ReadGroupSet]
717
+ # @return [Google::Apis::GenomicsV1::Dataset]
746
718
  #
747
719
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
748
720
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
749
721
  # @raise [Google::Apis::AuthorizationError] Authorization is required
750
- def get_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
751
- command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options)
752
- command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
753
- command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
754
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
722
+ def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
723
+ command = make_simple_command(:get, 'v1/datasets/{datasetId}', options)
724
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
725
+ command.response_class = Google::Apis::GenomicsV1::Dataset
726
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
755
727
  command.query['fields'] = fields unless fields.nil?
756
728
  command.query['quotaUser'] = quota_user unless quota_user.nil?
757
729
  execute_or_queue_command(command, &block)
758
730
  end
759
731
 
760
- # Updates a read group set.
761
- # For the definitions of read group sets and other genomics resources, see
762
- # [Fundamentals of Google
763
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
764
- # This method supports patch semantics.
765
- # @param [String] read_group_set_id
766
- # The ID of the read group set to be updated. The caller must have WRITE
767
- # permissions to the dataset associated with this read group set.
768
- # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object
769
- # @param [String] update_mask
770
- # An optional mask specifying which fields to update. Supported fields:
771
- # * name.
772
- # * referenceSetId.
773
- # Leaving `updateMask` unset is equivalent to specifying all mutable
774
- # fields.
732
+ # Gets the access control policy for the dataset. This is empty if the
733
+ # policy or resource does not exist.
734
+ # See <a href="/iam/docs/managing-policies#getting_a_policy">Getting a
735
+ # Policy</a> for more information.
736
+ # For the definitions of datasets and other genomics resources, see
737
+ # [Fundamentals of Google
738
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
739
+ # @param [String] resource
740
+ # REQUIRED: The resource for which policy is being specified. Format is
741
+ # `datasets/<dataset ID>`.
742
+ # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object
775
743
  # @param [String] fields
776
744
  # Selector specifying which fields to include in a partial response.
777
745
  # @param [String] quota_user
@@ -781,42 +749,39 @@ module Google
781
749
  # Request-specific options
782
750
  #
783
751
  # @yield [result, err] Result & error if block supplied
784
- # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
752
+ # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
785
753
  # @yieldparam err [StandardError] error object if request failed
786
754
  #
787
- # @return [Google::Apis::GenomicsV1::ReadGroupSet]
755
+ # @return [Google::Apis::GenomicsV1::Policy]
788
756
  #
789
757
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
790
758
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
791
759
  # @raise [Google::Apis::AuthorizationError] Authorization is required
792
- def patch_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
793
- command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options)
794
- command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
795
- command.request_object = read_group_set_object
796
- command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
797
- command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
798
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
799
- command.query['updateMask'] = update_mask unless update_mask.nil?
760
+ def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
761
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
762
+ command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation
763
+ command.request_object = get_iam_policy_request_object
764
+ command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
765
+ command.response_class = Google::Apis::GenomicsV1::Policy
766
+ command.params['resource'] = resource unless resource.nil?
800
767
  command.query['fields'] = fields unless fields.nil?
801
768
  command.query['quotaUser'] = quota_user unless quota_user.nil?
802
769
  execute_or_queue_command(command, &block)
803
770
  end
804
771
 
805
- # Creates read group sets by asynchronously importing the provided
806
- # information.
807
- # For the definitions of read group sets and other genomics resources, see
772
+ # Lists datasets within a project.
773
+ # For the definitions of datasets and other genomics resources, see
808
774
  # [Fundamentals of Google
809
775
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
810
- # The caller must have WRITE permissions to the dataset.
811
- # ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import
812
- # - Tags will be converted to strings - tag types are not preserved
813
- # - Comments (`@CO`) in the input file header will not be preserved
814
- # - Original header order of references (`@SQ`) will not be preserved
815
- # - Any reverse stranded unmapped reads will be reverse complemented, and
816
- # their qualities (also the "BQ" and "OQ" tags, if any) will be reversed
817
- # - Unmapped reads will be stripped of positional information (reference name
818
- # and position)
819
- # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object
776
+ # @param [Fixnum] page_size
777
+ # The maximum number of results to return in a single page. If unspecified,
778
+ # defaults to 50. The maximum value is 1024.
779
+ # @param [String] page_token
780
+ # The continuation token, which is used to page through large result sets.
781
+ # To get the next page of results, set this parameter to the value of
782
+ # `nextPageToken` from the previous response.
783
+ # @param [String] project_id
784
+ # Required. The Google Cloud project ID to list datasets for.
820
785
  # @param [String] fields
821
786
  # Selector specifying which fields to include in a partial response.
822
787
  # @param [String] quota_user
@@ -826,32 +791,39 @@ module Google
826
791
  # Request-specific options
827
792
  #
828
793
  # @yield [result, err] Result & error if block supplied
829
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
794
+ # @yieldparam result [Google::Apis::GenomicsV1::ListDatasetsResponse] parsed result object
830
795
  # @yieldparam err [StandardError] error object if request failed
831
796
  #
832
- # @return [Google::Apis::GenomicsV1::Operation]
797
+ # @return [Google::Apis::GenomicsV1::ListDatasetsResponse]
833
798
  #
834
799
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
835
800
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
836
801
  # @raise [Google::Apis::AuthorizationError] Authorization is required
837
- def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
838
- command = make_simple_command(:post, 'v1/readgroupsets:import', options)
839
- command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation
840
- command.request_object = import_read_group_sets_request_object
841
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
842
- command.response_class = Google::Apis::GenomicsV1::Operation
802
+ def list_datasets(page_size: nil, page_token: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
803
+ command = make_simple_command(:get, 'v1/datasets', options)
804
+ command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation
805
+ command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse
806
+ command.query['pageSize'] = page_size unless page_size.nil?
807
+ command.query['pageToken'] = page_token unless page_token.nil?
808
+ command.query['projectId'] = project_id unless project_id.nil?
843
809
  command.query['fields'] = fields unless fields.nil?
844
810
  command.query['quotaUser'] = quota_user unless quota_user.nil?
845
811
  execute_or_queue_command(command, &block)
846
812
  end
847
813
 
848
- # Deletes a read group set.
849
- # For the definitions of read group sets and other genomics resources, see
814
+ # Updates a dataset.
815
+ # For the definitions of datasets and other genomics resources, see
850
816
  # [Fundamentals of Google
851
817
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
852
- # @param [String] read_group_set_id
853
- # The ID of the read group set to be deleted. The caller must have WRITE
854
- # permissions to the dataset associated with this read group set.
818
+ # This method supports patch semantics.
819
+ # @param [String] dataset_id
820
+ # The ID of the dataset to be updated.
821
+ # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
822
+ # @param [String] update_mask
823
+ # An optional mask specifying which fields to update. At this time, the only
824
+ # mutable field is name. The only
825
+ # acceptable value is "name". If unspecified, all mutable fields will be
826
+ # updated.
855
827
  # @param [String] fields
856
828
  # Selector specifying which fields to include in a partial response.
857
829
  # @param [String] quota_user
@@ -861,36 +833,38 @@ module Google
861
833
  # Request-specific options
862
834
  #
863
835
  # @yield [result, err] Result & error if block supplied
864
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
836
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
865
837
  # @yieldparam err [StandardError] error object if request failed
866
838
  #
867
- # @return [Google::Apis::GenomicsV1::Empty]
839
+ # @return [Google::Apis::GenomicsV1::Dataset]
868
840
  #
869
841
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
870
842
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
871
843
  # @raise [Google::Apis::AuthorizationError] Authorization is required
872
- def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
873
- command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options)
874
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
875
- command.response_class = Google::Apis::GenomicsV1::Empty
876
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
844
+ def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
845
+ command = make_simple_command(:patch, 'v1/datasets/{datasetId}', options)
846
+ command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
847
+ command.request_object = dataset_object
848
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
849
+ command.response_class = Google::Apis::GenomicsV1::Dataset
850
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
851
+ command.query['updateMask'] = update_mask unless update_mask.nil?
877
852
  command.query['fields'] = fields unless fields.nil?
878
853
  command.query['quotaUser'] = quota_user unless quota_user.nil?
879
854
  execute_or_queue_command(command, &block)
880
855
  end
881
856
 
882
- # Exports a read group set to a BAM file in Google Cloud Storage.
883
- # For the definitions of read group sets and other genomics resources, see
857
+ # Sets the access control policy on the specified dataset. Replaces any
858
+ # existing policy.
859
+ # For the definitions of datasets and other genomics resources, see
884
860
  # [Fundamentals of Google
885
861
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
886
- # Note that currently there may be some differences between exported BAM
887
- # files and the original BAM file at the time of import. See
888
- # ImportReadGroupSets
889
- # for caveats.
890
- # @param [String] read_group_set_id
891
- # Required. The ID of the read group set to export. The caller must have
892
- # READ access to this read group set.
893
- # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object
862
+ # See <a href="/iam/docs/managing-policies#setting_a_policy">Setting a
863
+ # Policy</a> for more information.
864
+ # @param [String] resource
865
+ # REQUIRED: The resource for which policy is being specified. Format is
866
+ # `datasets/<dataset ID>`.
867
+ # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object
894
868
  # @param [String] fields
895
869
  # Selector specifying which fields to include in a partial response.
896
870
  # @param [String] quota_user
@@ -900,64 +874,36 @@ module Google
900
874
  # Request-specific options
901
875
  #
902
876
  # @yield [result, err] Result & error if block supplied
903
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
877
+ # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
904
878
  # @yieldparam err [StandardError] error object if request failed
905
879
  #
906
- # @return [Google::Apis::GenomicsV1::Operation]
880
+ # @return [Google::Apis::GenomicsV1::Policy]
907
881
  #
908
882
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
909
883
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
910
884
  # @raise [Google::Apis::AuthorizationError] Authorization is required
911
- def export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
912
- command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options)
913
- command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation
914
- command.request_object = export_read_group_set_request_object
915
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
916
- command.response_class = Google::Apis::GenomicsV1::Operation
917
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
885
+ def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
886
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
887
+ command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation
888
+ command.request_object = set_iam_policy_request_object
889
+ command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
890
+ command.response_class = Google::Apis::GenomicsV1::Policy
891
+ command.params['resource'] = resource unless resource.nil?
918
892
  command.query['fields'] = fields unless fields.nil?
919
893
  command.query['quotaUser'] = quota_user unless quota_user.nil?
920
894
  execute_or_queue_command(command, &block)
921
895
  end
922
896
 
923
- # Lists fixed width coverage buckets for a read group set, each of which
924
- # correspond to a range of a reference sequence. Each bucket summarizes
925
- # coverage information across its corresponding genomic range.
926
- # For the definitions of read group sets and other genomics resources, see
897
+ # Returns permissions that a caller has on the specified resource.
898
+ # See <a href="/iam/docs/managing-policies#testing_permissions">Testing
899
+ # Permissions</a> for more information.
900
+ # For the definitions of datasets and other genomics resources, see
927
901
  # [Fundamentals of Google
928
902
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
929
- # Coverage is defined as the number of reads which are aligned to a given
930
- # base in the reference sequence. Coverage buckets are available at several
931
- # precomputed bucket widths, enabling retrieval of various coverage 'zoom
932
- # levels'. The caller must have READ permissions for the target read group
933
- # set.
934
- # @param [String] read_group_set_id
935
- # Required. The ID of the read group set over which coverage is requested.
936
- # @param [Fixnum] end_
937
- # The end position of the range on the reference, 0-based exclusive. If
938
- # specified, `referenceName` must also be specified. If unset or 0, defaults
939
- # to the length of the reference.
940
- # @param [String] page_token
941
- # The continuation token, which is used to page through large result sets.
942
- # To get the next page of results, set this parameter to the value of
943
- # `nextPageToken` from the previous response.
944
- # @param [Fixnum] page_size
945
- # The maximum number of results to return in a single page. If unspecified,
946
- # defaults to 1024. The maximum value is 2048.
947
- # @param [Fixnum] start
948
- # The start position of the range on the reference, 0-based inclusive. If
949
- # specified, `referenceName` must also be specified. Defaults to 0.
950
- # @param [Fixnum] target_bucket_width
951
- # The desired width of each reported coverage bucket in base pairs. This
952
- # will be rounded down to the nearest precomputed bucket width; the value
953
- # of which is returned as `bucketWidth` in the response. Defaults
954
- # to infinity (each bucket spans an entire reference sequence) or the length
955
- # of the target range, if specified. The smallest precomputed
956
- # `bucketWidth` is currently 2048 base pairs; this is subject to
957
- # change.
958
- # @param [String] reference_name
959
- # The name of the reference to query, within the reference set associated
960
- # with this query. Optional.
903
+ # @param [String] resource
904
+ # REQUIRED: The resource for which policy is being specified. Format is
905
+ # `datasets/<dataset ID>`.
906
+ # @param [Google::Apis::GenomicsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
961
907
  # @param [String] fields
962
908
  # Selector specifying which fields to include in a partial response.
963
909
  # @param [String] quota_user
@@ -967,51 +913,34 @@ module Google
967
913
  # Request-specific options
968
914
  #
969
915
  # @yield [result, err] Result & error if block supplied
970
- # @yieldparam result [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] parsed result object
916
+ # @yieldparam result [Google::Apis::GenomicsV1::TestIamPermissionsResponse] parsed result object
971
917
  # @yieldparam err [StandardError] error object if request failed
972
918
  #
973
- # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse]
919
+ # @return [Google::Apis::GenomicsV1::TestIamPermissionsResponse]
974
920
  #
975
921
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
976
922
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
977
923
  # @raise [Google::Apis::AuthorizationError] Authorization is required
978
- def list_coverage_buckets(read_group_set_id, end_: nil, page_token: nil, page_size: nil, start: nil, target_bucket_width: nil, reference_name: nil, fields: nil, quota_user: nil, options: nil, &block)
979
- command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options)
980
- command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation
981
- command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse
982
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
983
- command.query['end'] = end_ unless end_.nil?
984
- command.query['pageToken'] = page_token unless page_token.nil?
985
- command.query['pageSize'] = page_size unless page_size.nil?
986
- command.query['start'] = start unless start.nil?
987
- command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil?
988
- command.query['referenceName'] = reference_name unless reference_name.nil?
924
+ def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
925
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
926
+ command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation
927
+ command.request_object = test_iam_permissions_request_object
928
+ command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation
929
+ command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse
930
+ command.params['resource'] = resource unless resource.nil?
989
931
  command.query['fields'] = fields unless fields.nil?
990
932
  command.query['quotaUser'] = quota_user unless quota_user.nil?
991
933
  execute_or_queue_command(command, &block)
992
934
  end
993
935
 
994
- # Gets a list of reads for one or more read group sets.
995
- # For the definitions of read group sets and other genomics resources, see
936
+ # Undeletes a dataset by restoring a dataset which was deleted via this API.
937
+ # For the definitions of datasets and other genomics resources, see
996
938
  # [Fundamentals of Google
997
939
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
998
- # Reads search operates over a genomic coordinate space of reference sequence
999
- # & position defined over the reference sequences to which the requested
1000
- # read group sets are aligned.
1001
- # If a target positional range is specified, search returns all reads whose
1002
- # alignment to the reference genome overlap the range. A query which
1003
- # specifies only read group set IDs yields all reads in those read group
1004
- # sets, including unmapped reads.
1005
- # All reads returned (including reads on subsequent pages) are ordered by
1006
- # genomic coordinate (by reference sequence, then position). Reads with
1007
- # equivalent genomic coordinates are returned in an unspecified order. This
1008
- # order is consistent, such that two queries for the same content (regardless
1009
- # of page size) yield reads in the same order across their respective streams
1010
- # of paginated responses.
1011
- # Implements
1012
- # [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/
1013
- # src/main/resources/avro/readmethods.avdl#L85).
1014
- # @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object
940
+ # This operation is only possible for a week after the deletion occurred.
941
+ # @param [String] dataset_id
942
+ # The ID of the dataset to be undeleted.
943
+ # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object
1015
944
  # @param [String] fields
1016
945
  # Selector specifying which fields to include in a partial response.
1017
946
  # @param [String] quota_user
@@ -1021,31 +950,33 @@ module Google
1021
950
  # Request-specific options
1022
951
  #
1023
952
  # @yield [result, err] Result & error if block supplied
1024
- # @yieldparam result [Google::Apis::GenomicsV1::SearchReadsResponse] parsed result object
953
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1025
954
  # @yieldparam err [StandardError] error object if request failed
1026
955
  #
1027
- # @return [Google::Apis::GenomicsV1::SearchReadsResponse]
956
+ # @return [Google::Apis::GenomicsV1::Dataset]
1028
957
  #
1029
958
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1030
959
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1031
960
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1032
- def search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1033
- command = make_simple_command(:post, 'v1/reads/search', options)
1034
- command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation
1035
- command.request_object = search_reads_request_object
1036
- command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation
1037
- command.response_class = Google::Apis::GenomicsV1::SearchReadsResponse
1038
- command.query['fields'] = fields unless fields.nil?
1039
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1040
- execute_or_queue_command(command, &block)
1041
- end
1042
-
1043
- # Gets a call set by ID.
1044
- # For the definitions of call sets and other genomics resources, see
1045
- # [Fundamentals of Google
1046
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1047
- # @param [String] call_set_id
1048
- # The ID of the call set.
961
+ def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
962
+ command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options)
963
+ command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation
964
+ command.request_object = undelete_dataset_request_object
965
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
966
+ command.response_class = Google::Apis::GenomicsV1::Dataset
967
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
968
+ command.query['fields'] = fields unless fields.nil?
969
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
970
+ execute_or_queue_command(command, &block)
971
+ end
972
+
973
+ # Starts asynchronous cancellation on a long-running operation. The server makes
974
+ # a best effort to cancel the operation, but success is not guaranteed. Clients
975
+ # may use Operations.GetOperation or Operations.ListOperations to check whether
976
+ # the cancellation succeeded or the operation completed despite cancellation.
977
+ # @param [String] name
978
+ # The name of the operation resource to be cancelled.
979
+ # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object
1049
980
  # @param [String] fields
1050
981
  # Selector specifying which fields to include in a partial response.
1051
982
  # @param [String] quota_user
@@ -1055,37 +986,31 @@ module Google
1055
986
  # Request-specific options
1056
987
  #
1057
988
  # @yield [result, err] Result & error if block supplied
1058
- # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
989
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1059
990
  # @yieldparam err [StandardError] error object if request failed
1060
991
  #
1061
- # @return [Google::Apis::GenomicsV1::CallSet]
992
+ # @return [Google::Apis::GenomicsV1::Empty]
1062
993
  #
1063
994
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1064
995
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1065
996
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1066
- def get_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
1067
- command = make_simple_command(:get, 'v1/callsets/{callSetId}', options)
1068
- command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
1069
- command.response_class = Google::Apis::GenomicsV1::CallSet
1070
- command.params['callSetId'] = call_set_id unless call_set_id.nil?
997
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
998
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
999
+ command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation
1000
+ command.request_object = cancel_operation_request_object
1001
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1002
+ command.response_class = Google::Apis::GenomicsV1::Empty
1003
+ command.params['name'] = name unless name.nil?
1071
1004
  command.query['fields'] = fields unless fields.nil?
1072
1005
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1073
1006
  execute_or_queue_command(command, &block)
1074
1007
  end
1075
1008
 
1076
- # Updates a call set.
1077
- # For the definitions of call sets and other genomics resources, see
1078
- # [Fundamentals of Google
1079
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1080
- # This method supports patch semantics.
1081
- # @param [String] call_set_id
1082
- # The ID of the call set to be updated.
1083
- # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
1084
- # @param [String] update_mask
1085
- # An optional mask specifying which fields to update. At this time, the only
1086
- # mutable field is name. The only
1087
- # acceptable value is "name". If unspecified, all mutable fields will be
1088
- # updated.
1009
+ # Gets the latest state of a long-running operation. Clients can use this
1010
+ # method to poll the operation result at intervals as recommended by the API
1011
+ # service.
1012
+ # @param [String] name
1013
+ # The name of the operation resource.
1089
1014
  # @param [String] fields
1090
1015
  # Selector specifying which fields to include in a partial response.
1091
1016
  # @param [String] quota_user
@@ -1095,32 +1020,49 @@ module Google
1095
1020
  # Request-specific options
1096
1021
  #
1097
1022
  # @yield [result, err] Result & error if block supplied
1098
- # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
1023
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1099
1024
  # @yieldparam err [StandardError] error object if request failed
1100
1025
  #
1101
- # @return [Google::Apis::GenomicsV1::CallSet]
1026
+ # @return [Google::Apis::GenomicsV1::Operation]
1102
1027
  #
1103
1028
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1104
1029
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1105
1030
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1106
- def patch_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1107
- command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options)
1108
- command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
1109
- command.request_object = call_set_object
1110
- command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
1111
- command.response_class = Google::Apis::GenomicsV1::CallSet
1112
- command.params['callSetId'] = call_set_id unless call_set_id.nil?
1113
- command.query['updateMask'] = update_mask unless update_mask.nil?
1031
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
1032
+ command = make_simple_command(:get, 'v1/{+name}', options)
1033
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1034
+ command.response_class = Google::Apis::GenomicsV1::Operation
1035
+ command.params['name'] = name unless name.nil?
1114
1036
  command.query['fields'] = fields unless fields.nil?
1115
1037
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1116
1038
  execute_or_queue_command(command, &block)
1117
1039
  end
1118
1040
 
1119
- # Creates a new call set.
1120
- # For the definitions of call sets and other genomics resources, see
1121
- # [Fundamentals of Google
1122
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1123
- # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
1041
+ # Lists operations that match the specified filter in the request.
1042
+ # @param [String] name
1043
+ # The name of the operation's parent resource.
1044
+ # @param [String] filter
1045
+ # A string for filtering Operations.
1046
+ # The following filter fields are supported&#58;
1047
+ # * projectId&#58; Required. Corresponds to
1048
+ # OperationMetadata.projectId.
1049
+ # * createTime&#58; The time this job was created, in seconds from the
1050
+ # [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=`
1051
+ # operators.
1052
+ # * status&#58; Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only
1053
+ # one status may be specified.
1054
+ # * labels.key where key is a label key.
1055
+ # Examples&#58;
1056
+ # * `projectId = my-project AND createTime >= 1432140000`
1057
+ # * `projectId = my-project AND createTime >= 1432140000 AND createTime <=
1058
+ # 1432150000 AND status = RUNNING`
1059
+ # * `projectId = my-project AND labels.color = *`
1060
+ # * `projectId = my-project AND labels.color = red`
1061
+ # @param [Fixnum] page_size
1062
+ # The maximum number of results to return. If unspecified, defaults to
1063
+ # 256. The maximum value is 2048.
1064
+ # @param [String] page_token
1065
+ # The standard list page token.
1124
1066
  # @param [String] fields
1125
1067
  # Selector specifying which fields to include in a partial response.
1126
1068
  # @param [String] quota_user
@@ -1130,31 +1072,34 @@ module Google
1130
1072
  # Request-specific options
1131
1073
  #
1132
1074
  # @yield [result, err] Result & error if block supplied
1133
- # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
1075
+ # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object
1134
1076
  # @yieldparam err [StandardError] error object if request failed
1135
1077
  #
1136
- # @return [Google::Apis::GenomicsV1::CallSet]
1078
+ # @return [Google::Apis::GenomicsV1::ListOperationsResponse]
1137
1079
  #
1138
1080
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1139
1081
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
1082
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
- def create_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1142
- command = make_simple_command(:post, 'v1/callsets', options)
1143
- command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
1144
- command.request_object = call_set_object
1145
- command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
1146
- command.response_class = Google::Apis::GenomicsV1::CallSet
1083
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
1084
+ command = make_simple_command(:get, 'v1/{+name}', options)
1085
+ command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation
1086
+ command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse
1087
+ command.params['name'] = name unless name.nil?
1088
+ command.query['filter'] = filter unless filter.nil?
1089
+ command.query['pageSize'] = page_size unless page_size.nil?
1090
+ command.query['pageToken'] = page_token unless page_token.nil?
1147
1091
  command.query['fields'] = fields unless fields.nil?
1148
1092
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1149
1093
  execute_or_queue_command(command, &block)
1150
1094
  end
1151
1095
 
1152
- # Deletes a call set.
1153
- # For the definitions of call sets and other genomics resources, see
1096
+ # Deletes a read group set.
1097
+ # For the definitions of read group sets and other genomics resources, see
1154
1098
  # [Fundamentals of Google
1155
1099
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1156
- # @param [String] call_set_id
1157
- # The ID of the call set to be deleted.
1100
+ # @param [String] read_group_set_id
1101
+ # The ID of the read group set to be deleted. The caller must have WRITE
1102
+ # permissions to the dataset associated with this read group set.
1158
1103
  # @param [String] fields
1159
1104
  # Selector specifying which fields to include in a partial response.
1160
1105
  # @param [String] quota_user
@@ -1172,24 +1117,28 @@ module Google
1172
1117
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1173
1118
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1174
1119
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1175
- def delete_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
1176
- command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options)
1120
+ def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
1121
+ command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options)
1177
1122
  command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1178
1123
  command.response_class = Google::Apis::GenomicsV1::Empty
1179
- command.params['callSetId'] = call_set_id unless call_set_id.nil?
1124
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1180
1125
  command.query['fields'] = fields unless fields.nil?
1181
1126
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1182
1127
  execute_or_queue_command(command, &block)
1183
1128
  end
1184
1129
 
1185
- # Gets a list of call sets matching the criteria.
1186
- # For the definitions of call sets and other genomics resources, see
1130
+ # Exports a read group set to a BAM file in Google Cloud Storage.
1131
+ # For the definitions of read group sets and other genomics resources, see
1187
1132
  # [Fundamentals of Google
1188
1133
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1189
- # Implements
1190
- # [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.
1191
- # 1/src/main/resources/avro/variantmethods.avdl#L178).
1192
- # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object
1134
+ # Note that currently there may be some differences between exported BAM
1135
+ # files and the original BAM file at the time of import. See
1136
+ # ImportReadGroupSets
1137
+ # for caveats.
1138
+ # @param [String] read_group_set_id
1139
+ # Required. The ID of the read group set to export. The caller must have
1140
+ # READ access to this read group set.
1141
+ # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object
1193
1142
  # @param [String] fields
1194
1143
  # Selector specifying which fields to include in a partial response.
1195
1144
  # @param [String] quota_user
@@ -1199,29 +1148,32 @@ module Google
1199
1148
  # Request-specific options
1200
1149
  #
1201
1150
  # @yield [result, err] Result & error if block supplied
1202
- # @yieldparam result [Google::Apis::GenomicsV1::SearchCallSetsResponse] parsed result object
1151
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1203
1152
  # @yieldparam err [StandardError] error object if request failed
1204
1153
  #
1205
- # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse]
1154
+ # @return [Google::Apis::GenomicsV1::Operation]
1206
1155
  #
1207
1156
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1208
1157
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1209
1158
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1210
- def search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1211
- command = make_simple_command(:post, 'v1/callsets/search', options)
1212
- command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation
1213
- command.request_object = search_call_sets_request_object
1214
- command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation
1215
- command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse
1159
+ def export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1160
+ command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options)
1161
+ command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation
1162
+ command.request_object = export_read_group_set_request_object
1163
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1164
+ command.response_class = Google::Apis::GenomicsV1::Operation
1165
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1216
1166
  command.query['fields'] = fields unless fields.nil?
1217
1167
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1218
1168
  execute_or_queue_command(command, &block)
1219
1169
  end
1220
1170
 
1221
- # Deletes an annotation set. Caller must have WRITE permission
1222
- # for the associated annotation set.
1223
- # @param [String] annotation_set_id
1224
- # The ID of the annotation set to be deleted.
1171
+ # Gets a read group set by ID.
1172
+ # For the definitions of read group sets and other genomics resources, see
1173
+ # [Fundamentals of Google
1174
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1175
+ # @param [String] read_group_set_id
1176
+ # The ID of the read group set.
1225
1177
  # @param [String] fields
1226
1178
  # Selector specifying which fields to include in a partial response.
1227
1179
  # @param [String] quota_user
@@ -1231,30 +1183,39 @@ module Google
1231
1183
  # Request-specific options
1232
1184
  #
1233
1185
  # @yield [result, err] Result & error if block supplied
1234
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1186
+ # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
1235
1187
  # @yieldparam err [StandardError] error object if request failed
1236
1188
  #
1237
- # @return [Google::Apis::GenomicsV1::Empty]
1189
+ # @return [Google::Apis::GenomicsV1::ReadGroupSet]
1238
1190
  #
1239
1191
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1240
1192
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1241
1193
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1242
- def delete_annotationset(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block)
1243
- command = make_simple_command(:delete, 'v1/annotationsets/{annotationSetId}', options)
1244
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1245
- command.response_class = Google::Apis::GenomicsV1::Empty
1246
- command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
1194
+ def get_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
1195
+ command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options)
1196
+ command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
1197
+ command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
1198
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1247
1199
  command.query['fields'] = fields unless fields.nil?
1248
1200
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1249
1201
  execute_or_queue_command(command, &block)
1250
1202
  end
1251
1203
 
1252
- # Searches for annotation sets that match the given criteria. Annotation sets
1253
- # are returned in an unspecified order. This order is consistent, such that
1254
- # two queries for the same content (regardless of page size) yield annotation
1255
- # sets in the same order across their respective streams of paginated
1256
- # responses. Caller must have READ permission for the queried datasets.
1257
- # @param [Google::Apis::GenomicsV1::SearchAnnotationSetsRequest] search_annotation_sets_request_object
1204
+ # Creates read group sets by asynchronously importing the provided
1205
+ # information.
1206
+ # For the definitions of read group sets and other genomics resources, see
1207
+ # [Fundamentals of Google
1208
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1209
+ # The caller must have WRITE permissions to the dataset.
1210
+ # ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import
1211
+ # - Tags will be converted to strings - tag types are not preserved
1212
+ # - Comments (`@CO`) in the input file header will not be preserved
1213
+ # - Original header order of references (`@SQ`) will not be preserved
1214
+ # - Any reverse stranded unmapped reads will be reverse complemented, and
1215
+ # their qualities (also the "BQ" and "OQ" tags, if any) will be reversed
1216
+ # - Unmapped reads will be stripped of positional information (reference name
1217
+ # and position)
1218
+ # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object
1258
1219
  # @param [String] fields
1259
1220
  # Selector specifying which fields to include in a partial response.
1260
1221
  # @param [String] quota_user
@@ -1264,29 +1225,40 @@ module Google
1264
1225
  # Request-specific options
1265
1226
  #
1266
1227
  # @yield [result, err] Result & error if block supplied
1267
- # @yieldparam result [Google::Apis::GenomicsV1::SearchAnnotationSetsResponse] parsed result object
1228
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1268
1229
  # @yieldparam err [StandardError] error object if request failed
1269
1230
  #
1270
- # @return [Google::Apis::GenomicsV1::SearchAnnotationSetsResponse]
1231
+ # @return [Google::Apis::GenomicsV1::Operation]
1271
1232
  #
1272
1233
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1273
1234
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1274
1235
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1275
- def search_annotationset_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1276
- command = make_simple_command(:post, 'v1/annotationsets/search', options)
1277
- command.request_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsRequest::Representation
1278
- command.request_object = search_annotation_sets_request_object
1279
- command.response_representation = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse::Representation
1280
- command.response_class = Google::Apis::GenomicsV1::SearchAnnotationSetsResponse
1236
+ def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1237
+ command = make_simple_command(:post, 'v1/readgroupsets:import', options)
1238
+ command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation
1239
+ command.request_object = import_read_group_sets_request_object
1240
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1241
+ command.response_class = Google::Apis::GenomicsV1::Operation
1281
1242
  command.query['fields'] = fields unless fields.nil?
1282
1243
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1283
1244
  execute_or_queue_command(command, &block)
1284
1245
  end
1285
1246
 
1286
- # Gets an annotation set. Caller must have READ permission for
1287
- # the associated dataset.
1288
- # @param [String] annotation_set_id
1289
- # The ID of the annotation set to be retrieved.
1247
+ # Updates a read group set.
1248
+ # For the definitions of read group sets and other genomics resources, see
1249
+ # [Fundamentals of Google
1250
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1251
+ # This method supports patch semantics.
1252
+ # @param [String] read_group_set_id
1253
+ # The ID of the read group set to be updated. The caller must have WRITE
1254
+ # permissions to the dataset associated with this read group set.
1255
+ # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object
1256
+ # @param [String] update_mask
1257
+ # An optional mask specifying which fields to update. Supported fields:
1258
+ # * name.
1259
+ # * referenceSetId.
1260
+ # Leaving `updateMask` unset is equivalent to specifying all mutable
1261
+ # fields.
1290
1262
  # @param [String] fields
1291
1263
  # Selector specifying which fields to include in a partial response.
1292
1264
  # @param [String] quota_user
@@ -1296,36 +1268,35 @@ module Google
1296
1268
  # Request-specific options
1297
1269
  #
1298
1270
  # @yield [result, err] Result & error if block supplied
1299
- # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
1271
+ # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
1300
1272
  # @yieldparam err [StandardError] error object if request failed
1301
1273
  #
1302
- # @return [Google::Apis::GenomicsV1::AnnotationSet]
1274
+ # @return [Google::Apis::GenomicsV1::ReadGroupSet]
1303
1275
  #
1304
1276
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1305
1277
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1306
1278
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1307
- def get_annotation_set(annotation_set_id, fields: nil, quota_user: nil, options: nil, &block)
1308
- command = make_simple_command(:get, 'v1/annotationsets/{annotationSetId}', options)
1309
- command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
1310
- command.response_class = Google::Apis::GenomicsV1::AnnotationSet
1311
- command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
1279
+ def patch_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1280
+ command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options)
1281
+ command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
1282
+ command.request_object = read_group_set_object
1283
+ command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
1284
+ command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
1285
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1286
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1312
1287
  command.query['fields'] = fields unless fields.nil?
1313
1288
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1314
1289
  execute_or_queue_command(command, &block)
1315
1290
  end
1316
1291
 
1317
- # Updates an annotation set. The update must respect all mutability
1318
- # restrictions and other invariants described on the annotation set resource.
1319
- # Caller must have WRITE permission for the associated dataset.
1320
- # @param [String] annotation_set_id
1321
- # The ID of the annotation set to be updated.
1322
- # @param [Google::Apis::GenomicsV1::AnnotationSet] annotation_set_object
1323
- # @param [String] update_mask
1324
- # An optional mask specifying which fields to update. Mutable fields are
1325
- # name,
1326
- # source_uri, and
1327
- # info. If unspecified, all
1328
- # mutable fields will be updated.
1292
+ # Searches for read group sets matching the criteria.
1293
+ # For the definitions of read group sets and other genomics resources, see
1294
+ # [Fundamentals of Google
1295
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1296
+ # Implements
1297
+ # [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/
1298
+ # v0.5.1/src/main/resources/avro/readmethods.avdl#L135).
1299
+ # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object
1329
1300
  # @param [String] fields
1330
1301
  # Selector specifying which fields to include in a partial response.
1331
1302
  # @param [String] quota_user
@@ -1335,35 +1306,63 @@ module Google
1335
1306
  # Request-specific options
1336
1307
  #
1337
1308
  # @yield [result, err] Result & error if block supplied
1338
- # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
1309
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] parsed result object
1339
1310
  # @yieldparam err [StandardError] error object if request failed
1340
1311
  #
1341
- # @return [Google::Apis::GenomicsV1::AnnotationSet]
1312
+ # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse]
1342
1313
  #
1343
1314
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1344
1315
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1345
1316
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1346
- def update_annotationset(annotation_set_id, annotation_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1347
- command = make_simple_command(:put, 'v1/annotationsets/{annotationSetId}', options)
1348
- command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
1349
- command.request_object = annotation_set_object
1350
- command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
1351
- command.response_class = Google::Apis::GenomicsV1::AnnotationSet
1352
- command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
1353
- command.query['updateMask'] = update_mask unless update_mask.nil?
1317
+ def search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1318
+ command = make_simple_command(:post, 'v1/readgroupsets/search', options)
1319
+ command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation
1320
+ command.request_object = search_read_group_sets_request_object
1321
+ command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation
1322
+ command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse
1354
1323
  command.query['fields'] = fields unless fields.nil?
1355
1324
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1356
1325
  execute_or_queue_command(command, &block)
1357
1326
  end
1358
1327
 
1359
- # Creates a new annotation set. Caller must have WRITE permission for the
1360
- # associated dataset.
1361
- # The following fields are required:
1362
- # * datasetId
1363
- # * referenceSetId
1364
- # All other fields may be optionally specified, unless documented as being
1365
- # server-generated (for example, the `id` field).
1366
- # @param [Google::Apis::GenomicsV1::AnnotationSet] annotation_set_object
1328
+ # Lists fixed width coverage buckets for a read group set, each of which
1329
+ # correspond to a range of a reference sequence. Each bucket summarizes
1330
+ # coverage information across its corresponding genomic range.
1331
+ # For the definitions of read group sets and other genomics resources, see
1332
+ # [Fundamentals of Google
1333
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1334
+ # Coverage is defined as the number of reads which are aligned to a given
1335
+ # base in the reference sequence. Coverage buckets are available at several
1336
+ # precomputed bucket widths, enabling retrieval of various coverage 'zoom
1337
+ # levels'. The caller must have READ permissions for the target read group
1338
+ # set.
1339
+ # @param [String] read_group_set_id
1340
+ # Required. The ID of the read group set over which coverage is requested.
1341
+ # @param [Fixnum] end_
1342
+ # The end position of the range on the reference, 0-based exclusive. If
1343
+ # specified, `referenceName` must also be specified. If unset or 0, defaults
1344
+ # to the length of the reference.
1345
+ # @param [Fixnum] page_size
1346
+ # The maximum number of results to return in a single page. If unspecified,
1347
+ # defaults to 1024. The maximum value is 2048.
1348
+ # @param [String] page_token
1349
+ # The continuation token, which is used to page through large result sets.
1350
+ # To get the next page of results, set this parameter to the value of
1351
+ # `nextPageToken` from the previous response.
1352
+ # @param [String] reference_name
1353
+ # The name of the reference to query, within the reference set associated
1354
+ # with this query. Optional.
1355
+ # @param [Fixnum] start
1356
+ # The start position of the range on the reference, 0-based inclusive. If
1357
+ # specified, `referenceName` must also be specified. Defaults to 0.
1358
+ # @param [Fixnum] target_bucket_width
1359
+ # The desired width of each reported coverage bucket in base pairs. This
1360
+ # will be rounded down to the nearest precomputed bucket width; the value
1361
+ # of which is returned as `bucketWidth` in the response. Defaults
1362
+ # to infinity (each bucket spans an entire reference sequence) or the length
1363
+ # of the target range, if specified. The smallest precomputed
1364
+ # `bucketWidth` is currently 2048 base pairs; this is subject to
1365
+ # change.
1367
1366
  # @param [String] fields
1368
1367
  # Selector specifying which fields to include in a partial response.
1369
1368
  # @param [String] quota_user
@@ -1373,31 +1372,51 @@ module Google
1373
1372
  # Request-specific options
1374
1373
  #
1375
1374
  # @yield [result, err] Result & error if block supplied
1376
- # @yieldparam result [Google::Apis::GenomicsV1::AnnotationSet] parsed result object
1375
+ # @yieldparam result [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] parsed result object
1377
1376
  # @yieldparam err [StandardError] error object if request failed
1378
1377
  #
1379
- # @return [Google::Apis::GenomicsV1::AnnotationSet]
1378
+ # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse]
1380
1379
  #
1381
1380
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1382
1381
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1383
1382
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1384
- def create_annotation_set(annotation_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1385
- command = make_simple_command(:post, 'v1/annotationsets', options)
1386
- command.request_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
1387
- command.request_object = annotation_set_object
1388
- command.response_representation = Google::Apis::GenomicsV1::AnnotationSet::Representation
1389
- command.response_class = Google::Apis::GenomicsV1::AnnotationSet
1383
+ def list_coverage_buckets(read_group_set_id, end_: nil, page_size: nil, page_token: nil, reference_name: nil, start: nil, target_bucket_width: nil, fields: nil, quota_user: nil, options: nil, &block)
1384
+ command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options)
1385
+ command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation
1386
+ command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse
1387
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1388
+ command.query['end'] = end_ unless end_.nil?
1389
+ command.query['pageSize'] = page_size unless page_size.nil?
1390
+ command.query['pageToken'] = page_token unless page_token.nil?
1391
+ command.query['referenceName'] = reference_name unless reference_name.nil?
1392
+ command.query['start'] = start unless start.nil?
1393
+ command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil?
1390
1394
  command.query['fields'] = fields unless fields.nil?
1391
1395
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1392
1396
  execute_or_queue_command(command, &block)
1393
1397
  end
1394
1398
 
1395
- # Gets a variant by ID.
1396
- # For the definitions of variants and other genomics resources, see
1399
+ # Gets a list of reads for one or more read group sets.
1400
+ # For the definitions of read group sets and other genomics resources, see
1397
1401
  # [Fundamentals of Google
1398
1402
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1399
- # @param [String] variant_id
1400
- # The ID of the variant.
1403
+ # Reads search operates over a genomic coordinate space of reference sequence
1404
+ # & position defined over the reference sequences to which the requested
1405
+ # read group sets are aligned.
1406
+ # If a target positional range is specified, search returns all reads whose
1407
+ # alignment to the reference genome overlap the range. A query which
1408
+ # specifies only read group set IDs yields all reads in those read group
1409
+ # sets, including unmapped reads.
1410
+ # All reads returned (including reads on subsequent pages) are ordered by
1411
+ # genomic coordinate (by reference sequence, then position). Reads with
1412
+ # equivalent genomic coordinates are returned in an unspecified order. This
1413
+ # order is consistent, such that two queries for the same content (regardless
1414
+ # of page size) yield reads in the same order across their respective streams
1415
+ # of paginated responses.
1416
+ # Implements
1417
+ # [GlobalAllianceApi.searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/
1418
+ # src/main/resources/avro/readmethods.avdl#L85).
1419
+ # @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object
1401
1420
  # @param [String] fields
1402
1421
  # Selector specifying which fields to include in a partial response.
1403
1422
  # @param [String] quota_user
@@ -1407,38 +1426,34 @@ module Google
1407
1426
  # Request-specific options
1408
1427
  #
1409
1428
  # @yield [result, err] Result & error if block supplied
1410
- # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1429
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReadsResponse] parsed result object
1411
1430
  # @yieldparam err [StandardError] error object if request failed
1412
1431
  #
1413
- # @return [Google::Apis::GenomicsV1::Variant]
1432
+ # @return [Google::Apis::GenomicsV1::SearchReadsResponse]
1414
1433
  #
1415
1434
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1416
1435
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1417
1436
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1418
- def get_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
1419
- command = make_simple_command(:get, 'v1/variants/{variantId}', options)
1420
- command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1421
- command.response_class = Google::Apis::GenomicsV1::Variant
1422
- command.params['variantId'] = variant_id unless variant_id.nil?
1437
+ def search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1438
+ command = make_simple_command(:post, 'v1/reads/search', options)
1439
+ command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation
1440
+ command.request_object = search_reads_request_object
1441
+ command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation
1442
+ command.response_class = Google::Apis::GenomicsV1::SearchReadsResponse
1423
1443
  command.query['fields'] = fields unless fields.nil?
1424
1444
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1425
1445
  execute_or_queue_command(command, &block)
1426
1446
  end
1427
1447
 
1428
- # Updates a variant.
1429
- # For the definitions of variants and other genomics resources, see
1448
+ # Gets a reference.
1449
+ # For the definitions of references and other genomics resources, see
1430
1450
  # [Fundamentals of Google
1431
1451
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1432
- # This method supports patch semantics. Returns the modified variant without
1433
- # its calls.
1434
- # @param [String] variant_id
1435
- # The ID of the variant to be updated.
1436
- # @param [Google::Apis::GenomicsV1::Variant] variant_object
1437
- # @param [String] update_mask
1438
- # An optional mask specifying which fields to update. At this time, mutable
1439
- # fields are names and
1440
- # info. Acceptable values are "names" and
1441
- # "info". If unspecified, all mutable fields will be updated.
1452
+ # Implements
1453
+ # [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/blob/v0.5.1/
1454
+ # src/main/resources/avro/referencemethods.avdl#L158).
1455
+ # @param [String] reference_id
1456
+ # The ID of the reference.
1442
1457
  # @param [String] fields
1443
1458
  # Selector specifying which fields to include in a partial response.
1444
1459
  # @param [String] quota_user
@@ -1448,110 +1463,32 @@ module Google
1448
1463
  # Request-specific options
1449
1464
  #
1450
1465
  # @yield [result, err] Result & error if block supplied
1451
- # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1466
+ # @yieldparam result [Google::Apis::GenomicsV1::Reference] parsed result object
1452
1467
  # @yieldparam err [StandardError] error object if request failed
1453
1468
  #
1454
- # @return [Google::Apis::GenomicsV1::Variant]
1469
+ # @return [Google::Apis::GenomicsV1::Reference]
1455
1470
  #
1456
1471
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1457
1472
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1458
1473
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1459
- def patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1460
- command = make_simple_command(:patch, 'v1/variants/{variantId}', options)
1461
- command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
1462
- command.request_object = variant_object
1463
- command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1464
- command.response_class = Google::Apis::GenomicsV1::Variant
1465
- command.params['variantId'] = variant_id unless variant_id.nil?
1466
- command.query['updateMask'] = update_mask unless update_mask.nil?
1474
+ def get_reference(reference_id, fields: nil, quota_user: nil, options: nil, &block)
1475
+ command = make_simple_command(:get, 'v1/references/{referenceId}', options)
1476
+ command.response_representation = Google::Apis::GenomicsV1::Reference::Representation
1477
+ command.response_class = Google::Apis::GenomicsV1::Reference
1478
+ command.params['referenceId'] = reference_id unless reference_id.nil?
1467
1479
  command.query['fields'] = fields unless fields.nil?
1468
1480
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1469
1481
  execute_or_queue_command(command, &block)
1470
1482
  end
1471
1483
 
1472
- # Merges the given variants with existing variants.
1473
- # For the definitions of variants and other genomics resources, see
1484
+ # Searches for references which match the given criteria.
1485
+ # For the definitions of references and other genomics resources, see
1474
1486
  # [Fundamentals of Google
1475
1487
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1476
- # Each variant will be
1477
- # merged with an existing variant that matches its reference sequence,
1478
- # start, end, reference bases, and alternative bases. If no such variant
1479
- # exists, a new one will be created.
1480
- # When variants are merged, the call information from the new variant
1481
- # is added to the existing variant. Variant info fields are merged as
1482
- # specified in the
1483
- # infoMergeConfig
1484
- # field of the MergeVariantsRequest.
1485
- # Please exercise caution when using this method! It is easy to introduce
1486
- # mistakes in existing variants and difficult to back out of them. For
1487
- # example,
1488
- # suppose you were trying to merge a new variant with an existing one and
1489
- # both
1490
- # variants contain calls that belong to callsets with the same callset ID.
1491
- # // Existing variant - irrelevant fields trimmed for clarity
1492
- # `
1493
- # "variantSetId": "10473108253681171589",
1494
- # "referenceName": "1",
1495
- # "start": "10582",
1496
- # "referenceBases": "G",
1497
- # "alternateBases": [
1498
- # "A"
1499
- # ],
1500
- # "calls": [
1501
- # `
1502
- # "callSetId": "10473108253681171589-0",
1503
- # "callSetName": "CALLSET0",
1504
- # "genotype": [
1505
- # 0,
1506
- # 1
1507
- # ],
1508
- # `
1509
- # ]
1510
- # `
1511
- # // New variant with conflicting call information
1512
- # `
1513
- # "variantSetId": "10473108253681171589",
1514
- # "referenceName": "1",
1515
- # "start": "10582",
1516
- # "referenceBases": "G",
1517
- # "alternateBases": [
1518
- # "A"
1519
- # ],
1520
- # "calls": [
1521
- # `
1522
- # "callSetId": "10473108253681171589-0",
1523
- # "callSetName": "CALLSET0",
1524
- # "genotype": [
1525
- # 1,
1526
- # 1
1527
- # ],
1528
- # `
1529
- # ]
1530
- # `
1531
- # The resulting merged variant would overwrite the existing calls with those
1532
- # from the new variant:
1533
- # `
1534
- # "variantSetId": "10473108253681171589",
1535
- # "referenceName": "1",
1536
- # "start": "10582",
1537
- # "referenceBases": "G",
1538
- # "alternateBases": [
1539
- # "A"
1540
- # ],
1541
- # "calls": [
1542
- # `
1543
- # "callSetId": "10473108253681171589-0",
1544
- # "callSetName": "CALLSET0",
1545
- # "genotype": [
1546
- # 1,
1547
- # 1
1548
- # ],
1549
- # `
1550
- # ]
1551
- # `
1552
- # This may be the desired outcome, but it is up to the user to determine if
1553
- # if that is indeed the case.
1554
- # @param [Google::Apis::GenomicsV1::MergeVariantsRequest] merge_variants_request_object
1488
+ # Implements
1489
+ # [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.
1490
+ # 5.1/src/main/resources/avro/referencemethods.avdl#L146).
1491
+ # @param [Google::Apis::GenomicsV1::SearchReferencesRequest] search_references_request_object
1555
1492
  # @param [String] fields
1556
1493
  # Selector specifying which fields to include in a partial response.
1557
1494
  # @param [String] quota_user
@@ -1561,41 +1498,47 @@ module Google
1561
1498
  # Request-specific options
1562
1499
  #
1563
1500
  # @yield [result, err] Result & error if block supplied
1564
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1501
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReferencesResponse] parsed result object
1565
1502
  # @yieldparam err [StandardError] error object if request failed
1566
1503
  #
1567
- # @return [Google::Apis::GenomicsV1::Empty]
1504
+ # @return [Google::Apis::GenomicsV1::SearchReferencesResponse]
1568
1505
  #
1569
1506
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1570
1507
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1571
1508
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1572
- def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1573
- command = make_simple_command(:post, 'v1/variants:merge', options)
1574
- command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation
1575
- command.request_object = merge_variants_request_object
1576
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1577
- command.response_class = Google::Apis::GenomicsV1::Empty
1509
+ def search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1510
+ command = make_simple_command(:post, 'v1/references/search', options)
1511
+ command.request_representation = Google::Apis::GenomicsV1::SearchReferencesRequest::Representation
1512
+ command.request_object = search_references_request_object
1513
+ command.response_representation = Google::Apis::GenomicsV1::SearchReferencesResponse::Representation
1514
+ command.response_class = Google::Apis::GenomicsV1::SearchReferencesResponse
1578
1515
  command.query['fields'] = fields unless fields.nil?
1579
1516
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1580
1517
  execute_or_queue_command(command, &block)
1581
1518
  end
1582
1519
 
1583
- # Creates variant data by asynchronously importing the provided information.
1584
- # For the definitions of variant sets and other genomics resources, see
1520
+ # Lists the bases in a reference, optionally restricted to a range.
1521
+ # For the definitions of references and other genomics resources, see
1585
1522
  # [Fundamentals of Google
1586
1523
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1587
- # The variants for import will be merged with any existing variant that
1588
- # matches its reference sequence, start, end, reference bases, and
1589
- # alternative bases. If no such variant exists, a new one will be created.
1590
- # When variants are merged, the call information from the new variant
1591
- # is added to the existing variant, and Variant info fields are merged
1592
- # as specified in
1593
- # infoMergeConfig.
1594
- # As a special case, for single-sample VCF files, QUAL and FILTER fields will
1595
- # be moved to the call level; these are sometimes interpreted in a
1596
- # call-specific context.
1597
- # Imported VCF headers are appended to the metadata already in a variant set.
1598
- # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object
1524
+ # Implements
1525
+ # [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v0.
1526
+ # 5.1/src/main/resources/avro/referencemethods.avdl#L221).
1527
+ # @param [String] reference_id
1528
+ # The ID of the reference.
1529
+ # @param [Fixnum] end_position
1530
+ # The end position (0-based, exclusive) of this query. Defaults to the length
1531
+ # of this reference.
1532
+ # @param [Fixnum] page_size
1533
+ # The maximum number of bases to return in a single page. If unspecified,
1534
+ # defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base
1535
+ # pairs).
1536
+ # @param [String] page_token
1537
+ # The continuation token, which is used to page through large result sets.
1538
+ # To get the next page of results, set this parameter to the value of
1539
+ # `nextPageToken` from the previous response.
1540
+ # @param [Fixnum] start_position
1541
+ # The start position (0-based) of this query. Defaults to 0.
1599
1542
  # @param [String] fields
1600
1543
  # Selector specifying which fields to include in a partial response.
1601
1544
  # @param [String] quota_user
@@ -1605,31 +1548,72 @@ module Google
1605
1548
  # Request-specific options
1606
1549
  #
1607
1550
  # @yield [result, err] Result & error if block supplied
1608
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1551
+ # @yieldparam result [Google::Apis::GenomicsV1::ListBasesResponse] parsed result object
1609
1552
  # @yieldparam err [StandardError] error object if request failed
1610
1553
  #
1611
- # @return [Google::Apis::GenomicsV1::Operation]
1554
+ # @return [Google::Apis::GenomicsV1::ListBasesResponse]
1612
1555
  #
1613
1556
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1614
1557
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1615
1558
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1616
- def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1617
- command = make_simple_command(:post, 'v1/variants:import', options)
1618
- command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation
1619
- command.request_object = import_variants_request_object
1620
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1621
- command.response_class = Google::Apis::GenomicsV1::Operation
1559
+ def list_reference_bases(reference_id, end_position: nil, page_size: nil, page_token: nil, start_position: nil, fields: nil, quota_user: nil, options: nil, &block)
1560
+ command = make_simple_command(:get, 'v1/references/{referenceId}/bases', options)
1561
+ command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation
1562
+ command.response_class = Google::Apis::GenomicsV1::ListBasesResponse
1563
+ command.params['referenceId'] = reference_id unless reference_id.nil?
1564
+ command.query['end'] = end_position unless end_position.nil?
1565
+ command.query['pageSize'] = page_size unless page_size.nil?
1566
+ command.query['pageToken'] = page_token unless page_token.nil?
1567
+ command.query['start'] = start_position unless start_position.nil?
1622
1568
  command.query['fields'] = fields unless fields.nil?
1623
1569
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1624
1570
  execute_or_queue_command(command, &block)
1625
1571
  end
1626
1572
 
1627
- # Deletes a variant.
1628
- # For the definitions of variants and other genomics resources, see
1573
+ # Gets a reference set.
1574
+ # For the definitions of references and other genomics resources, see
1629
1575
  # [Fundamentals of Google
1630
1576
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1631
- # @param [String] variant_id
1632
- # The ID of the variant to be deleted.
1577
+ # Implements
1578
+ # [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5.
1579
+ # 1/src/main/resources/avro/referencemethods.avdl#L83).
1580
+ # @param [String] reference_set_id
1581
+ # The ID of the reference set.
1582
+ # @param [String] fields
1583
+ # Selector specifying which fields to include in a partial response.
1584
+ # @param [String] quota_user
1585
+ # Available to use for quota purposes for server-side applications. Can be any
1586
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1587
+ # @param [Google::Apis::RequestOptions] options
1588
+ # Request-specific options
1589
+ #
1590
+ # @yield [result, err] Result & error if block supplied
1591
+ # @yieldparam result [Google::Apis::GenomicsV1::ReferenceSet] parsed result object
1592
+ # @yieldparam err [StandardError] error object if request failed
1593
+ #
1594
+ # @return [Google::Apis::GenomicsV1::ReferenceSet]
1595
+ #
1596
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1597
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1598
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1599
+ def get_reference_set(reference_set_id, fields: nil, quota_user: nil, options: nil, &block)
1600
+ command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', options)
1601
+ command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation
1602
+ command.response_class = Google::Apis::GenomicsV1::ReferenceSet
1603
+ command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil?
1604
+ command.query['fields'] = fields unless fields.nil?
1605
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1606
+ execute_or_queue_command(command, &block)
1607
+ end
1608
+
1609
+ # Searches for reference sets which match the given criteria.
1610
+ # For the definitions of references and other genomics resources, see
1611
+ # [Fundamentals of Google
1612
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1613
+ # Implements
1614
+ # [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/schemas/blob/
1615
+ # v0.5.1/src/main/resources/avro/referencemethods.avdl#L71)
1616
+ # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object
1633
1617
  # @param [String] fields
1634
1618
  # Selector specifying which fields to include in a partial response.
1635
1619
  # @param [String] quota_user
@@ -1639,19 +1623,20 @@ module Google
1639
1623
  # Request-specific options
1640
1624
  #
1641
1625
  # @yield [result, err] Result & error if block supplied
1642
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1626
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] parsed result object
1643
1627
  # @yieldparam err [StandardError] error object if request failed
1644
1628
  #
1645
- # @return [Google::Apis::GenomicsV1::Empty]
1629
+ # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse]
1646
1630
  #
1647
1631
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1648
1632
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1649
1633
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1650
- def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
1651
- command = make_simple_command(:delete, 'v1/variants/{variantId}', options)
1652
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1653
- command.response_class = Google::Apis::GenomicsV1::Empty
1654
- command.params['variantId'] = variant_id unless variant_id.nil?
1634
+ def search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1635
+ command = make_simple_command(:post, 'v1/referencesets/search', options)
1636
+ command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation
1637
+ command.request_object = search_reference_sets_request_object
1638
+ command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation
1639
+ command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse
1655
1640
  command.query['fields'] = fields unless fields.nil?
1656
1641
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1657
1642
  execute_or_queue_command(command, &block)
@@ -1690,50 +1675,12 @@ module Google
1690
1675
  execute_or_queue_command(command, &block)
1691
1676
  end
1692
1677
 
1693
- # Gets a list of variants matching the criteria.
1678
+ # Deletes a variant.
1694
1679
  # For the definitions of variants and other genomics resources, see
1695
1680
  # [Fundamentals of Google
1696
1681
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1697
- # Implements
1698
- # [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.
1699
- # 1/src/main/resources/avro/variantmethods.avdl#L126).
1700
- # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object
1701
- # @param [String] fields
1702
- # Selector specifying which fields to include in a partial response.
1703
- # @param [String] quota_user
1704
- # Available to use for quota purposes for server-side applications. Can be any
1705
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1706
- # @param [Google::Apis::RequestOptions] options
1707
- # Request-specific options
1708
- #
1709
- # @yield [result, err] Result & error if block supplied
1710
- # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantsResponse] parsed result object
1711
- # @yieldparam err [StandardError] error object if request failed
1712
- #
1713
- # @return [Google::Apis::GenomicsV1::SearchVariantsResponse]
1714
- #
1715
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1716
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1717
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1718
- def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1719
- command = make_simple_command(:post, 'v1/variants/search', options)
1720
- command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation
1721
- command.request_object = search_variants_request_object
1722
- command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation
1723
- command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse
1724
- command.query['fields'] = fields unless fields.nil?
1725
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1726
- execute_or_queue_command(command, &block)
1727
- end
1728
-
1729
- # Searches for references which match the given criteria.
1730
- # For the definitions of references and other genomics resources, see
1731
- # [Fundamentals of Google
1732
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1733
- # Implements
1734
- # [GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.
1735
- # 5.1/src/main/resources/avro/referencemethods.avdl#L146).
1736
- # @param [Google::Apis::GenomicsV1::SearchReferencesRequest] search_references_request_object
1682
+ # @param [String] variant_id
1683
+ # The ID of the variant to be deleted.
1737
1684
  # @param [String] fields
1738
1685
  # Selector specifying which fields to include in a partial response.
1739
1686
  # @param [String] quota_user
@@ -1743,34 +1690,30 @@ module Google
1743
1690
  # Request-specific options
1744
1691
  #
1745
1692
  # @yield [result, err] Result & error if block supplied
1746
- # @yieldparam result [Google::Apis::GenomicsV1::SearchReferencesResponse] parsed result object
1693
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1747
1694
  # @yieldparam err [StandardError] error object if request failed
1748
1695
  #
1749
- # @return [Google::Apis::GenomicsV1::SearchReferencesResponse]
1696
+ # @return [Google::Apis::GenomicsV1::Empty]
1750
1697
  #
1751
1698
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1752
1699
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1753
1700
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1754
- def search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1755
- command = make_simple_command(:post, 'v1/references/search', options)
1756
- command.request_representation = Google::Apis::GenomicsV1::SearchReferencesRequest::Representation
1757
- command.request_object = search_references_request_object
1758
- command.response_representation = Google::Apis::GenomicsV1::SearchReferencesResponse::Representation
1759
- command.response_class = Google::Apis::GenomicsV1::SearchReferencesResponse
1701
+ def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
1702
+ command = make_simple_command(:delete, 'v1/variants/{variantId}', options)
1703
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1704
+ command.response_class = Google::Apis::GenomicsV1::Empty
1705
+ command.params['variantId'] = variant_id unless variant_id.nil?
1760
1706
  command.query['fields'] = fields unless fields.nil?
1761
1707
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1762
1708
  execute_or_queue_command(command, &block)
1763
1709
  end
1764
1710
 
1765
- # Gets a reference.
1766
- # For the definitions of references and other genomics resources, see
1711
+ # Gets a variant by ID.
1712
+ # For the definitions of variants and other genomics resources, see
1767
1713
  # [Fundamentals of Google
1768
1714
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1769
- # Implements
1770
- # [GlobalAllianceApi.getReference](https://github.com/ga4gh/schemas/blob/v0.5.1/
1771
- # src/main/resources/avro/referencemethods.avdl#L158).
1772
- # @param [String] reference_id
1773
- # The ID of the reference.
1715
+ # @param [String] variant_id
1716
+ # The ID of the variant.
1774
1717
  # @param [String] fields
1775
1718
  # Selector specifying which fields to include in a partial response.
1776
1719
  # @param [String] quota_user
@@ -1780,46 +1723,40 @@ module Google
1780
1723
  # Request-specific options
1781
1724
  #
1782
1725
  # @yield [result, err] Result & error if block supplied
1783
- # @yieldparam result [Google::Apis::GenomicsV1::Reference] parsed result object
1726
+ # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1784
1727
  # @yieldparam err [StandardError] error object if request failed
1785
1728
  #
1786
- # @return [Google::Apis::GenomicsV1::Reference]
1729
+ # @return [Google::Apis::GenomicsV1::Variant]
1787
1730
  #
1788
1731
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1789
1732
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1790
1733
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1791
- def get_reference(reference_id, fields: nil, quota_user: nil, options: nil, &block)
1792
- command = make_simple_command(:get, 'v1/references/{referenceId}', options)
1793
- command.response_representation = Google::Apis::GenomicsV1::Reference::Representation
1794
- command.response_class = Google::Apis::GenomicsV1::Reference
1795
- command.params['referenceId'] = reference_id unless reference_id.nil?
1734
+ def get_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
1735
+ command = make_simple_command(:get, 'v1/variants/{variantId}', options)
1736
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1737
+ command.response_class = Google::Apis::GenomicsV1::Variant
1738
+ command.params['variantId'] = variant_id unless variant_id.nil?
1796
1739
  command.query['fields'] = fields unless fields.nil?
1797
1740
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1798
1741
  execute_or_queue_command(command, &block)
1799
1742
  end
1800
1743
 
1801
- # Lists the bases in a reference, optionally restricted to a range.
1802
- # For the definitions of references and other genomics resources, see
1744
+ # Creates variant data by asynchronously importing the provided information.
1745
+ # For the definitions of variant sets and other genomics resources, see
1803
1746
  # [Fundamentals of Google
1804
1747
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1805
- # Implements
1806
- # [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob/v0.
1807
- # 5.1/src/main/resources/avro/referencemethods.avdl#L221).
1808
- # @param [String] reference_id
1809
- # The ID of the reference.
1810
- # @param [Fixnum] end_position
1811
- # The end position (0-based, exclusive) of this query. Defaults to the length
1812
- # of this reference.
1813
- # @param [String] page_token
1814
- # The continuation token, which is used to page through large result sets.
1815
- # To get the next page of results, set this parameter to the value of
1816
- # `nextPageToken` from the previous response.
1817
- # @param [Fixnum] page_size
1818
- # The maximum number of bases to return in a single page. If unspecified,
1819
- # defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base
1820
- # pairs).
1821
- # @param [Fixnum] start_position
1822
- # The start position (0-based) of this query. Defaults to 0.
1748
+ # The variants for import will be merged with any existing variant that
1749
+ # matches its reference sequence, start, end, reference bases, and
1750
+ # alternative bases. If no such variant exists, a new one will be created.
1751
+ # When variants are merged, the call information from the new variant
1752
+ # is added to the existing variant, and Variant info fields are merged
1753
+ # as specified in
1754
+ # infoMergeConfig.
1755
+ # As a special case, for single-sample VCF files, QUAL and FILTER fields will
1756
+ # be moved to the call level; these are sometimes interpreted in a
1757
+ # call-specific context.
1758
+ # Imported VCF headers are appended to the metadata already in a variant set.
1759
+ # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object
1823
1760
  # @param [String] fields
1824
1761
  # Selector specifying which fields to include in a partial response.
1825
1762
  # @param [String] quota_user
@@ -1829,39 +1766,108 @@ module Google
1829
1766
  # Request-specific options
1830
1767
  #
1831
1768
  # @yield [result, err] Result & error if block supplied
1832
- # @yieldparam result [Google::Apis::GenomicsV1::ListBasesResponse] parsed result object
1769
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1833
1770
  # @yieldparam err [StandardError] error object if request failed
1834
1771
  #
1835
- # @return [Google::Apis::GenomicsV1::ListBasesResponse]
1772
+ # @return [Google::Apis::GenomicsV1::Operation]
1836
1773
  #
1837
1774
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1838
1775
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1839
1776
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1840
- def list_reference_bases(reference_id, end_position: nil, page_token: nil, page_size: nil, start_position: nil, fields: nil, quota_user: nil, options: nil, &block)
1841
- command = make_simple_command(:get, 'v1/references/{referenceId}/bases', options)
1842
- command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation
1843
- command.response_class = Google::Apis::GenomicsV1::ListBasesResponse
1844
- command.params['referenceId'] = reference_id unless reference_id.nil?
1845
- command.query['end'] = end_position unless end_position.nil?
1846
- command.query['pageToken'] = page_token unless page_token.nil?
1847
- command.query['pageSize'] = page_size unless page_size.nil?
1848
- command.query['start'] = start_position unless start_position.nil?
1777
+ def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1778
+ command = make_simple_command(:post, 'v1/variants:import', options)
1779
+ command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation
1780
+ command.request_object = import_variants_request_object
1781
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1782
+ command.response_class = Google::Apis::GenomicsV1::Operation
1849
1783
  command.query['fields'] = fields unless fields.nil?
1850
1784
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1851
1785
  execute_or_queue_command(command, &block)
1852
1786
  end
1853
1787
 
1854
- # Gets the access control policy for the dataset. This is empty if the
1855
- # policy or resource does not exist.
1856
- # See <a href="/iam/docs/managing-policies#getting_a_policy">Getting a
1857
- # Policy</a> for more information.
1858
- # For the definitions of datasets and other genomics resources, see
1788
+ # Merges the given variants with existing variants.
1789
+ # For the definitions of variants and other genomics resources, see
1859
1790
  # [Fundamentals of Google
1860
1791
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1861
- # @param [String] resource
1862
- # REQUIRED: The resource for which policy is being specified. Format is
1863
- # `datasets/<dataset ID>`.
1864
- # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object
1792
+ # Each variant will be
1793
+ # merged with an existing variant that matches its reference sequence,
1794
+ # start, end, reference bases, and alternative bases. If no such variant
1795
+ # exists, a new one will be created.
1796
+ # When variants are merged, the call information from the new variant
1797
+ # is added to the existing variant. Variant info fields are merged as
1798
+ # specified in the
1799
+ # infoMergeConfig
1800
+ # field of the MergeVariantsRequest.
1801
+ # Please exercise caution when using this method! It is easy to introduce
1802
+ # mistakes in existing variants and difficult to back out of them. For
1803
+ # example,
1804
+ # suppose you were trying to merge a new variant with an existing one and
1805
+ # both
1806
+ # variants contain calls that belong to callsets with the same callset ID.
1807
+ # // Existing variant - irrelevant fields trimmed for clarity
1808
+ # `
1809
+ # "variantSetId": "10473108253681171589",
1810
+ # "referenceName": "1",
1811
+ # "start": "10582",
1812
+ # "referenceBases": "G",
1813
+ # "alternateBases": [
1814
+ # "A"
1815
+ # ],
1816
+ # "calls": [
1817
+ # `
1818
+ # "callSetId": "10473108253681171589-0",
1819
+ # "callSetName": "CALLSET0",
1820
+ # "genotype": [
1821
+ # 0,
1822
+ # 1
1823
+ # ],
1824
+ # `
1825
+ # ]
1826
+ # `
1827
+ # // New variant with conflicting call information
1828
+ # `
1829
+ # "variantSetId": "10473108253681171589",
1830
+ # "referenceName": "1",
1831
+ # "start": "10582",
1832
+ # "referenceBases": "G",
1833
+ # "alternateBases": [
1834
+ # "A"
1835
+ # ],
1836
+ # "calls": [
1837
+ # `
1838
+ # "callSetId": "10473108253681171589-0",
1839
+ # "callSetName": "CALLSET0",
1840
+ # "genotype": [
1841
+ # 1,
1842
+ # 1
1843
+ # ],
1844
+ # `
1845
+ # ]
1846
+ # `
1847
+ # The resulting merged variant would overwrite the existing calls with those
1848
+ # from the new variant:
1849
+ # `
1850
+ # "variantSetId": "10473108253681171589",
1851
+ # "referenceName": "1",
1852
+ # "start": "10582",
1853
+ # "referenceBases": "G",
1854
+ # "alternateBases": [
1855
+ # "A"
1856
+ # ],
1857
+ # "calls": [
1858
+ # `
1859
+ # "callSetId": "10473108253681171589-0",
1860
+ # "callSetName": "CALLSET0",
1861
+ # "genotype": [
1862
+ # 1,
1863
+ # 1
1864
+ # ],
1865
+ # `
1866
+ # ]
1867
+ # `
1868
+ # This may be the desired outcome, but it is up to the user to determine if
1869
+ # if that is indeed the case.
1870
+ # @param [Google::Apis::GenomicsV1::MergeVariantsRequest] merge_variants_request_object
1865
1871
  # @param [String] fields
1866
1872
  # Selector specifying which fields to include in a partial response.
1867
1873
  # @param [String] quota_user
@@ -1871,34 +1877,39 @@ module Google
1871
1877
  # Request-specific options
1872
1878
  #
1873
1879
  # @yield [result, err] Result & error if block supplied
1874
- # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
1880
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1875
1881
  # @yieldparam err [StandardError] error object if request failed
1876
1882
  #
1877
- # @return [Google::Apis::GenomicsV1::Policy]
1883
+ # @return [Google::Apis::GenomicsV1::Empty]
1878
1884
  #
1879
1885
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1880
1886
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1881
1887
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1882
- def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1883
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
1884
- command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation
1885
- command.request_object = get_iam_policy_request_object
1886
- command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
1887
- command.response_class = Google::Apis::GenomicsV1::Policy
1888
- command.params['resource'] = resource unless resource.nil?
1888
+ def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1889
+ command = make_simple_command(:post, 'v1/variants:merge', options)
1890
+ command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation
1891
+ command.request_object = merge_variants_request_object
1892
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1893
+ command.response_class = Google::Apis::GenomicsV1::Empty
1889
1894
  command.query['fields'] = fields unless fields.nil?
1890
1895
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1891
1896
  execute_or_queue_command(command, &block)
1892
1897
  end
1893
1898
 
1894
- # Undeletes a dataset by restoring a dataset which was deleted via this API.
1895
- # For the definitions of datasets and other genomics resources, see
1899
+ # Updates a variant.
1900
+ # For the definitions of variants and other genomics resources, see
1896
1901
  # [Fundamentals of Google
1897
1902
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1898
- # This operation is only possible for a week after the deletion occurred.
1899
- # @param [String] dataset_id
1900
- # The ID of the dataset to be undeleted.
1901
- # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object
1903
+ # This method supports patch semantics. Returns the modified variant without
1904
+ # its calls.
1905
+ # @param [String] variant_id
1906
+ # The ID of the variant to be updated.
1907
+ # @param [Google::Apis::GenomicsV1::Variant] variant_object
1908
+ # @param [String] update_mask
1909
+ # An optional mask specifying which fields to update. At this time, mutable
1910
+ # fields are names and
1911
+ # info. Acceptable values are "names" and
1912
+ # "info". If unspecified, all mutable fields will be updated.
1902
1913
  # @param [String] fields
1903
1914
  # Selector specifying which fields to include in a partial response.
1904
1915
  # @param [String] quota_user
@@ -1908,32 +1919,35 @@ module Google
1908
1919
  # Request-specific options
1909
1920
  #
1910
1921
  # @yield [result, err] Result & error if block supplied
1911
- # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1922
+ # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1912
1923
  # @yieldparam err [StandardError] error object if request failed
1913
1924
  #
1914
- # @return [Google::Apis::GenomicsV1::Dataset]
1925
+ # @return [Google::Apis::GenomicsV1::Variant]
1915
1926
  #
1916
1927
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1917
1928
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1918
1929
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1919
- def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1920
- command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options)
1921
- command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation
1922
- command.request_object = undelete_dataset_request_object
1923
- command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1924
- command.response_class = Google::Apis::GenomicsV1::Dataset
1925
- command.params['datasetId'] = dataset_id unless dataset_id.nil?
1930
+ def patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1931
+ command = make_simple_command(:patch, 'v1/variants/{variantId}', options)
1932
+ command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
1933
+ command.request_object = variant_object
1934
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1935
+ command.response_class = Google::Apis::GenomicsV1::Variant
1936
+ command.params['variantId'] = variant_id unless variant_id.nil?
1937
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1926
1938
  command.query['fields'] = fields unless fields.nil?
1927
1939
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1928
1940
  execute_or_queue_command(command, &block)
1929
1941
  end
1930
1942
 
1931
- # Gets a dataset by ID.
1932
- # For the definitions of datasets and other genomics resources, see
1943
+ # Gets a list of variants matching the criteria.
1944
+ # For the definitions of variants and other genomics resources, see
1933
1945
  # [Fundamentals of Google
1934
1946
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1935
- # @param [String] dataset_id
1936
- # The ID of the dataset.
1947
+ # Implements
1948
+ # [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.
1949
+ # 1/src/main/resources/avro/variantmethods.avdl#L126).
1950
+ # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object
1937
1951
  # @param [String] fields
1938
1952
  # Selector specifying which fields to include in a partial response.
1939
1953
  # @param [String] quota_user
@@ -1943,37 +1957,33 @@ module Google
1943
1957
  # Request-specific options
1944
1958
  #
1945
1959
  # @yield [result, err] Result & error if block supplied
1946
- # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1960
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantsResponse] parsed result object
1947
1961
  # @yieldparam err [StandardError] error object if request failed
1948
1962
  #
1949
- # @return [Google::Apis::GenomicsV1::Dataset]
1963
+ # @return [Google::Apis::GenomicsV1::SearchVariantsResponse]
1950
1964
  #
1951
1965
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1952
1966
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1953
1967
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1954
- def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
1955
- command = make_simple_command(:get, 'v1/datasets/{datasetId}', options)
1956
- command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1957
- command.response_class = Google::Apis::GenomicsV1::Dataset
1958
- command.params['datasetId'] = dataset_id unless dataset_id.nil?
1968
+ def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1969
+ command = make_simple_command(:post, 'v1/variants/search', options)
1970
+ command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation
1971
+ command.request_object = search_variants_request_object
1972
+ command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation
1973
+ command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse
1959
1974
  command.query['fields'] = fields unless fields.nil?
1960
1975
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1961
1976
  execute_or_queue_command(command, &block)
1962
1977
  end
1963
1978
 
1964
- # Updates a dataset.
1965
- # For the definitions of datasets and other genomics resources, see
1979
+ # Creates a new variant set.
1980
+ # For the definitions of variant sets and other genomics resources, see
1966
1981
  # [Fundamentals of Google
1967
1982
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1968
- # This method supports patch semantics.
1969
- # @param [String] dataset_id
1970
- # The ID of the dataset to be updated.
1971
- # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
1972
- # @param [String] update_mask
1973
- # An optional mask specifying which fields to update. At this time, the only
1974
- # mutable field is name. The only
1975
- # acceptable value is "name". If unspecified, all mutable fields will be
1976
- # updated.
1983
+ # The provided variant set must have a valid `datasetId` set - all other
1984
+ # fields are optional. Note that the `id` field will be ignored, as this is
1985
+ # assigned by the server.
1986
+ # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object
1977
1987
  # @param [String] fields
1978
1988
  # Selector specifying which fields to include in a partial response.
1979
1989
  # @param [String] quota_user
@@ -1983,37 +1993,32 @@ module Google
1983
1993
  # Request-specific options
1984
1994
  #
1985
1995
  # @yield [result, err] Result & error if block supplied
1986
- # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1996
+ # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
1987
1997
  # @yieldparam err [StandardError] error object if request failed
1988
1998
  #
1989
- # @return [Google::Apis::GenomicsV1::Dataset]
1999
+ # @return [Google::Apis::GenomicsV1::VariantSet]
1990
2000
  #
1991
2001
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1992
2002
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1993
2003
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1994
- def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1995
- command = make_simple_command(:patch, 'v1/datasets/{datasetId}', options)
1996
- command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
1997
- command.request_object = dataset_object
1998
- command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1999
- command.response_class = Google::Apis::GenomicsV1::Dataset
2000
- command.params['datasetId'] = dataset_id unless dataset_id.nil?
2001
- command.query['updateMask'] = update_mask unless update_mask.nil?
2004
+ def create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2005
+ command = make_simple_command(:post, 'v1/variantsets', options)
2006
+ command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation
2007
+ command.request_object = variant_set_object
2008
+ command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
2009
+ command.response_class = Google::Apis::GenomicsV1::VariantSet
2002
2010
  command.query['fields'] = fields unless fields.nil?
2003
2011
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2004
2012
  execute_or_queue_command(command, &block)
2005
2013
  end
2006
2014
 
2007
- # Returns permissions that a caller has on the specified resource.
2008
- # See <a href="/iam/docs/managing-policies#testing_permissions">Testing
2009
- # Permissions</a> for more information.
2010
- # For the definitions of datasets and other genomics resources, see
2015
+ # Deletes a variant set including all variants, call sets, and calls within.
2016
+ # This is not reversible.
2017
+ # For the definitions of variant sets and other genomics resources, see
2011
2018
  # [Fundamentals of Google
2012
2019
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
2013
- # @param [String] resource
2014
- # REQUIRED: The resource for which policy is being specified. Format is
2015
- # `datasets/<dataset ID>`.
2016
- # @param [Google::Apis::GenomicsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
2020
+ # @param [String] variant_set_id
2021
+ # The ID of the variant set to be deleted.
2017
2022
  # @param [String] fields
2018
2023
  # Selector specifying which fields to include in a partial response.
2019
2024
  # @param [String] quota_user
@@ -2023,37 +2028,32 @@ module Google
2023
2028
  # Request-specific options
2024
2029
  #
2025
2030
  # @yield [result, err] Result & error if block supplied
2026
- # @yieldparam result [Google::Apis::GenomicsV1::TestIamPermissionsResponse] parsed result object
2031
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
2027
2032
  # @yieldparam err [StandardError] error object if request failed
2028
2033
  #
2029
- # @return [Google::Apis::GenomicsV1::TestIamPermissionsResponse]
2034
+ # @return [Google::Apis::GenomicsV1::Empty]
2030
2035
  #
2031
2036
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2032
2037
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2033
2038
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2034
- def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2035
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
2036
- command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation
2037
- command.request_object = test_iam_permissions_request_object
2038
- command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation
2039
- command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse
2040
- command.params['resource'] = resource unless resource.nil?
2039
+ def delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block)
2040
+ command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', options)
2041
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
2042
+ command.response_class = Google::Apis::GenomicsV1::Empty
2043
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2041
2044
  command.query['fields'] = fields unless fields.nil?
2042
2045
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2043
2046
  execute_or_queue_command(command, &block)
2044
2047
  end
2045
2048
 
2046
- # Deletes a dataset and all of its contents (all read group sets,
2047
- # reference sets, variant sets, call sets, annotation sets, etc.)
2048
- # This is reversible (up to one week after the deletion) via
2049
- # the
2050
- # datasets.undelete
2051
- # operation.
2052
- # For the definitions of datasets and other genomics resources, see
2049
+ # Exports variant set data to an external destination.
2050
+ # For the definitions of variant sets and other genomics resources, see
2053
2051
  # [Fundamentals of Google
2054
2052
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
2055
- # @param [String] dataset_id
2056
- # The ID of the dataset to be deleted.
2053
+ # @param [String] variant_set_id
2054
+ # Required. The ID of the variant set that contains variant data which
2055
+ # should be exported. The caller must have READ access to this variant set.
2056
+ # @param [Google::Apis::GenomicsV1::ExportVariantSetRequest] export_variant_set_request_object
2057
2057
  # @param [String] fields
2058
2058
  # Selector specifying which fields to include in a partial response.
2059
2059
  # @param [String] quota_user
@@ -2063,37 +2063,32 @@ module Google
2063
2063
  # Request-specific options
2064
2064
  #
2065
2065
  # @yield [result, err] Result & error if block supplied
2066
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
2066
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
2067
2067
  # @yieldparam err [StandardError] error object if request failed
2068
2068
  #
2069
- # @return [Google::Apis::GenomicsV1::Empty]
2069
+ # @return [Google::Apis::GenomicsV1::Operation]
2070
2070
  #
2071
2071
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2072
2072
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2073
2073
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2074
- def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
2075
- command = make_simple_command(:delete, 'v1/datasets/{datasetId}', options)
2076
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
2077
- command.response_class = Google::Apis::GenomicsV1::Empty
2078
- command.params['datasetId'] = dataset_id unless dataset_id.nil?
2074
+ def export_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2075
+ command = make_simple_command(:post, 'v1/variantsets/{variantSetId}:export', options)
2076
+ command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation
2077
+ command.request_object = export_variant_set_request_object
2078
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
2079
+ command.response_class = Google::Apis::GenomicsV1::Operation
2080
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2079
2081
  command.query['fields'] = fields unless fields.nil?
2080
2082
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2081
2083
  execute_or_queue_command(command, &block)
2082
2084
  end
2083
2085
 
2084
- # Lists datasets within a project.
2085
- # For the definitions of datasets and other genomics resources, see
2086
+ # Gets a variant set by ID.
2087
+ # For the definitions of variant sets and other genomics resources, see
2086
2088
  # [Fundamentals of Google
2087
2089
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
2088
- # @param [String] page_token
2089
- # The continuation token, which is used to page through large result sets.
2090
- # To get the next page of results, set this parameter to the value of
2091
- # `nextPageToken` from the previous response.
2092
- # @param [Fixnum] page_size
2093
- # The maximum number of results to return in a single page. If unspecified,
2094
- # defaults to 50. The maximum value is 1024.
2095
- # @param [String] project_id
2096
- # Required. The Google Cloud project ID to list datasets for.
2090
+ # @param [String] variant_set_id
2091
+ # Required. The ID of the variant set.
2097
2092
  # @param [String] fields
2098
2093
  # Selector specifying which fields to include in a partial response.
2099
2094
  # @param [String] quota_user
@@ -2103,37 +2098,38 @@ module Google
2103
2098
  # Request-specific options
2104
2099
  #
2105
2100
  # @yield [result, err] Result & error if block supplied
2106
- # @yieldparam result [Google::Apis::GenomicsV1::ListDatasetsResponse] parsed result object
2101
+ # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
2107
2102
  # @yieldparam err [StandardError] error object if request failed
2108
2103
  #
2109
- # @return [Google::Apis::GenomicsV1::ListDatasetsResponse]
2104
+ # @return [Google::Apis::GenomicsV1::VariantSet]
2110
2105
  #
2111
2106
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2112
2107
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2113
2108
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2114
- def list_datasets(page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
2115
- command = make_simple_command(:get, 'v1/datasets', options)
2116
- command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation
2117
- command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse
2118
- command.query['pageToken'] = page_token unless page_token.nil?
2119
- command.query['pageSize'] = page_size unless page_size.nil?
2120
- command.query['projectId'] = project_id unless project_id.nil?
2109
+ def get_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block)
2110
+ command = make_simple_command(:get, 'v1/variantsets/{variantSetId}', options)
2111
+ command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
2112
+ command.response_class = Google::Apis::GenomicsV1::VariantSet
2113
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2121
2114
  command.query['fields'] = fields unless fields.nil?
2122
2115
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2123
2116
  execute_or_queue_command(command, &block)
2124
2117
  end
2125
2118
 
2126
- # Sets the access control policy on the specified dataset. Replaces any
2127
- # existing policy.
2128
- # For the definitions of datasets and other genomics resources, see
2119
+ # Updates a variant set using patch semantics.
2120
+ # For the definitions of variant sets and other genomics resources, see
2129
2121
  # [Fundamentals of Google
2130
2122
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
2131
- # See <a href="/iam/docs/managing-policies#setting_a_policy">Setting a
2132
- # Policy</a> for more information.
2133
- # @param [String] resource
2134
- # REQUIRED: The resource for which policy is being specified. Format is
2135
- # `datasets/<dataset ID>`.
2136
- # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object
2123
+ # @param [String] variant_set_id
2124
+ # The ID of the variant to be updated (must already exist).
2125
+ # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object
2126
+ # @param [String] update_mask
2127
+ # An optional mask specifying which fields to update. Supported fields:
2128
+ # * metadata.
2129
+ # * name.
2130
+ # * description.
2131
+ # Leaving `updateMask` unset is equivalent to specifying all mutable
2132
+ # fields.
2137
2133
  # @param [String] fields
2138
2134
  # Selector specifying which fields to include in a partial response.
2139
2135
  # @param [String] quota_user
@@ -2143,31 +2139,35 @@ module Google
2143
2139
  # Request-specific options
2144
2140
  #
2145
2141
  # @yield [result, err] Result & error if block supplied
2146
- # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
2142
+ # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
2147
2143
  # @yieldparam err [StandardError] error object if request failed
2148
2144
  #
2149
- # @return [Google::Apis::GenomicsV1::Policy]
2145
+ # @return [Google::Apis::GenomicsV1::VariantSet]
2150
2146
  #
2151
2147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2152
2148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2153
2149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2154
- def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2155
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
2156
- command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation
2157
- command.request_object = set_iam_policy_request_object
2158
- command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
2159
- command.response_class = Google::Apis::GenomicsV1::Policy
2160
- command.params['resource'] = resource unless resource.nil?
2150
+ def patch_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
2151
+ command = make_simple_command(:patch, 'v1/variantsets/{variantSetId}', options)
2152
+ command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation
2153
+ command.request_object = variant_set_object
2154
+ command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
2155
+ command.response_class = Google::Apis::GenomicsV1::VariantSet
2156
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2157
+ command.query['updateMask'] = update_mask unless update_mask.nil?
2161
2158
  command.query['fields'] = fields unless fields.nil?
2162
2159
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2163
2160
  execute_or_queue_command(command, &block)
2164
2161
  end
2165
2162
 
2166
- # Creates a new dataset.
2167
- # For the definitions of datasets and other genomics resources, see
2163
+ # Returns a list of all variant sets matching search criteria.
2164
+ # For the definitions of variant sets and other genomics resources, see
2168
2165
  # [Fundamentals of Google
2169
2166
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
2170
- # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
2167
+ # Implements
2168
+ # [GlobalAllianceApi.searchVariantSets](https://github.com/ga4gh/schemas/blob/v0.
2169
+ # 5.1/src/main/resources/avro/variantmethods.avdl#L49).
2170
+ # @param [Google::Apis::GenomicsV1::SearchVariantSetsRequest] search_variant_sets_request_object
2171
2171
  # @param [String] fields
2172
2172
  # Selector specifying which fields to include in a partial response.
2173
2173
  # @param [String] quota_user
@@ -2177,20 +2177,20 @@ module Google
2177
2177
  # Request-specific options
2178
2178
  #
2179
2179
  # @yield [result, err] Result & error if block supplied
2180
- # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
2180
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantSetsResponse] parsed result object
2181
2181
  # @yieldparam err [StandardError] error object if request failed
2182
2182
  #
2183
- # @return [Google::Apis::GenomicsV1::Dataset]
2183
+ # @return [Google::Apis::GenomicsV1::SearchVariantSetsResponse]
2184
2184
  #
2185
2185
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2186
2186
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2187
2187
  # @raise [Google::Apis::AuthorizationError] Authorization is required
2188
- def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2189
- command = make_simple_command(:post, 'v1/datasets', options)
2190
- command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
2191
- command.request_object = dataset_object
2192
- command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
2193
- command.response_class = Google::Apis::GenomicsV1::Dataset
2188
+ def search_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2189
+ command = make_simple_command(:post, 'v1/variantsets/search', options)
2190
+ command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation
2191
+ command.request_object = search_variant_sets_request_object
2192
+ command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation
2193
+ command.response_class = Google::Apis::GenomicsV1::SearchVariantSetsResponse
2194
2194
  command.query['fields'] = fields unless fields.nil?
2195
2195
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2196
2196
  execute_or_queue_command(command, &block)