google-api-client 0.10.2 → 0.10.3

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