google-api-client 0.9.26 → 0.9.28

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