google-api-client 0.9.8 → 0.10.2

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