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