google-api-client 0.8.7 → 0.9.pre1

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/.gitignore +20 -0
  3. data/.rspec +2 -0
  4. data/.rubocop.yml +7 -0
  5. data/.rubocop_todo.yml +63 -0
  6. data/.travis.yml +21 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +6 -3
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +28 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +158 -150
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +872 -0
  15. data/api_names_out.yaml +20843 -0
  16. data/bin/generate-api +93 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1124 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +375 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +893 -0
  21. data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
  22. data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
  23. data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
  24. data/generated/google/apis/adexchangeseller_v2_0/service.rb +682 -0
  25. data/generated/google/apis/admin_directory_v1.rb +89 -0
  26. data/generated/google/apis/admin_directory_v1/classes.rb +2389 -0
  27. data/generated/google/apis/admin_directory_v1/representations.rb +780 -0
  28. data/generated/google/apis/admin_directory_v1/service.rb +2805 -0
  29. data/generated/google/apis/admin_reports_v1.rb +38 -0
  30. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  31. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  32. data/generated/google/apis/admin_reports_v1/service.rb +341 -0
  33. data/generated/google/apis/adsense_v1_4.rb +38 -0
  34. data/generated/google/apis/adsense_v1_4/classes.rb +1279 -0
  35. data/generated/google/apis/adsense_v1_4/representations.rb +493 -0
  36. data/generated/google/apis/adsense_v1_4/service.rb +1752 -0
  37. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  38. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  39. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  40. data/generated/google/apis/adsensehost_v4_1/service.rb +1190 -0
  41. data/generated/google/apis/analytics_v3.rb +49 -0
  42. data/generated/google/apis/analytics_v3/classes.rb +5113 -0
  43. data/generated/google/apis/analytics_v3/representations.rb +1661 -0
  44. data/generated/google/apis/analytics_v3/service.rb +3600 -0
  45. data/generated/google/apis/androidenterprise_v1.rb +34 -0
  46. data/generated/google/apis/androidenterprise_v1/classes.rb +1162 -0
  47. data/generated/google/apis/androidenterprise_v1/representations.rb +431 -0
  48. data/generated/google/apis/androidenterprise_v1/service.rb +1979 -0
  49. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  50. data/generated/google/apis/androidpublisher_v2/classes.rb +1374 -0
  51. data/generated/google/apis/androidpublisher_v2/representations.rb +630 -0
  52. data/generated/google/apis/androidpublisher_v2/service.rb +2390 -0
  53. data/generated/google/apis/appsactivity_v1.rb +46 -0
  54. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  55. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  56. data/generated/google/apis/appsactivity_v1/service.rb +129 -0
  57. data/generated/google/apis/appstate_v1.rb +34 -0
  58. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  59. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  60. data/generated/google/apis/appstate_v1/service.rb +265 -0
  61. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  62. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  63. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  64. data/generated/google/apis/autoscaler_v1beta2/service.rb +488 -0
  65. data/generated/google/apis/bigquery_v2.rb +49 -0
  66. data/generated/google/apis/bigquery_v2/classes.rb +2255 -0
  67. data/generated/google/apis/bigquery_v2/representations.rb +754 -0
  68. data/generated/google/apis/bigquery_v2/service.rb +1003 -0
  69. data/generated/google/apis/blogger_v3.rb +37 -0
  70. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  71. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  72. data/generated/google/apis/blogger_v3/service.rb +1620 -0
  73. data/generated/google/apis/books_v1.rb +34 -0
  74. data/generated/google/apis/books_v1/classes.rb +3515 -0
  75. data/generated/google/apis/books_v1/representations.rb +1361 -0
  76. data/generated/google/apis/books_v1/service.rb +2170 -0
  77. data/generated/google/apis/calendar_v3.rb +37 -0
  78. data/generated/google/apis/calendar_v3/classes.rb +1702 -0
  79. data/generated/google/apis/calendar_v3/representations.rb +566 -0
  80. data/generated/google/apis/calendar_v3/service.rb +1943 -0
  81. data/generated/google/apis/civicinfo_v2.rb +31 -0
  82. data/generated/google/apis/civicinfo_v2/classes.rb +1057 -0
  83. data/generated/google/apis/civicinfo_v2/representations.rb +374 -0
  84. data/generated/google/apis/civicinfo_v2/service.rb +284 -0
  85. data/generated/google/apis/cloudmonitoring_v2beta2.rb +34 -0
  86. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  87. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  88. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +458 -0
  89. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  90. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +139 -0
  91. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +65 -0
  92. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +301 -0
  93. data/generated/google/apis/compute_v1.rb +49 -0
  94. data/generated/google/apis/compute_v1/classes.rb +6391 -0
  95. data/generated/google/apis/compute_v1/representations.rb +2209 -0
  96. data/generated/google/apis/compute_v1/service.rb +6352 -0
  97. data/generated/google/apis/container_v1beta1.rb +35 -0
  98. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  99. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  100. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  101. data/generated/google/apis/content_v2.rb +35 -0
  102. data/generated/google/apis/content_v2/classes.rb +3780 -0
  103. data/generated/google/apis/content_v2/representations.rb +1456 -0
  104. data/generated/google/apis/content_v2/service.rb +1706 -0
  105. data/generated/google/apis/coordinate_v1.rb +37 -0
  106. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  107. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  108. data/generated/google/apis/coordinate_v1/service.rb +687 -0
  109. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  110. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  111. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  112. data/generated/google/apis/customsearch_v1/service.rb +208 -0
  113. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  114. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  115. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  116. data/generated/google/apis/datastore_v1beta2/service.rb +300 -0
  117. data/generated/google/apis/deploymentmanager_v2beta2.rb +41 -0
  118. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +820 -0
  119. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +303 -0
  120. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +647 -0
  121. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  122. data/generated/google/apis/dfareporting_v2_1/classes.rb +10755 -0
  123. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  124. data/generated/google/apis/dfareporting_v2_1/service.rb +8775 -0
  125. data/generated/google/apis/discovery_v1.rb +32 -0
  126. data/generated/google/apis/discovery_v1/classes.rb +947 -0
  127. data/generated/google/apis/discovery_v1/representations.rb +355 -0
  128. data/generated/google/apis/discovery_v1/service.rb +144 -0
  129. data/generated/google/apis/dns_v1.rb +41 -0
  130. data/generated/google/apis/dns_v1/classes.rb +406 -0
  131. data/generated/google/apis/dns_v1/representations.rb +151 -0
  132. data/generated/google/apis/dns_v1/service.rb +460 -0
  133. data/{spec/google/api_client/request_spec.rb → generated/google/apis/doubleclickbidmanager_v1.rb} +15 -13
  134. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +709 -0
  135. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +297 -0
  136. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +349 -0
  137. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  138. data/generated/google/apis/doubleclicksearch_v2/classes.rb +947 -0
  139. data/generated/google/apis/doubleclicksearch_v2/representations.rb +315 -0
  140. data/generated/google/apis/doubleclicksearch_v2/service.rb +490 -0
  141. data/generated/google/apis/drive_v2.rb +55 -0
  142. data/generated/google/apis/drive_v2/classes.rb +2519 -0
  143. data/generated/google/apis/drive_v2/representations.rb +781 -0
  144. data/generated/google/apis/drive_v2/service.rb +2685 -0
  145. data/generated/google/apis/fitness_v1.rb +49 -0
  146. data/generated/google/apis/fitness_v1/classes.rb +809 -0
  147. data/generated/google/apis/fitness_v1/representations.rb +295 -0
  148. data/generated/google/apis/fitness_v1/service.rb +684 -0
  149. data/generated/google/apis/fusiontables_v2.rb +37 -0
  150. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  151. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  152. data/generated/google/apis/fusiontables_v2/service.rb +1496 -0
  153. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  154. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  155. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  156. data/generated/google/apis/games_configuration_v1configuration/service.rb +578 -0
  157. data/generated/google/apis/games_v1.rb +40 -0
  158. data/generated/google/apis/games_v1/classes.rb +4578 -0
  159. data/generated/google/apis/games_v1/representations.rb +1570 -0
  160. data/generated/google/apis/games_v1/service.rb +2306 -0
  161. data/generated/google/apis/gan_v1beta1.rb +31 -0
  162. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  163. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  164. data/generated/google/apis/gan_v1beta1/service.rb +692 -0
  165. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  166. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  167. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  168. data/generated/google/apis/genomics_v1beta2/service.rb +2356 -0
  169. data/generated/google/apis/gmail_v1.rb +49 -0
  170. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  171. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  172. data/generated/google/apis/gmail_v1/service.rb +1502 -0
  173. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  174. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  175. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  176. data/generated/google/apis/groupsmigration_v1/service.rb +111 -0
  177. data/generated/google/apis/groupssettings_v1.rb +34 -0
  178. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  179. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  180. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  181. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  182. data/generated/google/apis/identitytoolkit_v3/classes.rb +1229 -0
  183. data/generated/google/apis/identitytoolkit_v3/representations.rb +422 -0
  184. data/generated/google/apis/identitytoolkit_v3/service.rb +491 -0
  185. data/generated/google/apis/licensing_v1.rb +34 -0
  186. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  187. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  188. data/generated/google/apis/licensing_v1/service.rb +376 -0
  189. data/generated/google/apis/logging_v1beta3.rb +35 -0
  190. data/generated/google/apis/logging_v1beta3/classes.rb +505 -0
  191. data/generated/google/apis/logging_v1beta3/representations.rb +222 -0
  192. data/generated/google/apis/logging_v1beta3/service.rb +670 -0
  193. data/generated/google/apis/manager_v1beta2.rb +50 -0
  194. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  195. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  196. data/generated/google/apis/manager_v1beta2/service.rb +380 -0
  197. data/generated/google/apis/mapsengine_v1.rb +38 -0
  198. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  199. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  200. data/generated/google/apis/mapsengine_v1/service.rb +3465 -0
  201. data/generated/google/apis/mirror_v1.rb +37 -0
  202. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  203. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  204. data/generated/google/apis/mirror_v1/service.rb +1001 -0
  205. data/generated/google/apis/oauth2_v2.rb +43 -0
  206. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  207. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  208. data/generated/google/apis/oauth2_v2/service.rb +203 -0
  209. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  210. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  211. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  212. data/generated/google/apis/pagespeedonline_v2/service.rb +120 -0
  213. data/generated/google/apis/plus_domains_v1.rb +61 -0
  214. data/generated/google/apis/plus_domains_v1/classes.rb +2402 -0
  215. data/generated/google/apis/plus_domains_v1/representations.rb +873 -0
  216. data/generated/google/apis/plus_domains_v1/service.rb +924 -0
  217. data/generated/google/apis/plus_v1.rb +43 -0
  218. data/generated/google/apis/plus_v1/classes.rb +2384 -0
  219. data/generated/google/apis/plus_v1/representations.rb +812 -0
  220. data/generated/google/apis/plus_v1/service.rb +616 -0
  221. data/generated/google/apis/prediction_v1_6.rb +44 -0
  222. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  223. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  224. data/generated/google/apis/prediction_v1_6/service.rb +388 -0
  225. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  226. data/generated/google/apis/pubsub_v1beta2/classes.rb +824 -0
  227. data/generated/google/apis/pubsub_v1beta2/representations.rb +366 -0
  228. data/generated/google/apis/pubsub_v1beta2/service.rb +778 -0
  229. data/generated/google/apis/qpx_express_v1.rb +31 -0
  230. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  231. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  232. data/generated/google/apis/qpx_express_v1/service.rb +101 -0
  233. data/generated/google/apis/replicapool_v1beta2.rb +41 -0
  234. data/generated/google/apis/replicapool_v1beta2/classes.rb +621 -0
  235. data/generated/google/apis/replicapool_v1beta2/representations.rb +235 -0
  236. data/generated/google/apis/replicapool_v1beta2/service.rb +620 -0
  237. data/generated/google/apis/replicapoolupdater_v1beta1.rb +41 -0
  238. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +682 -0
  239. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +247 -0
  240. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +472 -0
  241. data/generated/google/apis/reseller_v1.rb +37 -0
  242. data/generated/google/apis/reseller_v1/classes.rb +502 -0
  243. data/generated/google/apis/reseller_v1/representations.rb +199 -0
  244. data/generated/google/apis/reseller_v1/service.rb +637 -0
  245. data/generated/google/apis/resourceviews_v1beta2.rb +47 -0
  246. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  247. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  248. data/generated/google/apis/resourceviews_v1beta2/service.rb +574 -0
  249. data/generated/google/apis/site_verification_v1.rb +37 -0
  250. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  251. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  252. data/generated/google/apis/site_verification_v1/service.rb +322 -0
  253. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  254. data/generated/google/apis/sqladmin_v1beta4/classes.rb +1817 -0
  255. data/generated/google/apis/sqladmin_v1beta4/representations.rb +688 -0
  256. data/generated/google/apis/sqladmin_v1beta4/service.rb +1534 -0
  257. data/generated/google/apis/storage_v1.rb +43 -0
  258. data/generated/google/apis/storage_v1/classes.rb +1177 -0
  259. data/generated/google/apis/storage_v1/representations.rb +427 -0
  260. data/generated/google/apis/storage_v1/service.rb +1920 -0
  261. data/generated/google/apis/tagmanager_v1.rb +52 -0
  262. data/generated/google/apis/tagmanager_v1/classes.rb +1226 -0
  263. data/generated/google/apis/tagmanager_v1/representations.rb +461 -0
  264. data/generated/google/apis/tagmanager_v1/service.rb +1978 -0
  265. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  266. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  267. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  268. data/generated/google/apis/taskqueue_v1beta2/service.rb +416 -0
  269. data/generated/google/apis/tasks_v1.rb +37 -0
  270. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  271. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  272. data/generated/google/apis/tasks_v1/service.rb +657 -0
  273. data/generated/google/apis/translate_v2.rb +31 -0
  274. data/generated/google/apis/translate_v2/classes.rb +168 -0
  275. data/generated/google/apis/translate_v2/representations.rb +109 -0
  276. data/generated/google/apis/translate_v2/service.rb +185 -0
  277. data/generated/google/apis/urlshortener_v1.rb +34 -0
  278. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  279. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  280. data/generated/google/apis/urlshortener_v1/service.rb +179 -0
  281. data/generated/google/apis/webmasters_v3.rb +37 -0
  282. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  283. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  284. data/generated/google/apis/webmasters_v3/service.rb +587 -0
  285. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  286. data/generated/google/apis/youtube_analytics_v1/classes.rb +540 -0
  287. data/generated/google/apis/youtube_analytics_v1/representations.rb +242 -0
  288. data/generated/google/apis/youtube_analytics_v1/service.rb +567 -0
  289. data/generated/google/apis/youtube_v3.rb +49 -0
  290. data/generated/google/apis/youtube_v3/classes.rb +7225 -0
  291. data/generated/google/apis/youtube_v3/representations.rb +2529 -0
  292. data/generated/google/apis/youtube_v3/service.rb +4051 -0
  293. data/google-api-client.gemspec +27 -39
  294. data/lib/google/api_client/auth/storage.rb +3 -2
  295. data/lib/google/api_client/auth/storages/file_store.rb +1 -3
  296. data/lib/google/api_client/auth/storages/redis_store.rb +6 -2
  297. data/lib/google/apis.rb +48 -0
  298. data/lib/google/apis/core/api_command.rb +128 -0
  299. data/lib/google/apis/core/base_service.rb +314 -0
  300. data/lib/google/apis/core/batch.rb +222 -0
  301. data/lib/google/apis/core/download.rb +94 -0
  302. data/lib/google/apis/core/hashable.rb +44 -0
  303. data/lib/google/apis/core/http_command.rb +275 -0
  304. data/lib/google/apis/core/json_representation.rb +122 -0
  305. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  306. data/lib/google/apis/core/multipart.rb +173 -0
  307. data/lib/google/apis/core/upload.rb +275 -0
  308. data/lib/google/{api_client → apis}/errors.rb +32 -28
  309. data/lib/google/apis/generator.rb +70 -0
  310. data/lib/google/apis/generator/annotator.rb +271 -0
  311. data/lib/google/apis/generator/helpers.rb +74 -0
  312. data/lib/google/apis/generator/model.rb +130 -0
  313. data/lib/google/apis/generator/template.rb +124 -0
  314. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  315. data/lib/google/apis/generator/templates/_method.tmpl +90 -0
  316. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  317. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  318. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  319. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  320. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  321. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  322. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  323. data/lib/google/apis/options.rb +79 -0
  324. data/lib/google/apis/version.rb +39 -0
  325. data/rakelib/metrics.rake +22 -0
  326. data/rakelib/rubocop.rake +10 -0
  327. data/rakelib/spec.rake +11 -0
  328. data/rakelib/yard.rake +11 -0
  329. data/samples/calendar/calendar.rb +43 -0
  330. data/samples/drive/drive.rb +40 -0
  331. data/samples/pubsub/pubsub.rb +52 -0
  332. data/{lib/google/api_client/discovery.rb → samples/translate/translate.rb} +14 -5
  333. data/script/generate +79 -0
  334. data/script/package +8 -0
  335. data/script/release +15 -0
  336. data/spec/fixtures/files/api_names.yaml +3 -0
  337. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  338. data/spec/fixtures/files/client_secrets.json +1 -0
  339. data/spec/fixtures/files/test.blah +1 -0
  340. data/spec/fixtures/files/test.txt +1 -0
  341. data/spec/fixtures/files/test_api.json +440 -0
  342. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  343. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  344. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  345. data/spec/google/apis/core/api_command_spec.rb +170 -0
  346. data/spec/google/apis/core/batch_spec.rb +128 -0
  347. data/spec/google/apis/core/download_spec.rb +90 -0
  348. data/spec/google/apis/core/hashable_spec.rb +60 -0
  349. data/spec/google/apis/core/http_command_spec.rb +238 -0
  350. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  351. data/spec/google/apis/core/service_spec.rb +247 -0
  352. data/spec/google/apis/core/upload_spec.rb +238 -0
  353. data/{lib/google/api_client/service_account.rb → spec/google/apis/generated_spec.rb} +14 -8
  354. data/spec/google/apis/generator/generator_spec.rb +272 -0
  355. data/spec/google/apis/logging_spec.rb +45 -0
  356. data/spec/google/apis/options_spec.rb +40 -0
  357. data/spec/integration_tests/drive_spec.rb +35 -0
  358. data/spec/integration_tests/pubsub_spec.rb +48 -0
  359. data/spec/integration_tests/url_shortener_spec.rb +31 -0
  360. data/spec/spec_helper.rb +102 -46
  361. metadata +433 -178
  362. data/lib/compat/multi_json.rb +0 -19
  363. data/lib/google/api_client.rb +0 -750
  364. data/lib/google/api_client/auth/file_storage.rb +0 -59
  365. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  366. data/lib/google/api_client/auth/key_utils.rb +0 -93
  367. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  368. data/lib/google/api_client/batch.rb +0 -326
  369. data/lib/google/api_client/charset.rb +0 -33
  370. data/lib/google/api_client/discovery/api.rb +0 -310
  371. data/lib/google/api_client/discovery/media.rb +0 -77
  372. data/lib/google/api_client/discovery/method.rb +0 -363
  373. data/lib/google/api_client/discovery/resource.rb +0 -156
  374. data/lib/google/api_client/discovery/schema.rb +0 -117
  375. data/lib/google/api_client/environment.rb +0 -42
  376. data/lib/google/api_client/gzip.rb +0 -28
  377. data/lib/google/api_client/logging.rb +0 -32
  378. data/lib/google/api_client/media.rb +0 -259
  379. data/lib/google/api_client/railtie.rb +0 -18
  380. data/lib/google/api_client/request.rb +0 -350
  381. data/lib/google/api_client/result.rb +0 -255
  382. data/lib/google/api_client/service.rb +0 -233
  383. data/lib/google/api_client/service/batch.rb +0 -110
  384. data/lib/google/api_client/service/request.rb +0 -144
  385. data/lib/google/api_client/service/resource.rb +0 -40
  386. data/lib/google/api_client/service/result.rb +0 -162
  387. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  388. data/lib/google/api_client/service/stub_generator.rb +0 -61
  389. data/spec/google/api_client/batch_spec.rb +0 -248
  390. data/spec/google/api_client/discovery_spec.rb +0 -708
  391. data/spec/google/api_client/gzip_spec.rb +0 -98
  392. data/spec/google/api_client/media_spec.rb +0 -178
  393. data/spec/google/api_client/result_spec.rb +0 -207
  394. data/spec/google/api_client/service_account_spec.rb +0 -169
  395. data/spec/google/api_client/service_spec.rb +0 -618
  396. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  397. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,2356 @@
