google-api-client 0.11.3 → 0.12.0

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