google-api-client 0.8.6 → 0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (497) 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 +22 -0
  7. data/.yardopts +12 -0
  8. data/CHANGELOG.md +41 -2
  9. data/CONTRIBUTING.md +31 -0
  10. data/Gemfile +32 -2
  11. data/MIGRATING.md +171 -0
  12. data/README.md +181 -148
  13. data/Rakefile +1 -40
  14. data/api_names.yaml +1036 -0
  15. data/api_names_out.yaml +26053 -0
  16. data/bin/generate-api +95 -0
  17. data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
  18. data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
  19. data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
  20. data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -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 +668 -0
  25. data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
  26. data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
  27. data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
  28. data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
  29. data/generated/google/apis/admin_directory_v1.rb +113 -0
  30. data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
  31. data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
  32. data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
  33. data/generated/google/apis/admin_reports_v1.rb +38 -0
  34. data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
  35. data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
  36. data/generated/google/apis/admin_reports_v1/service.rb +336 -0
  37. data/generated/google/apis/adsense_v1_4.rb +38 -0
  38. data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
  39. data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
  40. data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
  41. data/generated/google/apis/adsensehost_v4_1.rb +35 -0
  42. data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
  43. data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
  44. data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
  45. data/generated/google/apis/analytics_v3.rb +49 -0
  46. data/generated/google/apis/analytics_v3/classes.rb +5118 -0
  47. data/generated/google/apis/analytics_v3/representations.rb +1662 -0
  48. data/generated/google/apis/analytics_v3/service.rb +3568 -0
  49. data/generated/google/apis/androidenterprise_v1.rb +35 -0
  50. data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
  51. data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
  52. data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
  53. data/generated/google/apis/androidpublisher_v2.rb +34 -0
  54. data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
  55. data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
  56. data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
  57. data/generated/google/apis/appengine_v1beta4.rb +35 -0
  58. data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
  59. data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
  60. data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
  61. data/generated/google/apis/appsactivity_v1.rb +46 -0
  62. data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
  63. data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
  64. data/generated/google/apis/appsactivity_v1/service.rb +128 -0
  65. data/generated/google/apis/appstate_v1.rb +34 -0
  66. data/generated/google/apis/appstate_v1/classes.rb +154 -0
  67. data/generated/google/apis/appstate_v1/representations.rb +79 -0
  68. data/generated/google/apis/appstate_v1/service.rb +260 -0
  69. data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
  70. data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
  71. data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
  72. data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
  73. data/generated/google/apis/bigquery_v2.rb +52 -0
  74. data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
  75. data/generated/google/apis/bigquery_v2/representations.rb +816 -0
  76. data/generated/google/apis/bigquery_v2/service.rb +982 -0
  77. data/generated/google/apis/blogger_v3.rb +37 -0
  78. data/generated/google/apis/blogger_v3/classes.rb +1354 -0
  79. data/generated/google/apis/blogger_v3/representations.rb +562 -0
  80. data/generated/google/apis/blogger_v3/service.rb +1587 -0
  81. data/generated/google/apis/books_v1.rb +34 -0
  82. data/generated/google/apis/books_v1/classes.rb +3956 -0
  83. data/generated/google/apis/books_v1/representations.rb +1538 -0
  84. data/generated/google/apis/books_v1/service.rb +2290 -0
  85. data/generated/google/apis/calendar_v3.rb +37 -0
  86. data/generated/google/apis/calendar_v3/classes.rb +1742 -0
  87. data/generated/google/apis/calendar_v3/representations.rb +567 -0
  88. data/generated/google/apis/calendar_v3/service.rb +1968 -0
  89. data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
  90. data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
  91. data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
  92. data/generated/google/apis/civicinfo_v2/service.rb +279 -0
  93. data/generated/google/apis/classroom_v1.rb +49 -0
  94. data/generated/google/apis/classroom_v1/classes.rb +512 -0
  95. data/generated/google/apis/classroom_v1/representations.rb +217 -0
  96. data/generated/google/apis/classroom_v1/service.rb +970 -0
  97. data/generated/google/apis/classroom_v1beta1.rb +49 -0
  98. data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
  99. data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
  100. data/generated/google/apis/classroom_v1beta1/service.rb +791 -0
  101. data/generated/google/apis/cloudbilling_v1.rb +35 -0
  102. data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
  103. data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
  104. data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
  105. data/generated/google/apis/clouddebugger_v2.rb +41 -0
  106. data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
  107. data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
  108. data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
  109. data/generated/google/apis/cloudmonitoring_v2beta2.rb +37 -0
  110. data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
  111. data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
  112. data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
  113. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
  114. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
  115. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
  116. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
  117. data/generated/google/apis/cloudtrace_v1.rb +35 -0
  118. data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
  119. data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
  120. data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
  121. data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
  122. data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
  123. data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
  124. data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
  125. data/generated/google/apis/compute_beta.rb +49 -0
  126. data/generated/google/apis/compute_beta/classes.rb +9128 -0
  127. data/generated/google/apis/compute_beta/representations.rb +3048 -0
  128. data/generated/google/apis/compute_beta/service.rb +10154 -0
  129. data/generated/google/apis/compute_v1.rb +49 -0
  130. data/generated/google/apis/compute_v1/classes.rb +8681 -0
  131. data/generated/google/apis/compute_v1/representations.rb +2895 -0
  132. data/generated/google/apis/compute_v1/service.rb +9252 -0
  133. data/generated/google/apis/container_v1.rb +35 -0
  134. data/generated/google/apis/container_v1/classes.rb +463 -0
  135. data/generated/google/apis/container_v1/representations.rb +175 -0
  136. data/generated/google/apis/container_v1/service.rb +367 -0
  137. data/generated/google/apis/container_v1beta1.rb +35 -0
  138. data/generated/google/apis/container_v1beta1/classes.rb +466 -0
  139. data/generated/google/apis/container_v1beta1/representations.rb +177 -0
  140. data/generated/google/apis/container_v1beta1/service.rb +394 -0
  141. data/generated/google/apis/content_v2.rb +35 -0
  142. data/generated/google/apis/content_v2/classes.rb +5986 -0
  143. data/generated/google/apis/content_v2/representations.rb +2288 -0
  144. data/generated/google/apis/content_v2/service.rb +2338 -0
  145. data/generated/google/apis/coordinate_v1.rb +37 -0
  146. data/generated/google/apis/coordinate_v1/classes.rb +669 -0
  147. data/generated/google/apis/coordinate_v1/representations.rb +285 -0
  148. data/generated/google/apis/coordinate_v1/service.rb +678 -0
  149. data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
  150. data/generated/google/apis/customsearch_v1/classes.rb +771 -0
  151. data/generated/google/apis/customsearch_v1/representations.rb +276 -0
  152. data/generated/google/apis/customsearch_v1/service.rb +207 -0
  153. data/generated/google/apis/datastore_v1beta2.rb +40 -0
  154. data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
  155. data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
  156. data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
  157. data/generated/google/apis/deploymentmanager_v2.rb +44 -0
  158. data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -0
  159. data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
  160. data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
  161. data/generated/google/apis/deploymentmanager_v2beta2.rb +44 -0
  162. data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
  163. data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
  164. data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
  165. data/generated/google/apis/dfareporting_v2_1.rb +37 -0
  166. data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
  167. data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
  168. data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
  169. data/generated/google/apis/discovery_v1.rb +32 -0
  170. data/generated/google/apis/discovery_v1/classes.rb +961 -0
  171. data/generated/google/apis/discovery_v1/representations.rb +357 -0
  172. data/generated/google/apis/discovery_v1/service.rb +142 -0
  173. data/generated/google/apis/dns_v1.rb +44 -0
  174. data/generated/google/apis/dns_v1/classes.rb +406 -0
  175. data/generated/google/apis/dns_v1/representations.rb +151 -0
  176. data/generated/google/apis/dns_v1/service.rb +454 -0
  177. data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
  178. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
  179. data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
  180. data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
  181. data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
  182. data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
  183. data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
  184. data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
  185. data/generated/google/apis/drive_v2.rb +58 -0
  186. data/generated/google/apis/drive_v2/classes.rb +2562 -0
  187. data/generated/google/apis/drive_v2/representations.rb +795 -0
  188. data/generated/google/apis/drive_v2/service.rb +2696 -0
  189. data/generated/google/apis/drive_v3.rb +55 -0
  190. data/generated/google/apis/drive_v3/classes.rb +1534 -0
  191. data/generated/google/apis/drive_v3/representations.rb +497 -0
  192. data/generated/google/apis/drive_v3/service.rb +1541 -0
  193. data/generated/google/apis/fitness_v1.rb +49 -0
  194. data/generated/google/apis/fitness_v1/classes.rb +885 -0
  195. data/generated/google/apis/fitness_v1/representations.rb +320 -0
  196. data/generated/google/apis/fitness_v1/service.rb +675 -0
  197. data/generated/google/apis/fusiontables_v2.rb +37 -0
  198. data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
  199. data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
  200. data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
  201. data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
  202. data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
  203. data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
  204. data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
  205. data/generated/google/apis/games_management_v1management.rb +37 -0
  206. data/generated/google/apis/games_management_v1management/classes.rb +524 -0
  207. data/generated/google/apis/games_management_v1management/representations.rb +231 -0
  208. data/generated/google/apis/games_management_v1management/service.rb +994 -0
  209. data/generated/google/apis/games_v1.rb +40 -0
  210. data/generated/google/apis/games_v1/classes.rb +4617 -0
  211. data/generated/google/apis/games_v1/representations.rb +1584 -0
  212. data/generated/google/apis/games_v1/service.rb +2290 -0
  213. data/generated/google/apis/gan_v1beta1.rb +31 -0
  214. data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
  215. data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
  216. data/generated/google/apis/gan_v1beta1/service.rb +682 -0
  217. data/generated/google/apis/genomics_v1.rb +49 -0
  218. data/generated/google/apis/genomics_v1/classes.rb +2609 -0
  219. data/generated/google/apis/genomics_v1/representations.rb +909 -0
  220. data/generated/google/apis/genomics_v1/service.rb +1676 -0
  221. data/generated/google/apis/genomics_v1beta2.rb +46 -0
  222. data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
  223. data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
  224. data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
  225. data/generated/google/apis/gmail_v1.rb +52 -0
  226. data/generated/google/apis/gmail_v1/classes.rb +794 -0
  227. data/generated/google/apis/gmail_v1/representations.rb +339 -0
  228. data/generated/google/apis/gmail_v1/service.rb +1470 -0
  229. data/generated/google/apis/groupsmigration_v1.rb +34 -0
  230. data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
  231. data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
  232. data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
  233. data/generated/google/apis/groupssettings_v1.rb +34 -0
  234. data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
  235. data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
  236. data/generated/google/apis/groupssettings_v1/service.rb +179 -0
  237. data/generated/google/apis/identitytoolkit_v3.rb +31 -0
  238. data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
  239. data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
  240. data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
  241. data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
  242. data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
  243. data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
  244. data/generated/google/apis/kgsearch_v1/service.rb +111 -0
  245. data/generated/google/apis/licensing_v1.rb +34 -0
  246. data/generated/google/apis/licensing_v1/classes.rb +132 -0
  247. data/generated/google/apis/licensing_v1/representations.rb +68 -0
  248. data/generated/google/apis/licensing_v1/service.rb +369 -0
  249. data/generated/google/apis/logging_v1beta3.rb +47 -0
  250. data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
  251. data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
  252. data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
  253. data/generated/google/apis/manager_v1beta2.rb +53 -0
  254. data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
  255. data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
  256. data/generated/google/apis/manager_v1beta2/service.rb +372 -0
  257. data/generated/google/apis/mapsengine_v1.rb +38 -0
  258. data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
  259. data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
  260. data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
  261. data/generated/google/apis/mirror_v1.rb +37 -0
  262. data/generated/google/apis/mirror_v1/classes.rb +1072 -0
  263. data/generated/google/apis/mirror_v1/representations.rb +350 -0
  264. data/generated/google/apis/mirror_v1/service.rb +977 -0
  265. data/generated/google/apis/oauth2_v2.rb +43 -0
  266. data/generated/google/apis/oauth2_v2/classes.rb +245 -0
  267. data/generated/google/apis/oauth2_v2/representations.rb +94 -0
  268. data/generated/google/apis/oauth2_v2/service.rb +199 -0
  269. data/generated/google/apis/pagespeedonline_v2.rb +32 -0
  270. data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
  271. data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
  272. data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
  273. data/generated/google/apis/partners_v2.rb +32 -0
  274. data/generated/google/apis/partners_v2/classes.rb +942 -0
  275. data/generated/google/apis/partners_v2/representations.rb +402 -0
  276. data/generated/google/apis/partners_v2/service.rb +400 -0
  277. data/generated/google/apis/plus_domains_v1.rb +61 -0
  278. data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
  279. data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
  280. data/generated/google/apis/plus_domains_v1/service.rb +904 -0
  281. data/generated/google/apis/plus_v1.rb +43 -0
  282. data/generated/google/apis/plus_v1/classes.rb +2094 -0
  283. data/generated/google/apis/plus_v1/representations.rb +805 -0
  284. data/generated/google/apis/plus_v1/service.rb +470 -0
  285. data/generated/google/apis/prediction_v1_6.rb +44 -0
  286. data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
  287. data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
  288. data/generated/google/apis/prediction_v1_6/service.rb +380 -0
  289. data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
  290. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
  291. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
  292. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
  293. data/generated/google/apis/pubsub_v1.rb +37 -0
  294. data/generated/google/apis/pubsub_v1/classes.rb +614 -0
  295. data/generated/google/apis/pubsub_v1/representations.rb +281 -0
  296. data/generated/google/apis/pubsub_v1/service.rb +774 -0
  297. data/generated/google/apis/pubsub_v1beta2.rb +37 -0
  298. data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
  299. data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
  300. data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
  301. data/generated/google/apis/qpx_express_v1.rb +31 -0
  302. data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
  303. data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
  304. data/generated/google/apis/qpx_express_v1/service.rb +100 -0
  305. data/generated/google/apis/replicapool_v1beta2.rb +44 -0
  306. data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
  307. data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
  308. data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
  309. data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
  310. data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
  311. data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
  312. data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
  313. data/generated/google/apis/reseller_v1.rb +37 -0
  314. data/generated/google/apis/reseller_v1/classes.rb +520 -0
  315. data/generated/google/apis/reseller_v1/representations.rb +200 -0
  316. data/generated/google/apis/reseller_v1/service.rb +623 -0
  317. data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
  318. data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
  319. data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
  320. data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
  321. data/generated/google/apis/script_v1.rb +61 -0
  322. data/generated/google/apis/script_v1/classes.rb +259 -0
  323. data/generated/google/apis/script_v1/representations.rb +106 -0
  324. data/generated/google/apis/script_v1/service.rb +98 -0
  325. data/generated/google/apis/site_verification_v1.rb +37 -0
  326. data/generated/google/apis/site_verification_v1/classes.rb +185 -0
  327. data/generated/google/apis/site_verification_v1/representations.rb +101 -0
  328. data/generated/google/apis/site_verification_v1/service.rb +315 -0
  329. data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
  330. data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
  331. data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
  332. data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
  333. data/generated/google/apis/storage_v1.rb +46 -0
  334. data/generated/google/apis/storage_v1/classes.rb +1222 -0
  335. data/generated/google/apis/storage_v1/representations.rb +445 -0
  336. data/generated/google/apis/storage_v1/service.rb +1903 -0
  337. data/generated/google/apis/storagetransfer_v1.rb +35 -0
  338. data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
  339. data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
  340. data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
  341. data/generated/google/apis/tagmanager_v1.rb +52 -0
  342. data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
  343. data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
  344. data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
  345. data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
  346. data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
  347. data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
  348. data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
  349. data/generated/google/apis/tasks_v1.rb +37 -0
  350. data/generated/google/apis/tasks_v1/classes.rb +296 -0
  351. data/generated/google/apis/tasks_v1/representations.rb +115 -0
  352. data/generated/google/apis/tasks_v1/service.rb +643 -0
  353. data/generated/google/apis/translate_v2.rb +31 -0
  354. data/generated/google/apis/translate_v2/classes.rb +168 -0
  355. data/generated/google/apis/translate_v2/representations.rb +109 -0
  356. data/generated/google/apis/translate_v2/service.rb +182 -0
  357. data/generated/google/apis/urlshortener_v1.rb +34 -0
  358. data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
  359. data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
  360. data/generated/google/apis/urlshortener_v1/service.rb +176 -0
  361. data/generated/google/apis/webmasters_v3.rb +37 -0
  362. data/generated/google/apis/webmasters_v3/classes.rb +563 -0
  363. data/generated/google/apis/webmasters_v3/representations.rb +250 -0
  364. data/generated/google/apis/webmasters_v3/service.rb +573 -0
  365. data/generated/google/apis/youtube_analytics_v1.rb +46 -0
  366. data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
  367. data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
  368. data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
  369. data/generated/google/apis/youtube_v3.rb +49 -0
  370. data/generated/google/apis/youtube_v3/classes.rb +8136 -0
  371. data/generated/google/apis/youtube_v3/representations.rb +2838 -0
  372. data/generated/google/apis/youtube_v3/service.rb +4403 -0
  373. data/generated/google/apis/youtubereporting_v1.rb +38 -0
  374. data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
  375. data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
  376. data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
  377. data/google-api-client.gemspec +27 -39
  378. data/lib/google/api_client/auth/installed_app.rb +7 -5
  379. data/lib/google/api_client/auth/key_utils.rb +1 -0
  380. data/lib/google/api_client/auth/storage.rb +4 -2
  381. data/lib/google/api_client/auth/storages/file_store.rb +2 -3
  382. data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
  383. data/lib/google/api_client/client_secrets.rb +4 -5
  384. data/lib/google/apis.rb +48 -0
  385. data/lib/google/apis/core/api_command.rb +135 -0
  386. data/lib/google/apis/core/base_service.rb +317 -0
  387. data/lib/google/apis/core/batch.rb +239 -0
  388. data/lib/google/apis/core/download.rb +94 -0
  389. data/lib/google/apis/core/hashable.rb +44 -0
  390. data/lib/google/apis/core/http_client_adapter.rb +82 -0
  391. data/lib/google/apis/core/http_command.rb +312 -0
  392. data/lib/google/apis/core/json_representation.rb +127 -0
  393. data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
  394. data/lib/google/apis/core/multipart.rb +187 -0
  395. data/lib/google/apis/core/upload.rb +288 -0
  396. data/lib/google/{api_client → apis}/errors.rb +39 -28
  397. data/lib/google/apis/generator.rb +70 -0
  398. data/lib/google/apis/generator/annotator.rb +295 -0
  399. data/lib/google/apis/generator/helpers.rb +74 -0
  400. data/lib/google/apis/generator/model.rb +143 -0
  401. data/lib/google/apis/generator/template.rb +124 -0
  402. data/lib/google/apis/generator/templates/_class.tmpl +40 -0
  403. data/lib/google/apis/generator/templates/_method.tmpl +92 -0
  404. data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
  405. data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
  406. data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
  407. data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
  408. data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
  409. data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
  410. data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
  411. data/lib/google/apis/options.rb +85 -0
  412. data/lib/google/apis/version.rb +39 -0
  413. data/rakelib/metrics.rake +22 -0
  414. data/rakelib/rubocop.rake +10 -0
  415. data/rakelib/spec.rake +11 -0
  416. data/rakelib/yard.rake +11 -0
  417. data/samples/Gemfile +7 -0
  418. data/samples/README.md +51 -0
  419. data/samples/google-api-samples +32 -0
  420. data/samples/lib/base_cli.rb +94 -0
  421. data/samples/lib/samples/analytics.rb +62 -0
  422. data/samples/lib/samples/calendar.rb +83 -0
  423. data/samples/lib/samples/drive.rb +82 -0
  424. data/samples/lib/samples/gmail.rb +50 -0
  425. data/samples/lib/samples/pubsub.rb +114 -0
  426. data/samples/lib/samples/translate.rb +44 -0
  427. data/samples/lib/samples/you_tube.rb +44 -0
  428. data/script/generate +95 -0
  429. data/script/package +8 -0
  430. data/script/release +15 -0
  431. data/spec/fixtures/files/api_names.yaml +3 -0
  432. data/spec/fixtures/files/auth_stored_credentials.json +8 -0
  433. data/spec/fixtures/files/child/.gitignore +0 -0
  434. data/spec/fixtures/files/client_secrets.json +1 -0
  435. data/spec/fixtures/files/invalid.json +1 -0
  436. data/spec/fixtures/files/test.blah +1 -0
  437. data/spec/fixtures/files/test.txt +1 -0
  438. data/spec/fixtures/files/test_api.json +440 -0
  439. data/spec/google/api_client/auth/storage_spec.rb +1 -3
  440. data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
  441. data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
  442. data/spec/google/api_client/client_secrets_spec.rb +38 -1
  443. data/spec/google/apis/core/api_command_spec.rb +209 -0
  444. data/spec/google/apis/core/batch_spec.rb +142 -0
  445. data/spec/google/apis/core/download_spec.rb +103 -0
  446. data/spec/google/apis/core/hashable_spec.rb +60 -0
  447. data/spec/google/apis/core/http_command_spec.rb +284 -0
  448. data/spec/google/apis/core/json_representation_spec.rb +192 -0
  449. data/spec/google/apis/core/service_spec.rb +247 -0
  450. data/spec/google/apis/core/upload_spec.rb +300 -0
  451. data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
  452. data/spec/google/apis/generator/generator_spec.rb +272 -0
  453. data/spec/google/apis/logging_spec.rb +45 -0
  454. data/spec/google/apis/options_spec.rb +40 -0
  455. data/spec/integration_tests/adsense_spec.rb +29 -0
  456. data/spec/integration_tests/drive_spec.rb +35 -0
  457. data/spec/integration_tests/pubsub_spec.rb +48 -0
  458. data/spec/integration_tests/url_shortener_spec.rb +45 -0
  459. data/spec/spec_helper.rb +131 -44
  460. data/spec/spec_helper/load_path_spec.rb +33 -0
  461. data/third_party/hurley_patches.rb +103 -0
  462. metadata +533 -170
  463. data/lib/compat/multi_json.rb +0 -19
  464. data/lib/google/api_client.rb +0 -750
  465. data/lib/google/api_client/auth/file_storage.rb +0 -59
  466. data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
  467. data/lib/google/api_client/auth/pkcs12.rb +0 -41
  468. data/lib/google/api_client/batch.rb +0 -326
  469. data/lib/google/api_client/charset.rb +0 -33
  470. data/lib/google/api_client/discovery/api.rb +0 -310
  471. data/lib/google/api_client/discovery/media.rb +0 -77
  472. data/lib/google/api_client/discovery/method.rb +0 -363
  473. data/lib/google/api_client/discovery/resource.rb +0 -156
  474. data/lib/google/api_client/discovery/schema.rb +0 -117
  475. data/lib/google/api_client/environment.rb +0 -42
  476. data/lib/google/api_client/gzip.rb +0 -28
  477. data/lib/google/api_client/logging.rb +0 -32
  478. data/lib/google/api_client/media.rb +0 -259
  479. data/lib/google/api_client/railtie.rb +0 -18
  480. data/lib/google/api_client/request.rb +0 -350
  481. data/lib/google/api_client/result.rb +0 -255
  482. data/lib/google/api_client/service.rb +0 -233
  483. data/lib/google/api_client/service/batch.rb +0 -110
  484. data/lib/google/api_client/service/request.rb +0 -144
  485. data/lib/google/api_client/service/resource.rb +0 -40
  486. data/lib/google/api_client/service/result.rb +0 -162
  487. data/lib/google/api_client/service/simple_file_store.rb +0 -151
  488. data/lib/google/api_client/service/stub_generator.rb +0 -61
  489. data/spec/google/api_client/batch_spec.rb +0 -248
  490. data/spec/google/api_client/discovery_spec.rb +0 -708
  491. data/spec/google/api_client/gzip_spec.rb +0 -98
  492. data/spec/google/api_client/media_spec.rb +0 -178
  493. data/spec/google/api_client/result_spec.rb +0 -207
  494. data/spec/google/api_client/service_account_spec.rb +0 -169
  495. data/spec/google/api_client/service_spec.rb +0 -618
  496. data/spec/google/api_client/simple_file_store_spec.rb +0 -133
  497. data/spec/google/api_client_spec.rb +0 -352
