lemboy-google-api-client 0.9.26

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