1
+ # Copyright 2015 Google Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ require 'google/apis/core/base_service'
16
+ require 'google/apis/core/json_representation'
17
+ require 'google/apis/core/hashable'
18
+ require 'google/apis/errors'
19
+
20
+ module Google
21
+ module Apis
22
+ module GenomicsV1beta2
23
+ # Genomics API
24
+ #
25
+ # Provides access to Genomics data.
26
+ #
27
+ # @example
28
+ # require 'google/apis/genomics_v1beta2'
29
+ #
30
+ # Genomics = Google::Apis::GenomicsV1beta2 # Alias the module
31
+ # service = Genomics::GenomicsService.new
32
+ #
33
+ # @see https://developers.google.com/genomics/v1beta2/reference
34
+ class GenomicsService < Google::Apis::Core::BaseService
35
+ # @return [String]
36
+ # API key. Your API key identifies your project and provides you with API access,
37
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
38
+ attr_accessor :key
39
+
40
+ # @return [String]
41
+ # Available to use for quota purposes for server-side applications. Can be any
42
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43
+ # Overrides userIp if both are provided.
44
+ attr_accessor :quota_user
45
+
46
+ # @return [String]
47
+ # IP address of the site where the request originates. Use this if you want to
48
+ # enforce per-user limits.
49
+ attr_accessor :user_ip
50
+
51
+ def initialize
52
+ super('https://www.googleapis.com/', 'genomics/v1beta2/')
53
+ end
54
+
55
+ # Creates a new annotation set. Caller must have WRITE permission for the
56
+ # associated dataset.
57
+ # @param [Google::Apis::GenomicsV1beta2::AnnotationSet] annotation_set_object
58
+ # @param [String] fields
59
+ # Selector specifying which fields to include in a partial response.
60
+ # @param [String] quota_user
61
+ # Available to use for quota purposes for server-side applications. Can be any
62
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
63
+ # Overrides userIp if both are provided.
64
+ # @param [String] user_ip
65
+ # IP address of the site where the request originates. Use this if you want to
66
+ # enforce per-user limits.
67
+ # @param [Google::Apis::RequestOptions] options
68
+ # Request-specific options
69
+ #
70
+ # @yield [result, err] Result & error if block supplied
71
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::AnnotationSet] parsed result object
72
+ # @yieldparam err [StandardError] error object if request failed
73
+ #
74
+ # @return [Google::Apis::GenomicsV1beta2::AnnotationSet]
75
+ #
76
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
77
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
78
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
79
+ def create_annotation_set(annotation_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
80
+ path = 'annotationSets'
81
+ command = make_simple_command(:post, path, options)
82
+ command.request_representation = Google::Apis::GenomicsV1beta2::AnnotationSet::Representation
83
+ command.request_object = annotation_set_object
84
+ command.response_representation = Google::Apis::GenomicsV1beta2::AnnotationSet::Representation
85
+ command.response_class = Google::Apis::GenomicsV1beta2::AnnotationSet
86
+ command.query['fields'] = fields unless fields.nil?
87
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
88
+ command.query['userIp'] = user_ip unless user_ip.nil?
89
+ execute_or_queue_command(command, &block)
90
+ end
91
+
92
+ # Deletes an annotation set. Caller must have WRITE permission for the
93
+ # associated annotation set.
94
+ # @param [String] annotation_set_id
95
+ # The ID of the annotation set to be deleted.
96
+ # @param [String] fields
97
+ # Selector specifying which fields to include in a partial response.
98
+ # @param [String] quota_user
99
+ # Available to use for quota purposes for server-side applications. Can be any
100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
101
+ # Overrides userIp if both are provided.
102
+ # @param [String] user_ip
103
+ # IP address of the site where the request originates. Use this if you want to
104
+ # enforce per-user limits.
105
+ # @param [Google::Apis::RequestOptions] options
106
+ # Request-specific options
107
+ #
108
+ # @yield [result, err] Result & error if block supplied
109
+ # @yieldparam result [NilClass] No result returned for this method
110
+ # @yieldparam err [StandardError] error object if request failed
111
+ #
112
+ # @return [void]
113
+ #
114
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
115
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
116
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
117
+ def delete_annotation_set(annotation_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
118
+ path = 'annotationSets/{annotationSetId}'
119
+ command = make_simple_command(:delete, path, options)
120
+ command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
121
+ command.query['fields'] = fields unless fields.nil?
122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
123
+ command.query['userIp'] = user_ip unless user_ip.nil?
124
+ execute_or_queue_command(command, &block)
125
+ end
126
+
127
+ # Gets an annotation set. Caller must have READ permission for the associated
128
+ # dataset.
129
+ # @param [String] annotation_set_id
130
+ # The ID of the annotation set to be retrieved.
131
+ # @param [String] fields
132
+ # Selector specifying which fields to include in a partial response.
133
+ # @param [String] quota_user
134
+ # Available to use for quota purposes for server-side applications. Can be any
135
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
136
+ # Overrides userIp if both are provided.
137
+ # @param [String] user_ip
138
+ # IP address of the site where the request originates. Use this if you want to
139
+ # enforce per-user limits.
140
+ # @param [Google::Apis::RequestOptions] options
141
+ # Request-specific options
142
+ #
143
+ # @yield [result, err] Result & error if block supplied
144
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::AnnotationSet] parsed result object
145
+ # @yieldparam err [StandardError] error object if request failed
146
+ #
147
+ # @return [Google::Apis::GenomicsV1beta2::AnnotationSet]
148
+ #
149
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
150
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
151
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
152
+ def get_annotation_set(annotation_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
153
+ path = 'annotationSets/{annotationSetId}'
154
+ command = make_simple_command(:get, path, options)
155
+ command.response_representation = Google::Apis::GenomicsV1beta2::AnnotationSet::Representation
156
+ command.response_class = Google::Apis::GenomicsV1beta2::AnnotationSet
157
+ command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
158
+ command.query['fields'] = fields unless fields.nil?
159
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
160
+ command.query['userIp'] = user_ip unless user_ip.nil?
161
+ execute_or_queue_command(command, &block)
162
+ end
163
+
164
+ # Updates an annotation set. The update must respect all mutability restrictions
165
+ # and other invariants described on the annotation set resource. Caller must
166
+ # have WRITE permission for the associated dataset. This method supports patch
167
+ # semantics.
168
+ # @param [String] annotation_set_id
169
+ # The ID of the annotation set to be updated.
170
+ # @param [Google::Apis::GenomicsV1beta2::AnnotationSet] annotation_set_object
171
+ # @param [String] fields
172
+ # Selector specifying which fields to include in a partial response.
173
+ # @param [String] quota_user
174
+ # Available to use for quota purposes for server-side applications. Can be any
175
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
176
+ # Overrides userIp if both are provided.
177
+ # @param [String] user_ip
178
+ # IP address of the site where the request originates. Use this if you want to
179
+ # enforce per-user limits.
180
+ # @param [Google::Apis::RequestOptions] options
181
+ # Request-specific options
182
+ #
183
+ # @yield [result, err] Result & error if block supplied
184
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::AnnotationSet] parsed result object
185
+ # @yieldparam err [StandardError] error object if request failed
186
+ #
187
+ # @return [Google::Apis::GenomicsV1beta2::AnnotationSet]
188
+ #
189
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
192
+ def patch_annotation_set(annotation_set_id, annotation_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
193
+ path = 'annotationSets/{annotationSetId}'
194
+ command = make_simple_command(:patch, path, options)
195
+ command.request_representation = Google::Apis::GenomicsV1beta2::AnnotationSet::Representation
196
+ command.request_object = annotation_set_object
197
+ command.response_representation = Google::Apis::GenomicsV1beta2::AnnotationSet::Representation
198
+ command.response_class = Google::Apis::GenomicsV1beta2::AnnotationSet
199
+ command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
200
+ command.query['fields'] = fields unless fields.nil?
201
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
202
+ command.query['userIp'] = user_ip unless user_ip.nil?
203
+ execute_or_queue_command(command, &block)
204
+ end
205
+
206
+ # Searches for annotation sets that match the given criteria. Results are
207
+ # returned in a deterministic order. Caller must have READ permission for the
208
+ # queried datasets.
209
+ # @param [Google::Apis::GenomicsV1beta2::SearchAnnotationSetsRequest] search_annotation_sets_request_object
210
+ # @param [String] fields
211
+ # Selector specifying which fields to include in a partial response.
212
+ # @param [String] quota_user
213
+ # Available to use for quota purposes for server-side applications. Can be any
214
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
215
+ # Overrides userIp if both are provided.
216
+ # @param [String] user_ip
217
+ # IP address of the site where the request originates. Use this if you want to
218
+ # enforce per-user limits.
219
+ # @param [Google::Apis::RequestOptions] options
220
+ # Request-specific options
221
+ #
222
+ # @yield [result, err] Result & error if block supplied
223
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchAnnotationSetsResponse] parsed result object
224
+ # @yieldparam err [StandardError] error object if request failed
225
+ #
226
+ # @return [Google::Apis::GenomicsV1beta2::SearchAnnotationSetsResponse]
227
+ #
228
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
229
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
230
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
231
+ def search_annotation_sets(search_annotation_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
232
+ path = 'annotationSets/search'
233
+ command = make_simple_command(:post, path, options)
234
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchAnnotationSetsRequest::Representation
235
+ command.request_object = search_annotation_sets_request_object
236
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchAnnotationSetsResponse::Representation
237
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchAnnotationSetsResponse
238
+ command.query['fields'] = fields unless fields.nil?
239
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
240
+ command.query['userIp'] = user_ip unless user_ip.nil?
241
+ execute_or_queue_command(command, &block)
242
+ end
243
+
244
+ # Updates an annotation set. The update must respect all mutability restrictions
245
+ # and other invariants described on the annotation set resource. Caller must
246
+ # have WRITE permission for the associated dataset.
247
+ # @param [String] annotation_set_id
248
+ # The ID of the annotation set to be updated.
249
+ # @param [Google::Apis::GenomicsV1beta2::AnnotationSet] annotation_set_object
250
+ # @param [String] fields
251
+ # Selector specifying which fields to include in a partial response.
252
+ # @param [String] quota_user
253
+ # Available to use for quota purposes for server-side applications. Can be any
254
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
255
+ # Overrides userIp if both are provided.
256
+ # @param [String] user_ip
257
+ # IP address of the site where the request originates. Use this if you want to
258
+ # enforce per-user limits.
259
+ # @param [Google::Apis::RequestOptions] options
260
+ # Request-specific options
261
+ #
262
+ # @yield [result, err] Result & error if block supplied
263
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::AnnotationSet] parsed result object
264
+ # @yieldparam err [StandardError] error object if request failed
265
+ #
266
+ # @return [Google::Apis::GenomicsV1beta2::AnnotationSet]
267
+ #
268
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
269
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
270
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
271
+ def update_annotation_set(annotation_set_id, annotation_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
272
+ path = 'annotationSets/{annotationSetId}'
273
+ command = make_simple_command(:put, path, options)
274
+ command.request_representation = Google::Apis::GenomicsV1beta2::AnnotationSet::Representation
275
+ command.request_object = annotation_set_object
276
+ command.response_representation = Google::Apis::GenomicsV1beta2::AnnotationSet::Representation
277
+ command.response_class = Google::Apis::GenomicsV1beta2::AnnotationSet
278
+ command.params['annotationSetId'] = annotation_set_id unless annotation_set_id.nil?
279
+ command.query['fields'] = fields unless fields.nil?
280
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
281
+ command.query['userIp'] = user_ip unless user_ip.nil?
282
+ execute_or_queue_command(command, &block)
283
+ end
284
+
285
+ # Creates one or more new annotations atomically. All annotations must belong to
286
+ # the same annotation set. Caller must have WRITE permission for this annotation
287
+ # set. For optimal performance, batch positionally adjacent annotations together.
288
+ # If the request has a systemic issue, such as an attempt to write to an
289
+ # inaccessible annotation set, the entire RPC will fail accordingly. For lesser
290
+ # data issues, when possible an error will be isolated to the corresponding
291
+ # batch entry in the response; the remaining well formed annotations will be
292
+ # created normally.
293
+ # @param [Google::Apis::GenomicsV1beta2::BatchCreateAnnotationsRequest] batch_create_annotations_request_object
294
+ # @param [String] fields
295
+ # Selector specifying which fields to include in a partial response.
296
+ # @param [String] quota_user
297
+ # Available to use for quota purposes for server-side applications. Can be any
298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
299
+ # Overrides userIp if both are provided.
300
+ # @param [String] user_ip
301
+ # IP address of the site where the request originates. Use this if you want to
302
+ # enforce per-user limits.
303
+ # @param [Google::Apis::RequestOptions] options
304
+ # Request-specific options
305
+ #
306
+ # @yield [result, err] Result & error if block supplied
307
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::BatchAnnotationsResponse] parsed result object
308
+ # @yieldparam err [StandardError] error object if request failed
309
+ #
310
+ # @return [Google::Apis::GenomicsV1beta2::BatchAnnotationsResponse]
311
+ #
312
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
313
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
314
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
315
+ def batch_create_annotations(batch_create_annotations_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
316
+ path = 'annotations:batchCreate'
317
+ command = make_simple_command(:post, path, options)
318
+ command.request_representation = Google::Apis::GenomicsV1beta2::BatchCreateAnnotationsRequest::Representation
319
+ command.request_object = batch_create_annotations_request_object
320
+ command.response_representation = Google::Apis::GenomicsV1beta2::BatchAnnotationsResponse::Representation
321
+ command.response_class = Google::Apis::GenomicsV1beta2::BatchAnnotationsResponse
322
+ command.query['fields'] = fields unless fields.nil?
323
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
324
+ command.query['userIp'] = user_ip unless user_ip.nil?
325
+ execute_or_queue_command(command, &block)
326
+ end
327
+
328
+ # Creates a new annotation. Caller must have WRITE permission for the associated
329
+ # annotation set.
330
+ # @param [Google::Apis::GenomicsV1beta2::Annotation] annotation_object
331
+ # @param [String] fields
332
+ # Selector specifying which fields to include in a partial response.
333
+ # @param [String] quota_user
334
+ # Available to use for quota purposes for server-side applications. Can be any
335
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
336
+ # Overrides userIp if both are provided.
337
+ # @param [String] user_ip
338
+ # IP address of the site where the request originates. Use this if you want to
339
+ # enforce per-user limits.
340
+ # @param [Google::Apis::RequestOptions] options
341
+ # Request-specific options
342
+ #
343
+ # @yield [result, err] Result & error if block supplied
344
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Annotation] parsed result object
345
+ # @yieldparam err [StandardError] error object if request failed
346
+ #
347
+ # @return [Google::Apis::GenomicsV1beta2::Annotation]
348
+ #
349
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
350
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
351
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
352
+ def create_annotation(annotation_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
353
+ path = 'annotations'
354
+ command = make_simple_command(:post, path, options)
355
+ command.request_representation = Google::Apis::GenomicsV1beta2::Annotation::Representation
356
+ command.request_object = annotation_object
357
+ command.response_representation = Google::Apis::GenomicsV1beta2::Annotation::Representation
358
+ command.response_class = Google::Apis::GenomicsV1beta2::Annotation
359
+ command.query['fields'] = fields unless fields.nil?
360
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
361
+ command.query['userIp'] = user_ip unless user_ip.nil?
362
+ execute_or_queue_command(command, &block)
363
+ end
364
+
365
+ # Deletes an annotation. Caller must have WRITE permission for the associated
366
+ # annotation set.
367
+ # @param [String] annotation_id
368
+ # The ID of the annotation set to be deleted.
369
+ # @param [String] fields
370
+ # Selector specifying which fields to include in a partial response.
371
+ # @param [String] quota_user
372
+ # Available to use for quota purposes for server-side applications. Can be any
373
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
374
+ # Overrides userIp if both are provided.
375
+ # @param [String] user_ip
376
+ # IP address of the site where the request originates. Use this if you want to
377
+ # enforce per-user limits.
378
+ # @param [Google::Apis::RequestOptions] options
379
+ # Request-specific options
380
+ #
381
+ # @yield [result, err] Result & error if block supplied
382
+ # @yieldparam result [NilClass] No result returned for this method
383
+ # @yieldparam err [StandardError] error object if request failed
384
+ #
385
+ # @return [void]
386
+ #
387
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
388
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
389
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
390
+ def delete_annotation(annotation_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
391
+ path = 'annotations/{annotationId}'
392
+ command = make_simple_command(:delete, path, options)
393
+ command.params['annotationId'] = annotation_id unless annotation_id.nil?
394
+ command.query['fields'] = fields unless fields.nil?
395
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
396
+ command.query['userIp'] = user_ip unless user_ip.nil?
397
+ execute_or_queue_command(command, &block)
398
+ end
399
+
400
+ # Gets an annotation. Caller must have READ permission for the associated
401
+ # annotation set.
402
+ # @param [String] annotation_id
403
+ # The ID of the annotation set to be retrieved.
404
+ # @param [String] fields
405
+ # Selector specifying which fields to include in a partial response.
406
+ # @param [String] quota_user
407
+ # Available to use for quota purposes for server-side applications. Can be any
408
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
409
+ # Overrides userIp if both are provided.
410
+ # @param [String] user_ip
411
+ # IP address of the site where the request originates. Use this if you want to
412
+ # enforce per-user limits.
413
+ # @param [Google::Apis::RequestOptions] options
414
+ # Request-specific options
415
+ #
416
+ # @yield [result, err] Result & error if block supplied
417
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Annotation] parsed result object
418
+ # @yieldparam err [StandardError] error object if request failed
419
+ #
420
+ # @return [Google::Apis::GenomicsV1beta2::Annotation]
421
+ #
422
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
423
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
424
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
425
+ def get_annotation(annotation_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
426
+ path = 'annotations/{annotationId}'
427
+ command = make_simple_command(:get, path, options)
428
+ command.response_representation = Google::Apis::GenomicsV1beta2::Annotation::Representation
429
+ command.response_class = Google::Apis::GenomicsV1beta2::Annotation
430
+ command.params['annotationId'] = annotation_id unless annotation_id.nil?
431
+ command.query['fields'] = fields unless fields.nil?
432
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
433
+ command.query['userIp'] = user_ip unless user_ip.nil?
434
+ execute_or_queue_command(command, &block)
435
+ end
436
+
437
+ # Updates an annotation. The update must respect all mutability restrictions and
438
+ # other invariants described on the annotation resource. Caller must have WRITE
439
+ # permission for the associated dataset. This method supports patch semantics.
440
+ # @param [String] annotation_id
441
+ # The ID of the annotation set to be updated.
442
+ # @param [Google::Apis::GenomicsV1beta2::Annotation] annotation_object
443
+ # @param [String] fields
444
+ # Selector specifying which fields to include in a partial response.
445
+ # @param [String] quota_user
446
+ # Available to use for quota purposes for server-side applications. Can be any
447
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
448
+ # Overrides userIp if both are provided.
449
+ # @param [String] user_ip
450
+ # IP address of the site where the request originates. Use this if you want to
451
+ # enforce per-user limits.
452
+ # @param [Google::Apis::RequestOptions] options
453
+ # Request-specific options
454
+ #
455
+ # @yield [result, err] Result & error if block supplied
456
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Annotation] parsed result object
457
+ # @yieldparam err [StandardError] error object if request failed
458
+ #
459
+ # @return [Google::Apis::GenomicsV1beta2::Annotation]
460
+ #
461
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
462
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
463
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
464
+ def patch_annotation(annotation_id, annotation_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
465
+ path = 'annotations/{annotationId}'
466
+ command = make_simple_command(:patch, path, options)
467
+ command.request_representation = Google::Apis::GenomicsV1beta2::Annotation::Representation
468
+ command.request_object = annotation_object
469
+ command.response_representation = Google::Apis::GenomicsV1beta2::Annotation::Representation
470
+ command.response_class = Google::Apis::GenomicsV1beta2::Annotation
471
+ command.params['annotationId'] = annotation_id unless annotation_id.nil?
472
+ command.query['fields'] = fields unless fields.nil?
473
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
474
+ command.query['userIp'] = user_ip unless user_ip.nil?
475
+ execute_or_queue_command(command, &block)
476
+ end
477
+
478
+ # Searches for annotations that match the given criteria. Results are returned
479
+ # ordered by start position. Annotations that have matching start positions are
480
+ # ordered deterministically. Caller must have READ permission for the queried
481
+ # annotation sets.
482
+ # @param [Google::Apis::GenomicsV1beta2::SearchAnnotationsRequest] search_annotations_request_object
483
+ # @param [String] fields
484
+ # Selector specifying which fields to include in a partial response.
485
+ # @param [String] quota_user
486
+ # Available to use for quota purposes for server-side applications. Can be any
487
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
488
+ # Overrides userIp if both are provided.
489
+ # @param [String] user_ip
490
+ # IP address of the site where the request originates. Use this if you want to
491
+ # enforce per-user limits.
492
+ # @param [Google::Apis::RequestOptions] options
493
+ # Request-specific options
494
+ #
495
+ # @yield [result, err] Result & error if block supplied
496
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchAnnotationsResponse] parsed result object
497
+ # @yieldparam err [StandardError] error object if request failed
498
+ #
499
+ # @return [Google::Apis::GenomicsV1beta2::SearchAnnotationsResponse]
500
+ #
501
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
502
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
503
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
504
+ def search_annotations(search_annotations_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
505
+ path = 'annotations/search'
506
+ command = make_simple_command(:post, path, options)
507
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchAnnotationsRequest::Representation
508
+ command.request_object = search_annotations_request_object
509
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchAnnotationsResponse::Representation
510
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchAnnotationsResponse
511
+ command.query['fields'] = fields unless fields.nil?
512
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
513
+ command.query['userIp'] = user_ip unless user_ip.nil?
514
+ execute_or_queue_command(command, &block)
515
+ end
516
+
517
+ # Updates an annotation. The update must respect all mutability restrictions and
518
+ # other invariants described on the annotation resource. Caller must have WRITE
519
+ # permission for the associated dataset.
520
+ # @param [String] annotation_id
521
+ # The ID of the annotation set to be updated.
522
+ # @param [Google::Apis::GenomicsV1beta2::Annotation] annotation_object
523
+ # @param [String] fields
524
+ # Selector specifying which fields to include in a partial response.
525
+ # @param [String] quota_user
526
+ # Available to use for quota purposes for server-side applications. Can be any
527
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
528
+ # Overrides userIp if both are provided.
529
+ # @param [String] user_ip
530
+ # IP address of the site where the request originates. Use this if you want to
531
+ # enforce per-user limits.
532
+ # @param [Google::Apis::RequestOptions] options
533
+ # Request-specific options
534
+ #
535
+ # @yield [result, err] Result & error if block supplied
536
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Annotation] parsed result object
537
+ # @yieldparam err [StandardError] error object if request failed
538
+ #
539
+ # @return [Google::Apis::GenomicsV1beta2::Annotation]
540
+ #
541
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
542
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
543
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
544
+ def update_annotation(annotation_id, annotation_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
545
+ path = 'annotations/{annotationId}'
546
+ command = make_simple_command(:put, path, options)
547
+ command.request_representation = Google::Apis::GenomicsV1beta2::Annotation::Representation
548
+ command.request_object = annotation_object
549
+ command.response_representation = Google::Apis::GenomicsV1beta2::Annotation::Representation
550
+ command.response_class = Google::Apis::GenomicsV1beta2::Annotation
551
+ command.params['annotationId'] = annotation_id unless annotation_id.nil?
552
+ command.query['fields'] = fields unless fields.nil?
553
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
554
+ command.query['userIp'] = user_ip unless user_ip.nil?
555
+ execute_or_queue_command(command, &block)
556
+ end
557
+
558
+ # Creates a new call set.
559
+ # @param [Google::Apis::GenomicsV1beta2::CallSet] call_set_object
560
+ # @param [String] fields
561
+ # Selector specifying which fields to include in a partial response.
562
+ # @param [String] quota_user
563
+ # Available to use for quota purposes for server-side applications. Can be any
564
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
565
+ # Overrides userIp if both are provided.
566
+ # @param [String] user_ip
567
+ # IP address of the site where the request originates. Use this if you want to
568
+ # enforce per-user limits.
569
+ # @param [Google::Apis::RequestOptions] options
570
+ # Request-specific options
571
+ #
572
+ # @yield [result, err] Result & error if block supplied
573
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::CallSet] parsed result object
574
+ # @yieldparam err [StandardError] error object if request failed
575
+ #
576
+ # @return [Google::Apis::GenomicsV1beta2::CallSet]
577
+ #
578
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
579
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
580
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
581
+ def create_call_set(call_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
582
+ path = 'callsets'
583
+ command = make_simple_command(:post, path, options)
584
+ command.request_representation = Google::Apis::GenomicsV1beta2::CallSet::Representation
585
+ command.request_object = call_set_object
586
+ command.response_representation = Google::Apis::GenomicsV1beta2::CallSet::Representation
587
+ command.response_class = Google::Apis::GenomicsV1beta2::CallSet
588
+ command.query['fields'] = fields unless fields.nil?
589
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
590
+ command.query['userIp'] = user_ip unless user_ip.nil?
591
+ execute_or_queue_command(command, &block)
592
+ end
593
+
594
+ # Deletes a call set.
595
+ # @param [String] call_set_id
596
+ # The ID of the call set to be deleted.
597
+ # @param [String] fields
598
+ # Selector specifying which fields to include in a partial response.
599
+ # @param [String] quota_user
600
+ # Available to use for quota purposes for server-side applications. Can be any
601
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
602
+ # Overrides userIp if both are provided.
603
+ # @param [String] user_ip
604
+ # IP address of the site where the request originates. Use this if you want to
605
+ # enforce per-user limits.
606
+ # @param [Google::Apis::RequestOptions] options
607
+ # Request-specific options
608
+ #
609
+ # @yield [result, err] Result & error if block supplied
610
+ # @yieldparam result [NilClass] No result returned for this method
611
+ # @yieldparam err [StandardError] error object if request failed
612
+ #
613
+ # @return [void]
614
+ #
615
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
616
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
617
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
618
+ def delete_call_set(call_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
619
+ path = 'callsets/{callSetId}'
620
+ command = make_simple_command(:delete, path, options)
621
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
622
+ command.query['fields'] = fields unless fields.nil?
623
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
624
+ command.query['userIp'] = user_ip unless user_ip.nil?
625
+ execute_or_queue_command(command, &block)
626
+ end
627
+
628
+ # Gets a call set by ID.
629
+ # @param [String] call_set_id
630
+ # The ID of the call set.
631
+ # @param [String] fields
632
+ # Selector specifying which fields to include in a partial response.
633
+ # @param [String] quota_user
634
+ # Available to use for quota purposes for server-side applications. Can be any
635
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
636
+ # Overrides userIp if both are provided.
637
+ # @param [String] user_ip
638
+ # IP address of the site where the request originates. Use this if you want to
639
+ # enforce per-user limits.
640
+ # @param [Google::Apis::RequestOptions] options
641
+ # Request-specific options
642
+ #
643
+ # @yield [result, err] Result & error if block supplied
644
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::CallSet] parsed result object
645
+ # @yieldparam err [StandardError] error object if request failed
646
+ #
647
+ # @return [Google::Apis::GenomicsV1beta2::CallSet]
648
+ #
649
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
650
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
651
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
652
+ def get_call_set(call_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
653
+ path = 'callsets/{callSetId}'
654
+ command = make_simple_command(:get, path, options)
655
+ command.response_representation = Google::Apis::GenomicsV1beta2::CallSet::Representation
656
+ command.response_class = Google::Apis::GenomicsV1beta2::CallSet
657
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
658
+ command.query['fields'] = fields unless fields.nil?
659
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
660
+ command.query['userIp'] = user_ip unless user_ip.nil?
661
+ execute_or_queue_command(command, &block)
662
+ end
663
+
664
+ # Updates a call set. This method supports patch semantics.
665
+ # @param [String] call_set_id
666
+ # The ID of the call set to be updated.
667
+ # @param [Google::Apis::GenomicsV1beta2::CallSet] call_set_object
668
+ # @param [String] fields
669
+ # Selector specifying which fields to include in a partial response.
670
+ # @param [String] quota_user
671
+ # Available to use for quota purposes for server-side applications. Can be any
672
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
673
+ # Overrides userIp if both are provided.
674
+ # @param [String] user_ip
675
+ # IP address of the site where the request originates. Use this if you want to
676
+ # enforce per-user limits.
677
+ # @param [Google::Apis::RequestOptions] options
678
+ # Request-specific options
679
+ #
680
+ # @yield [result, err] Result & error if block supplied
681
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::CallSet] parsed result object
682
+ # @yieldparam err [StandardError] error object if request failed
683
+ #
684
+ # @return [Google::Apis::GenomicsV1beta2::CallSet]
685
+ #
686
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
687
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
688
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
689
+ def patch_call_set(call_set_id, call_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
690
+ path = 'callsets/{callSetId}'
691
+ command = make_simple_command(:patch, path, options)
692
+ command.request_representation = Google::Apis::GenomicsV1beta2::CallSet::Representation
693
+ command.request_object = call_set_object
694
+ command.response_representation = Google::Apis::GenomicsV1beta2::CallSet::Representation
695
+ command.response_class = Google::Apis::GenomicsV1beta2::CallSet
696
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
697
+ command.query['fields'] = fields unless fields.nil?
698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
699
+ command.query['userIp'] = user_ip unless user_ip.nil?
700
+ execute_or_queue_command(command, &block)
701
+ end
702
+
703
+ # Gets a list of call sets matching the criteria.
704
+ # Implements GlobalAllianceApi.searchCallSets.
705
+ # @param [Google::Apis::GenomicsV1beta2::SearchCallSetsRequest] search_call_sets_request_object
706
+ # @param [String] fields
707
+ # Selector specifying which fields to include in a partial response.
708
+ # @param [String] quota_user
709
+ # Available to use for quota purposes for server-side applications. Can be any
710
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
711
+ # Overrides userIp if both are provided.
712
+ # @param [String] user_ip
713
+ # IP address of the site where the request originates. Use this if you want to
714
+ # enforce per-user limits.
715
+ # @param [Google::Apis::RequestOptions] options
716
+ # Request-specific options
717
+ #
718
+ # @yield [result, err] Result & error if block supplied
719
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchCallSetsResponse] parsed result object
720
+ # @yieldparam err [StandardError] error object if request failed
721
+ #
722
+ # @return [Google::Apis::GenomicsV1beta2::SearchCallSetsResponse]
723
+ #
724
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
725
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
726
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
727
+ def search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
728
+ path = 'callsets/search'
729
+ command = make_simple_command(:post, path, options)
730
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchCallSetsRequest::Representation
731
+ command.request_object = search_call_sets_request_object
732
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchCallSetsResponse::Representation
733
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchCallSetsResponse
734
+ command.query['fields'] = fields unless fields.nil?
735
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
736
+ command.query['userIp'] = user_ip unless user_ip.nil?
737
+ execute_or_queue_command(command, &block)
738
+ end
739
+
740
+ # Updates a call set.
741
+ # @param [String] call_set_id
742
+ # The ID of the call set to be updated.
743
+ # @param [Google::Apis::GenomicsV1beta2::CallSet] call_set_object
744
+ # @param [String] fields
745
+ # Selector specifying which fields to include in a partial response.
746
+ # @param [String] quota_user
747
+ # Available to use for quota purposes for server-side applications. Can be any
748
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
749
+ # Overrides userIp if both are provided.
750
+ # @param [String] user_ip
751
+ # IP address of the site where the request originates. Use this if you want to
752
+ # enforce per-user limits.
753
+ # @param [Google::Apis::RequestOptions] options
754
+ # Request-specific options
755
+ #
756
+ # @yield [result, err] Result & error if block supplied
757
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::CallSet] parsed result object
758
+ # @yieldparam err [StandardError] error object if request failed
759
+ #
760
+ # @return [Google::Apis::GenomicsV1beta2::CallSet]
761
+ #
762
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
763
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
764
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
765
+ def update_call_set(call_set_id, call_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
766
+ path = 'callsets/{callSetId}'
767
+ command = make_simple_command(:put, path, options)
768
+ command.request_representation = Google::Apis::GenomicsV1beta2::CallSet::Representation
769
+ command.request_object = call_set_object
770
+ command.response_representation = Google::Apis::GenomicsV1beta2::CallSet::Representation
771
+ command.response_class = Google::Apis::GenomicsV1beta2::CallSet
772
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
773
+ command.query['fields'] = fields unless fields.nil?
774
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
775
+ command.query['userIp'] = user_ip unless user_ip.nil?
776
+ execute_or_queue_command(command, &block)
777
+ end
778
+
779
+ # Creates a new dataset.
780
+ # @param [Google::Apis::GenomicsV1beta2::Dataset] dataset_object
781
+ # @param [String] fields
782
+ # Selector specifying which fields to include in a partial response.
783
+ # @param [String] quota_user
784
+ # Available to use for quota purposes for server-side applications. Can be any
785
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
786
+ # Overrides userIp if both are provided.
787
+ # @param [String] user_ip
788
+ # IP address of the site where the request originates. Use this if you want to
789
+ # enforce per-user limits.
790
+ # @param [Google::Apis::RequestOptions] options
791
+ # Request-specific options
792
+ #
793
+ # @yield [result, err] Result & error if block supplied
794
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Dataset] parsed result object
795
+ # @yieldparam err [StandardError] error object if request failed
796
+ #
797
+ # @return [Google::Apis::GenomicsV1beta2::Dataset]
798
+ #
799
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
800
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
801
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
802
+ def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
803
+ path = 'datasets'
804
+ command = make_simple_command(:post, path, options)
805
+ command.request_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
806
+ command.request_object = dataset_object
807
+ command.response_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
808
+ command.response_class = Google::Apis::GenomicsV1beta2::Dataset
809
+ command.query['fields'] = fields unless fields.nil?
810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
811
+ command.query['userIp'] = user_ip unless user_ip.nil?
812
+ execute_or_queue_command(command, &block)
813
+ end
814
+
815
+ # Deletes a dataset.
816
+ # @param [String] dataset_id
817
+ # The ID of the dataset to be deleted.
818
+ # @param [String] fields
819
+ # Selector specifying which fields to include in a partial response.
820
+ # @param [String] quota_user
821
+ # Available to use for quota purposes for server-side applications. Can be any
822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
823
+ # Overrides userIp if both are provided.
824
+ # @param [String] user_ip
825
+ # IP address of the site where the request originates. Use this if you want to
826
+ # enforce per-user limits.
827
+ # @param [Google::Apis::RequestOptions] options
828
+ # Request-specific options
829
+ #
830
+ # @yield [result, err] Result & error if block supplied
831
+ # @yieldparam result [NilClass] No result returned for this method
832
+ # @yieldparam err [StandardError] error object if request failed
833
+ #
834
+ # @return [void]
835
+ #
836
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
837
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
838
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
839
+ def delete_dataset(dataset_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
840
+ path = 'datasets/{datasetId}'
841
+ command = make_simple_command(:delete, path, options)
842
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
843
+ command.query['fields'] = fields unless fields.nil?
844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
845
+ command.query['userIp'] = user_ip unless user_ip.nil?
846
+ execute_or_queue_command(command, &block)
847
+ end
848
+
849
+ # Gets a dataset by ID.
850
+ # @param [String] dataset_id
851
+ # The ID of the dataset.
852
+ # @param [String] fields
853
+ # Selector specifying which fields to include in a partial response.
854
+ # @param [String] quota_user
855
+ # Available to use for quota purposes for server-side applications. Can be any
856
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
857
+ # Overrides userIp if both are provided.
858
+ # @param [String] user_ip
859
+ # IP address of the site where the request originates. Use this if you want to
860
+ # enforce per-user limits.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Dataset] parsed result object
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [Google::Apis::GenomicsV1beta2::Dataset]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def get_dataset(dataset_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
874
+ path = 'datasets/{datasetId}'
875
+ command = make_simple_command(:get, path, options)
876
+ command.response_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
877
+ command.response_class = Google::Apis::GenomicsV1beta2::Dataset
878
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
879
+ command.query['fields'] = fields unless fields.nil?
880
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
881
+ command.query['userIp'] = user_ip unless user_ip.nil?
882
+ execute_or_queue_command(command, &block)
883
+ end
884
+
885
+ # Lists datasets within a project.
886
+ # @param [Fixnum] page_size
887
+ # The maximum number of results returned by this request. If unspecified,
888
+ # defaults to 50.
889
+ # @param [String] page_token
890
+ # The continuation token, which is used to page through large result sets. To
891
+ # get the next page of results, set this parameter to the value of nextPageToken
892
+ # from the previous response.
893
+ # @param [String] project_number
894
+ # Required. The project to list datasets for.
895
+ # @param [String] fields
896
+ # Selector specifying which fields to include in a partial response.
897
+ # @param [String] quota_user
898
+ # Available to use for quota purposes for server-side applications. Can be any
899
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
900
+ # Overrides userIp if both are provided.
901
+ # @param [String] user_ip
902
+ # IP address of the site where the request originates. Use this if you want to
903
+ # enforce per-user limits.
904
+ # @param [Google::Apis::RequestOptions] options
905
+ # Request-specific options
906
+ #
907
+ # @yield [result, err] Result & error if block supplied
908
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ListDatasetsResponse] parsed result object
909
+ # @yieldparam err [StandardError] error object if request failed
910
+ #
911
+ # @return [Google::Apis::GenomicsV1beta2::ListDatasetsResponse]
912
+ #
913
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
914
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
915
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
916
+ def list_datasets(page_size: nil, page_token: nil, project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
917
+ path = 'datasets'
918
+ command = make_simple_command(:get, path, options)
919
+ command.response_representation = Google::Apis::GenomicsV1beta2::ListDatasetsResponse::Representation
920
+ command.response_class = Google::Apis::GenomicsV1beta2::ListDatasetsResponse
921
+ command.query['pageSize'] = page_size unless page_size.nil?
922
+ command.query['pageToken'] = page_token unless page_token.nil?
923
+ command.query['projectNumber'] = project_number unless project_number.nil?
924
+ command.query['fields'] = fields unless fields.nil?
925
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
926
+ command.query['userIp'] = user_ip unless user_ip.nil?
927
+ execute_or_queue_command(command, &block)
928
+ end
929
+
930
+ # Updates a dataset. This method supports patch semantics.
931
+ # @param [String] dataset_id
932
+ # The ID of the dataset to be updated.
933
+ # @param [Google::Apis::GenomicsV1beta2::Dataset] dataset_object
934
+ # @param [String] fields
935
+ # Selector specifying which fields to include in a partial response.
936
+ # @param [String] quota_user
937
+ # Available to use for quota purposes for server-side applications. Can be any
938
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
939
+ # Overrides userIp if both are provided.
940
+ # @param [String] user_ip
941
+ # IP address of the site where the request originates. Use this if you want to
942
+ # enforce per-user limits.
943
+ # @param [Google::Apis::RequestOptions] options
944
+ # Request-specific options
945
+ #
946
+ # @yield [result, err] Result & error if block supplied
947
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Dataset] parsed result object
948
+ # @yieldparam err [StandardError] error object if request failed
949
+ #
950
+ # @return [Google::Apis::GenomicsV1beta2::Dataset]
951
+ #
952
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
953
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
954
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
955
+ def patch_dataset(dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
956
+ path = 'datasets/{datasetId}'
957
+ command = make_simple_command(:patch, path, options)
958
+ command.request_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
959
+ command.request_object = dataset_object
960
+ command.response_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
961
+ command.response_class = Google::Apis::GenomicsV1beta2::Dataset
962
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
963
+ command.query['fields'] = fields unless fields.nil?
964
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
965
+ command.query['userIp'] = user_ip unless user_ip.nil?
966
+ execute_or_queue_command(command, &block)
967
+ end
968
+
969
+ # Undeletes a dataset by restoring a dataset which was deleted via this API.
970
+ # This operation is only possible for a week after the deletion occurred.
971
+ # @param [String] dataset_id
972
+ # The ID of the dataset to be undeleted.
973
+ # @param [String] fields
974
+ # Selector specifying which fields to include in a partial response.
975
+ # @param [String] quota_user
976
+ # Available to use for quota purposes for server-side applications. Can be any
977
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
978
+ # Overrides userIp if both are provided.
979
+ # @param [String] user_ip
980
+ # IP address of the site where the request originates. Use this if you want to
981
+ # enforce per-user limits.
982
+ # @param [Google::Apis::RequestOptions] options
983
+ # Request-specific options
984
+ #
985
+ # @yield [result, err] Result & error if block supplied
986
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Dataset] parsed result object
987
+ # @yieldparam err [StandardError] error object if request failed
988
+ #
989
+ # @return [Google::Apis::GenomicsV1beta2::Dataset]
990
+ #
991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
994
+ def undelete_dataset(dataset_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
995
+ path = 'datasets/{datasetId}/undelete'
996
+ command = make_simple_command(:post, path, options)
997
+ command.response_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
998
+ command.response_class = Google::Apis::GenomicsV1beta2::Dataset
999
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1000
+ command.query['fields'] = fields unless fields.nil?
1001
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1002
+ command.query['userIp'] = user_ip unless user_ip.nil?
1003
+ execute_or_queue_command(command, &block)
1004
+ end
1005
+
1006
+ # Updates a dataset.
1007
+ # @param [String] dataset_id
1008
+ # The ID of the dataset to be updated.
1009
+ # @param [Google::Apis::GenomicsV1beta2::Dataset] dataset_object
1010
+ # @param [String] fields
1011
+ # Selector specifying which fields to include in a partial response.
1012
+ # @param [String] quota_user
1013
+ # Available to use for quota purposes for server-side applications. Can be any
1014
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1015
+ # Overrides userIp if both are provided.
1016
+ # @param [String] user_ip
1017
+ # IP address of the site where the request originates. Use this if you want to
1018
+ # enforce per-user limits.
1019
+ # @param [Google::Apis::RequestOptions] options
1020
+ # Request-specific options
1021
+ #
1022
+ # @yield [result, err] Result & error if block supplied
1023
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Dataset] parsed result object
1024
+ # @yieldparam err [StandardError] error object if request failed
1025
+ #
1026
+ # @return [Google::Apis::GenomicsV1beta2::Dataset]
1027
+ #
1028
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1029
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1030
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1031
+ def update_dataset(dataset_id, dataset_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1032
+ path = 'datasets/{datasetId}'
1033
+ command = make_simple_command(:put, path, options)
1034
+ command.request_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
1035
+ command.request_object = dataset_object
1036
+ command.response_representation = Google::Apis::GenomicsV1beta2::Dataset::Representation
1037
+ command.response_class = Google::Apis::GenomicsV1beta2::Dataset
1038
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1039
+ command.query['fields'] = fields unless fields.nil?
1040
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1041
+ command.query['userIp'] = user_ip unless user_ip.nil?
1042
+ execute_or_queue_command(command, &block)
1043
+ end
1044
+
1045
+ # Creates and asynchronously runs an ad-hoc job. This is an experimental call
1046
+ # and may be removed or changed at any time.
1047
+ # @param [Google::Apis::GenomicsV1beta2::ExperimentalCreateJobRequest] experimental_create_job_request_object
1048
+ # @param [String] fields
1049
+ # Selector specifying which fields to include in a partial response.
1050
+ # @param [String] quota_user
1051
+ # Available to use for quota purposes for server-side applications. Can be any
1052
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1053
+ # Overrides userIp if both are provided.
1054
+ # @param [String] user_ip
1055
+ # IP address of the site where the request originates. Use this if you want to
1056
+ # enforce per-user limits.
1057
+ # @param [Google::Apis::RequestOptions] options
1058
+ # Request-specific options
1059
+ #
1060
+ # @yield [result, err] Result & error if block supplied
1061
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ExperimentalCreateJobResponse] parsed result object
1062
+ # @yieldparam err [StandardError] error object if request failed
1063
+ #
1064
+ # @return [Google::Apis::GenomicsV1beta2::ExperimentalCreateJobResponse]
1065
+ #
1066
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1067
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1068
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1069
+ def create_experimental_job(experimental_create_job_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1070
+ path = 'experimental/jobs/create'
1071
+ command = make_simple_command(:post, path, options)
1072
+ command.request_representation = Google::Apis::GenomicsV1beta2::ExperimentalCreateJobRequest::Representation
1073
+ command.request_object = experimental_create_job_request_object
1074
+ command.response_representation = Google::Apis::GenomicsV1beta2::ExperimentalCreateJobResponse::Representation
1075
+ command.response_class = Google::Apis::GenomicsV1beta2::ExperimentalCreateJobResponse
1076
+ command.query['fields'] = fields unless fields.nil?
1077
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1078
+ command.query['userIp'] = user_ip unless user_ip.nil?
1079
+ execute_or_queue_command(command, &block)
1080
+ end
1081
+
1082
+ # Cancels a job by ID. Note that it is possible for partial results to be
1083
+ # generated and stored for cancelled jobs.
1084
+ # @param [String] job_id
1085
+ # Required. The ID of the job.
1086
+ # @param [String] fields
1087
+ # Selector specifying which fields to include in a partial response.
1088
+ # @param [String] quota_user
1089
+ # Available to use for quota purposes for server-side applications. Can be any
1090
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1091
+ # Overrides userIp if both are provided.
1092
+ # @param [String] user_ip
1093
+ # IP address of the site where the request originates. Use this if you want to
1094
+ # enforce per-user limits.
1095
+ # @param [Google::Apis::RequestOptions] options
1096
+ # Request-specific options
1097
+ #
1098
+ # @yield [result, err] Result & error if block supplied
1099
+ # @yieldparam result [NilClass] No result returned for this method
1100
+ # @yieldparam err [StandardError] error object if request failed
1101
+ #
1102
+ # @return [void]
1103
+ #
1104
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1105
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1106
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1107
+ def cancel_job(job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1108
+ path = 'jobs/{jobId}/cancel'
1109
+ command = make_simple_command(:post, path, options)
1110
+ command.params['jobId'] = job_id unless job_id.nil?
1111
+ command.query['fields'] = fields unless fields.nil?
1112
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1113
+ command.query['userIp'] = user_ip unless user_ip.nil?
1114
+ execute_or_queue_command(command, &block)
1115
+ end
1116
+
1117
+ # Gets a job by ID.
1118
+ # @param [String] job_id
1119
+ # Required. The ID of the job.
1120
+ # @param [String] fields
1121
+ # Selector specifying which fields to include in a partial response.
1122
+ # @param [String] quota_user
1123
+ # Available to use for quota purposes for server-side applications. Can be any
1124
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1125
+ # Overrides userIp if both are provided.
1126
+ # @param [String] user_ip
1127
+ # IP address of the site where the request originates. Use this if you want to
1128
+ # enforce per-user limits.
1129
+ # @param [Google::Apis::RequestOptions] options
1130
+ # Request-specific options
1131
+ #
1132
+ # @yield [result, err] Result & error if block supplied
1133
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Job] parsed result object
1134
+ # @yieldparam err [StandardError] error object if request failed
1135
+ #
1136
+ # @return [Google::Apis::GenomicsV1beta2::Job]
1137
+ #
1138
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1139
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1140
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1141
+ def get_job(job_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1142
+ path = 'jobs/{jobId}'
1143
+ command = make_simple_command(:get, path, options)
1144
+ command.response_representation = Google::Apis::GenomicsV1beta2::Job::Representation
1145
+ command.response_class = Google::Apis::GenomicsV1beta2::Job
1146
+ command.params['jobId'] = job_id unless job_id.nil?
1147
+ command.query['fields'] = fields unless fields.nil?
1148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1149
+ command.query['userIp'] = user_ip unless user_ip.nil?
1150
+ execute_or_queue_command(command, &block)
1151
+ end
1152
+
1153
+ # Gets a list of jobs matching the criteria.
1154
+ # @param [Google::Apis::GenomicsV1beta2::SearchJobsRequest] search_jobs_request_object
1155
+ # @param [String] fields
1156
+ # Selector specifying which fields to include in a partial response.
1157
+ # @param [String] quota_user
1158
+ # Available to use for quota purposes for server-side applications. Can be any
1159
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1160
+ # Overrides userIp if both are provided.
1161
+ # @param [String] user_ip
1162
+ # IP address of the site where the request originates. Use this if you want to
1163
+ # enforce per-user limits.
1164
+ # @param [Google::Apis::RequestOptions] options
1165
+ # Request-specific options
1166
+ #
1167
+ # @yield [result, err] Result & error if block supplied
1168
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchJobsResponse] parsed result object
1169
+ # @yieldparam err [StandardError] error object if request failed
1170
+ #
1171
+ # @return [Google::Apis::GenomicsV1beta2::SearchJobsResponse]
1172
+ #
1173
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1174
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1175
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1176
+ def search_jobs(search_jobs_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1177
+ path = 'jobs/search'
1178
+ command = make_simple_command(:post, path, options)
1179
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchJobsRequest::Representation
1180
+ command.request_object = search_jobs_request_object
1181
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchJobsResponse::Representation
1182
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchJobsResponse
1183
+ command.query['fields'] = fields unless fields.nil?
1184
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1185
+ command.query['userIp'] = user_ip unless user_ip.nil?
1186
+ execute_or_queue_command(command, &block)
1187
+ end
1188
+
1189
+ # Aligns read data from existing read group sets or files from Google Cloud
1190
+ # Storage. See the alignment and variant calling documentation for more details.
1191
+ # @param [Google::Apis::GenomicsV1beta2::AlignReadGroupSetsRequest] align_read_group_sets_request_object
1192
+ # @param [String] fields
1193
+ # Selector specifying which fields to include in a partial response.
1194
+ # @param [String] quota_user
1195
+ # Available to use for quota purposes for server-side applications. Can be any
1196
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1197
+ # Overrides userIp if both are provided.
1198
+ # @param [String] user_ip
1199
+ # IP address of the site where the request originates. Use this if you want to
1200
+ # enforce per-user limits.
1201
+ # @param [Google::Apis::RequestOptions] options
1202
+ # Request-specific options
1203
+ #
1204
+ # @yield [result, err] Result & error if block supplied
1205
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::AlignReadGroupSetsResponse] parsed result object
1206
+ # @yieldparam err [StandardError] error object if request failed
1207
+ #
1208
+ # @return [Google::Apis::GenomicsV1beta2::AlignReadGroupSetsResponse]
1209
+ #
1210
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1211
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1212
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1213
+ def align_read_group_sets(align_read_group_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1214
+ path = 'readgroupsets/align'
1215
+ command = make_simple_command(:post, path, options)
1216
+ command.request_representation = Google::Apis::GenomicsV1beta2::AlignReadGroupSetsRequest::Representation
1217
+ command.request_object = align_read_group_sets_request_object
1218
+ command.response_representation = Google::Apis::GenomicsV1beta2::AlignReadGroupSetsResponse::Representation
1219
+ command.response_class = Google::Apis::GenomicsV1beta2::AlignReadGroupSetsResponse
1220
+ command.query['fields'] = fields unless fields.nil?
1221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1222
+ command.query['userIp'] = user_ip unless user_ip.nil?
1223
+ execute_or_queue_command(command, &block)
1224
+ end
1225
+
1226
+ # Calls variants on read data from existing read group sets or files from Google
1227
+ # Cloud Storage. See the alignment and variant calling documentation for more
1228
+ # details.
1229
+ # @param [Google::Apis::GenomicsV1beta2::CallReadGroupSetsRequest] call_read_group_sets_request_object
1230
+ # @param [String] fields
1231
+ # Selector specifying which fields to include in a partial response.
1232
+ # @param [String] quota_user
1233
+ # Available to use for quota purposes for server-side applications. Can be any
1234
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1235
+ # Overrides userIp if both are provided.
1236
+ # @param [String] user_ip
1237
+ # IP address of the site where the request originates. Use this if you want to
1238
+ # enforce per-user limits.
1239
+ # @param [Google::Apis::RequestOptions] options
1240
+ # Request-specific options
1241
+ #
1242
+ # @yield [result, err] Result & error if block supplied
1243
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::CallReadGroupSetsResponse] parsed result object
1244
+ # @yieldparam err [StandardError] error object if request failed
1245
+ #
1246
+ # @return [Google::Apis::GenomicsV1beta2::CallReadGroupSetsResponse]
1247
+ #
1248
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1249
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1250
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1251
+ def call_read_group_sets(call_read_group_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1252
+ path = 'readgroupsets/call'
1253
+ command = make_simple_command(:post, path, options)
1254
+ command.request_representation = Google::Apis::GenomicsV1beta2::CallReadGroupSetsRequest::Representation
1255
+ command.request_object = call_read_group_sets_request_object
1256
+ command.response_representation = Google::Apis::GenomicsV1beta2::CallReadGroupSetsResponse::Representation
1257
+ command.response_class = Google::Apis::GenomicsV1beta2::CallReadGroupSetsResponse
1258
+ command.query['fields'] = fields unless fields.nil?
1259
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1260
+ command.query['userIp'] = user_ip unless user_ip.nil?
1261
+ execute_or_queue_command(command, &block)
1262
+ end
1263
+
1264
+ # Deletes a read group set.
1265
+ # @param [String] read_group_set_id
1266
+ # The ID of the read group set to be deleted. The caller must have WRITE
1267
+ # permissions to the dataset associated with this read group set.
1268
+ # @param [String] fields
1269
+ # Selector specifying which fields to include in a partial response.
1270
+ # @param [String] quota_user
1271
+ # Available to use for quota purposes for server-side applications. Can be any
1272
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1273
+ # Overrides userIp if both are provided.
1274
+ # @param [String] user_ip
1275
+ # IP address of the site where the request originates. Use this if you want to
1276
+ # enforce per-user limits.
1277
+ # @param [Google::Apis::RequestOptions] options
1278
+ # Request-specific options
1279
+ #
1280
+ # @yield [result, err] Result & error if block supplied
1281
+ # @yieldparam result [NilClass] No result returned for this method
1282
+ # @yieldparam err [StandardError] error object if request failed
1283
+ #
1284
+ # @return [void]
1285
+ #
1286
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1287
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1288
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1289
+ def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1290
+ path = 'readgroupsets/{readGroupSetId}'
1291
+ command = make_simple_command(:delete, path, options)
1292
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1293
+ command.query['fields'] = fields unless fields.nil?
1294
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1295
+ command.query['userIp'] = user_ip unless user_ip.nil?
1296
+ execute_or_queue_command(command, &block)
1297
+ end
1298
+
1299
+ # Exports read group sets to a BAM file in Google Cloud Storage.
1300
+ # Note that currently there may be some differences between exported BAM files
1301
+ # and the original BAM file at the time of import. In particular, comments in
1302
+ # the input file header will not be preserved, some custom tags will be
1303
+ # converted to strings, and original reference sequence order is not necessarily
1304
+ # preserved.
1305
+ # @param [Google::Apis::GenomicsV1beta2::ExportReadGroupSetsRequest] export_read_group_sets_request_object
1306
+ # @param [String] fields
1307
+ # Selector specifying which fields to include in a partial response.
1308
+ # @param [String] quota_user
1309
+ # Available to use for quota purposes for server-side applications. Can be any
1310
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1311
+ # Overrides userIp if both are provided.
1312
+ # @param [String] user_ip
1313
+ # IP address of the site where the request originates. Use this if you want to
1314
+ # enforce per-user limits.
1315
+ # @param [Google::Apis::RequestOptions] options
1316
+ # Request-specific options
1317
+ #
1318
+ # @yield [result, err] Result & error if block supplied
1319
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ExportReadGroupSetsResponse] parsed result object
1320
+ # @yieldparam err [StandardError] error object if request failed
1321
+ #
1322
+ # @return [Google::Apis::GenomicsV1beta2::ExportReadGroupSetsResponse]
1323
+ #
1324
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1325
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1326
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1327
+ def export_read_group_sets(export_read_group_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1328
+ path = 'readgroupsets/export'
1329
+ command = make_simple_command(:post, path, options)
1330
+ command.request_representation = Google::Apis::GenomicsV1beta2::ExportReadGroupSetsRequest::Representation
1331
+ command.request_object = export_read_group_sets_request_object
1332
+ command.response_representation = Google::Apis::GenomicsV1beta2::ExportReadGroupSetsResponse::Representation
1333
+ command.response_class = Google::Apis::GenomicsV1beta2::ExportReadGroupSetsResponse
1334
+ command.query['fields'] = fields unless fields.nil?
1335
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1336
+ command.query['userIp'] = user_ip unless user_ip.nil?
1337
+ execute_or_queue_command(command, &block)
1338
+ end
1339
+
1340
+ # Gets a read group set by ID.
1341
+ # @param [String] read_group_set_id
1342
+ # The ID of the read group set.
1343
+ # @param [String] fields
1344
+ # Selector specifying which fields to include in a partial response.
1345
+ # @param [String] quota_user
1346
+ # Available to use for quota purposes for server-side applications. Can be any
1347
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1348
+ # Overrides userIp if both are provided.
1349
+ # @param [String] user_ip
1350
+ # IP address of the site where the request originates. Use this if you want to
1351
+ # enforce per-user limits.
1352
+ # @param [Google::Apis::RequestOptions] options
1353
+ # Request-specific options
1354
+ #
1355
+ # @yield [result, err] Result & error if block supplied
1356
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ReadGroupSet] parsed result object
1357
+ # @yieldparam err [StandardError] error object if request failed
1358
+ #
1359
+ # @return [Google::Apis::GenomicsV1beta2::ReadGroupSet]
1360
+ #
1361
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1362
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1363
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1364
+ def get_read_group_set(read_group_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1365
+ path = 'readgroupsets/{readGroupSetId}'
1366
+ command = make_simple_command(:get, path, options)
1367
+ command.response_representation = Google::Apis::GenomicsV1beta2::ReadGroupSet::Representation
1368
+ command.response_class = Google::Apis::GenomicsV1beta2::ReadGroupSet
1369
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1370
+ command.query['fields'] = fields unless fields.nil?
1371
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1372
+ command.query['userIp'] = user_ip unless user_ip.nil?
1373
+ execute_or_queue_command(command, &block)
1374
+ end
1375
+
1376
+ # Creates read group sets by asynchronously importing the provided information.
1377
+ # Note that currently comments in the input file header are not imported and
1378
+ # some custom tags will be converted to strings, rather than preserving tag
1379
+ # types. The caller must have WRITE permissions to the dataset.
1380
+ # @param [Google::Apis::GenomicsV1beta2::ImportReadGroupSetsRequest] import_read_group_sets_request_object
1381
+ # @param [String] fields
1382
+ # Selector specifying which fields to include in a partial response.
1383
+ # @param [String] quota_user
1384
+ # Available to use for quota purposes for server-side applications. Can be any
1385
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1386
+ # Overrides userIp if both are provided.
1387
+ # @param [String] user_ip
1388
+ # IP address of the site where the request originates. Use this if you want to
1389
+ # enforce per-user limits.
1390
+ # @param [Google::Apis::RequestOptions] options
1391
+ # Request-specific options
1392
+ #
1393
+ # @yield [result, err] Result & error if block supplied
1394
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ImportReadGroupSetsResponse] parsed result object
1395
+ # @yieldparam err [StandardError] error object if request failed
1396
+ #
1397
+ # @return [Google::Apis::GenomicsV1beta2::ImportReadGroupSetsResponse]
1398
+ #
1399
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1400
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1401
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1402
+ def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1403
+ path = 'readgroupsets/import'
1404
+ command = make_simple_command(:post, path, options)
1405
+ command.request_representation = Google::Apis::GenomicsV1beta2::ImportReadGroupSetsRequest::Representation
1406
+ command.request_object = import_read_group_sets_request_object
1407
+ command.response_representation = Google::Apis::GenomicsV1beta2::ImportReadGroupSetsResponse::Representation
1408
+ command.response_class = Google::Apis::GenomicsV1beta2::ImportReadGroupSetsResponse
1409
+ command.query['fields'] = fields unless fields.nil?
1410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1411
+ command.query['userIp'] = user_ip unless user_ip.nil?
1412
+ execute_or_queue_command(command, &block)
1413
+ end
1414
+
1415
+ # Updates a read group set. This method supports patch semantics.
1416
+ # @param [String] read_group_set_id
1417
+ # The ID of the read group set to be updated. The caller must have WRITE
1418
+ # permissions to the dataset associated with this read group set.
1419
+ # @param [Google::Apis::GenomicsV1beta2::ReadGroupSet] read_group_set_object
1420
+ # @param [String] fields
1421
+ # Selector specifying which fields to include in a partial response.
1422
+ # @param [String] quota_user
1423
+ # Available to use for quota purposes for server-side applications. Can be any
1424
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1425
+ # Overrides userIp if both are provided.
1426
+ # @param [String] user_ip
1427
+ # IP address of the site where the request originates. Use this if you want to
1428
+ # enforce per-user limits.
1429
+ # @param [Google::Apis::RequestOptions] options
1430
+ # Request-specific options
1431
+ #
1432
+ # @yield [result, err] Result & error if block supplied
1433
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ReadGroupSet] parsed result object
1434
+ # @yieldparam err [StandardError] error object if request failed
1435
+ #
1436
+ # @return [Google::Apis::GenomicsV1beta2::ReadGroupSet]
1437
+ #
1438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1441
+ def patch_read_group_set(read_group_set_id, read_group_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1442
+ path = 'readgroupsets/{readGroupSetId}'
1443
+ command = make_simple_command(:patch, path, options)
1444
+ command.request_representation = Google::Apis::GenomicsV1beta2::ReadGroupSet::Representation
1445
+ command.request_object = read_group_set_object
1446
+ command.response_representation = Google::Apis::GenomicsV1beta2::ReadGroupSet::Representation
1447
+ command.response_class = Google::Apis::GenomicsV1beta2::ReadGroupSet
1448
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1449
+ command.query['fields'] = fields unless fields.nil?
1450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1451
+ command.query['userIp'] = user_ip unless user_ip.nil?
1452
+ execute_or_queue_command(command, &block)
1453
+ end
1454
+
1455
+ # Searches for read group sets matching the criteria.
1456
+ # Implements GlobalAllianceApi.searchReadGroupSets.
1457
+ # @param [Google::Apis::GenomicsV1beta2::SearchReadGroupSetsRequest] search_read_group_sets_request_object
1458
+ # @param [String] fields
1459
+ # Selector specifying which fields to include in a partial response.
1460
+ # @param [String] quota_user
1461
+ # Available to use for quota purposes for server-side applications. Can be any
1462
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1463
+ # Overrides userIp if both are provided.
1464
+ # @param [String] user_ip
1465
+ # IP address of the site where the request originates. Use this if you want to
1466
+ # enforce per-user limits.
1467
+ # @param [Google::Apis::RequestOptions] options
1468
+ # Request-specific options
1469
+ #
1470
+ # @yield [result, err] Result & error if block supplied
1471
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchReadGroupSetsResponse] parsed result object
1472
+ # @yieldparam err [StandardError] error object if request failed
1473
+ #
1474
+ # @return [Google::Apis::GenomicsV1beta2::SearchReadGroupSetsResponse]
1475
+ #
1476
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1477
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1478
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1479
+ def search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1480
+ path = 'readgroupsets/search'
1481
+ command = make_simple_command(:post, path, options)
1482
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchReadGroupSetsRequest::Representation
1483
+ command.request_object = search_read_group_sets_request_object
1484
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchReadGroupSetsResponse::Representation
1485
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchReadGroupSetsResponse
1486
+ command.query['fields'] = fields unless fields.nil?
1487
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1488
+ command.query['userIp'] = user_ip unless user_ip.nil?
1489
+ execute_or_queue_command(command, &block)
1490
+ end
1491
+
1492
+ # Updates a read group set.
1493
+ # @param [String] read_group_set_id
1494
+ # The ID of the read group set to be updated. The caller must have WRITE
1495
+ # permissions to the dataset associated with this read group set.
1496
+ # @param [Google::Apis::GenomicsV1beta2::ReadGroupSet] read_group_set_object
1497
+ # @param [String] fields
1498
+ # Selector specifying which fields to include in a partial response.
1499
+ # @param [String] quota_user
1500
+ # Available to use for quota purposes for server-side applications. Can be any
1501
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1502
+ # Overrides userIp if both are provided.
1503
+ # @param [String] user_ip
1504
+ # IP address of the site where the request originates. Use this if you want to
1505
+ # enforce per-user limits.
1506
+ # @param [Google::Apis::RequestOptions] options
1507
+ # Request-specific options
1508
+ #
1509
+ # @yield [result, err] Result & error if block supplied
1510
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ReadGroupSet] parsed result object
1511
+ # @yieldparam err [StandardError] error object if request failed
1512
+ #
1513
+ # @return [Google::Apis::GenomicsV1beta2::ReadGroupSet]
1514
+ #
1515
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1516
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1517
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1518
+ def update_read_group_set(read_group_set_id, read_group_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1519
+ path = 'readgroupsets/{readGroupSetId}'
1520
+ command = make_simple_command(:put, path, options)
1521
+ command.request_representation = Google::Apis::GenomicsV1beta2::ReadGroupSet::Representation
1522
+ command.request_object = read_group_set_object
1523
+ command.response_representation = Google::Apis::GenomicsV1beta2::ReadGroupSet::Representation
1524
+ command.response_class = Google::Apis::GenomicsV1beta2::ReadGroupSet
1525
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1526
+ command.query['fields'] = fields unless fields.nil?
1527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1528
+ command.query['userIp'] = user_ip unless user_ip.nil?
1529
+ execute_or_queue_command(command, &block)
1530
+ end
1531
+
1532
+ # Lists fixed width coverage buckets for a read group set, each of which
1533
+ # correspond to a range of a reference sequence. Each bucket summarizes coverage
1534
+ # information across its corresponding genomic range.
1535
+ # Coverage is defined as the number of reads which are aligned to a given base
1536
+ # in the reference sequence. Coverage buckets are available at several
1537
+ # precomputed bucket widths, enabling retrieval of various coverage 'zoom levels'
1538
+ # . The caller must have READ permissions for the target read group set.
1539
+ # @param [String] read_group_set_id
1540
+ # Required. The ID of the read group set over which coverage is requested.
1541
+ # @param [Fixnum] page_size
1542
+ # The maximum number of results to return in a single page. If unspecified,
1543
+ # defaults to 1024. The maximum value is 2048.
1544
+ # @param [String] page_token
1545
+ # The continuation token, which is used to page through large result sets. To
1546
+ # get the next page of results, set this parameter to the value of nextPageToken
1547
+ # from the previous response.
1548
+ # @param [String] range_end
1549
+ # The end position of the range on the reference, 0-based exclusive. If
1550
+ # specified, referenceName must also be specified.
1551
+ # @param [String] range_reference_name
1552
+ # The reference sequence name, for example chr1, 1, or chrX.
1553
+ # @param [String] range_start
1554
+ # The start position of the range on the reference, 0-based inclusive. If
1555
+ # specified, referenceName must also be specified.
1556
+ # @param [String] target_bucket_width
1557
+ # The desired width of each reported coverage bucket in base pairs. This will be
1558
+ # rounded down to the nearest precomputed bucket width; the value of which is
1559
+ # returned as bucketWidth in the response. Defaults to infinity (each bucket
1560
+ # spans an entire reference sequence) or the length of the target range, if
1561
+ # specified. The smallest precomputed bucketWidth is currently 2048 base pairs;
1562
+ # this is subject to change.
1563
+ # @param [String] fields
1564
+ # Selector specifying which fields to include in a partial response.
1565
+ # @param [String] quota_user
1566
+ # Available to use for quota purposes for server-side applications. Can be any
1567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1568
+ # Overrides userIp if both are provided.
1569
+ # @param [String] user_ip
1570
+ # IP address of the site where the request originates. Use this if you want to
1571
+ # enforce per-user limits.
1572
+ # @param [Google::Apis::RequestOptions] options
1573
+ # Request-specific options
1574
+ #
1575
+ # @yield [result, err] Result & error if block supplied
1576
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ListCoverageBucketsResponse] parsed result object
1577
+ # @yieldparam err [StandardError] error object if request failed
1578
+ #
1579
+ # @return [Google::Apis::GenomicsV1beta2::ListCoverageBucketsResponse]
1580
+ #
1581
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1582
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1583
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1584
+ def list_coverage_buckets(read_group_set_id, page_size: nil, page_token: nil, range_end: nil, range_reference_name: nil, range_start: nil, target_bucket_width: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1585
+ path = 'readgroupsets/{readGroupSetId}/coveragebuckets'
1586
+ command = make_simple_command(:get, path, options)
1587
+ command.response_representation = Google::Apis::GenomicsV1beta2::ListCoverageBucketsResponse::Representation
1588
+ command.response_class = Google::Apis::GenomicsV1beta2::ListCoverageBucketsResponse
1589
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
1590
+ command.query['pageSize'] = page_size unless page_size.nil?
1591
+ command.query['pageToken'] = page_token unless page_token.nil?
1592
+ command.query['range.end'] = range_end unless range_end.nil?
1593
+ command.query['range.referenceName'] = range_reference_name unless range_reference_name.nil?
1594
+ command.query['range.start'] = range_start unless range_start.nil?
1595
+ command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil?
1596
+ command.query['fields'] = fields unless fields.nil?
1597
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1598
+ command.query['userIp'] = user_ip unless user_ip.nil?
1599
+ execute_or_queue_command(command, &block)
1600
+ end
1601
+
1602
+ # Gets a list of reads for one or more read group sets. Reads search operates
1603
+ # over a genomic coordinate space of reference sequence & position defined over
1604
+ # the reference sequences to which the requested read group sets are aligned.
1605
+ # If a target positional range is specified, search returns all reads whose
1606
+ # alignment to the reference genome overlap the range. A query which specifies
1607
+ # only read group set IDs yields all reads in those read group sets, including
1608
+ # unmapped reads.
1609
+ # All reads returned (including reads on subsequent pages) are ordered by
1610
+ # genomic coordinate (reference sequence & position). Reads with equivalent
1611
+ # genomic coordinates are returned in a deterministic order.
1612
+ # Implements GlobalAllianceApi.searchReads.
1613
+ # @param [Google::Apis::GenomicsV1beta2::SearchReadsRequest] search_reads_request_object
1614
+ # @param [String] fields
1615
+ # Selector specifying which fields to include in a partial response.
1616
+ # @param [String] quota_user
1617
+ # Available to use for quota purposes for server-side applications. Can be any
1618
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1619
+ # Overrides userIp if both are provided.
1620
+ # @param [String] user_ip
1621
+ # IP address of the site where the request originates. Use this if you want to
1622
+ # enforce per-user limits.
1623
+ # @param [Google::Apis::RequestOptions] options
1624
+ # Request-specific options
1625
+ #
1626
+ # @yield [result, err] Result & error if block supplied
1627
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchReadsResponse] parsed result object
1628
+ # @yieldparam err [StandardError] error object if request failed
1629
+ #
1630
+ # @return [Google::Apis::GenomicsV1beta2::SearchReadsResponse]
1631
+ #
1632
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1633
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1634
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1635
+ def search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1636
+ path = 'reads/search'
1637
+ command = make_simple_command(:post, path, options)
1638
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchReadsRequest::Representation
1639
+ command.request_object = search_reads_request_object
1640
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchReadsResponse::Representation
1641
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchReadsResponse
1642
+ command.query['fields'] = fields unless fields.nil?
1643
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1644
+ command.query['userIp'] = user_ip unless user_ip.nil?
1645
+ execute_or_queue_command(command, &block)
1646
+ end
1647
+
1648
+ # Gets a reference.
1649
+ # Implements GlobalAllianceApi.getReference.
1650
+ # @param [String] reference_id
1651
+ # The ID of the reference.
1652
+ # @param [String] fields
1653
+ # Selector specifying which fields to include in a partial response.
1654
+ # @param [String] quota_user
1655
+ # Available to use for quota purposes for server-side applications. Can be any
1656
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1657
+ # Overrides userIp if both are provided.
1658
+ # @param [String] user_ip
1659
+ # IP address of the site where the request originates. Use this if you want to
1660
+ # enforce per-user limits.
1661
+ # @param [Google::Apis::RequestOptions] options
1662
+ # Request-specific options
1663
+ #
1664
+ # @yield [result, err] Result & error if block supplied
1665
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Reference] parsed result object
1666
+ # @yieldparam err [StandardError] error object if request failed
1667
+ #
1668
+ # @return [Google::Apis::GenomicsV1beta2::Reference]
1669
+ #
1670
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1671
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1672
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1673
+ def get_reference(reference_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1674
+ path = 'references/{referenceId}'
1675
+ command = make_simple_command(:get, path, options)
1676
+ command.response_representation = Google::Apis::GenomicsV1beta2::Reference::Representation
1677
+ command.response_class = Google::Apis::GenomicsV1beta2::Reference
1678
+ command.params['referenceId'] = reference_id unless reference_id.nil?
1679
+ command.query['fields'] = fields unless fields.nil?
1680
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1681
+ command.query['userIp'] = user_ip unless user_ip.nil?
1682
+ execute_or_queue_command(command, &block)
1683
+ end
1684
+
1685
+ # Searches for references which match the given criteria.
1686
+ # Implements GlobalAllianceApi.searchReferences.
1687
+ # @param [Google::Apis::GenomicsV1beta2::SearchReferencesRequest] search_references_request_object
1688
+ # @param [String] fields
1689
+ # Selector specifying which fields to include in a partial response.
1690
+ # @param [String] quota_user
1691
+ # Available to use for quota purposes for server-side applications. Can be any
1692
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1693
+ # Overrides userIp if both are provided.
1694
+ # @param [String] user_ip
1695
+ # IP address of the site where the request originates. Use this if you want to
1696
+ # enforce per-user limits.
1697
+ # @param [Google::Apis::RequestOptions] options
1698
+ # Request-specific options
1699
+ #
1700
+ # @yield [result, err] Result & error if block supplied
1701
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchReferencesResponse] parsed result object
1702
+ # @yieldparam err [StandardError] error object if request failed
1703
+ #
1704
+ # @return [Google::Apis::GenomicsV1beta2::SearchReferencesResponse]
1705
+ #
1706
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1707
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1708
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1709
+ def search_references(search_references_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1710
+ path = 'references/search'
1711
+ command = make_simple_command(:post, path, options)
1712
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchReferencesRequest::Representation
1713
+ command.request_object = search_references_request_object
1714
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchReferencesResponse::Representation
1715
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchReferencesResponse
1716
+ command.query['fields'] = fields unless fields.nil?
1717
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1718
+ command.query['userIp'] = user_ip unless user_ip.nil?
1719
+ execute_or_queue_command(command, &block)
1720
+ end
1721
+
1722
+ # Lists the bases in a reference, optionally restricted to a range.
1723
+ # Implements GlobalAllianceApi.getReferenceBases.
1724
+ # @param [String] reference_id
1725
+ # The ID of the reference.
1726
+ # @param [String] end_position
1727
+ # The end position (0-based, exclusive) of this query. Defaults to the length of
1728
+ # this reference.
1729
+ # @param [Fixnum] page_size
1730
+ # Specifies the maximum number of bases to return in a single page.
1731
+ # @param [String] page_token
1732
+ # The continuation token, which is used to page through large result sets. To
1733
+ # get the next page of results, set this parameter to the value of nextPageToken
1734
+ # from the previous response.
1735
+ # @param [String] start_position
1736
+ # The start position (0-based) of this query. Defaults to 0.
1737
+ # @param [String] fields
1738
+ # Selector specifying which fields to include in a partial response.
1739
+ # @param [String] quota_user
1740
+ # Available to use for quota purposes for server-side applications. Can be any
1741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1742
+ # Overrides userIp if both are provided.
1743
+ # @param [String] user_ip
1744
+ # IP address of the site where the request originates. Use this if you want to
1745
+ # enforce per-user limits.
1746
+ # @param [Google::Apis::RequestOptions] options
1747
+ # Request-specific options
1748
+ #
1749
+ # @yield [result, err] Result & error if block supplied
1750
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ListBasesResponse] parsed result object
1751
+ # @yieldparam err [StandardError] error object if request failed
1752
+ #
1753
+ # @return [Google::Apis::GenomicsV1beta2::ListBasesResponse]
1754
+ #
1755
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1756
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1757
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1758
+ def list_reference_bases(reference_id, end_position: nil, page_size: nil, page_token: nil, start_position: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1759
+ path = 'references/{referenceId}/bases'
1760
+ command = make_simple_command(:get, path, options)
1761
+ command.response_representation = Google::Apis::GenomicsV1beta2::ListBasesResponse::Representation
1762
+ command.response_class = Google::Apis::GenomicsV1beta2::ListBasesResponse
1763
+ command.params['referenceId'] = reference_id unless reference_id.nil?
1764
+ command.query['end'] = end_position unless end_position.nil?
1765
+ command.query['pageSize'] = page_size unless page_size.nil?
1766
+ command.query['pageToken'] = page_token unless page_token.nil?
1767
+ command.query['start'] = start_position unless start_position.nil?
1768
+ command.query['fields'] = fields unless fields.nil?
1769
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1770
+ command.query['userIp'] = user_ip unless user_ip.nil?
1771
+ execute_or_queue_command(command, &block)
1772
+ end
1773
+
1774
+ # Gets a reference set.
1775
+ # Implements GlobalAllianceApi.getReferenceSet.
1776
+ # @param [String] reference_set_id
1777
+ # The ID of the reference set.
1778
+ # @param [String] fields
1779
+ # Selector specifying which fields to include in a partial response.
1780
+ # @param [String] quota_user
1781
+ # Available to use for quota purposes for server-side applications. Can be any
1782
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1783
+ # Overrides userIp if both are provided.
1784
+ # @param [String] user_ip
1785
+ # IP address of the site where the request originates. Use this if you want to
1786
+ # enforce per-user limits.
1787
+ # @param [Google::Apis::RequestOptions] options
1788
+ # Request-specific options
1789
+ #
1790
+ # @yield [result, err] Result & error if block supplied
1791
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ReferenceSet] parsed result object
1792
+ # @yieldparam err [StandardError] error object if request failed
1793
+ #
1794
+ # @return [Google::Apis::GenomicsV1beta2::ReferenceSet]
1795
+ #
1796
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1797
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1798
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1799
+ def get_reference_set(reference_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1800
+ path = 'referencesets/{referenceSetId}'
1801
+ command = make_simple_command(:get, path, options)
1802
+ command.response_representation = Google::Apis::GenomicsV1beta2::ReferenceSet::Representation
1803
+ command.response_class = Google::Apis::GenomicsV1beta2::ReferenceSet
1804
+ command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil?
1805
+ command.query['fields'] = fields unless fields.nil?
1806
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1807
+ command.query['userIp'] = user_ip unless user_ip.nil?
1808
+ execute_or_queue_command(command, &block)
1809
+ end
1810
+
1811
+ # Searches for reference sets which match the given criteria.
1812
+ # Implements GlobalAllianceApi.searchReferenceSets.
1813
+ # @param [Google::Apis::GenomicsV1beta2::SearchReferenceSetsRequest] search_reference_sets_request_object
1814
+ # @param [String] fields
1815
+ # Selector specifying which fields to include in a partial response.
1816
+ # @param [String] quota_user
1817
+ # Available to use for quota purposes for server-side applications. Can be any
1818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1819
+ # Overrides userIp if both are provided.
1820
+ # @param [String] user_ip
1821
+ # IP address of the site where the request originates. Use this if you want to
1822
+ # enforce per-user limits.
1823
+ # @param [Google::Apis::RequestOptions] options
1824
+ # Request-specific options
1825
+ #
1826
+ # @yield [result, err] Result & error if block supplied
1827
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchReferenceSetsResponse] parsed result object
1828
+ # @yieldparam err [StandardError] error object if request failed
1829
+ #
1830
+ # @return [Google::Apis::GenomicsV1beta2::SearchReferenceSetsResponse]
1831
+ #
1832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1835
+ def search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1836
+ path = 'referencesets/search'
1837
+ command = make_simple_command(:post, path, options)
1838
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchReferenceSetsRequest::Representation
1839
+ command.request_object = search_reference_sets_request_object
1840
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchReferenceSetsResponse::Representation
1841
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchReferenceSetsResponse
1842
+ command.query['fields'] = fields unless fields.nil?
1843
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1844
+ command.query['userIp'] = user_ip unless user_ip.nil?
1845
+ execute_or_queue_command(command, &block)
1846
+ end
1847
+
1848
+ # Creates a new variant.
1849
+ # @param [Google::Apis::GenomicsV1beta2::Variant] variant_object
1850
+ # @param [String] fields
1851
+ # Selector specifying which fields to include in a partial response.
1852
+ # @param [String] quota_user
1853
+ # Available to use for quota purposes for server-side applications. Can be any
1854
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1855
+ # Overrides userIp if both are provided.
1856
+ # @param [String] user_ip
1857
+ # IP address of the site where the request originates. Use this if you want to
1858
+ # enforce per-user limits.
1859
+ # @param [Google::Apis::RequestOptions] options
1860
+ # Request-specific options
1861
+ #
1862
+ # @yield [result, err] Result & error if block supplied
1863
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Variant] parsed result object
1864
+ # @yieldparam err [StandardError] error object if request failed
1865
+ #
1866
+ # @return [Google::Apis::GenomicsV1beta2::Variant]
1867
+ #
1868
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1869
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1870
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1871
+ def create_variant(variant_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1872
+ path = 'variants'
1873
+ command = make_simple_command(:post, path, options)
1874
+ command.request_representation = Google::Apis::GenomicsV1beta2::Variant::Representation
1875
+ command.request_object = variant_object
1876
+ command.response_representation = Google::Apis::GenomicsV1beta2::Variant::Representation
1877
+ command.response_class = Google::Apis::GenomicsV1beta2::Variant
1878
+ command.query['fields'] = fields unless fields.nil?
1879
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1880
+ command.query['userIp'] = user_ip unless user_ip.nil?
1881
+ execute_or_queue_command(command, &block)
1882
+ end
1883
+
1884
+ # Deletes a variant.
1885
+ # @param [String] variant_id
1886
+ # The ID of the variant to be deleted.
1887
+ # @param [String] fields
1888
+ # Selector specifying which fields to include in a partial response.
1889
+ # @param [String] quota_user
1890
+ # Available to use for quota purposes for server-side applications. Can be any
1891
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1892
+ # Overrides userIp if both are provided.
1893
+ # @param [String] user_ip
1894
+ # IP address of the site where the request originates. Use this if you want to
1895
+ # enforce per-user limits.
1896
+ # @param [Google::Apis::RequestOptions] options
1897
+ # Request-specific options
1898
+ #
1899
+ # @yield [result, err] Result & error if block supplied
1900
+ # @yieldparam result [NilClass] No result returned for this method
1901
+ # @yieldparam err [StandardError] error object if request failed
1902
+ #
1903
+ # @return [void]
1904
+ #
1905
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1906
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1907
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1908
+ def delete_variant(variant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1909
+ path = 'variants/{variantId}'
1910
+ command = make_simple_command(:delete, path, options)
1911
+ command.params['variantId'] = variant_id unless variant_id.nil?
1912
+ command.query['fields'] = fields unless fields.nil?
1913
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1914
+ command.query['userIp'] = user_ip unless user_ip.nil?
1915
+ execute_or_queue_command(command, &block)
1916
+ end
1917
+
1918
+ # Gets a variant by ID.
1919
+ # @param [String] variant_id
1920
+ # The ID of the variant.
1921
+ # @param [String] fields
1922
+ # Selector specifying which fields to include in a partial response.
1923
+ # @param [String] quota_user
1924
+ # Available to use for quota purposes for server-side applications. Can be any
1925
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1926
+ # Overrides userIp if both are provided.
1927
+ # @param [String] user_ip
1928
+ # IP address of the site where the request originates. Use this if you want to
1929
+ # enforce per-user limits.
1930
+ # @param [Google::Apis::RequestOptions] options
1931
+ # Request-specific options
1932
+ #
1933
+ # @yield [result, err] Result & error if block supplied
1934
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Variant] parsed result object
1935
+ # @yieldparam err [StandardError] error object if request failed
1936
+ #
1937
+ # @return [Google::Apis::GenomicsV1beta2::Variant]
1938
+ #
1939
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1940
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1941
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1942
+ def get_variant(variant_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1943
+ path = 'variants/{variantId}'
1944
+ command = make_simple_command(:get, path, options)
1945
+ command.response_representation = Google::Apis::GenomicsV1beta2::Variant::Representation
1946
+ command.response_class = Google::Apis::GenomicsV1beta2::Variant
1947
+ command.params['variantId'] = variant_id unless variant_id.nil?
1948
+ command.query['fields'] = fields unless fields.nil?
1949
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1950
+ command.query['userIp'] = user_ip unless user_ip.nil?
1951
+ execute_or_queue_command(command, &block)
1952
+ end
1953
+
1954
+ # Gets a list of variants matching the criteria.
1955
+ # Implements GlobalAllianceApi.searchVariants.
1956
+ # @param [Google::Apis::GenomicsV1beta2::SearchVariantsRequest] search_variants_request_object
1957
+ # @param [String] fields
1958
+ # Selector specifying which fields to include in a partial response.
1959
+ # @param [String] quota_user
1960
+ # Available to use for quota purposes for server-side applications. Can be any
1961
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1962
+ # Overrides userIp if both are provided.
1963
+ # @param [String] user_ip
1964
+ # IP address of the site where the request originates. Use this if you want to
1965
+ # enforce per-user limits.
1966
+ # @param [Google::Apis::RequestOptions] options
1967
+ # Request-specific options
1968
+ #
1969
+ # @yield [result, err] Result & error if block supplied
1970
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchVariantsResponse] parsed result object
1971
+ # @yieldparam err [StandardError] error object if request failed
1972
+ #
1973
+ # @return [Google::Apis::GenomicsV1beta2::SearchVariantsResponse]
1974
+ #
1975
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1976
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1977
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1978
+ def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
1979
+ path = 'variants/search'
1980
+ command = make_simple_command(:post, path, options)
1981
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchVariantsRequest::Representation
1982
+ command.request_object = search_variants_request_object
1983
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchVariantsResponse::Representation
1984
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchVariantsResponse
1985
+ command.query['fields'] = fields unless fields.nil?
1986
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1987
+ command.query['userIp'] = user_ip unless user_ip.nil?
1988
+ execute_or_queue_command(command, &block)
1989
+ end
1990
+
1991
+ # Updates a variant's names and info fields. All other modifications are
1992
+ # silently ignored. Returns the modified variant without its calls.
1993
+ # @param [String] variant_id
1994
+ # The ID of the variant to be updated.
1995
+ # @param [Google::Apis::GenomicsV1beta2::Variant] variant_object
1996
+ # @param [String] fields
1997
+ # Selector specifying which fields to include in a partial response.
1998
+ # @param [String] quota_user
1999
+ # Available to use for quota purposes for server-side applications. Can be any
2000
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2001
+ # Overrides userIp if both are provided.
2002
+ # @param [String] user_ip
2003
+ # IP address of the site where the request originates. Use this if you want to
2004
+ # enforce per-user limits.
2005
+ # @param [Google::Apis::RequestOptions] options
2006
+ # Request-specific options
2007
+ #
2008
+ # @yield [result, err] Result & error if block supplied
2009
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::Variant] parsed result object
2010
+ # @yieldparam err [StandardError] error object if request failed
2011
+ #
2012
+ # @return [Google::Apis::GenomicsV1beta2::Variant]
2013
+ #
2014
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2015
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2016
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2017
+ def update_variant(variant_id, variant_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2018
+ path = 'variants/{variantId}'
2019
+ command = make_simple_command(:put, path, options)
2020
+ command.request_representation = Google::Apis::GenomicsV1beta2::Variant::Representation
2021
+ command.request_object = variant_object
2022
+ command.response_representation = Google::Apis::GenomicsV1beta2::Variant::Representation
2023
+ command.response_class = Google::Apis::GenomicsV1beta2::Variant
2024
+ command.params['variantId'] = variant_id unless variant_id.nil?
2025
+ command.query['fields'] = fields unless fields.nil?
2026
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2027
+ command.query['userIp'] = user_ip unless user_ip.nil?
2028
+ execute_or_queue_command(command, &block)
2029
+ end
2030
+
2031
+ # Deletes the contents of a variant set. The variant set object is not deleted.
2032
+ # @param [String] variant_set_id
2033
+ # The ID of the variant set to be deleted.
2034
+ # @param [String] fields
2035
+ # Selector specifying which fields to include in a partial response.
2036
+ # @param [String] quota_user
2037
+ # Available to use for quota purposes for server-side applications. Can be any
2038
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2039
+ # Overrides userIp if both are provided.
2040
+ # @param [String] user_ip
2041
+ # IP address of the site where the request originates. Use this if you want to
2042
+ # enforce per-user limits.
2043
+ # @param [Google::Apis::RequestOptions] options
2044
+ # Request-specific options
2045
+ #
2046
+ # @yield [result, err] Result & error if block supplied
2047
+ # @yieldparam result [NilClass] No result returned for this method
2048
+ # @yieldparam err [StandardError] error object if request failed
2049
+ #
2050
+ # @return [void]
2051
+ #
2052
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2053
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2054
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2055
+ def delete_variantset(variant_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2056
+ path = 'variantsets/{variantSetId}'
2057
+ command = make_simple_command(:delete, path, options)
2058
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2059
+ command.query['fields'] = fields unless fields.nil?
2060
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2061
+ command.query['userIp'] = user_ip unless user_ip.nil?
2062
+ execute_or_queue_command(command, &block)
2063
+ end
2064
+
2065
+ # Exports variant set data to an external destination.
2066
+ # @param [String] variant_set_id
2067
+ # Required. The ID of the variant set that contains variant data which should be
2068
+ # exported. The caller must have READ access to this variant set.
2069
+ # @param [Google::Apis::GenomicsV1beta2::ExportVariantSetRequest] export_variant_set_request_object
2070
+ # @param [String] fields
2071
+ # Selector specifying which fields to include in a partial response.
2072
+ # @param [String] quota_user
2073
+ # Available to use for quota purposes for server-side applications. Can be any
2074
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2075
+ # Overrides userIp if both are provided.
2076
+ # @param [String] user_ip
2077
+ # IP address of the site where the request originates. Use this if you want to
2078
+ # enforce per-user limits.
2079
+ # @param [Google::Apis::RequestOptions] options
2080
+ # Request-specific options
2081
+ #
2082
+ # @yield [result, err] Result & error if block supplied
2083
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ExportVariantSetResponse] parsed result object
2084
+ # @yieldparam err [StandardError] error object if request failed
2085
+ #
2086
+ # @return [Google::Apis::GenomicsV1beta2::ExportVariantSetResponse]
2087
+ #
2088
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2089
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2090
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2091
+ def export_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2092
+ path = 'variantsets/{variantSetId}/export'
2093
+ command = make_simple_command(:post, path, options)
2094
+ command.request_representation = Google::Apis::GenomicsV1beta2::ExportVariantSetRequest::Representation
2095
+ command.request_object = export_variant_set_request_object
2096
+ command.response_representation = Google::Apis::GenomicsV1beta2::ExportVariantSetResponse::Representation
2097
+ command.response_class = Google::Apis::GenomicsV1beta2::ExportVariantSetResponse
2098
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2099
+ command.query['fields'] = fields unless fields.nil?
2100
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2101
+ command.query['userIp'] = user_ip unless user_ip.nil?
2102
+ execute_or_queue_command(command, &block)
2103
+ end
2104
+
2105
+ # Gets a variant set by ID.
2106
+ # @param [String] variant_set_id
2107
+ # Required. The ID of the variant set.
2108
+ # @param [String] fields
2109
+ # Selector specifying which fields to include in a partial response.
2110
+ # @param [String] quota_user
2111
+ # Available to use for quota purposes for server-side applications. Can be any
2112
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2113
+ # Overrides userIp if both are provided.
2114
+ # @param [String] user_ip
2115
+ # IP address of the site where the request originates. Use this if you want to
2116
+ # enforce per-user limits.
2117
+ # @param [Google::Apis::RequestOptions] options
2118
+ # Request-specific options
2119
+ #
2120
+ # @yield [result, err] Result & error if block supplied
2121
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::VariantSet] parsed result object
2122
+ # @yieldparam err [StandardError] error object if request failed
2123
+ #
2124
+ # @return [Google::Apis::GenomicsV1beta2::VariantSet]
2125
+ #
2126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2129
+ def get_variantset(variant_set_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2130
+ path = 'variantsets/{variantSetId}'
2131
+ command = make_simple_command(:get, path, options)
2132
+ command.response_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
2133
+ command.response_class = Google::Apis::GenomicsV1beta2::VariantSet
2134
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2135
+ command.query['fields'] = fields unless fields.nil?
2136
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2137
+ command.query['userIp'] = user_ip unless user_ip.nil?
2138
+ execute_or_queue_command(command, &block)
2139
+ end
2140
+
2141
+ # Creates variant data by asynchronously importing the provided information.
2142
+ # The variants for import will be merged with any existing data and each other
2143
+ # according to the behavior of mergeVariants. In particular, this means for
2144
+ # merged VCF variants that have conflicting INFO fields, some data will be
2145
+ # arbitrarily discarded. As a special case, for single-sample VCF files, QUAL
2146
+ # and FILTER fields will be moved to the call level; these are sometimes
2147
+ # interpreted in a call-specific context. Imported VCF headers are appended to
2148
+ # the metadata already in a variant set.
2149
+ # @param [String] variant_set_id
2150
+ # Required. The variant set to which variant data should be imported.
2151
+ # @param [Google::Apis::GenomicsV1beta2::ImportVariantsRequest] import_variants_request_object
2152
+ # @param [String] fields
2153
+ # Selector specifying which fields to include in a partial response.
2154
+ # @param [String] quota_user
2155
+ # Available to use for quota purposes for server-side applications. Can be any
2156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2157
+ # Overrides userIp if both are provided.
2158
+ # @param [String] user_ip
2159
+ # IP address of the site where the request originates. Use this if you want to
2160
+ # enforce per-user limits.
2161
+ # @param [Google::Apis::RequestOptions] options
2162
+ # Request-specific options
2163
+ #
2164
+ # @yield [result, err] Result & error if block supplied
2165
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::ImportVariantsResponse] parsed result object
2166
+ # @yieldparam err [StandardError] error object if request failed
2167
+ #
2168
+ # @return [Google::Apis::GenomicsV1beta2::ImportVariantsResponse]
2169
+ #
2170
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2171
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2172
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2173
+ def import_variants(variant_set_id, import_variants_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2174
+ path = 'variantsets/{variantSetId}/importVariants'
2175
+ command = make_simple_command(:post, path, options)
2176
+ command.request_representation = Google::Apis::GenomicsV1beta2::ImportVariantsRequest::Representation
2177
+ command.request_object = import_variants_request_object
2178
+ command.response_representation = Google::Apis::GenomicsV1beta2::ImportVariantsResponse::Representation
2179
+ command.response_class = Google::Apis::GenomicsV1beta2::ImportVariantsResponse
2180
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2181
+ command.query['fields'] = fields unless fields.nil?
2182
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2183
+ command.query['userIp'] = user_ip unless user_ip.nil?
2184
+ execute_or_queue_command(command, &block)
2185
+ end
2186
+
2187
+ # Merges the given variants with existing variants. Each variant will be merged
2188
+ # with an existing variant that matches its reference sequence, start, end,
2189
+ # reference bases, and alternative bases. If no such variant exists, a new one
2190
+ # will be created.
2191
+ # When variants are merged, the call information from the new variant is added
2192
+ # to the existing variant, and other fields (such as key/value pairs) are
2193
+ # discarded.
2194
+ # @param [String] variant_set_id
2195
+ # The destination variant set.
2196
+ # @param [Google::Apis::GenomicsV1beta2::MergeVariantsRequest] merge_variants_request_object
2197
+ # @param [String] fields
2198
+ # Selector specifying which fields to include in a partial response.
2199
+ # @param [String] quota_user
2200
+ # Available to use for quota purposes for server-side applications. Can be any
2201
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2202
+ # Overrides userIp if both are provided.
2203
+ # @param [String] user_ip
2204
+ # IP address of the site where the request originates. Use this if you want to
2205
+ # enforce per-user limits.
2206
+ # @param [Google::Apis::RequestOptions] options
2207
+ # Request-specific options
2208
+ #
2209
+ # @yield [result, err] Result & error if block supplied
2210
+ # @yieldparam result [NilClass] No result returned for this method
2211
+ # @yieldparam err [StandardError] error object if request failed
2212
+ #
2213
+ # @return [void]
2214
+ #
2215
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2216
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2217
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2218
+ def merge_variants(variant_set_id, merge_variants_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2219
+ path = 'variantsets/{variantSetId}/mergeVariants'
2220
+ command = make_simple_command(:post, path, options)
2221
+ command.request_representation = Google::Apis::GenomicsV1beta2::MergeVariantsRequest::Representation
2222
+ command.request_object = merge_variants_request_object
2223
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2224
+ command.query['fields'] = fields unless fields.nil?
2225
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2226
+ command.query['userIp'] = user_ip unless user_ip.nil?
2227
+ execute_or_queue_command(command, &block)
2228
+ end
2229
+
2230
+ # Updates a variant set's metadata. All other modifications are silently ignored.
2231
+ # This method supports patch semantics.
2232
+ # @param [String] variant_set_id
2233
+ # The ID of the variant to be updated (must already exist).
2234
+ # @param [Google::Apis::GenomicsV1beta2::VariantSet] variant_set_object
2235
+ # @param [String] fields
2236
+ # Selector specifying which fields to include in a partial response.
2237
+ # @param [String] quota_user
2238
+ # Available to use for quota purposes for server-side applications. Can be any
2239
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2240
+ # Overrides userIp if both are provided.
2241
+ # @param [String] user_ip
2242
+ # IP address of the site where the request originates. Use this if you want to
2243
+ # enforce per-user limits.
2244
+ # @param [Google::Apis::RequestOptions] options
2245
+ # Request-specific options
2246
+ #
2247
+ # @yield [result, err] Result & error if block supplied
2248
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::VariantSet] parsed result object
2249
+ # @yieldparam err [StandardError] error object if request failed
2250
+ #
2251
+ # @return [Google::Apis::GenomicsV1beta2::VariantSet]
2252
+ #
2253
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2254
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2255
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2256
+ def patch_variantset(variant_set_id, variant_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2257
+ path = 'variantsets/{variantSetId}'
2258
+ command = make_simple_command(:patch, path, options)
2259
+ command.request_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
2260
+ command.request_object = variant_set_object
2261
+ command.response_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
2262
+ command.response_class = Google::Apis::GenomicsV1beta2::VariantSet
2263
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2264
+ command.query['fields'] = fields unless fields.nil?
2265
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2266
+ command.query['userIp'] = user_ip unless user_ip.nil?
2267
+ execute_or_queue_command(command, &block)
2268
+ end
2269
+
2270
+ # Returns a list of all variant sets matching search criteria.
2271
+ # Implements GlobalAllianceApi.searchVariantSets.
2272
+ # @param [Google::Apis::GenomicsV1beta2::SearchVariantSetsRequest] search_variant_sets_request_object
2273
+ # @param [String] fields
2274
+ # Selector specifying which fields to include in a partial response.
2275
+ # @param [String] quota_user
2276
+ # Available to use for quota purposes for server-side applications. Can be any
2277
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2278
+ # Overrides userIp if both are provided.
2279
+ # @param [String] user_ip
2280
+ # IP address of the site where the request originates. Use this if you want to
2281
+ # enforce per-user limits.
2282
+ # @param [Google::Apis::RequestOptions] options
2283
+ # Request-specific options
2284
+ #
2285
+ # @yield [result, err] Result & error if block supplied
2286
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::SearchVariantSetsResponse] parsed result object
2287
+ # @yieldparam err [StandardError] error object if request failed
2288
+ #
2289
+ # @return [Google::Apis::GenomicsV1beta2::SearchVariantSetsResponse]
2290
+ #
2291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2294
+ def search_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2295
+ path = 'variantsets/search'
2296
+ command = make_simple_command(:post, path, options)
2297
+ command.request_representation = Google::Apis::GenomicsV1beta2::SearchVariantSetsRequest::Representation
2298
+ command.request_object = search_variant_sets_request_object
2299
+ command.response_representation = Google::Apis::GenomicsV1beta2::SearchVariantSetsResponse::Representation
2300
+ command.response_class = Google::Apis::GenomicsV1beta2::SearchVariantSetsResponse
2301
+ command.query['fields'] = fields unless fields.nil?
2302
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2303
+ command.query['userIp'] = user_ip unless user_ip.nil?
2304
+ execute_or_queue_command(command, &block)
2305
+ end
2306
+
2307
+ # Updates a variant set's metadata. All other modifications are silently ignored.
2308
+ # @param [String] variant_set_id
2309
+ # The ID of the variant to be updated (must already exist).
2310
+ # @param [Google::Apis::GenomicsV1beta2::VariantSet] variant_set_object
2311
+ # @param [String] fields
2312
+ # Selector specifying which fields to include in a partial response.
2313
+ # @param [String] quota_user
2314
+ # Available to use for quota purposes for server-side applications. Can be any
2315
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2316
+ # Overrides userIp if both are provided.
2317
+ # @param [String] user_ip
2318
+ # IP address of the site where the request originates. Use this if you want to
2319
+ # enforce per-user limits.
2320
+ # @param [Google::Apis::RequestOptions] options
2321
+ # Request-specific options
2322
+ #
2323
+ # @yield [result, err] Result & error if block supplied
2324
+ # @yieldparam result [Google::Apis::GenomicsV1beta2::VariantSet] parsed result object
2325
+ # @yieldparam err [StandardError] error object if request failed
2326
+ #
2327
+ # @return [Google::Apis::GenomicsV1beta2::VariantSet]
2328
+ #
2329
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2330
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2331
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2332
+ def update_variantset(variant_set_id, variant_set_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2333
+ path = 'variantsets/{variantSetId}'
2334
+ command = make_simple_command(:put, path, options)
2335
+ command.request_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
2336
+ command.request_object = variant_set_object
2337
+ command.response_representation = Google::Apis::GenomicsV1beta2::VariantSet::Representation
2338
+ command.response_class = Google::Apis::GenomicsV1beta2::VariantSet
2339
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
2340
+ command.query['fields'] = fields unless fields.nil?
2341
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2342
+ command.query['userIp'] = user_ip unless user_ip.nil?
2343
+ execute_or_queue_command(command, &block)
2344
+ end
2345
+
2346
+ protected
2347
+
2348
+ def apply_command_defaults(command)
2349
+ command.query['key'] = key unless key.nil?
2350
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2351
+ command.query['userIp'] = user_ip unless user_ip.nil?
2352
+ end
2353
+ end
2354
+ end
2355
+ end
2356
+ end