@@ -0,0 +1,1676 @@
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 GenomicsV1
23
+ # Genomics API
24
+ #
25
+ # An API to store, process, explore, and share genomic data. It supports
26
+ # reference-based alignements, genetic variants, and reference genomes. This API
27
+ # provides an implementation of the Global Alliance for Genomics and Health (
28
+ # GA4GH) v0.5.1 API as well as several extensions.
29
+ #
30
+ # @example
31
+ # require 'google/apis/genomics_v1'
32
+ #
33
+ # Genomics = Google::Apis::GenomicsV1 # Alias the module
34
+ # service = Genomics::GenomicsService.new
35
+ #
36
+ # @see
37
+ class GenomicsService < Google::Apis::Core::BaseService
38
+ # @return [String]
39
+ # API key. Your API key identifies your project and provides you with API access,
40
+ # quota, and reports. Required unless you provide an OAuth 2.0 token.
41
+ attr_accessor :key
42
+
43
+ # @return [String]
44
+ # Available to use for quota purposes for server-side applications. Can be any
45
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
46
+ attr_accessor :quota_user
47
+
48
+ def initialize
49
+ super('https://genomics.googleapis.com/', '')
50
+ end
51
+
52
+ # Lists datasets within a project. For the definitions of datasets and other
53
+ # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
54
+ # com/genomics/fundamentals-of-google-genomics)
55
+ # @param [String] project_id
56
+ # Required. The project to list datasets for.
57
+ # @param [Fixnum] page_size
58
+ # The maximum number of results to return in a single page. If unspecified,
59
+ # defaults to 50. The maximum value is 1024.
60
+ # @param [String] page_token
61
+ # The continuation token, which is used to page through large result sets. To
62
+ # get the next page of results, set this parameter to the value of `
63
+ # nextPageToken` from the previous response.
64
+ # @param [String] fields
65
+ # Selector specifying which fields to include in a partial response.
66
+ # @param [String] quota_user
67
+ # Available to use for quota purposes for server-side applications. Can be any
68
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
69
+ # @param [Google::Apis::RequestOptions] options
70
+ # Request-specific options
71
+ #
72
+ # @yield [result, err] Result & error if block supplied
73
+ # @yieldparam result [Google::Apis::GenomicsV1::ListDatasetsResponse] parsed result object
74
+ # @yieldparam err [StandardError] error object if request failed
75
+ #
76
+ # @return [Google::Apis::GenomicsV1::ListDatasetsResponse]
77
+ #
78
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
81
+ def list_datasets(project_id: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
82
+ command = make_simple_command(:get, 'v1/datasets', options)
83
+ command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation
84
+ command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse
85
+ command.query['projectId'] = project_id unless project_id.nil?
86
+ command.query['pageSize'] = page_size unless page_size.nil?
87
+ command.query['pageToken'] = page_token unless page_token.nil?
88
+ command.query['fields'] = fields unless fields.nil?
89
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
90
+ execute_or_queue_command(command, &block)
91
+ end
92
+
93
+ # Creates a new dataset. For the definitions of datasets and other genomics
94
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
95
+ # genomics/fundamentals-of-google-genomics)
96
+ # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
97
+ # @param [String] fields
98
+ # Selector specifying which fields to include in a partial response.
99
+ # @param [String] quota_user
100
+ # Available to use for quota purposes for server-side applications. Can be any
101
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
102
+ # @param [Google::Apis::RequestOptions] options
103
+ # Request-specific options
104
+ #
105
+ # @yield [result, err] Result & error if block supplied
106
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
107
+ # @yieldparam err [StandardError] error object if request failed
108
+ #
109
+ # @return [Google::Apis::GenomicsV1::Dataset]
110
+ #
111
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
112
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
113
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
114
+ def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
115
+ command = make_simple_command(:post, 'v1/datasets', options)
116
+ command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
117
+ command.request_object = dataset_object
118
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
119
+ command.response_class = Google::Apis::GenomicsV1::Dataset
120
+ command.query['fields'] = fields unless fields.nil?
121
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
122
+ execute_or_queue_command(command, &block)
123
+ end
124
+
125
+ # Gets a dataset by ID. For the definitions of datasets and other genomics
126
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
127
+ # genomics/fundamentals-of-google-genomics)
128
+ # @param [String] dataset_id
129
+ # The ID of the dataset.
130
+ # @param [String] fields
131
+ # Selector specifying which fields to include in a partial response.
132
+ # @param [String] quota_user
133
+ # Available to use for quota purposes for server-side applications. Can be any
134
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
135
+ # @param [Google::Apis::RequestOptions] options
136
+ # Request-specific options
137
+ #
138
+ # @yield [result, err] Result & error if block supplied
139
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
140
+ # @yieldparam err [StandardError] error object if request failed
141
+ #
142
+ # @return [Google::Apis::GenomicsV1::Dataset]
143
+ #
144
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
145
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
146
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
147
+ def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
148
+ command = make_simple_command(:get, 'v1/datasets/{datasetId}', options)
149
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
150
+ command.response_class = Google::Apis::GenomicsV1::Dataset
151
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
152
+ command.query['fields'] = fields unless fields.nil?
153
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
154
+ execute_or_queue_command(command, &block)
155
+ end
156
+
157
+ # Updates a dataset. For the definitions of datasets and other genomics
158
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
159
+ # genomics/fundamentals-of-google-genomics) This method supports patch semantics.
160
+ # @param [String] dataset_id
161
+ # The ID of the dataset to be updated.
162
+ # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
163
+ # @param [String] update_mask
164
+ # An optional mask specifying which fields to update. At this time, the only
165
+ # mutable field is name. The only acceptable value is "name". If unspecified,
166
+ # all mutable fields will be updated.
167
+ # @param [String] fields
168
+ # Selector specifying which fields to include in a partial response.
169
+ # @param [String] quota_user
170
+ # Available to use for quota purposes for server-side applications. Can be any
171
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
172
+ # @param [Google::Apis::RequestOptions] options
173
+ # Request-specific options
174
+ #
175
+ # @yield [result, err] Result & error if block supplied
176
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
177
+ # @yieldparam err [StandardError] error object if request failed
178
+ #
179
+ # @return [Google::Apis::GenomicsV1::Dataset]
180
+ #
181
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
182
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
183
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
184
+ def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
185
+ command = make_simple_command(:patch, 'v1/datasets/{datasetId}', options)
186
+ command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
187
+ command.request_object = dataset_object
188
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
189
+ command.response_class = Google::Apis::GenomicsV1::Dataset
190
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
191
+ command.query['updateMask'] = update_mask unless update_mask.nil?
192
+ command.query['fields'] = fields unless fields.nil?
193
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
194
+ execute_or_queue_command(command, &block)
195
+ end
196
+
197
+ # Deletes a dataset. For the definitions of datasets and other genomics
198
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
199
+ # genomics/fundamentals-of-google-genomics)
200
+ # @param [String] dataset_id
201
+ # The ID of the dataset to be deleted.
202
+ # @param [String] fields
203
+ # Selector specifying which fields to include in a partial response.
204
+ # @param [String] quota_user
205
+ # Available to use for quota purposes for server-side applications. Can be any
206
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
207
+ # @param [Google::Apis::RequestOptions] options
208
+ # Request-specific options
209
+ #
210
+ # @yield [result, err] Result & error if block supplied
211
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
212
+ # @yieldparam err [StandardError] error object if request failed
213
+ #
214
+ # @return [Google::Apis::GenomicsV1::Empty]
215
+ #
216
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
217
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
218
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
219
+ def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
220
+ command = make_simple_command(:delete, 'v1/datasets/{datasetId}', options)
221
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
222
+ command.response_class = Google::Apis::GenomicsV1::Empty
223
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
224
+ command.query['fields'] = fields unless fields.nil?
225
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
226
+ execute_or_queue_command(command, &block)
227
+ end
228
+
229
+ # Undeletes a dataset by restoring a dataset which was deleted via this API. For
230
+ # the definitions of datasets and other genomics resources, see [Fundamentals of
231
+ # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
232
+ # genomics) This operation is only possible for a week after the deletion
233
+ # occurred.
234
+ # @param [String] dataset_id
235
+ # The ID of the dataset to be undeleted.
236
+ # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object
237
+ # @param [String] fields
238
+ # Selector specifying which fields to include in a partial response.
239
+ # @param [String] quota_user
240
+ # Available to use for quota purposes for server-side applications. Can be any
241
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
242
+ # @param [Google::Apis::RequestOptions] options
243
+ # Request-specific options
244
+ #
245
+ # @yield [result, err] Result & error if block supplied
246
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
247
+ # @yieldparam err [StandardError] error object if request failed
248
+ #
249
+ # @return [Google::Apis::GenomicsV1::Dataset]
250
+ #
251
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
252
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
253
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
254
+ def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
255
+ command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options)
256
+ command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation
257
+ command.request_object = undelete_dataset_request_object
258
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
259
+ command.response_class = Google::Apis::GenomicsV1::Dataset
260
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
261
+ command.query['fields'] = fields unless fields.nil?
262
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
263
+ execute_or_queue_command(command, &block)
264
+ end
265
+
266
+ # Sets the access control policy on the specified dataset. Replaces any existing
267
+ # policy. For the definitions of datasets and other genomics resources, see [
268
+ # Fundamentals of Google Genomics](https://cloud.google.com/genomics/
269
+ # fundamentals-of-google-genomics) See Setting a Policy for more information.
270
+ # @param [String] resource
271
+ # REQUIRED: The resource for which policy is being specified. Format is `
272
+ # datasets/`.
273
+ # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object
274
+ # @param [String] fields
275
+ # Selector specifying which fields to include in a partial response.
276
+ # @param [String] quota_user
277
+ # Available to use for quota purposes for server-side applications. Can be any
278
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
279
+ # @param [Google::Apis::RequestOptions] options
280
+ # Request-specific options
281
+ #
282
+ # @yield [result, err] Result & error if block supplied
283
+ # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
284
+ # @yieldparam err [StandardError] error object if request failed
285
+ #
286
+ # @return [Google::Apis::GenomicsV1::Policy]
287
+ #
288
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
289
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
290
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
291
+ def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
292
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
293
+ command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation
294
+ command.request_object = set_iam_policy_request_object
295
+ command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
296
+ command.response_class = Google::Apis::GenomicsV1::Policy
297
+ command.params['resource'] = resource unless resource.nil?
298
+ command.query['fields'] = fields unless fields.nil?
299
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
300
+ execute_or_queue_command(command, &block)
301
+ end
302
+
303
+ # Gets the access control policy for the dataset. This is empty if the policy or
304
+ # resource does not exist. See Getting a Policy for more information. For the
305
+ # definitions of datasets and other genomics resources, see [Fundamentals of
306
+ # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
307
+ # genomics)
308
+ # @param [String] resource
309
+ # REQUIRED: The resource for which policy is being specified. Format is `
310
+ # datasets/`.
311
+ # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object
312
+ # @param [String] fields
313
+ # Selector specifying which fields to include in a partial response.
314
+ # @param [String] quota_user
315
+ # Available to use for quota purposes for server-side applications. Can be any
316
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
317
+ # @param [Google::Apis::RequestOptions] options
318
+ # Request-specific options
319
+ #
320
+ # @yield [result, err] Result & error if block supplied
321
+ # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
322
+ # @yieldparam err [StandardError] error object if request failed
323
+ #
324
+ # @return [Google::Apis::GenomicsV1::Policy]
325
+ #
326
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
327
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
328
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
329
+ def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
330
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
331
+ command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation
332
+ command.request_object = get_iam_policy_request_object
333
+ command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
334
+ command.response_class = Google::Apis::GenomicsV1::Policy
335
+ command.params['resource'] = resource unless resource.nil?
336
+ command.query['fields'] = fields unless fields.nil?
337
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
338
+ execute_or_queue_command(command, &block)
339
+ end
340
+
341
+ # Returns permissions that a caller has on the specified resource. See Testing
342
+ # Permissions for more information. For the definitions of datasets and other
343
+ # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
344
+ # com/genomics/fundamentals-of-google-genomics)
345
+ # @param [String] resource
346
+ # REQUIRED: The resource for which policy is being specified. Format is `
347
+ # datasets/`.
348
+ # @param [Google::Apis::GenomicsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
349
+ # @param [String] fields
350
+ # Selector specifying which fields to include in a partial response.
351
+ # @param [String] quota_user
352
+ # Available to use for quota purposes for server-side applications. Can be any
353
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
354
+ # @param [Google::Apis::RequestOptions] options
355
+ # Request-specific options
356
+ #
357
+ # @yield [result, err] Result & error if block supplied
358
+ # @yieldparam result [Google::Apis::GenomicsV1::TestIamPermissionsResponse] parsed result object
359
+ # @yieldparam err [StandardError] error object if request failed
360
+ #
361
+ # @return [Google::Apis::GenomicsV1::TestIamPermissionsResponse]
362
+ #
363
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
364
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
365
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
366
+ def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
367
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
368
+ command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation
369
+ command.request_object = test_iam_permissions_request_object
370
+ command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation
371
+ command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse
372
+ command.params['resource'] = resource unless resource.nil?
373
+ command.query['fields'] = fields unless fields.nil?
374
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
375
+ execute_or_queue_command(command, &block)
376
+ end
377
+
378
+ # Gets the latest state of a long-running operation. Clients can use this method
379
+ # to poll the operation result at intervals as recommended by the API service.
380
+ # @param [String] name
381
+ # The name of the operation resource.
382
+ # @param [String] fields
383
+ # Selector specifying which fields to include in a partial response.
384
+ # @param [String] quota_user
385
+ # Available to use for quota purposes for server-side applications. Can be any
386
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
387
+ # @param [Google::Apis::RequestOptions] options
388
+ # Request-specific options
389
+ #
390
+ # @yield [result, err] Result & error if block supplied
391
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
392
+ # @yieldparam err [StandardError] error object if request failed
393
+ #
394
+ # @return [Google::Apis::GenomicsV1::Operation]
395
+ #
396
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
397
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
398
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
399
+ def get_operation(name, fields: nil, quota_user: nil, options: nil, &block)
400
+ command = make_simple_command(:get, 'v1/{+name}', options)
401
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
402
+ command.response_class = Google::Apis::GenomicsV1::Operation
403
+ command.params['name'] = name unless name.nil?
404
+ command.query['fields'] = fields unless fields.nil?
405
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
406
+ execute_or_queue_command(command, &block)
407
+ end
408
+
409
+ # Lists operations that match the specified filter in the request.
410
+ # @param [String] name
411
+ # The name of the operation collection.
412
+ # @param [String] filter
413
+ # A string for filtering Operations. The following filter fields are supported: *
414
+ # projectId: Required. Corresponds to OperationMetadata.projectId. * createTime:
415
+ # The time this job was created, in seconds from the [epoch](http://en.
416
+ # wikipedia.org/wiki/Unix_time). Can use `>=` and/or `= 1432140000` * `projectId
417
+ # = my-project AND createTime >= 1432140000 AND createTime <= 1432150000 AND
418
+ # status = RUNNING`
419
+ # @param [Fixnum] page_size
420
+ # The maximum number of results to return. If unspecified, defaults to 256. The
421
+ # maximum value is 2048.
422
+ # @param [String] page_token
423
+ # The standard list page token.
424
+ # @param [String] fields
425
+ # Selector specifying which fields to include in a partial response.
426
+ # @param [String] quota_user
427
+ # Available to use for quota purposes for server-side applications. Can be any
428
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
429
+ # @param [Google::Apis::RequestOptions] options
430
+ # Request-specific options
431
+ #
432
+ # @yield [result, err] Result & error if block supplied
433
+ # @yieldparam result [Google::Apis::GenomicsV1::ListOperationsResponse] parsed result object
434
+ # @yieldparam err [StandardError] error object if request failed
435
+ #
436
+ # @return [Google::Apis::GenomicsV1::ListOperationsResponse]
437
+ #
438
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
439
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
440
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
441
+ def list_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
442
+ command = make_simple_command(:get, 'v1/{+name}', options)
443
+ command.response_representation = Google::Apis::GenomicsV1::ListOperationsResponse::Representation
444
+ command.response_class = Google::Apis::GenomicsV1::ListOperationsResponse
445
+ command.params['name'] = name unless name.nil?
446
+ command.query['filter'] = filter unless filter.nil?
447
+ command.query['pageSize'] = page_size unless page_size.nil?
448
+ command.query['pageToken'] = page_token unless page_token.nil?
449
+ command.query['fields'] = fields unless fields.nil?
450
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
451
+ execute_or_queue_command(command, &block)
452
+ end
453
+
454
+ # Starts asynchronous cancellation on a long-running operation. The server makes
455
+ # a best effort to cancel the operation, but success is not guaranteed. Clients
456
+ # may use Operations.GetOperation or Operations.ListOperations to check whether
457
+ # the cancellation succeeded or the operation completed despite cancellation.
458
+ # @param [String] name
459
+ # The name of the operation resource to be cancelled.
460
+ # @param [Google::Apis::GenomicsV1::CancelOperationRequest] cancel_operation_request_object
461
+ # @param [String] fields
462
+ # Selector specifying which fields to include in a partial response.
463
+ # @param [String] quota_user
464
+ # Available to use for quota purposes for server-side applications. Can be any
465
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
466
+ # @param [Google::Apis::RequestOptions] options
467
+ # Request-specific options
468
+ #
469
+ # @yield [result, err] Result & error if block supplied
470
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
471
+ # @yieldparam err [StandardError] error object if request failed
472
+ #
473
+ # @return [Google::Apis::GenomicsV1::Empty]
474
+ #
475
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
476
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
477
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
478
+ def cancel_operation(name, cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
479
+ command = make_simple_command(:post, 'v1/{+name}:cancel', options)
480
+ command.request_representation = Google::Apis::GenomicsV1::CancelOperationRequest::Representation
481
+ command.request_object = cancel_operation_request_object
482
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
483
+ command.response_class = Google::Apis::GenomicsV1::Empty
484
+ command.params['name'] = name unless name.nil?
485
+ command.query['fields'] = fields unless fields.nil?
486
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
487
+ execute_or_queue_command(command, &block)
488
+ end
489
+
490
+ # Creates read group sets by asynchronously importing the provided information.
491
+ # For the definitions of read group sets and other genomics resources, see [
492
+ # Fundamentals of Google Genomics](https://cloud.google.com/genomics/
493
+ # fundamentals-of-google-genomics) The caller must have WRITE permissions to the
494
+ # dataset. ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf)
495
+ # import - Tags will be converted to strings - tag types are not preserved -
496
+ # Comments (`@CO`) in the input file header will not be preserved - Original
497
+ # header order of references (`@SQ`) will not be preserved - Any reverse
498
+ # stranded unmapped reads will be reverse complemented, and their qualities (
499
+ # also the "BQ" and "OQ" tags, if any) will be reversed - Unmapped reads will be
500
+ # stripped of positional information (reference name and position)
501
+ # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object
502
+ # @param [String] fields
503
+ # Selector specifying which fields to include in a partial response.
504
+ # @param [String] quota_user
505
+ # Available to use for quota purposes for server-side applications. Can be any
506
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
507
+ # @param [Google::Apis::RequestOptions] options
508
+ # Request-specific options
509
+ #
510
+ # @yield [result, err] Result & error if block supplied
511
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
512
+ # @yieldparam err [StandardError] error object if request failed
513
+ #
514
+ # @return [Google::Apis::GenomicsV1::Operation]
515
+ #
516
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
517
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
518
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
519
+ def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
520
+ command = make_simple_command(:post, 'v1/readgroupsets:import', options)
521
+ command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation
522
+ command.request_object = import_read_group_sets_request_object
523
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
524
+ command.response_class = Google::Apis::GenomicsV1::Operation
525
+ command.query['fields'] = fields unless fields.nil?
526
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
527
+ execute_or_queue_command(command, &block)
528
+ end
529
+
530
+ # Exports a read group set to a BAM file in Google Cloud Storage. For the
531
+ # definitions of read group sets and other genomics resources, see [Fundamentals
532
+ # of Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
533
+ # genomics) Note that currently there may be some differences between exported
534
+ # BAM files and the original BAM file at the time of import. See [
535
+ # ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets) for
536
+ # caveats.
537
+ # @param [String] read_group_set_id
538
+ # Required. The ID of the read group set to export. The caller must have READ
539
+ # access to this read group set.
540
+ # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object
541
+ # @param [String] fields
542
+ # Selector specifying which fields to include in a partial response.
543
+ # @param [String] quota_user
544
+ # Available to use for quota purposes for server-side applications. Can be any
545
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
546
+ # @param [Google::Apis::RequestOptions] options
547
+ # Request-specific options
548
+ #
549
+ # @yield [result, err] Result & error if block supplied
550
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
551
+ # @yieldparam err [StandardError] error object if request failed
552
+ #
553
+ # @return [Google::Apis::GenomicsV1::Operation]
554
+ #
555
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
556
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
557
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
558
+ def export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
559
+ command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options)
560
+ command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation
561
+ command.request_object = export_read_group_set_request_object
562
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
563
+ command.response_class = Google::Apis::GenomicsV1::Operation
564
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
565
+ command.query['fields'] = fields unless fields.nil?
566
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
567
+ execute_or_queue_command(command, &block)
568
+ end
569
+
570
+ # Searches for read group sets matching the criteria. For the definitions of
571
+ # read group sets and other genomics resources, see [Fundamentals of Google
572
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
573
+ # Implements [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/
574
+ # schemas/blob/v0.5.1/src/main/resources/avro/readmethods.avdl#L135).
575
+ # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object
576
+ # @param [String] fields
577
+ # Selector specifying which fields to include in a partial response.
578
+ # @param [String] quota_user
579
+ # Available to use for quota purposes for server-side applications. Can be any
580
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
581
+ # @param [Google::Apis::RequestOptions] options
582
+ # Request-specific options
583
+ #
584
+ # @yield [result, err] Result & error if block supplied
585
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] parsed result object
586
+ # @yieldparam err [StandardError] error object if request failed
587
+ #
588
+ # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse]
589
+ #
590
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
591
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
592
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
593
+ def search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
594
+ command = make_simple_command(:post, 'v1/readgroupsets/search', options)
595
+ command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation
596
+ command.request_object = search_read_group_sets_request_object
597
+ command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation
598
+ command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse
599
+ command.query['fields'] = fields unless fields.nil?
600
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
601
+ execute_or_queue_command(command, &block)
602
+ end
603
+
604
+ # Updates a read group set. For the definitions of read group sets and other
605
+ # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
606
+ # com/genomics/fundamentals-of-google-genomics) This method supports patch
607
+ # semantics.
608
+ # @param [String] read_group_set_id
609
+ # The ID of the read group set to be updated. The caller must have WRITE
610
+ # permissions to the dataset associated with this read group set.
611
+ # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object
612
+ # @param [String] update_mask
613
+ # An optional mask specifying which fields to update. Supported fields: * name. *
614
+ # referenceSetId. Leaving `updateMask` unset is equivalent to specifying all
615
+ # mutable fields.
616
+ # @param [String] fields
617
+ # Selector specifying which fields to include in a partial response.
618
+ # @param [String] quota_user
619
+ # Available to use for quota purposes for server-side applications. Can be any
620
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
621
+ # @param [Google::Apis::RequestOptions] options
622
+ # Request-specific options
623
+ #
624
+ # @yield [result, err] Result & error if block supplied
625
+ # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
626
+ # @yieldparam err [StandardError] error object if request failed
627
+ #
628
+ # @return [Google::Apis::GenomicsV1::ReadGroupSet]
629
+ #
630
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
631
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
632
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
633
+ def patch_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
634
+ command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options)
635
+ command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
636
+ command.request_object = read_group_set_object
637
+ command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
638
+ command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
639
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
640
+ command.query['updateMask'] = update_mask unless update_mask.nil?
641
+ command.query['fields'] = fields unless fields.nil?
642
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
643
+ execute_or_queue_command(command, &block)
644
+ end
645
+
646
+ # Deletes a read group set. For the definitions of read group sets and other
647
+ # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
648
+ # com/genomics/fundamentals-of-google-genomics)
649
+ # @param [String] read_group_set_id
650
+ # The ID of the read group set to be deleted. The caller must have WRITE
651
+ # permissions to the dataset associated with this read group set.
652
+ # @param [String] fields
653
+ # Selector specifying which fields to include in a partial response.
654
+ # @param [String] quota_user
655
+ # Available to use for quota purposes for server-side applications. Can be any
656
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
657
+ # @param [Google::Apis::RequestOptions] options
658
+ # Request-specific options
659
+ #
660
+ # @yield [result, err] Result & error if block supplied
661
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
662
+ # @yieldparam err [StandardError] error object if request failed
663
+ #
664
+ # @return [Google::Apis::GenomicsV1::Empty]
665
+ #
666
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
667
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
668
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
669
+ def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
670
+ command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options)
671
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
672
+ command.response_class = Google::Apis::GenomicsV1::Empty
673
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
674
+ command.query['fields'] = fields unless fields.nil?
675
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
676
+ execute_or_queue_command(command, &block)
677
+ end
678
+
679
+ # Gets a read group set by ID. For the definitions of read group sets and other
680
+ # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
681
+ # com/genomics/fundamentals-of-google-genomics)
682
+ # @param [String] read_group_set_id
683
+ # The ID of the read group set.
684
+ # @param [String] fields
685
+ # Selector specifying which fields to include in a partial response.
686
+ # @param [String] quota_user
687
+ # Available to use for quota purposes for server-side applications. Can be any
688
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
689
+ # @param [Google::Apis::RequestOptions] options
690
+ # Request-specific options
691
+ #
692
+ # @yield [result, err] Result & error if block supplied
693
+ # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
694
+ # @yieldparam err [StandardError] error object if request failed
695
+ #
696
+ # @return [Google::Apis::GenomicsV1::ReadGroupSet]
697
+ #
698
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
699
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
700
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
701
+ def get_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
702
+ command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options)
703
+ command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
704
+ command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
705
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
706
+ command.query['fields'] = fields unless fields.nil?
707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
708
+ execute_or_queue_command(command, &block)
709
+ end
710
+
711
+ # Lists fixed width coverage buckets for a read group set, each of which
712
+ # correspond to a range of a reference sequence. Each bucket summarizes coverage
713
+ # information across its corresponding genomic range. For the definitions of
714
+ # read group sets and other genomics resources, see [Fundamentals of Google
715
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
716
+ # Coverage is defined as the number of reads which are aligned to a given base
717
+ # in the reference sequence. Coverage buckets are available at several
718
+ # precomputed bucket widths, enabling retrieval of various coverage 'zoom levels'
719
+ # . The caller must have READ permissions for the target read group set.
720
+ # @param [String] read_group_set_id
721
+ # Required. The ID of the read group set over which coverage is requested.
722
+ # @param [String] reference_name
723
+ # The name of the reference to query, within the reference set associated with
724
+ # this query. Optional.
725
+ # @param [String] start
726
+ # The start position of the range on the reference, 0-based inclusive. If
727
+ # specified, `referenceName` must also be specified. Defaults to 0.
728
+ # @param [String] end_
729
+ # The end position of the range on the reference, 0-based exclusive. If
730
+ # specified, `referenceName` must also be specified. If unset or 0, defaults to
731
+ # the length of the reference.
732
+ # @param [String] target_bucket_width
733
+ # The desired width of each reported coverage bucket in base pairs. This will be
734
+ # rounded down to the nearest precomputed bucket width; the value of which is
735
+ # returned as `bucketWidth` in the response. Defaults to infinity (each bucket
736
+ # spans an entire reference sequence) or the length of the target range, if
737
+ # specified. The smallest precomputed `bucketWidth` is currently 2048 base pairs;
738
+ # this is subject to change.
739
+ # @param [String] page_token
740
+ # The continuation token, which is used to page through large result sets. To
741
+ # get the next page of results, set this parameter to the value of `
742
+ # nextPageToken` from the previous response.
743
+ # @param [Fixnum] page_size
744
+ # The maximum number of results to return in a single page. If unspecified,
745
+ # defaults to 1024. The maximum value is 2048.
746
+ # @param [String] fields
747
+ # Selector specifying which fields to include in a partial response.
748
+ # @param [String] quota_user
749
+ # Available to use for quota purposes for server-side applications. Can be any
750
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
751
+ # @param [Google::Apis::RequestOptions] options
752
+ # Request-specific options
753
+ #
754
+ # @yield [result, err] Result & error if block supplied
755
+ # @yieldparam result [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] parsed result object
756
+ # @yieldparam err [StandardError] error object if request failed
757
+ #
758
+ # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse]
759
+ #
760
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
761
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
762
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
763
+ def list_coverage_buckets(read_group_set_id, reference_name: nil, start: nil, end_: nil, target_bucket_width: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
764
+ command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options)
765
+ command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation
766
+ command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse
767
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
768
+ command.query['referenceName'] = reference_name unless reference_name.nil?
769
+ command.query['start'] = start unless start.nil?
770
+ command.query['end'] = end_ unless end_.nil?
771
+ command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil?
772
+ command.query['pageToken'] = page_token unless page_token.nil?
773
+ command.query['pageSize'] = page_size unless page_size.nil?
774
+ command.query['fields'] = fields unless fields.nil?
775
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
776
+ execute_or_queue_command(command, &block)
777
+ end
778
+
779
+ # Gets a list of reads for one or more read group sets. For the definitions of
780
+ # read group sets and other genomics resources, see [Fundamentals of Google
781
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
782
+ # Reads search operates over a genomic coordinate space of reference sequence &
783
+ # position defined over the reference sequences to which the requested read
784
+ # group sets are aligned. If a target positional range is specified, search
785
+ # returns all reads whose alignment to the reference genome overlap the range. A
786
+ # query which specifies only read group set IDs yields all reads in those read
787
+ # group sets, including unmapped reads. All reads returned (including reads on
788
+ # subsequent pages) are ordered by genomic coordinate (by reference sequence,
789
+ # then position). Reads with equivalent genomic coordinates are returned in an
790
+ # unspecified order. This order is consistent, such that two queries for the
791
+ # same content (regardless of page size) yield reads in the same order across
792
+ # their respective streams of paginated responses. Implements [GlobalAllianceApi.
793
+ # searchReads](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/
794
+ # avro/readmethods.avdl#L85).
795
+ # @param [Google::Apis::GenomicsV1::SearchReadsRequest] search_reads_request_object
796
+ # @param [String] fields
797
+ # Selector specifying which fields to include in a partial response.
798
+ # @param [String] quota_user
799
+ # Available to use for quota purposes for server-side applications. Can be any
800
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
801
+ # @param [Google::Apis::RequestOptions] options
802
+ # Request-specific options
803
+ #
804
+ # @yield [result, err] Result & error if block supplied
805
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReadsResponse] parsed result object
806
+ # @yieldparam err [StandardError] error object if request failed
807
+ #
808
+ # @return [Google::Apis::GenomicsV1::SearchReadsResponse]
809
+ #
810
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
811
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
812
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
813
+ def search_reads(search_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
814
+ command = make_simple_command(:post, 'v1/reads/search', options)
815
+ command.request_representation = Google::Apis::GenomicsV1::SearchReadsRequest::Representation
816
+ command.request_object = search_reads_request_object
817
+ command.response_representation = Google::Apis::GenomicsV1::SearchReadsResponse::Representation
818
+ command.response_class = Google::Apis::GenomicsV1::SearchReadsResponse
819
+ command.query['fields'] = fields unless fields.nil?
820
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
821
+ execute_or_queue_command(command, &block)
822
+ end
823
+
824
+ # Returns a stream of all the reads matching the search request, ordered by
825
+ # reference name, position, and ID.
826
+ # @param [Google::Apis::GenomicsV1::StreamReadsRequest] stream_reads_request_object
827
+ # @param [String] fields
828
+ # Selector specifying which fields to include in a partial response.
829
+ # @param [String] quota_user
830
+ # Available to use for quota purposes for server-side applications. Can be any
831
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
832
+ # @param [Google::Apis::RequestOptions] options
833
+ # Request-specific options
834
+ #
835
+ # @yield [result, err] Result & error if block supplied
836
+ # @yieldparam result [Google::Apis::GenomicsV1::StreamReadsResponse] parsed result object
837
+ # @yieldparam err [StandardError] error object if request failed
838
+ #
839
+ # @return [Google::Apis::GenomicsV1::StreamReadsResponse]
840
+ #
841
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
842
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
843
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
844
+ def stream_reads(stream_reads_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
845
+ command = make_simple_command(:post, 'v1/reads:stream', options)
846
+ command.request_representation = Google::Apis::GenomicsV1::StreamReadsRequest::Representation
847
+ command.request_object = stream_reads_request_object
848
+ command.response_representation = Google::Apis::GenomicsV1::StreamReadsResponse::Representation
849
+ command.response_class = Google::Apis::GenomicsV1::StreamReadsResponse
850
+ command.query['fields'] = fields unless fields.nil?
851
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
852
+ execute_or_queue_command(command, &block)
853
+ end
854
+
855
+ # Searches for reference sets which match the given criteria. For the
856
+ # definitions of references and other genomics resources, see [Fundamentals of
857
+ # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
858
+ # genomics) Implements [GlobalAllianceApi.searchReferenceSets](https://github.
859
+ # com/ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#
860
+ # L71)
861
+ # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object
862
+ # @param [String] fields
863
+ # Selector specifying which fields to include in a partial response.
864
+ # @param [String] quota_user
865
+ # Available to use for quota purposes for server-side applications. Can be any
866
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
867
+ # @param [Google::Apis::RequestOptions] options
868
+ # Request-specific options
869
+ #
870
+ # @yield [result, err] Result & error if block supplied
871
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] parsed result object
872
+ # @yieldparam err [StandardError] error object if request failed
873
+ #
874
+ # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse]
875
+ #
876
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
877
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
878
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
879
+ def search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
880
+ command = make_simple_command(:post, 'v1/referencesets/search', options)
881
+ command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation
882
+ command.request_object = search_reference_sets_request_object
883
+ command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation
884
+ command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse
885
+ command.query['fields'] = fields unless fields.nil?
886
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
887
+ execute_or_queue_command(command, &block)
888
+ end
889
+
890
+ # Gets a reference set. For the definitions of references and other genomics
891
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
892
+ # genomics/fundamentals-of-google-genomics) Implements [GlobalAllianceApi.
893
+ # getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/
894
+ # resources/avro/referencemethods.avdl#L83).
895
+ # @param [String] reference_set_id
896
+ # The ID of the reference set.
897
+ # @param [String] fields
898
+ # Selector specifying which fields to include in a partial response.
899
+ # @param [String] quota_user
900
+ # Available to use for quota purposes for server-side applications. Can be any
901
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
902
+ # @param [Google::Apis::RequestOptions] options
903
+ # Request-specific options
904
+ #
905
+ # @yield [result, err] Result & error if block supplied
906
+ # @yieldparam result [Google::Apis::GenomicsV1::ReferenceSet] parsed result object
907
+ # @yieldparam err [StandardError] error object if request failed
908
+ #
909
+ # @return [Google::Apis::GenomicsV1::ReferenceSet]
910
+ #
911
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
912
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
913
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
914
+ def get_reference_set(reference_set_id, fields: nil, quota_user: nil, options: nil, &block)
915
+ command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', options)
916
+ command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation
917
+ command.response_class = Google::Apis::GenomicsV1::ReferenceSet
918
+ command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil?
919
+ command.query['fields'] = fields unless fields.nil?
920
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
921
+ execute_or_queue_command(command, &block)
922
+ end
923
+
924
+ # Searches for references which match the given criteria. For the definitions of
925
+ # references and other genomics resources, see [Fundamentals of Google Genomics](
926
+ # https://cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [
927
+ # GlobalAllianceApi.searchReferences](https://github.com/ga4gh/schemas/blob/v0.5.
928
+ # 1/src/main/resources/avro/referencemethods.avdl#L146).
929
+ # @param [Google::Apis::GenomicsV1::SearchReferencesRequest] search_references_request_object
930
+ # @param [String] fields
931
+ # Selector specifying which fields to include in a partial response.
932
+ # @param [String] quota_user
933
+ # Available to use for quota purposes for server-side applications. Can be any
934
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
935
+ # @param [Google::Apis::RequestOptions] options
936
+ # Request-specific options
937
+ #
938
+ # @yield [result, err] Result & error if block supplied
939
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReferencesResponse] parsed result object
940
+ # @yieldparam err [StandardError] error object if request failed
941
+ #
942
+ # @return [Google::Apis::GenomicsV1::SearchReferencesResponse]
943
+ #
944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
947
+ def search_references(search_references_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
948
+ command = make_simple_command(:post, 'v1/references/search', options)
949
+ command.request_representation = Google::Apis::GenomicsV1::SearchReferencesRequest::Representation
950
+ command.request_object = search_references_request_object
951
+ command.response_representation = Google::Apis::GenomicsV1::SearchReferencesResponse::Representation
952
+ command.response_class = Google::Apis::GenomicsV1::SearchReferencesResponse
953
+ command.query['fields'] = fields unless fields.nil?
954
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
955
+ execute_or_queue_command(command, &block)
956
+ end
957
+
958
+ # Gets a reference. For the definitions of references and other genomics
959
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
960
+ # genomics/fundamentals-of-google-genomics) Implements [GlobalAllianceApi.
961
+ # getReference](https://github.com/ga4gh/schemas/blob/v0.5.1/src/main/resources/
962
+ # avro/referencemethods.avdl#L158).
963
+ # @param [String] reference_id
964
+ # The ID of the reference.
965
+ # @param [String] fields
966
+ # Selector specifying which fields to include in a partial response.
967
+ # @param [String] quota_user
968
+ # Available to use for quota purposes for server-side applications. Can be any
969
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
970
+ # @param [Google::Apis::RequestOptions] options
971
+ # Request-specific options
972
+ #
973
+ # @yield [result, err] Result & error if block supplied
974
+ # @yieldparam result [Google::Apis::GenomicsV1::Reference] parsed result object
975
+ # @yieldparam err [StandardError] error object if request failed
976
+ #
977
+ # @return [Google::Apis::GenomicsV1::Reference]
978
+ #
979
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
980
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
981
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
982
+ def get_reference(reference_id, fields: nil, quota_user: nil, options: nil, &block)
983
+ command = make_simple_command(:get, 'v1/references/{referenceId}', options)
984
+ command.response_representation = Google::Apis::GenomicsV1::Reference::Representation
985
+ command.response_class = Google::Apis::GenomicsV1::Reference
986
+ command.params['referenceId'] = reference_id unless reference_id.nil?
987
+ command.query['fields'] = fields unless fields.nil?
988
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
989
+ execute_or_queue_command(command, &block)
990
+ end
991
+
992
+ # Lists the bases in a reference, optionally restricted to a range. For the
993
+ # definitions of references and other genomics resources, see [Fundamentals of
994
+ # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
995
+ # genomics) Implements [GlobalAllianceApi.getReferenceBases](https://github.com/
996
+ # ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221).
997
+ # @param [String] reference_id
998
+ # The ID of the reference.
999
+ # @param [String] start_position
1000
+ # The start position (0-based) of this query. Defaults to 0.
1001
+ # @param [String] end_position
1002
+ # The end position (0-based, exclusive) of this query. Defaults to the length of
1003
+ # this reference.
1004
+ # @param [String] page_token
1005
+ # The continuation token, which is used to page through large result sets. To
1006
+ # get the next page of results, set this parameter to the value of `
1007
+ # nextPageToken` from the previous response.
1008
+ # @param [Fixnum] page_size
1009
+ # The maximum number of bases to return in a single page. If unspecified,
1010
+ # defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base
1011
+ # pairs).
1012
+ # @param [String] fields
1013
+ # Selector specifying which fields to include in a partial response.
1014
+ # @param [String] quota_user
1015
+ # Available to use for quota purposes for server-side applications. Can be any
1016
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1017
+ # @param [Google::Apis::RequestOptions] options
1018
+ # Request-specific options
1019
+ #
1020
+ # @yield [result, err] Result & error if block supplied
1021
+ # @yieldparam result [Google::Apis::GenomicsV1::ListBasesResponse] parsed result object
1022
+ # @yieldparam err [StandardError] error object if request failed
1023
+ #
1024
+ # @return [Google::Apis::GenomicsV1::ListBasesResponse]
1025
+ #
1026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1029
+ def list_reference_bases(reference_id, start_position: nil, end_position: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
1030
+ command = make_simple_command(:get, 'v1/references/{referenceId}/bases', options)
1031
+ command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation
1032
+ command.response_class = Google::Apis::GenomicsV1::ListBasesResponse
1033
+ command.params['referenceId'] = reference_id unless reference_id.nil?
1034
+ command.query['start'] = start_position unless start_position.nil?
1035
+ command.query['end'] = end_position unless end_position.nil?
1036
+ command.query['pageToken'] = page_token unless page_token.nil?
1037
+ command.query['pageSize'] = page_size unless page_size.nil?
1038
+ command.query['fields'] = fields unless fields.nil?
1039
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1040
+ execute_or_queue_command(command, &block)
1041
+ end
1042
+
1043
+ # Creates variant data by asynchronously importing the provided information. For
1044
+ # the definitions of variant sets and other genomics resources, see [
1045
+ # Fundamentals of Google Genomics](https://cloud.google.com/genomics/
1046
+ # fundamentals-of-google-genomics) The variants for import will be merged with
1047
+ # any existing variant that matches its reference sequence, start, end,
1048
+ # reference bases, and alternative bases. If no such variant exists, a new one
1049
+ # will be created. When variants are merged, the call information from the new
1050
+ # variant is added to the existing variant, and other fields (such as key/value
1051
+ # pairs) are discarded. In particular, this means for merged VCF variants that
1052
+ # have conflicting INFO fields, some data will be arbitrarily discarded. As a
1053
+ # special case, for single-sample VCF files, QUAL and FILTER fields will be
1054
+ # moved to the call level; these are sometimes interpreted in a call-specific
1055
+ # context. Imported VCF headers are appended to the metadata already in a
1056
+ # variant set.
1057
+ # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object
1058
+ # @param [String] fields
1059
+ # Selector specifying which fields to include in a partial response.
1060
+ # @param [String] quota_user
1061
+ # Available to use for quota purposes for server-side applications. Can be any
1062
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1063
+ # @param [Google::Apis::RequestOptions] options
1064
+ # Request-specific options
1065
+ #
1066
+ # @yield [result, err] Result & error if block supplied
1067
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1068
+ # @yieldparam err [StandardError] error object if request failed
1069
+ #
1070
+ # @return [Google::Apis::GenomicsV1::Operation]
1071
+ #
1072
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1073
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1074
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1075
+ def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1076
+ command = make_simple_command(:post, 'v1/variants:import', options)
1077
+ command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation
1078
+ command.request_object = import_variants_request_object
1079
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1080
+ command.response_class = Google::Apis::GenomicsV1::Operation
1081
+ command.query['fields'] = fields unless fields.nil?
1082
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1083
+ execute_or_queue_command(command, &block)
1084
+ end
1085
+
1086
+ # Gets a list of variants matching the criteria. For the definitions of variants
1087
+ # and other genomics resources, see [Fundamentals of Google Genomics](https://
1088
+ # cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [
1089
+ # GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.1/
1090
+ # src/main/resources/avro/variantmethods.avdl#L126).
1091
+ # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object
1092
+ # @param [String] fields
1093
+ # Selector specifying which fields to include in a partial response.
1094
+ # @param [String] quota_user
1095
+ # Available to use for quota purposes for server-side applications. Can be any
1096
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1097
+ # @param [Google::Apis::RequestOptions] options
1098
+ # Request-specific options
1099
+ #
1100
+ # @yield [result, err] Result & error if block supplied
1101
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantsResponse] parsed result object
1102
+ # @yieldparam err [StandardError] error object if request failed
1103
+ #
1104
+ # @return [Google::Apis::GenomicsV1::SearchVariantsResponse]
1105
+ #
1106
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1107
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1108
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1109
+ def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1110
+ command = make_simple_command(:post, 'v1/variants/search', options)
1111
+ command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation
1112
+ command.request_object = search_variants_request_object
1113
+ command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation
1114
+ command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse
1115
+ command.query['fields'] = fields unless fields.nil?
1116
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1117
+ execute_or_queue_command(command, &block)
1118
+ end
1119
+
1120
+ # Creates a new variant. For the definitions of variants and other genomics
1121
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1122
+ # genomics/fundamentals-of-google-genomics)
1123
+ # @param [Google::Apis::GenomicsV1::Variant] variant_object
1124
+ # @param [String] fields
1125
+ # Selector specifying which fields to include in a partial response.
1126
+ # @param [String] quota_user
1127
+ # Available to use for quota purposes for server-side applications. Can be any
1128
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
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::GenomicsV1::Variant] parsed result object
1134
+ # @yieldparam err [StandardError] error object if request failed
1135
+ #
1136
+ # @return [Google::Apis::GenomicsV1::Variant]
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 create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1142
+ command = make_simple_command(:post, 'v1/variants', options)
1143
+ command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
1144
+ command.request_object = variant_object
1145
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1146
+ command.response_class = Google::Apis::GenomicsV1::Variant
1147
+ command.query['fields'] = fields unless fields.nil?
1148
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1149
+ execute_or_queue_command(command, &block)
1150
+ end
1151
+
1152
+ # Updates a variant. For the definitions of variants and other genomics
1153
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1154
+ # genomics/fundamentals-of-google-genomics) This method supports patch semantics.
1155
+ # Returns the modified variant without its calls.
1156
+ # @param [String] variant_id
1157
+ # The ID of the variant to be updated.
1158
+ # @param [Google::Apis::GenomicsV1::Variant] variant_object
1159
+ # @param [String] update_mask
1160
+ # An optional mask specifying which fields to update. At this time, mutable
1161
+ # fields are names and info. Acceptable values are "names" and "info". If
1162
+ # unspecified, all mutable fields will be updated.
1163
+ # @param [String] fields
1164
+ # Selector specifying which fields to include in a partial response.
1165
+ # @param [String] quota_user
1166
+ # Available to use for quota purposes for server-side applications. Can be any
1167
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1168
+ # @param [Google::Apis::RequestOptions] options
1169
+ # Request-specific options
1170
+ #
1171
+ # @yield [result, err] Result & error if block supplied
1172
+ # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1173
+ # @yieldparam err [StandardError] error object if request failed
1174
+ #
1175
+ # @return [Google::Apis::GenomicsV1::Variant]
1176
+ #
1177
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1178
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1179
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1180
+ def patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1181
+ command = make_simple_command(:patch, 'v1/variants/{variantId}', options)
1182
+ command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
1183
+ command.request_object = variant_object
1184
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1185
+ command.response_class = Google::Apis::GenomicsV1::Variant
1186
+ command.params['variantId'] = variant_id unless variant_id.nil?
1187
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1188
+ command.query['fields'] = fields unless fields.nil?
1189
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1190
+ execute_or_queue_command(command, &block)
1191
+ end
1192
+
1193
+ # Deletes a variant. For the definitions of variants and other genomics
1194
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1195
+ # genomics/fundamentals-of-google-genomics)
1196
+ # @param [String] variant_id
1197
+ # The ID of the variant to be deleted.
1198
+ # @param [String] fields
1199
+ # Selector specifying which fields to include in a partial response.
1200
+ # @param [String] quota_user
1201
+ # Available to use for quota purposes for server-side applications. Can be any
1202
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1203
+ # @param [Google::Apis::RequestOptions] options
1204
+ # Request-specific options
1205
+ #
1206
+ # @yield [result, err] Result & error if block supplied
1207
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1208
+ # @yieldparam err [StandardError] error object if request failed
1209
+ #
1210
+ # @return [Google::Apis::GenomicsV1::Empty]
1211
+ #
1212
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1213
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1214
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1215
+ def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
1216
+ command = make_simple_command(:delete, 'v1/variants/{variantId}', options)
1217
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1218
+ command.response_class = Google::Apis::GenomicsV1::Empty
1219
+ command.params['variantId'] = variant_id unless variant_id.nil?
1220
+ command.query['fields'] = fields unless fields.nil?
1221
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1222
+ execute_or_queue_command(command, &block)
1223
+ end
1224
+
1225
+ # Gets a variant by ID. For the definitions of variants and other genomics
1226
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1227
+ # genomics/fundamentals-of-google-genomics)
1228
+ # @param [String] variant_id
1229
+ # The ID of the variant.
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
+ # @param [Google::Apis::RequestOptions] options
1236
+ # Request-specific options
1237
+ #
1238
+ # @yield [result, err] Result & error if block supplied
1239
+ # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1240
+ # @yieldparam err [StandardError] error object if request failed
1241
+ #
1242
+ # @return [Google::Apis::GenomicsV1::Variant]
1243
+ #
1244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1247
+ def get_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
1248
+ command = make_simple_command(:get, 'v1/variants/{variantId}', options)
1249
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1250
+ command.response_class = Google::Apis::GenomicsV1::Variant
1251
+ command.params['variantId'] = variant_id unless variant_id.nil?
1252
+ command.query['fields'] = fields unless fields.nil?
1253
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1254
+ execute_or_queue_command(command, &block)
1255
+ end
1256
+
1257
+ # Returns a stream of all the variants matching the search request, ordered by
1258
+ # reference name, position, and ID.
1259
+ # @param [Google::Apis::GenomicsV1::StreamVariantsRequest] stream_variants_request_object
1260
+ # @param [String] fields
1261
+ # Selector specifying which fields to include in a partial response.
1262
+ # @param [String] quota_user
1263
+ # Available to use for quota purposes for server-side applications. Can be any
1264
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1265
+ # @param [Google::Apis::RequestOptions] options
1266
+ # Request-specific options
1267
+ #
1268
+ # @yield [result, err] Result & error if block supplied
1269
+ # @yieldparam result [Google::Apis::GenomicsV1::StreamVariantsResponse] parsed result object
1270
+ # @yieldparam err [StandardError] error object if request failed
1271
+ #
1272
+ # @return [Google::Apis::GenomicsV1::StreamVariantsResponse]
1273
+ #
1274
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1275
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1276
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1277
+ def stream_variants(stream_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1278
+ command = make_simple_command(:post, 'v1/variants:stream', options)
1279
+ command.request_representation = Google::Apis::GenomicsV1::StreamVariantsRequest::Representation
1280
+ command.request_object = stream_variants_request_object
1281
+ command.response_representation = Google::Apis::GenomicsV1::StreamVariantsResponse::Representation
1282
+ command.response_class = Google::Apis::GenomicsV1::StreamVariantsResponse
1283
+ command.query['fields'] = fields unless fields.nil?
1284
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1285
+ execute_or_queue_command(command, &block)
1286
+ end
1287
+
1288
+ # Creates a new variant set. For the definitions of variant sets and other
1289
+ # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
1290
+ # com/genomics/fundamentals-of-google-genomics) The provided variant set must
1291
+ # have a valid `datasetId` set - all other fields are optional. Note that the `
1292
+ # id` field will be ignored, as this is assigned by the server.
1293
+ # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object
1294
+ # @param [String] fields
1295
+ # Selector specifying which fields to include in a partial response.
1296
+ # @param [String] quota_user
1297
+ # Available to use for quota purposes for server-side applications. Can be any
1298
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1299
+ # @param [Google::Apis::RequestOptions] options
1300
+ # Request-specific options
1301
+ #
1302
+ # @yield [result, err] Result & error if block supplied
1303
+ # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
1304
+ # @yieldparam err [StandardError] error object if request failed
1305
+ #
1306
+ # @return [Google::Apis::GenomicsV1::VariantSet]
1307
+ #
1308
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1309
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1310
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1311
+ def create_variantset(variant_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1312
+ command = make_simple_command(:post, 'v1/variantsets', options)
1313
+ command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation
1314
+ command.request_object = variant_set_object
1315
+ command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
1316
+ command.response_class = Google::Apis::GenomicsV1::VariantSet
1317
+ command.query['fields'] = fields unless fields.nil?
1318
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1319
+ execute_or_queue_command(command, &block)
1320
+ end
1321
+
1322
+ # Exports variant set data to an external destination. For the definitions of
1323
+ # variant sets and other genomics resources, see [Fundamentals of Google
1324
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1325
+ # @param [String] variant_set_id
1326
+ # Required. The ID of the variant set that contains variant data which should be
1327
+ # exported. The caller must have READ access to this variant set.
1328
+ # @param [Google::Apis::GenomicsV1::ExportVariantSetRequest] export_variant_set_request_object
1329
+ # @param [String] fields
1330
+ # Selector specifying which fields to include in a partial response.
1331
+ # @param [String] quota_user
1332
+ # Available to use for quota purposes for server-side applications. Can be any
1333
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1334
+ # @param [Google::Apis::RequestOptions] options
1335
+ # Request-specific options
1336
+ #
1337
+ # @yield [result, err] Result & error if block supplied
1338
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1339
+ # @yieldparam err [StandardError] error object if request failed
1340
+ #
1341
+ # @return [Google::Apis::GenomicsV1::Operation]
1342
+ #
1343
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1344
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1345
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1346
+ def export_variant_set(variant_set_id, export_variant_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1347
+ command = make_simple_command(:post, 'v1/variantsets/{variantSetId}:export', options)
1348
+ command.request_representation = Google::Apis::GenomicsV1::ExportVariantSetRequest::Representation
1349
+ command.request_object = export_variant_set_request_object
1350
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1351
+ command.response_class = Google::Apis::GenomicsV1::Operation
1352
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
1353
+ command.query['fields'] = fields unless fields.nil?
1354
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1355
+ execute_or_queue_command(command, &block)
1356
+ end
1357
+
1358
+ # Gets a variant set by ID. For the definitions of variant sets and other
1359
+ # genomics resources, see [Fundamentals of Google Genomics](https://cloud.google.
1360
+ # com/genomics/fundamentals-of-google-genomics)
1361
+ # @param [String] variant_set_id
1362
+ # Required. The ID of the variant set.
1363
+ # @param [String] fields
1364
+ # Selector specifying which fields to include in a partial response.
1365
+ # @param [String] quota_user
1366
+ # Available to use for quota purposes for server-side applications. Can be any
1367
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1368
+ # @param [Google::Apis::RequestOptions] options
1369
+ # Request-specific options
1370
+ #
1371
+ # @yield [result, err] Result & error if block supplied
1372
+ # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
1373
+ # @yieldparam err [StandardError] error object if request failed
1374
+ #
1375
+ # @return [Google::Apis::GenomicsV1::VariantSet]
1376
+ #
1377
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1378
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1379
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1380
+ def get_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block)
1381
+ command = make_simple_command(:get, 'v1/variantsets/{variantSetId}', options)
1382
+ command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
1383
+ command.response_class = Google::Apis::GenomicsV1::VariantSet
1384
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
1385
+ command.query['fields'] = fields unless fields.nil?
1386
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1387
+ execute_or_queue_command(command, &block)
1388
+ end
1389
+
1390
+ # Returns a list of all variant sets matching search criteria. For the
1391
+ # definitions of variant sets and other genomics resources, see [Fundamentals of
1392
+ # Google Genomics](https://cloud.google.com/genomics/fundamentals-of-google-
1393
+ # genomics) Implements [GlobalAllianceApi.searchVariantSets](https://github.com/
1394
+ # ga4gh/schemas/blob/v0.5.1/src/main/resources/avro/variantmethods.avdl#L49).
1395
+ # @param [Google::Apis::GenomicsV1::SearchVariantSetsRequest] search_variant_sets_request_object
1396
+ # @param [String] fields
1397
+ # Selector specifying which fields to include in a partial response.
1398
+ # @param [String] quota_user
1399
+ # Available to use for quota purposes for server-side applications. Can be any
1400
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1401
+ # @param [Google::Apis::RequestOptions] options
1402
+ # Request-specific options
1403
+ #
1404
+ # @yield [result, err] Result & error if block supplied
1405
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantSetsResponse] parsed result object
1406
+ # @yieldparam err [StandardError] error object if request failed
1407
+ #
1408
+ # @return [Google::Apis::GenomicsV1::SearchVariantSetsResponse]
1409
+ #
1410
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1411
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1412
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1413
+ def search_variant_sets(search_variant_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1414
+ command = make_simple_command(:post, 'v1/variantsets/search', options)
1415
+ command.request_representation = Google::Apis::GenomicsV1::SearchVariantSetsRequest::Representation
1416
+ command.request_object = search_variant_sets_request_object
1417
+ command.response_representation = Google::Apis::GenomicsV1::SearchVariantSetsResponse::Representation
1418
+ command.response_class = Google::Apis::GenomicsV1::SearchVariantSetsResponse
1419
+ command.query['fields'] = fields unless fields.nil?
1420
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1421
+ execute_or_queue_command(command, &block)
1422
+ end
1423
+
1424
+ # Deletes the contents of a variant set. The variant set object is not deleted.
1425
+ # For the definitions of variant sets and other genomics resources, see [
1426
+ # Fundamentals of Google Genomics](https://cloud.google.com/genomics/
1427
+ # fundamentals-of-google-genomics)
1428
+ # @param [String] variant_set_id
1429
+ # The ID of the variant set to be deleted.
1430
+ # @param [String] fields
1431
+ # Selector specifying which fields to include in a partial response.
1432
+ # @param [String] quota_user
1433
+ # Available to use for quota purposes for server-side applications. Can be any
1434
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1435
+ # @param [Google::Apis::RequestOptions] options
1436
+ # Request-specific options
1437
+ #
1438
+ # @yield [result, err] Result & error if block supplied
1439
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1440
+ # @yieldparam err [StandardError] error object if request failed
1441
+ #
1442
+ # @return [Google::Apis::GenomicsV1::Empty]
1443
+ #
1444
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1445
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1446
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1447
+ def delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block)
1448
+ command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', options)
1449
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1450
+ command.response_class = Google::Apis::GenomicsV1::Empty
1451
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
1452
+ command.query['fields'] = fields unless fields.nil?
1453
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1454
+ execute_or_queue_command(command, &block)
1455
+ end
1456
+
1457
+ # Updates a variant set using patch semantics. For the definitions of variant
1458
+ # sets and other genomics resources, see [Fundamentals of Google Genomics](https:
1459
+ # //cloud.google.com/genomics/fundamentals-of-google-genomics)
1460
+ # @param [String] variant_set_id
1461
+ # The ID of the variant to be updated (must already exist).
1462
+ # @param [Google::Apis::GenomicsV1::VariantSet] variant_set_object
1463
+ # @param [String] update_mask
1464
+ # An optional mask specifying which fields to update. Supported fields: *
1465
+ # metadata. Leaving `updateMask` unset is equivalent to specifying all mutable
1466
+ # fields.
1467
+ # @param [String] fields
1468
+ # Selector specifying which fields to include in a partial response.
1469
+ # @param [String] quota_user
1470
+ # Available to use for quota purposes for server-side applications. Can be any
1471
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1472
+ # @param [Google::Apis::RequestOptions] options
1473
+ # Request-specific options
1474
+ #
1475
+ # @yield [result, err] Result & error if block supplied
1476
+ # @yieldparam result [Google::Apis::GenomicsV1::VariantSet] parsed result object
1477
+ # @yieldparam err [StandardError] error object if request failed
1478
+ #
1479
+ # @return [Google::Apis::GenomicsV1::VariantSet]
1480
+ #
1481
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1482
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1483
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1484
+ def patch_variantset(variant_set_id, variant_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1485
+ command = make_simple_command(:patch, 'v1/variantsets/{variantSetId}', options)
1486
+ command.request_representation = Google::Apis::GenomicsV1::VariantSet::Representation
1487
+ command.request_object = variant_set_object
1488
+ command.response_representation = Google::Apis::GenomicsV1::VariantSet::Representation
1489
+ command.response_class = Google::Apis::GenomicsV1::VariantSet
1490
+ command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
1491
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1492
+ command.query['fields'] = fields unless fields.nil?
1493
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1494
+ execute_or_queue_command(command, &block)
1495
+ end
1496
+
1497
+ # Gets a list of call sets matching the criteria. For the definitions of call
1498
+ # sets and other genomics resources, see [Fundamentals of Google Genomics](https:
1499
+ # //cloud.google.com/genomics/fundamentals-of-google-genomics) Implements [
1500
+ # GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.1/
1501
+ # src/main/resources/avro/variantmethods.avdl#L178).
1502
+ # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object
1503
+ # @param [String] fields
1504
+ # Selector specifying which fields to include in a partial response.
1505
+ # @param [String] quota_user
1506
+ # Available to use for quota purposes for server-side applications. Can be any
1507
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1508
+ # @param [Google::Apis::RequestOptions] options
1509
+ # Request-specific options
1510
+ #
1511
+ # @yield [result, err] Result & error if block supplied
1512
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchCallSetsResponse] parsed result object
1513
+ # @yieldparam err [StandardError] error object if request failed
1514
+ #
1515
+ # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse]
1516
+ #
1517
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1518
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1519
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1520
+ def search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1521
+ command = make_simple_command(:post, 'v1/callsets/search', options)
1522
+ command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation
1523
+ command.request_object = search_call_sets_request_object
1524
+ command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation
1525
+ command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse
1526
+ command.query['fields'] = fields unless fields.nil?
1527
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1528
+ execute_or_queue_command(command, &block)
1529
+ end
1530
+
1531
+ # Creates a new call set. For the definitions of call sets and other genomics
1532
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1533
+ # genomics/fundamentals-of-google-genomics)
1534
+ # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
1535
+ # @param [String] fields
1536
+ # Selector specifying which fields to include in a partial response.
1537
+ # @param [String] quota_user
1538
+ # Available to use for quota purposes for server-side applications. Can be any
1539
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1540
+ # @param [Google::Apis::RequestOptions] options
1541
+ # Request-specific options
1542
+ #
1543
+ # @yield [result, err] Result & error if block supplied
1544
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
1545
+ # @yieldparam err [StandardError] error object if request failed
1546
+ #
1547
+ # @return [Google::Apis::GenomicsV1::CallSet]
1548
+ #
1549
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1550
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1551
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1552
+ def create_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1553
+ command = make_simple_command(:post, 'v1/callsets', options)
1554
+ command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
1555
+ command.request_object = call_set_object
1556
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
1557
+ command.response_class = Google::Apis::GenomicsV1::CallSet
1558
+ command.query['fields'] = fields unless fields.nil?
1559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1560
+ execute_or_queue_command(command, &block)
1561
+ end
1562
+
1563
+ # Updates a call set. For the definitions of call sets and other genomics
1564
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1565
+ # genomics/fundamentals-of-google-genomics) This method supports patch semantics.
1566
+ # @param [String] call_set_id
1567
+ # The ID of the call set to be updated.
1568
+ # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
1569
+ # @param [String] update_mask
1570
+ # An optional mask specifying which fields to update. At this time, the only
1571
+ # mutable field is name. The only acceptable value is "name". If unspecified,
1572
+ # all mutable fields will be updated.
1573
+ # @param [String] fields
1574
+ # Selector specifying which fields to include in a partial response.
1575
+ # @param [String] quota_user
1576
+ # Available to use for quota purposes for server-side applications. Can be any
1577
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1578
+ # @param [Google::Apis::RequestOptions] options
1579
+ # Request-specific options
1580
+ #
1581
+ # @yield [result, err] Result & error if block supplied
1582
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
1583
+ # @yieldparam err [StandardError] error object if request failed
1584
+ #
1585
+ # @return [Google::Apis::GenomicsV1::CallSet]
1586
+ #
1587
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1588
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1589
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1590
+ def patch_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1591
+ command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options)
1592
+ command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
1593
+ command.request_object = call_set_object
1594
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
1595
+ command.response_class = Google::Apis::GenomicsV1::CallSet
1596
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
1597
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1598
+ command.query['fields'] = fields unless fields.nil?
1599
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1600
+ execute_or_queue_command(command, &block)
1601
+ end
1602
+
1603
+ # Deletes a call set. For the definitions of call sets and other genomics
1604
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1605
+ # genomics/fundamentals-of-google-genomics)
1606
+ # @param [String] call_set_id
1607
+ # The ID of the call set to be deleted.
1608
+ # @param [String] fields
1609
+ # Selector specifying which fields to include in a partial response.
1610
+ # @param [String] quota_user
1611
+ # Available to use for quota purposes for server-side applications. Can be any
1612
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1613
+ # @param [Google::Apis::RequestOptions] options
1614
+ # Request-specific options
1615
+ #
1616
+ # @yield [result, err] Result & error if block supplied
1617
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1618
+ # @yieldparam err [StandardError] error object if request failed
1619
+ #
1620
+ # @return [Google::Apis::GenomicsV1::Empty]
1621
+ #
1622
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1623
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1624
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1625
+ def delete_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
1626
+ command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options)
1627
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1628
+ command.response_class = Google::Apis::GenomicsV1::Empty
1629
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
1630
+ command.query['fields'] = fields unless fields.nil?
1631
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1632
+ execute_or_queue_command(command, &block)
1633
+ end
1634
+
1635
+ # Gets a call set by ID. For the definitions of call sets and other genomics
1636
+ # resources, see [Fundamentals of Google Genomics](https://cloud.google.com/
1637
+ # genomics/fundamentals-of-google-genomics)
1638
+ # @param [String] call_set_id
1639
+ # The ID of the call set.
1640
+ # @param [String] fields
1641
+ # Selector specifying which fields to include in a partial response.
1642
+ # @param [String] quota_user
1643
+ # Available to use for quota purposes for server-side applications. Can be any
1644
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1645
+ # @param [Google::Apis::RequestOptions] options
1646
+ # Request-specific options
1647
+ #
1648
+ # @yield [result, err] Result & error if block supplied
1649
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
1650
+ # @yieldparam err [StandardError] error object if request failed
1651
+ #
1652
+ # @return [Google::Apis::GenomicsV1::CallSet]
1653
+ #
1654
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1655
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1656
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1657
+ def get_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
1658
+ command = make_simple_command(:get, 'v1/callsets/{callSetId}', options)
1659
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
1660
+ command.response_class = Google::Apis::GenomicsV1::CallSet
1661
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
1662
+ command.query['fields'] = fields unless fields.nil?
1663
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1664
+ execute_or_queue_command(command, &block)
1665
+ end
1666
+
1667
+ protected
1668
+
1669
+ def apply_command_defaults(command)
1670
+ command.query['key'] = key unless key.nil?
1671
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1672
+ end
1673
+ end
1674
+ end
1675
+ end
1676
+ end