google-api-client 0.10.0 → 0.10.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +4 -0
  3. data/README.md +1 -1
  4. data/api_names.yaml +37747 -36512
  5. data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
  6. data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +1016 -114
  7. data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +426 -22
  8. data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +481 -95
  9. data/generated/google/apis/adexchangebuyer_v1_4.rb +1 -1
  10. data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +27 -10
  11. data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1 -0
  12. data/generated/google/apis/admin_reports_v1.rb +2 -2
  13. data/generated/google/apis/adsense_v1_4.rb +1 -1
  14. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  15. data/generated/google/apis/analytics_v3.rb +1 -1
  16. data/generated/google/apis/analyticsreporting_v4.rb +4 -4
  17. data/generated/google/apis/analyticsreporting_v4/classes.rb +428 -428
  18. data/generated/google/apis/analyticsreporting_v4/representations.rb +108 -108
  19. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  20. data/generated/google/apis/androidenterprise_v1/classes.rb +60 -66
  21. data/generated/google/apis/androidenterprise_v1/service.rb +12 -11
  22. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  23. data/generated/google/apis/androidpublisher_v2/classes.rb +7 -0
  24. data/generated/google/apis/androidpublisher_v2/representations.rb +1 -0
  25. data/generated/google/apis/androidpublisher_v2/service.rb +1 -1
  26. data/generated/google/apis/appsactivity_v1.rb +3 -3
  27. data/generated/google/apis/appsactivity_v1/service.rb +1 -1
  28. data/generated/google/apis/appstate_v1.rb +1 -1
  29. data/generated/google/apis/bigquery_v2.rb +1 -1
  30. data/generated/google/apis/bigquery_v2/classes.rb +34 -8
  31. data/generated/google/apis/bigquery_v2/representations.rb +15 -0
  32. data/generated/google/apis/calendar_v3.rb +1 -1
  33. data/generated/google/apis/calendar_v3/classes.rb +3 -5
  34. data/generated/google/apis/classroom_v1.rb +25 -22
  35. data/generated/google/apis/classroom_v1/classes.rb +910 -1001
  36. data/generated/google/apis/classroom_v1/representations.rb +240 -240
  37. data/generated/google/apis/classroom_v1/service.rb +1064 -1272
  38. data/generated/google/apis/cloudbilling_v1.rb +3 -3
  39. data/generated/google/apis/cloudbilling_v1/classes.rb +76 -75
  40. data/generated/google/apis/cloudbilling_v1/representations.rb +17 -17
  41. data/generated/google/apis/cloudbilling_v1/service.rb +117 -110
  42. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  43. data/generated/google/apis/cloudbuild_v1/classes.rb +238 -238
  44. data/generated/google/apis/cloudbuild_v1/representations.rb +48 -48
  45. data/generated/google/apis/cloudbuild_v1/service.rb +176 -176
  46. data/generated/google/apis/clouddebugger_v2.rb +4 -4
  47. data/generated/google/apis/clouddebugger_v2/classes.rb +315 -315
  48. data/generated/google/apis/clouddebugger_v2/representations.rb +90 -90
  49. data/generated/google/apis/clouddebugger_v2/service.rb +152 -152
  50. data/generated/google/apis/cloudkms_v1.rb +35 -0
  51. data/generated/google/apis/cloudkms_v1/classes.rb +1039 -0
  52. data/generated/google/apis/cloudkms_v1/representations.rb +448 -0
  53. data/generated/google/apis/cloudkms_v1/service.rb +933 -0
  54. data/generated/google/apis/cloudkms_v1beta1.rb +1 -1
  55. data/generated/google/apis/cloudkms_v1beta1/classes.rb +645 -605
  56. data/generated/google/apis/cloudkms_v1beta1/representations.rb +136 -136
  57. data/generated/google/apis/cloudkms_v1beta1/service.rb +258 -264
  58. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  59. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  60. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +677 -456
  61. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +154 -89
  62. data/generated/google/apis/cloudresourcemanager_v1/service.rb +380 -279
  63. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +4 -4
  64. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +247 -114
  65. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +72 -40
  66. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +202 -208
  67. data/generated/google/apis/cloudtrace_v1.rb +4 -4
  68. data/generated/google/apis/cloudtrace_v1/classes.rb +39 -39
  69. data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
  70. data/generated/google/apis/cloudtrace_v1/service.rb +18 -18
  71. data/generated/google/apis/compute_beta.rb +1 -1
  72. data/generated/google/apis/compute_beta/classes.rb +813 -82
  73. data/generated/google/apis/compute_beta/representations.rb +305 -0
  74. data/generated/google/apis/compute_beta/service.rb +971 -180
  75. data/generated/google/apis/compute_v1.rb +1 -1
  76. data/generated/google/apis/compute_v1/classes.rb +147 -21
  77. data/generated/google/apis/compute_v1/representations.rb +38 -0
  78. data/generated/google/apis/compute_v1/service.rb +347 -65
  79. data/generated/google/apis/content_v2.rb +1 -1
  80. data/generated/google/apis/content_v2/classes.rb +2 -1
  81. data/generated/google/apis/dataflow_v1b3.rb +1 -1
  82. data/generated/google/apis/dataflow_v1b3/classes.rb +3352 -3110
  83. data/generated/google/apis/dataflow_v1b3/representations.rb +812 -730
  84. data/generated/google/apis/dataflow_v1b3/service.rb +264 -183
  85. data/generated/google/apis/dataproc_v1.rb +1 -1
  86. data/generated/google/apis/dataproc_v1/classes.rb +1200 -1164
  87. data/generated/google/apis/dataproc_v1/representations.rb +220 -204
  88. data/generated/google/apis/dataproc_v1/service.rb +299 -299
  89. data/generated/google/apis/datastore_v1.rb +4 -4
  90. data/generated/google/apis/datastore_v1/classes.rb +688 -688
  91. data/generated/google/apis/datastore_v1/representations.rb +167 -167
  92. data/generated/google/apis/datastore_v1/service.rb +68 -68
  93. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  94. data/generated/google/apis/deploymentmanager_v2/classes.rb +13 -3
  95. data/generated/google/apis/dns_v1.rb +1 -1
  96. data/generated/google/apis/dns_v2beta1.rb +1 -1
  97. data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
  98. data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +1 -1
  99. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  100. data/generated/google/apis/drive_v2.rb +1 -1
  101. data/generated/google/apis/drive_v2/classes.rb +487 -15
  102. data/generated/google/apis/drive_v2/representations.rb +120 -0
  103. data/generated/google/apis/drive_v2/service.rb +355 -38
  104. data/generated/google/apis/drive_v3.rb +1 -1
  105. data/generated/google/apis/drive_v3/classes.rb +416 -14
  106. data/generated/google/apis/drive_v3/representations.rb +99 -0
  107. data/generated/google/apis/drive_v3/service.rb +315 -28
  108. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  109. data/generated/google/apis/games_management_v1management.rb +1 -1
  110. data/generated/google/apis/games_v1.rb +1 -1
  111. data/generated/google/apis/genomics_v1.rb +7 -7
  112. data/generated/google/apis/genomics_v1/classes.rb +2301 -2301
  113. data/generated/google/apis/genomics_v1/representations.rb +239 -239
  114. data/generated/google/apis/genomics_v1/service.rb +599 -599
  115. data/generated/google/apis/gmail_v1.rb +2 -2
  116. data/generated/google/apis/gmail_v1/service.rb +18 -1
  117. data/generated/google/apis/groupssettings_v1.rb +1 -1
  118. data/generated/google/apis/iam_v1.rb +1 -1
  119. data/generated/google/apis/iam_v1/classes.rb +440 -440
  120. data/generated/google/apis/iam_v1/representations.rb +96 -96
  121. data/generated/google/apis/iam_v1/service.rb +150 -150
  122. data/generated/google/apis/kgsearch_v1/service.rb +13 -13
  123. data/generated/google/apis/language_v1beta1.rb +1 -1
  124. data/generated/google/apis/language_v1beta1/classes.rb +235 -235
  125. data/generated/google/apis/language_v1beta1/representations.rb +73 -73
  126. data/generated/google/apis/language_v1beta1/service.rb +49 -49
  127. data/generated/google/apis/licensing_v1.rb +1 -1
  128. data/generated/google/apis/logging_v2beta1.rb +1 -1
  129. data/generated/google/apis/logging_v2beta1/classes.rb +888 -879
  130. data/generated/google/apis/logging_v2beta1/representations.rb +129 -129
  131. data/generated/google/apis/logging_v2beta1/service.rb +315 -316
  132. data/generated/google/apis/manufacturers_v1/classes.rb +139 -139
  133. data/generated/google/apis/manufacturers_v1/representations.rb +30 -30
  134. data/generated/google/apis/manufacturers_v1/service.rb +32 -32
  135. data/generated/google/apis/monitoring_v3.rb +4 -4
  136. data/generated/google/apis/monitoring_v3/classes.rb +229 -229
  137. data/generated/google/apis/monitoring_v3/representations.rb +45 -45
  138. data/generated/google/apis/monitoring_v3/service.rb +141 -141
  139. data/generated/google/apis/partners_v2.rb +3 -3
  140. data/generated/google/apis/partners_v2/classes.rb +1837 -483
  141. data/generated/google/apis/partners_v2/representations.rb +614 -157
  142. data/generated/google/apis/partners_v2/service.rb +881 -150
  143. data/generated/google/apis/people_v1.rb +1 -1
  144. data/generated/google/apis/people_v1/classes.rb +517 -465
  145. data/generated/google/apis/people_v1/representations.rb +138 -107
  146. data/generated/google/apis/people_v1/service.rb +56 -49
  147. data/generated/google/apis/plus_domains_v1.rb +1 -1
  148. data/generated/google/apis/plus_v1.rb +1 -1
  149. data/generated/google/apis/proximitybeacon_v1beta1.rb +1 -1
  150. data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +529 -458
  151. data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +98 -97
  152. data/generated/google/apis/proximitybeacon_v1beta1/service.rb +494 -370
  153. data/generated/google/apis/pubsub_v1.rb +4 -4
  154. data/generated/google/apis/pubsub_v1/classes.rb +203 -203
  155. data/generated/google/apis/pubsub_v1/representations.rb +65 -65
  156. data/generated/google/apis/pubsub_v1/service.rb +226 -217
  157. data/generated/google/apis/reseller_v1.rb +1 -1
  158. data/generated/google/apis/reseller_v1/classes.rb +213 -61
  159. data/generated/google/apis/reseller_v1/representations.rb +27 -0
  160. data/generated/google/apis/reseller_v1/service.rb +240 -47
  161. data/generated/google/apis/script_v1.rb +14 -14
  162. data/generated/google/apis/script_v1/classes.rb +95 -95
  163. data/generated/google/apis/script_v1/representations.rb +25 -25
  164. data/generated/google/apis/sheets_v4.rb +1 -1
  165. data/generated/google/apis/sheets_v4/classes.rb +4346 -4300
  166. data/generated/google/apis/sheets_v4/representations.rb +853 -837
  167. data/generated/google/apis/sheets_v4/service.rb +32 -32
  168. data/generated/google/apis/slides_v1.rb +1 -1
  169. data/generated/google/apis/slides_v1/classes.rb +804 -748
  170. data/generated/google/apis/slides_v1/representations.rb +204 -187
  171. data/generated/google/apis/slides_v1/service.rb +16 -16
  172. data/generated/google/apis/speech_v1beta1.rb +1 -1
  173. data/generated/google/apis/speech_v1beta1/classes.rb +57 -57
  174. data/generated/google/apis/speech_v1beta1/representations.rb +19 -19
  175. data/generated/google/apis/speech_v1beta1/service.rb +66 -66
  176. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  177. data/generated/google/apis/sqladmin_v1beta4/classes.rb +32 -7
  178. data/generated/google/apis/sqladmin_v1beta4/representations.rb +16 -0
  179. data/generated/google/apis/sqladmin_v1beta4/service.rb +9 -2
  180. data/generated/google/apis/storage_v1.rb +1 -1
  181. data/generated/google/apis/storage_v1/service.rb +10 -7
  182. data/generated/google/apis/vision_v1.rb +1 -1
  183. data/generated/google/apis/vision_v1/classes.rb +1393 -865
  184. data/generated/google/apis/vision_v1/representations.rb +367 -102
  185. data/generated/google/apis/vision_v1/service.rb +4 -4
  186. data/generated/google/apis/youtube_analytics_v1.rb +1 -1
  187. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  188. data/generated/google/apis/youtubereporting_v1.rb +4 -4
  189. data/generated/google/apis/youtubereporting_v1/classes.rb +93 -93
  190. data/generated/google/apis/youtubereporting_v1/representations.rb +25 -25
  191. data/generated/google/apis/youtubereporting_v1/service.rb +108 -108
  192. data/lib/google/apis/version.rb +1 -1
  193. metadata +34 -30
@@ -46,21 +46,14 @@ module Google
46
46
  super('https://genomics.googleapis.com/', '')
47
47
  end
48
48
 
49
- # Creates read group sets by asynchronously importing the provided
50
- # information.
51
- # For the definitions of read group sets and other genomics resources, see
49
+ # Searches for reference sets which match the given criteria.
50
+ # For the definitions of references and other genomics resources, see
52
51
  # [Fundamentals of Google
53
52
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
54
- # The caller must have WRITE permissions to the dataset.
55
- # ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import
56
- # - Tags will be converted to strings - tag types are not preserved
57
- # - Comments (`@CO`) in the input file header will not be preserved
58
- # - Original header order of references (`@SQ`) will not be preserved
59
- # - Any reverse stranded unmapped reads will be reverse complemented, and
60
- # their qualities (also the "BQ" and "OQ" tags, if any) will be reversed
61
- # - Unmapped reads will be stripped of positional information (reference name
62
- # and position)
63
- # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object
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
64
57
  # @param [String] fields
65
58
  # Selector specifying which fields to include in a partial response.
66
59
  # @param [String] quota_user
@@ -70,32 +63,34 @@ module Google
70
63
  # Request-specific options
71
64
  #
72
65
  # @yield [result, err] Result & error if block supplied
73
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
66
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] parsed result object
74
67
  # @yieldparam err [StandardError] error object if request failed
75
68
  #
76
- # @return [Google::Apis::GenomicsV1::Operation]
69
+ # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse]
77
70
  #
78
71
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
79
72
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
80
73
  # @raise [Google::Apis::AuthorizationError] Authorization is required
81
- def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
82
- command = make_simple_command(:post, 'v1/readgroupsets:import', options)
83
- command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation
84
- command.request_object = import_read_group_sets_request_object
85
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
86
- command.response_class = Google::Apis::GenomicsV1::Operation
74
+ def search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: 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
87
80
  command.query['fields'] = fields unless fields.nil?
88
81
  command.query['quotaUser'] = quota_user unless quota_user.nil?
89
82
  execute_or_queue_command(command, &block)
90
83
  end
91
84
 
92
- # Deletes a read group set.
93
- # For the definitions of read group sets and other genomics resources, see
85
+ # Gets a reference set.
86
+ # For the definitions of references and other genomics resources, see
94
87
  # [Fundamentals of Google
95
88
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
96
- # @param [String] read_group_set_id
97
- # The ID of the read group set to be deleted. The caller must have WRITE
98
- # permissions to the dataset associated with this read group set.
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.
99
94
  # @param [String] fields
100
95
  # Selector specifying which fields to include in a partial response.
101
96
  # @param [String] quota_user
@@ -105,36 +100,29 @@ module Google
105
100
  # Request-specific options
106
101
  #
107
102
  # @yield [result, err] Result & error if block supplied
108
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
103
+ # @yieldparam result [Google::Apis::GenomicsV1::ReferenceSet] parsed result object
109
104
  # @yieldparam err [StandardError] error object if request failed
110
105
  #
111
- # @return [Google::Apis::GenomicsV1::Empty]
106
+ # @return [Google::Apis::GenomicsV1::ReferenceSet]
112
107
  #
113
108
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
114
109
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
115
110
  # @raise [Google::Apis::AuthorizationError] Authorization is required
116
- def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
117
- command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options)
118
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
119
- command.response_class = Google::Apis::GenomicsV1::Empty
120
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
111
+ def get_reference_set(reference_set_id, fields: nil, quota_user: 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?
121
116
  command.query['fields'] = fields unless fields.nil?
122
117
  command.query['quotaUser'] = quota_user unless quota_user.nil?
123
118
  execute_or_queue_command(command, &block)
124
119
  end
125
120
 
126
- # Exports a read group set to a BAM file in Google Cloud Storage.
127
- # For the definitions of read group sets and other genomics resources, see
121
+ # Creates a new call set.
122
+ # For the definitions of call sets and other genomics resources, see
128
123
  # [Fundamentals of Google
129
124
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
130
- # Note that currently there may be some differences between exported BAM
131
- # files and the original BAM file at the time of import. See
132
- # ImportReadGroupSets
133
- # for caveats.
134
- # @param [String] read_group_set_id
135
- # Required. The ID of the read group set to export. The caller must have
136
- # READ access to this read group set.
137
- # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object
125
+ # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
138
126
  # @param [String] fields
139
127
  # Selector specifying which fields to include in a partial response.
140
128
  # @param [String] quota_user
@@ -144,34 +132,31 @@ module Google
144
132
  # Request-specific options
145
133
  #
146
134
  # @yield [result, err] Result & error if block supplied
147
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
135
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
148
136
  # @yieldparam err [StandardError] error object if request failed
149
137
  #
150
- # @return [Google::Apis::GenomicsV1::Operation]
138
+ # @return [Google::Apis::GenomicsV1::CallSet]
151
139
  #
152
140
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
153
141
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
154
142
  # @raise [Google::Apis::AuthorizationError] Authorization is required
155
- def export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
156
- command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options)
157
- command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation
158
- command.request_object = export_read_group_set_request_object
159
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
160
- command.response_class = Google::Apis::GenomicsV1::Operation
161
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
143
+ def create_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
144
+ command = make_simple_command(:post, 'v1/callsets', options)
145
+ command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
146
+ command.request_object = call_set_object
147
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
148
+ command.response_class = Google::Apis::GenomicsV1::CallSet
162
149
  command.query['fields'] = fields unless fields.nil?
163
150
  command.query['quotaUser'] = quota_user unless quota_user.nil?
164
151
  execute_or_queue_command(command, &block)
165
152
  end
166
153
 
167
- # Searches for read group sets matching the criteria.
168
- # For the definitions of read group sets and other genomics resources, see
154
+ # Deletes a call set.
155
+ # For the definitions of call sets and other genomics resources, see
169
156
  # [Fundamentals of Google
170
157
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
171
- # Implements
172
- # [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/
173
- # v0.5.1/src/main/resources/avro/readmethods.avdl#L135).
174
- # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object
158
+ # @param [String] call_set_id
159
+ # The ID of the call set to be deleted.
175
160
  # @param [String] fields
176
161
  # Selector specifying which fields to include in a partial response.
177
162
  # @param [String] quota_user
@@ -181,31 +166,32 @@ module Google
181
166
  # Request-specific options
182
167
  #
183
168
  # @yield [result, err] Result & error if block supplied
184
- # @yieldparam result [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] parsed result object
169
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
185
170
  # @yieldparam err [StandardError] error object if request failed
186
171
  #
187
- # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse]
172
+ # @return [Google::Apis::GenomicsV1::Empty]
188
173
  #
189
174
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
190
175
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
191
176
  # @raise [Google::Apis::AuthorizationError] Authorization is required
192
- def search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
193
- command = make_simple_command(:post, 'v1/readgroupsets/search', options)
194
- command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation
195
- command.request_object = search_read_group_sets_request_object
196
- command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation
197
- command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse
177
+ def delete_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
178
+ command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options)
179
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
180
+ command.response_class = Google::Apis::GenomicsV1::Empty
181
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
198
182
  command.query['fields'] = fields unless fields.nil?
199
183
  command.query['quotaUser'] = quota_user unless quota_user.nil?
200
184
  execute_or_queue_command(command, &block)
201
185
  end
202
186
 
203
- # Gets a read group set by ID.
204
- # For the definitions of read group sets and other genomics resources, see
187
+ # Gets a list of call sets matching the criteria.
188
+ # For the definitions of call sets and other genomics resources, see
205
189
  # [Fundamentals of Google
206
190
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
207
- # @param [String] read_group_set_id
208
- # The ID of the read group set.
191
+ # Implements
192
+ # [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.
193
+ # 1/src/main/resources/avro/variantmethods.avdl#L178).
194
+ # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object
209
195
  # @param [String] fields
210
196
  # Selector specifying which fields to include in a partial response.
211
197
  # @param [String] quota_user
@@ -215,39 +201,38 @@ module Google
215
201
  # Request-specific options
216
202
  #
217
203
  # @yield [result, err] Result & error if block supplied
218
- # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
204
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchCallSetsResponse] parsed result object
219
205
  # @yieldparam err [StandardError] error object if request failed
220
206
  #
221
- # @return [Google::Apis::GenomicsV1::ReadGroupSet]
207
+ # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse]
222
208
  #
223
209
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
224
210
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
225
211
  # @raise [Google::Apis::AuthorizationError] Authorization is required
226
- def get_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
227
- command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options)
228
- command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
229
- command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
230
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
212
+ def search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
213
+ command = make_simple_command(:post, 'v1/callsets/search', options)
214
+ command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation
215
+ command.request_object = search_call_sets_request_object
216
+ command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation
217
+ command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse
231
218
  command.query['fields'] = fields unless fields.nil?
232
219
  command.query['quotaUser'] = quota_user unless quota_user.nil?
233
220
  execute_or_queue_command(command, &block)
234
221
  end
235
222
 
236
- # Updates a read group set.
237
- # For the definitions of read group sets and other genomics resources, see
223
+ # Updates a call set.
224
+ # For the definitions of call sets and other genomics resources, see
238
225
  # [Fundamentals of Google
239
226
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
240
227
  # This method supports patch semantics.
241
- # @param [String] read_group_set_id
242
- # The ID of the read group set to be updated. The caller must have WRITE
243
- # permissions to the dataset associated with this read group set.
244
- # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object
228
+ # @param [String] call_set_id
229
+ # The ID of the call set to be updated.
230
+ # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
245
231
  # @param [String] update_mask
246
- # An optional mask specifying which fields to update. Supported fields:
247
- # * name.
248
- # * referenceSetId.
249
- # Leaving `updateMask` unset is equivalent to specifying all mutable
250
- # fields.
232
+ # An optional mask specifying which fields to update. At this time, the only
233
+ # mutable field is name. The only
234
+ # acceptable value is "name". If unspecified, all mutable fields will be
235
+ # updated.
251
236
  # @param [String] fields
252
237
  # Selector specifying which fields to include in a partial response.
253
238
  # @param [String] quota_user
@@ -257,65 +242,33 @@ module Google
257
242
  # Request-specific options
258
243
  #
259
244
  # @yield [result, err] Result & error if block supplied
260
- # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
245
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
261
246
  # @yieldparam err [StandardError] error object if request failed
262
247
  #
263
- # @return [Google::Apis::GenomicsV1::ReadGroupSet]
248
+ # @return [Google::Apis::GenomicsV1::CallSet]
264
249
  #
265
250
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
266
251
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
267
252
  # @raise [Google::Apis::AuthorizationError] Authorization is required
268
- def patch_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
269
- command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options)
270
- command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
271
- command.request_object = read_group_set_object
272
- command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
273
- command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
274
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
253
+ def patch_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
254
+ command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options)
255
+ command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
256
+ command.request_object = call_set_object
257
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
258
+ command.response_class = Google::Apis::GenomicsV1::CallSet
259
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
275
260
  command.query['updateMask'] = update_mask unless update_mask.nil?
276
261
  command.query['fields'] = fields unless fields.nil?
277
262
  command.query['quotaUser'] = quota_user unless quota_user.nil?
278
263
  execute_or_queue_command(command, &block)
279
264
  end
280
265
 
281
- # Lists fixed width coverage buckets for a read group set, each of which
282
- # correspond to a range of a reference sequence. Each bucket summarizes
283
- # coverage information across its corresponding genomic range.
284
- # For the definitions of read group sets and other genomics resources, see
266
+ # Gets a call set by ID.
267
+ # For the definitions of call sets and other genomics resources, see
285
268
  # [Fundamentals of Google
286
269
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
287
- # Coverage is defined as the number of reads which are aligned to a given
288
- # base in the reference sequence. Coverage buckets are available at several
289
- # precomputed bucket widths, enabling retrieval of various coverage 'zoom
290
- # levels'. The caller must have READ permissions for the target read group
291
- # set.
292
- # @param [String] read_group_set_id
293
- # Required. The ID of the read group set over which coverage is requested.
294
- # @param [String] start
295
- # The start position of the range on the reference, 0-based inclusive. If
296
- # specified, `referenceName` must also be specified. Defaults to 0.
297
- # @param [String] target_bucket_width
298
- # The desired width of each reported coverage bucket in base pairs. This
299
- # will be rounded down to the nearest precomputed bucket width; the value
300
- # of which is returned as `bucketWidth` in the response. Defaults
301
- # to infinity (each bucket spans an entire reference sequence) or the length
302
- # of the target range, if specified. The smallest precomputed
303
- # `bucketWidth` is currently 2048 base pairs; this is subject to
304
- # change.
305
- # @param [String] reference_name
306
- # The name of the reference to query, within the reference set associated
307
- # with this query. Optional.
308
- # @param [String] end_
309
- # The end position of the range on the reference, 0-based exclusive. If
310
- # specified, `referenceName` must also be specified. If unset or 0, defaults
311
- # to the length of the reference.
312
- # @param [String] page_token
313
- # The continuation token, which is used to page through large result sets.
314
- # To get the next page of results, set this parameter to the value of
315
- # `nextPageToken` from the previous response.
316
- # @param [Fixnum] page_size
317
- # The maximum number of results to return in a single page. If unspecified,
318
- # defaults to 1024. The maximum value is 2048.
270
+ # @param [String] call_set_id
271
+ # The ID of the call set.
319
272
  # @param [String] fields
320
273
  # Selector specifying which fields to include in a partial response.
321
274
  # @param [String] quota_user
@@ -325,25 +278,19 @@ module Google
325
278
  # Request-specific options
326
279
  #
327
280
  # @yield [result, err] Result & error if block supplied
328
- # @yieldparam result [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] parsed result object
281
+ # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
329
282
  # @yieldparam err [StandardError] error object if request failed
330
283
  #
331
- # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse]
284
+ # @return [Google::Apis::GenomicsV1::CallSet]
332
285
  #
333
286
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
334
287
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
335
288
  # @raise [Google::Apis::AuthorizationError] Authorization is required
336
- def list_coverage_buckets(read_group_set_id, start: nil, target_bucket_width: nil, reference_name: nil, end_: nil, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block)
337
- command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options)
338
- command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation
339
- command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse
340
- command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
341
- command.query['start'] = start unless start.nil?
342
- command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil?
343
- command.query['referenceName'] = reference_name unless reference_name.nil?
344
- command.query['end'] = end_ unless end_.nil?
345
- command.query['pageToken'] = page_token unless page_token.nil?
346
- command.query['pageSize'] = page_size unless page_size.nil?
289
+ def get_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
290
+ command = make_simple_command(:get, 'v1/callsets/{callSetId}', options)
291
+ command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
292
+ command.response_class = Google::Apis::GenomicsV1::CallSet
293
+ command.params['callSetId'] = call_set_id unless call_set_id.nil?
347
294
  command.query['fields'] = fields unless fields.nil?
348
295
  command.query['quotaUser'] = quota_user unless quota_user.nil?
349
296
  execute_or_queue_command(command, &block)
@@ -398,12 +345,18 @@ module Google
398
345
  execute_or_queue_command(command, &block)
399
346
  end
400
347
 
401
- # Deletes a call set.
402
- # For the definitions of call sets and other genomics resources, see
348
+ # Exports a read group set to a BAM file in Google Cloud Storage.
349
+ # For the definitions of read group sets and other genomics resources, see
403
350
  # [Fundamentals of Google
404
351
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
405
- # @param [String] call_set_id
406
- # The ID of the call set to be deleted.
352
+ # Note that currently there may be some differences between exported BAM
353
+ # files and the original BAM file at the time of import. See
354
+ # ImportReadGroupSets
355
+ # for caveats.
356
+ # @param [String] read_group_set_id
357
+ # Required. The ID of the read group set to export. The caller must have
358
+ # READ access to this read group set.
359
+ # @param [Google::Apis::GenomicsV1::ExportReadGroupSetRequest] export_read_group_set_request_object
407
360
  # @param [String] fields
408
361
  # Selector specifying which fields to include in a partial response.
409
362
  # @param [String] quota_user
@@ -413,32 +366,34 @@ module Google
413
366
  # Request-specific options
414
367
  #
415
368
  # @yield [result, err] Result & error if block supplied
416
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
369
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
417
370
  # @yieldparam err [StandardError] error object if request failed
418
371
  #
419
- # @return [Google::Apis::GenomicsV1::Empty]
372
+ # @return [Google::Apis::GenomicsV1::Operation]
420
373
  #
421
374
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
422
375
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
423
376
  # @raise [Google::Apis::AuthorizationError] Authorization is required
424
- def delete_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
425
- command = make_simple_command(:delete, 'v1/callsets/{callSetId}', options)
426
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
427
- command.response_class = Google::Apis::GenomicsV1::Empty
428
- command.params['callSetId'] = call_set_id unless call_set_id.nil?
377
+ def export_read_group_sets(read_group_set_id, export_read_group_set_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
378
+ command = make_simple_command(:post, 'v1/readgroupsets/{readGroupSetId}:export', options)
379
+ command.request_representation = Google::Apis::GenomicsV1::ExportReadGroupSetRequest::Representation
380
+ command.request_object = export_read_group_set_request_object
381
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
382
+ command.response_class = Google::Apis::GenomicsV1::Operation
383
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
429
384
  command.query['fields'] = fields unless fields.nil?
430
385
  command.query['quotaUser'] = quota_user unless quota_user.nil?
431
386
  execute_or_queue_command(command, &block)
432
387
  end
433
388
 
434
- # Gets a list of call sets matching the criteria.
435
- # For the definitions of call sets and other genomics resources, see
389
+ # Searches for read group sets matching the criteria.
390
+ # For the definitions of read group sets and other genomics resources, see
436
391
  # [Fundamentals of Google
437
392
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
438
393
  # Implements
439
- # [GlobalAllianceApi.searchCallSets](https://github.com/ga4gh/schemas/blob/v0.5.
440
- # 1/src/main/resources/avro/variantmethods.avdl#L178).
441
- # @param [Google::Apis::GenomicsV1::SearchCallSetsRequest] search_call_sets_request_object
394
+ # [GlobalAllianceApi.searchReadGroupSets](https://github.com/ga4gh/schemas/blob/
395
+ # v0.5.1/src/main/resources/avro/readmethods.avdl#L135).
396
+ # @param [Google::Apis::GenomicsV1::SearchReadGroupSetsRequest] search_read_group_sets_request_object
442
397
  # @param [String] fields
443
398
  # Selector specifying which fields to include in a partial response.
444
399
  # @param [String] quota_user
@@ -448,38 +403,40 @@ module Google
448
403
  # Request-specific options
449
404
  #
450
405
  # @yield [result, err] Result & error if block supplied
451
- # @yieldparam result [Google::Apis::GenomicsV1::SearchCallSetsResponse] parsed result object
406
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse] parsed result object
452
407
  # @yieldparam err [StandardError] error object if request failed
453
408
  #
454
- # @return [Google::Apis::GenomicsV1::SearchCallSetsResponse]
409
+ # @return [Google::Apis::GenomicsV1::SearchReadGroupSetsResponse]
455
410
  #
456
411
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
457
412
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
458
413
  # @raise [Google::Apis::AuthorizationError] Authorization is required
459
- def search_call_sets(search_call_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
460
- command = make_simple_command(:post, 'v1/callsets/search', options)
461
- command.request_representation = Google::Apis::GenomicsV1::SearchCallSetsRequest::Representation
462
- command.request_object = search_call_sets_request_object
463
- command.response_representation = Google::Apis::GenomicsV1::SearchCallSetsResponse::Representation
464
- command.response_class = Google::Apis::GenomicsV1::SearchCallSetsResponse
414
+ def search_read_group_sets(search_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
415
+ command = make_simple_command(:post, 'v1/readgroupsets/search', options)
416
+ command.request_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsRequest::Representation
417
+ command.request_object = search_read_group_sets_request_object
418
+ command.response_representation = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse::Representation
419
+ command.response_class = Google::Apis::GenomicsV1::SearchReadGroupSetsResponse
465
420
  command.query['fields'] = fields unless fields.nil?
466
421
  command.query['quotaUser'] = quota_user unless quota_user.nil?
467
422
  execute_or_queue_command(command, &block)
468
423
  end
469
424
 
470
- # Updates a call set.
471
- # For the definitions of call sets and other genomics resources, see
425
+ # Updates a read group set.
426
+ # For the definitions of read group sets and other genomics resources, see
472
427
  # [Fundamentals of Google
473
428
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
474
429
  # This method supports patch semantics.
475
- # @param [String] call_set_id
476
- # The ID of the call set to be updated.
477
- # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
430
+ # @param [String] read_group_set_id
431
+ # The ID of the read group set to be updated. The caller must have WRITE
432
+ # permissions to the dataset associated with this read group set.
433
+ # @param [Google::Apis::GenomicsV1::ReadGroupSet] read_group_set_object
478
434
  # @param [String] update_mask
479
- # An optional mask specifying which fields to update. At this time, the only
480
- # mutable field is name. The only
481
- # acceptable value is "name". If unspecified, all mutable fields will be
482
- # updated.
435
+ # An optional mask specifying which fields to update. Supported fields:
436
+ # * name.
437
+ # * referenceSetId.
438
+ # Leaving `updateMask` unset is equivalent to specifying all mutable
439
+ # fields.
483
440
  # @param [String] fields
484
441
  # Selector specifying which fields to include in a partial response.
485
442
  # @param [String] quota_user
@@ -489,33 +446,33 @@ module Google
489
446
  # Request-specific options
490
447
  #
491
448
  # @yield [result, err] Result & error if block supplied
492
- # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
449
+ # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
493
450
  # @yieldparam err [StandardError] error object if request failed
494
451
  #
495
- # @return [Google::Apis::GenomicsV1::CallSet]
452
+ # @return [Google::Apis::GenomicsV1::ReadGroupSet]
496
453
  #
497
454
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
498
455
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
499
456
  # @raise [Google::Apis::AuthorizationError] Authorization is required
500
- def patch_call_set(call_set_id, call_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
501
- command = make_simple_command(:patch, 'v1/callsets/{callSetId}', options)
502
- command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
503
- command.request_object = call_set_object
504
- command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
505
- command.response_class = Google::Apis::GenomicsV1::CallSet
506
- command.params['callSetId'] = call_set_id unless call_set_id.nil?
457
+ def patch_read_group_set(read_group_set_id, read_group_set_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
458
+ command = make_simple_command(:patch, 'v1/readgroupsets/{readGroupSetId}', options)
459
+ command.request_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
460
+ command.request_object = read_group_set_object
461
+ command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
462
+ command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
463
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
507
464
  command.query['updateMask'] = update_mask unless update_mask.nil?
508
465
  command.query['fields'] = fields unless fields.nil?
509
466
  command.query['quotaUser'] = quota_user unless quota_user.nil?
510
467
  execute_or_queue_command(command, &block)
511
468
  end
512
469
 
513
- # Gets a call set by ID.
514
- # For the definitions of call sets and other genomics resources, see
470
+ # Gets a read group set by ID.
471
+ # For the definitions of read group sets and other genomics resources, see
515
472
  # [Fundamentals of Google
516
473
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
517
- # @param [String] call_set_id
518
- # The ID of the call set.
474
+ # @param [String] read_group_set_id
475
+ # The ID of the read group set.
519
476
  # @param [String] fields
520
477
  # Selector specifying which fields to include in a partial response.
521
478
  # @param [String] quota_user
@@ -525,29 +482,139 @@ module Google
525
482
  # Request-specific options
526
483
  #
527
484
  # @yield [result, err] Result & error if block supplied
528
- # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
485
+ # @yieldparam result [Google::Apis::GenomicsV1::ReadGroupSet] parsed result object
529
486
  # @yieldparam err [StandardError] error object if request failed
530
487
  #
531
- # @return [Google::Apis::GenomicsV1::CallSet]
488
+ # @return [Google::Apis::GenomicsV1::ReadGroupSet]
532
489
  #
533
490
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
534
491
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
535
492
  # @raise [Google::Apis::AuthorizationError] Authorization is required
536
- def get_call_set(call_set_id, fields: nil, quota_user: nil, options: nil, &block)
537
- command = make_simple_command(:get, 'v1/callsets/{callSetId}', options)
538
- command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
539
- command.response_class = Google::Apis::GenomicsV1::CallSet
540
- command.params['callSetId'] = call_set_id unless call_set_id.nil?
493
+ def get_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
494
+ command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}', options)
495
+ command.response_representation = Google::Apis::GenomicsV1::ReadGroupSet::Representation
496
+ command.response_class = Google::Apis::GenomicsV1::ReadGroupSet
497
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
498
+ command.query['fields'] = fields unless fields.nil?
499
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
500
+ execute_or_queue_command(command, &block)
501
+ end
502
+
503
+ # Creates read group sets by asynchronously importing the provided
504
+ # information.
505
+ # For the definitions of read group sets and other genomics resources, see
506
+ # [Fundamentals of Google
507
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
508
+ # The caller must have WRITE permissions to the dataset.
509
+ # ## Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import
510
+ # - Tags will be converted to strings - tag types are not preserved
511
+ # - Comments (`@CO`) in the input file header will not be preserved
512
+ # - Original header order of references (`@SQ`) will not be preserved
513
+ # - Any reverse stranded unmapped reads will be reverse complemented, and
514
+ # their qualities (also the "BQ" and "OQ" tags, if any) will be reversed
515
+ # - Unmapped reads will be stripped of positional information (reference name
516
+ # and position)
517
+ # @param [Google::Apis::GenomicsV1::ImportReadGroupSetsRequest] import_read_group_sets_request_object
518
+ # @param [String] fields
519
+ # Selector specifying which fields to include in a partial response.
520
+ # @param [String] quota_user
521
+ # Available to use for quota purposes for server-side applications. Can be any
522
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
523
+ # @param [Google::Apis::RequestOptions] options
524
+ # Request-specific options
525
+ #
526
+ # @yield [result, err] Result & error if block supplied
527
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
528
+ # @yieldparam err [StandardError] error object if request failed
529
+ #
530
+ # @return [Google::Apis::GenomicsV1::Operation]
531
+ #
532
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
533
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
534
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
535
+ def import_read_group_sets(import_read_group_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
536
+ command = make_simple_command(:post, 'v1/readgroupsets:import', options)
537
+ command.request_representation = Google::Apis::GenomicsV1::ImportReadGroupSetsRequest::Representation
538
+ command.request_object = import_read_group_sets_request_object
539
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
540
+ command.response_class = Google::Apis::GenomicsV1::Operation
541
+ command.query['fields'] = fields unless fields.nil?
542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
543
+ execute_or_queue_command(command, &block)
544
+ end
545
+
546
+ # Deletes a read group set.
547
+ # For the definitions of read group sets and other genomics resources, see
548
+ # [Fundamentals of Google
549
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
550
+ # @param [String] read_group_set_id
551
+ # The ID of the read group set to be deleted. The caller must have WRITE
552
+ # permissions to the dataset associated with this read group set.
553
+ # @param [String] fields
554
+ # Selector specifying which fields to include in a partial response.
555
+ # @param [String] quota_user
556
+ # Available to use for quota purposes for server-side applications. Can be any
557
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
558
+ # @param [Google::Apis::RequestOptions] options
559
+ # Request-specific options
560
+ #
561
+ # @yield [result, err] Result & error if block supplied
562
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
563
+ # @yieldparam err [StandardError] error object if request failed
564
+ #
565
+ # @return [Google::Apis::GenomicsV1::Empty]
566
+ #
567
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
568
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
569
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
570
+ def delete_read_group_set(read_group_set_id, fields: nil, quota_user: nil, options: nil, &block)
571
+ command = make_simple_command(:delete, 'v1/readgroupsets/{readGroupSetId}', options)
572
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
573
+ command.response_class = Google::Apis::GenomicsV1::Empty
574
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
541
575
  command.query['fields'] = fields unless fields.nil?
542
576
  command.query['quotaUser'] = quota_user unless quota_user.nil?
543
577
  execute_or_queue_command(command, &block)
544
578
  end
545
579
 
546
- # Creates a new call set.
547
- # For the definitions of call sets and other genomics resources, see
580
+ # Lists fixed width coverage buckets for a read group set, each of which
581
+ # correspond to a range of a reference sequence. Each bucket summarizes
582
+ # coverage information across its corresponding genomic range.
583
+ # For the definitions of read group sets and other genomics resources, see
548
584
  # [Fundamentals of Google
549
585
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
550
- # @param [Google::Apis::GenomicsV1::CallSet] call_set_object
586
+ # Coverage is defined as the number of reads which are aligned to a given
587
+ # base in the reference sequence. Coverage buckets are available at several
588
+ # precomputed bucket widths, enabling retrieval of various coverage 'zoom
589
+ # levels'. The caller must have READ permissions for the target read group
590
+ # set.
591
+ # @param [String] read_group_set_id
592
+ # Required. The ID of the read group set over which coverage is requested.
593
+ # @param [String] page_token
594
+ # The continuation token, which is used to page through large result sets.
595
+ # To get the next page of results, set this parameter to the value of
596
+ # `nextPageToken` from the previous response.
597
+ # @param [Fixnum] page_size
598
+ # The maximum number of results to return in a single page. If unspecified,
599
+ # defaults to 1024. The maximum value is 2048.
600
+ # @param [String] start
601
+ # The start position of the range on the reference, 0-based inclusive. If
602
+ # specified, `referenceName` must also be specified. Defaults to 0.
603
+ # @param [String] target_bucket_width
604
+ # The desired width of each reported coverage bucket in base pairs. This
605
+ # will be rounded down to the nearest precomputed bucket width; the value
606
+ # of which is returned as `bucketWidth` in the response. Defaults
607
+ # to infinity (each bucket spans an entire reference sequence) or the length
608
+ # of the target range, if specified. The smallest precomputed
609
+ # `bucketWidth` is currently 2048 base pairs; this is subject to
610
+ # change.
611
+ # @param [String] reference_name
612
+ # The name of the reference to query, within the reference set associated
613
+ # with this query. Optional.
614
+ # @param [String] end_
615
+ # The end position of the range on the reference, 0-based exclusive. If
616
+ # specified, `referenceName` must also be specified. If unset or 0, defaults
617
+ # to the length of the reference.
551
618
  # @param [String] fields
552
619
  # Selector specifying which fields to include in a partial response.
553
620
  # @param [String] quota_user
@@ -557,20 +624,25 @@ module Google
557
624
  # Request-specific options
558
625
  #
559
626
  # @yield [result, err] Result & error if block supplied
560
- # @yieldparam result [Google::Apis::GenomicsV1::CallSet] parsed result object
627
+ # @yieldparam result [Google::Apis::GenomicsV1::ListCoverageBucketsResponse] parsed result object
561
628
  # @yieldparam err [StandardError] error object if request failed
562
629
  #
563
- # @return [Google::Apis::GenomicsV1::CallSet]
630
+ # @return [Google::Apis::GenomicsV1::ListCoverageBucketsResponse]
564
631
  #
565
632
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
566
633
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
567
634
  # @raise [Google::Apis::AuthorizationError] Authorization is required
568
- def create_call_set(call_set_object = nil, fields: nil, quota_user: nil, options: nil, &block)
569
- command = make_simple_command(:post, 'v1/callsets', options)
570
- command.request_representation = Google::Apis::GenomicsV1::CallSet::Representation
571
- command.request_object = call_set_object
572
- command.response_representation = Google::Apis::GenomicsV1::CallSet::Representation
573
- command.response_class = Google::Apis::GenomicsV1::CallSet
635
+ def list_coverage_buckets(read_group_set_id, page_token: nil, page_size: nil, start: nil, target_bucket_width: nil, reference_name: nil, end_: nil, fields: nil, quota_user: nil, options: nil, &block)
636
+ command = make_simple_command(:get, 'v1/readgroupsets/{readGroupSetId}/coveragebuckets', options)
637
+ command.response_representation = Google::Apis::GenomicsV1::ListCoverageBucketsResponse::Representation
638
+ command.response_class = Google::Apis::GenomicsV1::ListCoverageBucketsResponse
639
+ command.params['readGroupSetId'] = read_group_set_id unless read_group_set_id.nil?
640
+ command.query['pageToken'] = page_token unless page_token.nil?
641
+ command.query['pageSize'] = page_size unless page_size.nil?
642
+ command.query['start'] = start unless start.nil?
643
+ command.query['targetBucketWidth'] = target_bucket_width unless target_bucket_width.nil?
644
+ command.query['referenceName'] = reference_name unless reference_name.nil?
645
+ command.query['end'] = end_ unless end_.nil?
574
646
  command.query['fields'] = fields unless fields.nil?
575
647
  command.query['quotaUser'] = quota_user unless quota_user.nil?
576
648
  execute_or_queue_command(command, &block)
@@ -750,122 +822,12 @@ module Google
750
822
  execute_or_queue_command(command, &block)
751
823
  end
752
824
 
753
- # Creates a new variant.
754
- # For the definitions of variants and other genomics resources, see
755
- # [Fundamentals of Google
756
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
757
- # @param [Google::Apis::GenomicsV1::Variant] variant_object
758
- # @param [String] fields
759
- # Selector specifying which fields to include in a partial response.
760
- # @param [String] quota_user
761
- # Available to use for quota purposes for server-side applications. Can be any
762
- # arbitrary string assigned to a user, but should not exceed 40 characters.
763
- # @param [Google::Apis::RequestOptions] options
764
- # Request-specific options
765
- #
766
- # @yield [result, err] Result & error if block supplied
767
- # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
768
- # @yieldparam err [StandardError] error object if request failed
769
- #
770
- # @return [Google::Apis::GenomicsV1::Variant]
771
- #
772
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
773
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
774
- # @raise [Google::Apis::AuthorizationError] Authorization is required
775
- def create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
776
- command = make_simple_command(:post, 'v1/variants', options)
777
- command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
778
- command.request_object = variant_object
779
- command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
780
- command.response_class = Google::Apis::GenomicsV1::Variant
781
- command.query['fields'] = fields unless fields.nil?
782
- command.query['quotaUser'] = quota_user unless quota_user.nil?
783
- execute_or_queue_command(command, &block)
784
- end
785
-
786
- # Gets a list of variants matching the criteria.
787
- # For the definitions of variants and other genomics resources, see
788
- # [Fundamentals of Google
789
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
790
- # Implements
791
- # [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.
792
- # 1/src/main/resources/avro/variantmethods.avdl#L126).
793
- # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object
794
- # @param [String] fields
795
- # Selector specifying which fields to include in a partial response.
796
- # @param [String] quota_user
797
- # Available to use for quota purposes for server-side applications. Can be any
798
- # arbitrary string assigned to a user, but should not exceed 40 characters.
799
- # @param [Google::Apis::RequestOptions] options
800
- # Request-specific options
801
- #
802
- # @yield [result, err] Result & error if block supplied
803
- # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantsResponse] parsed result object
804
- # @yieldparam err [StandardError] error object if request failed
805
- #
806
- # @return [Google::Apis::GenomicsV1::SearchVariantsResponse]
807
- #
808
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
809
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
810
- # @raise [Google::Apis::AuthorizationError] Authorization is required
811
- def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
812
- command = make_simple_command(:post, 'v1/variants/search', options)
813
- command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation
814
- command.request_object = search_variants_request_object
815
- command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation
816
- command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse
817
- command.query['fields'] = fields unless fields.nil?
818
- command.query['quotaUser'] = quota_user unless quota_user.nil?
819
- execute_or_queue_command(command, &block)
820
- end
821
-
822
- # Gets a variant by ID.
823
- # For the definitions of variants and other genomics resources, see
824
- # [Fundamentals of Google
825
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
826
- # @param [String] variant_id
827
- # The ID of the variant.
828
- # @param [String] fields
829
- # Selector specifying which fields to include in a partial response.
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 [Google::Apis::RequestOptions] options
834
- # Request-specific options
835
- #
836
- # @yield [result, err] Result & error if block supplied
837
- # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
838
- # @yieldparam err [StandardError] error object if request failed
839
- #
840
- # @return [Google::Apis::GenomicsV1::Variant]
841
- #
842
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
843
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
844
- # @raise [Google::Apis::AuthorizationError] Authorization is required
845
- def get_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
846
- command = make_simple_command(:get, 'v1/variants/{variantId}', options)
847
- command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
848
- command.response_class = Google::Apis::GenomicsV1::Variant
849
- command.params['variantId'] = variant_id unless variant_id.nil?
850
- command.query['fields'] = fields unless fields.nil?
851
- command.query['quotaUser'] = quota_user unless quota_user.nil?
852
- execute_or_queue_command(command, &block)
853
- end
854
-
855
- # Updates a variant.
825
+ # Deletes a variant.
856
826
  # For the definitions of variants and other genomics resources, see
857
827
  # [Fundamentals of Google
858
828
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
859
- # This method supports patch semantics. Returns the modified variant without
860
- # its calls.
861
829
  # @param [String] variant_id
862
- # The ID of the variant to be updated.
863
- # @param [Google::Apis::GenomicsV1::Variant] variant_object
864
- # @param [String] update_mask
865
- # An optional mask specifying which fields to update. At this time, mutable
866
- # fields are names and
867
- # info. Acceptable values are "names" and
868
- # "info". If unspecified, all mutable fields will be updated.
830
+ # The ID of the variant to be deleted.
869
831
  # @param [String] fields
870
832
  # Selector specifying which fields to include in a partial response.
871
833
  # @param [String] quota_user
@@ -875,33 +837,40 @@ module Google
875
837
  # Request-specific options
876
838
  #
877
839
  # @yield [result, err] Result & error if block supplied
878
- # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
840
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
879
841
  # @yieldparam err [StandardError] error object if request failed
880
842
  #
881
- # @return [Google::Apis::GenomicsV1::Variant]
843
+ # @return [Google::Apis::GenomicsV1::Empty]
882
844
  #
883
845
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
884
846
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
885
847
  # @raise [Google::Apis::AuthorizationError] Authorization is required
886
- def patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
887
- command = make_simple_command(:patch, 'v1/variants/{variantId}', options)
888
- command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
889
- command.request_object = variant_object
890
- command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
891
- command.response_class = Google::Apis::GenomicsV1::Variant
848
+ def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
849
+ command = make_simple_command(:delete, 'v1/variants/{variantId}', options)
850
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
851
+ command.response_class = Google::Apis::GenomicsV1::Empty
892
852
  command.params['variantId'] = variant_id unless variant_id.nil?
893
- command.query['updateMask'] = update_mask unless update_mask.nil?
894
853
  command.query['fields'] = fields unless fields.nil?
895
854
  command.query['quotaUser'] = quota_user unless quota_user.nil?
896
855
  execute_or_queue_command(command, &block)
897
856
  end
898
857
 
899
- # Deletes a variant.
900
- # For the definitions of variants and other genomics resources, see
858
+ # Creates variant data by asynchronously importing the provided information.
859
+ # For the definitions of variant sets and other genomics resources, see
901
860
  # [Fundamentals of Google
902
861
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
903
- # @param [String] variant_id
904
- # The ID of the variant to be deleted.
862
+ # The variants for import will be merged with any existing variant that
863
+ # matches its reference sequence, start, end, reference bases, and
864
+ # alternative bases. If no such variant exists, a new one will be created.
865
+ # When variants are merged, the call information from the new variant
866
+ # is added to the existing variant, and Variant info fields are merged
867
+ # as specified in
868
+ # infoMergeConfig.
869
+ # As a special case, for single-sample VCF files, QUAL and FILTER fields will
870
+ # be moved to the call level; these are sometimes interpreted in a
871
+ # call-specific context.
872
+ # Imported VCF headers are appended to the metadata already in a variant set.
873
+ # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object
905
874
  # @param [String] fields
906
875
  # Selector specifying which fields to include in a partial response.
907
876
  # @param [String] quota_user
@@ -911,19 +880,20 @@ module Google
911
880
  # Request-specific options
912
881
  #
913
882
  # @yield [result, err] Result & error if block supplied
914
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
883
+ # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
915
884
  # @yieldparam err [StandardError] error object if request failed
916
885
  #
917
- # @return [Google::Apis::GenomicsV1::Empty]
886
+ # @return [Google::Apis::GenomicsV1::Operation]
918
887
  #
919
888
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
920
889
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
921
890
  # @raise [Google::Apis::AuthorizationError] Authorization is required
922
- def delete_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
923
- command = make_simple_command(:delete, 'v1/variants/{variantId}', options)
924
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
925
- command.response_class = Google::Apis::GenomicsV1::Empty
926
- command.params['variantId'] = variant_id unless variant_id.nil?
891
+ def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
892
+ command = make_simple_command(:post, 'v1/variants:import', options)
893
+ command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation
894
+ command.request_object = import_variants_request_object
895
+ command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
896
+ command.response_class = Google::Apis::GenomicsV1::Operation
927
897
  command.query['fields'] = fields unless fields.nil?
928
898
  command.query['quotaUser'] = quota_user unless quota_user.nil?
929
899
  execute_or_queue_command(command, &block)
@@ -1021,41 +991,66 @@ module Google
1021
991
  # Request-specific options
1022
992
  #
1023
993
  # @yield [result, err] Result & error if block supplied
1024
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
994
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
995
+ # @yieldparam err [StandardError] error object if request failed
996
+ #
997
+ # @return [Google::Apis::GenomicsV1::Empty]
998
+ #
999
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1000
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1001
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1002
+ def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1003
+ command = make_simple_command(:post, 'v1/variants:merge', options)
1004
+ command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation
1005
+ command.request_object = merge_variants_request_object
1006
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1007
+ command.response_class = Google::Apis::GenomicsV1::Empty
1008
+ command.query['fields'] = fields unless fields.nil?
1009
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1010
+ execute_or_queue_command(command, &block)
1011
+ end
1012
+
1013
+ # Creates a new variant.
1014
+ # For the definitions of variants and other genomics resources, see
1015
+ # [Fundamentals of Google
1016
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1017
+ # @param [Google::Apis::GenomicsV1::Variant] variant_object
1018
+ # @param [String] fields
1019
+ # Selector specifying which fields to include in a partial response.
1020
+ # @param [String] quota_user
1021
+ # Available to use for quota purposes for server-side applications. Can be any
1022
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1023
+ # @param [Google::Apis::RequestOptions] options
1024
+ # Request-specific options
1025
+ #
1026
+ # @yield [result, err] Result & error if block supplied
1027
+ # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1025
1028
  # @yieldparam err [StandardError] error object if request failed
1026
1029
  #
1027
- # @return [Google::Apis::GenomicsV1::Empty]
1030
+ # @return [Google::Apis::GenomicsV1::Variant]
1028
1031
  #
1029
1032
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1030
1033
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1031
1034
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1032
- def merge_variants(merge_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1033
- command = make_simple_command(:post, 'v1/variants:merge', options)
1034
- command.request_representation = Google::Apis::GenomicsV1::MergeVariantsRequest::Representation
1035
- command.request_object = merge_variants_request_object
1036
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1037
- command.response_class = Google::Apis::GenomicsV1::Empty
1035
+ def create_variant(variant_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1036
+ command = make_simple_command(:post, 'v1/variants', options)
1037
+ command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
1038
+ command.request_object = variant_object
1039
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1040
+ command.response_class = Google::Apis::GenomicsV1::Variant
1038
1041
  command.query['fields'] = fields unless fields.nil?
1039
1042
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1040
1043
  execute_or_queue_command(command, &block)
1041
1044
  end
1042
1045
 
1043
- # Creates variant data by asynchronously importing the provided information.
1044
- # For the definitions of variant sets and other genomics resources, see
1046
+ # Gets a list of variants matching the criteria.
1047
+ # For the definitions of variants and other genomics resources, see
1045
1048
  # [Fundamentals of Google
1046
1049
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1047
- # The variants for import will be merged with any existing variant that
1048
- # matches its reference sequence, start, end, reference bases, and
1049
- # alternative bases. If no such variant exists, a new one will be created.
1050
- # When variants are merged, the call information from the new variant
1051
- # is added to the existing variant, and Variant info fields are merged
1052
- # as specified in
1053
- # infoMergeConfig.
1054
- # As a special case, for single-sample VCF files, QUAL and FILTER fields will
1055
- # be moved to the call level; these are sometimes interpreted in a
1056
- # call-specific context.
1057
- # Imported VCF headers are appended to the metadata already in a variant set.
1058
- # @param [Google::Apis::GenomicsV1::ImportVariantsRequest] import_variants_request_object
1050
+ # Implements
1051
+ # [GlobalAllianceApi.searchVariants](https://github.com/ga4gh/schemas/blob/v0.5.
1052
+ # 1/src/main/resources/avro/variantmethods.avdl#L126).
1053
+ # @param [Google::Apis::GenomicsV1::SearchVariantsRequest] search_variants_request_object
1059
1054
  # @param [String] fields
1060
1055
  # Selector specifying which fields to include in a partial response.
1061
1056
  # @param [String] quota_user
@@ -1065,20 +1060,97 @@ module Google
1065
1060
  # Request-specific options
1066
1061
  #
1067
1062
  # @yield [result, err] Result & error if block supplied
1068
- # @yieldparam result [Google::Apis::GenomicsV1::Operation] parsed result object
1063
+ # @yieldparam result [Google::Apis::GenomicsV1::SearchVariantsResponse] parsed result object
1069
1064
  # @yieldparam err [StandardError] error object if request failed
1070
1065
  #
1071
- # @return [Google::Apis::GenomicsV1::Operation]
1066
+ # @return [Google::Apis::GenomicsV1::SearchVariantsResponse]
1072
1067
  #
1073
1068
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1074
1069
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1075
1070
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1076
- def import_variants(import_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1077
- command = make_simple_command(:post, 'v1/variants:import', options)
1078
- command.request_representation = Google::Apis::GenomicsV1::ImportVariantsRequest::Representation
1079
- command.request_object = import_variants_request_object
1080
- command.response_representation = Google::Apis::GenomicsV1::Operation::Representation
1081
- command.response_class = Google::Apis::GenomicsV1::Operation
1071
+ def search_variants(search_variants_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1072
+ command = make_simple_command(:post, 'v1/variants/search', options)
1073
+ command.request_representation = Google::Apis::GenomicsV1::SearchVariantsRequest::Representation
1074
+ command.request_object = search_variants_request_object
1075
+ command.response_representation = Google::Apis::GenomicsV1::SearchVariantsResponse::Representation
1076
+ command.response_class = Google::Apis::GenomicsV1::SearchVariantsResponse
1077
+ command.query['fields'] = fields unless fields.nil?
1078
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1079
+ execute_or_queue_command(command, &block)
1080
+ end
1081
+
1082
+ # Updates a variant.
1083
+ # For the definitions of variants and other genomics resources, see
1084
+ # [Fundamentals of Google
1085
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1086
+ # This method supports patch semantics. Returns the modified variant without
1087
+ # its calls.
1088
+ # @param [String] variant_id
1089
+ # The ID of the variant to be updated.
1090
+ # @param [Google::Apis::GenomicsV1::Variant] variant_object
1091
+ # @param [String] update_mask
1092
+ # An optional mask specifying which fields to update. At this time, mutable
1093
+ # fields are names and
1094
+ # info. Acceptable values are "names" and
1095
+ # "info". If unspecified, all mutable fields will be updated.
1096
+ # @param [String] fields
1097
+ # Selector specifying which fields to include in a partial response.
1098
+ # @param [String] quota_user
1099
+ # Available to use for quota purposes for server-side applications. Can be any
1100
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1101
+ # @param [Google::Apis::RequestOptions] options
1102
+ # Request-specific options
1103
+ #
1104
+ # @yield [result, err] Result & error if block supplied
1105
+ # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1106
+ # @yieldparam err [StandardError] error object if request failed
1107
+ #
1108
+ # @return [Google::Apis::GenomicsV1::Variant]
1109
+ #
1110
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1111
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1112
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1113
+ def patch_variant(variant_id, variant_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1114
+ command = make_simple_command(:patch, 'v1/variants/{variantId}', options)
1115
+ command.request_representation = Google::Apis::GenomicsV1::Variant::Representation
1116
+ command.request_object = variant_object
1117
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1118
+ command.response_class = Google::Apis::GenomicsV1::Variant
1119
+ command.params['variantId'] = variant_id unless variant_id.nil?
1120
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1121
+ command.query['fields'] = fields unless fields.nil?
1122
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1123
+ execute_or_queue_command(command, &block)
1124
+ end
1125
+
1126
+ # Gets a variant by ID.
1127
+ # For the definitions of variants and other genomics resources, see
1128
+ # [Fundamentals of Google
1129
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1130
+ # @param [String] variant_id
1131
+ # The ID of the variant.
1132
+ # @param [String] fields
1133
+ # Selector specifying which fields to include in a partial response.
1134
+ # @param [String] quota_user
1135
+ # Available to use for quota purposes for server-side applications. Can be any
1136
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1137
+ # @param [Google::Apis::RequestOptions] options
1138
+ # Request-specific options
1139
+ #
1140
+ # @yield [result, err] Result & error if block supplied
1141
+ # @yieldparam result [Google::Apis::GenomicsV1::Variant] parsed result object
1142
+ # @yieldparam err [StandardError] error object if request failed
1143
+ #
1144
+ # @return [Google::Apis::GenomicsV1::Variant]
1145
+ #
1146
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1147
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1148
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1149
+ def get_variant(variant_id, fields: nil, quota_user: nil, options: nil, &block)
1150
+ command = make_simple_command(:get, 'v1/variants/{variantId}', options)
1151
+ command.response_representation = Google::Apis::GenomicsV1::Variant::Representation
1152
+ command.response_class = Google::Apis::GenomicsV1::Variant
1153
+ command.params['variantId'] = variant_id unless variant_id.nil?
1082
1154
  command.query['fields'] = fields unless fields.nil?
1083
1155
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1084
1156
  execute_or_queue_command(command, &block)
@@ -1165,9 +1237,6 @@ module Google
1165
1237
  # 5.1/src/main/resources/avro/referencemethods.avdl#L221).
1166
1238
  # @param [String] reference_id
1167
1239
  # The ID of the reference.
1168
- # @param [String] end_position
1169
- # The end position (0-based, exclusive) of this query. Defaults to the length
1170
- # of this reference.
1171
1240
  # @param [String] page_token
1172
1241
  # The continuation token, which is used to page through large result sets.
1173
1242
  # To get the next page of results, set this parameter to the value of
@@ -1178,6 +1247,9 @@ module Google
1178
1247
  # pairs).
1179
1248
  # @param [String] start_position
1180
1249
  # The start position (0-based) of this query. Defaults to 0.
1250
+ # @param [String] end_position
1251
+ # The end position (0-based, exclusive) of this query. Defaults to the length
1252
+ # of this reference.
1181
1253
  # @param [String] fields
1182
1254
  # Selector specifying which fields to include in a partial response.
1183
1255
  # @param [String] quota_user
@@ -1195,31 +1267,30 @@ module Google
1195
1267
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1196
1268
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1197
1269
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1198
- def list_reference_bases(reference_id, end_position: nil, page_token: nil, page_size: nil, start_position: nil, fields: nil, quota_user: nil, options: nil, &block)
1270
+ def list_reference_bases(reference_id, page_token: nil, page_size: nil, start_position: nil, end_position: nil, fields: nil, quota_user: nil, options: nil, &block)
1199
1271
  command = make_simple_command(:get, 'v1/references/{referenceId}/bases', options)
1200
1272
  command.response_representation = Google::Apis::GenomicsV1::ListBasesResponse::Representation
1201
1273
  command.response_class = Google::Apis::GenomicsV1::ListBasesResponse
1202
1274
  command.params['referenceId'] = reference_id unless reference_id.nil?
1203
- command.query['end'] = end_position unless end_position.nil?
1204
1275
  command.query['pageToken'] = page_token unless page_token.nil?
1205
1276
  command.query['pageSize'] = page_size unless page_size.nil?
1206
1277
  command.query['start'] = start_position unless start_position.nil?
1278
+ command.query['end'] = end_position unless end_position.nil?
1207
1279
  command.query['fields'] = fields unless fields.nil?
1208
1280
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1209
1281
  execute_or_queue_command(command, &block)
1210
1282
  end
1211
1283
 
1212
- # Gets the access control policy for the dataset. This is empty if the
1213
- # policy or resource does not exist.
1214
- # See <a href="/iam/docs/managing-policies#getting_a_policy">Getting a
1215
- # Policy</a> for more information.
1284
+ # Returns permissions that a caller has on the specified resource.
1285
+ # See <a href="/iam/docs/managing-policies#testing_permissions">Testing
1286
+ # Permissions</a> for more information.
1216
1287
  # For the definitions of datasets and other genomics resources, see
1217
1288
  # [Fundamentals of Google
1218
1289
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1219
1290
  # @param [String] resource
1220
1291
  # REQUIRED: The resource for which policy is being specified. Format is
1221
1292
  # `datasets/<dataset ID>`.
1222
- # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object
1293
+ # @param [Google::Apis::GenomicsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1223
1294
  # @param [String] fields
1224
1295
  # Selector specifying which fields to include in a partial response.
1225
1296
  # @param [String] quota_user
@@ -1229,34 +1300,37 @@ module Google
1229
1300
  # Request-specific options
1230
1301
  #
1231
1302
  # @yield [result, err] Result & error if block supplied
1232
- # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
1303
+ # @yieldparam result [Google::Apis::GenomicsV1::TestIamPermissionsResponse] parsed result object
1233
1304
  # @yieldparam err [StandardError] error object if request failed
1234
1305
  #
1235
- # @return [Google::Apis::GenomicsV1::Policy]
1306
+ # @return [Google::Apis::GenomicsV1::TestIamPermissionsResponse]
1236
1307
  #
1237
1308
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1238
1309
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1239
1310
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1240
- def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1241
- command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
1242
- command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation
1243
- command.request_object = get_iam_policy_request_object
1244
- command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
1245
- command.response_class = Google::Apis::GenomicsV1::Policy
1311
+ def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1312
+ command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1313
+ command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation
1314
+ command.request_object = test_iam_permissions_request_object
1315
+ command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation
1316
+ command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse
1246
1317
  command.params['resource'] = resource unless resource.nil?
1247
1318
  command.query['fields'] = fields unless fields.nil?
1248
1319
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1249
1320
  execute_or_queue_command(command, &block)
1250
1321
  end
1251
1322
 
1252
- # Undeletes a dataset by restoring a dataset which was deleted via this API.
1323
+ # Deletes a dataset and all of its contents (all read group sets,
1324
+ # reference sets, variant sets, call sets, annotation sets, etc.)
1325
+ # This is reversible (up to one week after the deletion) via
1326
+ # the
1327
+ # datasets.undelete
1328
+ # operation.
1253
1329
  # For the definitions of datasets and other genomics resources, see
1254
1330
  # [Fundamentals of Google
1255
1331
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1256
- # This operation is only possible for a week after the deletion occurred.
1257
1332
  # @param [String] dataset_id
1258
- # The ID of the dataset to be undeleted.
1259
- # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object
1333
+ # The ID of the dataset to be deleted.
1260
1334
  # @param [String] fields
1261
1335
  # Selector specifying which fields to include in a partial response.
1262
1336
  # @param [String] quota_user
@@ -1266,32 +1340,37 @@ module Google
1266
1340
  # Request-specific options
1267
1341
  #
1268
1342
  # @yield [result, err] Result & error if block supplied
1269
- # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1343
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1270
1344
  # @yieldparam err [StandardError] error object if request failed
1271
1345
  #
1272
- # @return [Google::Apis::GenomicsV1::Dataset]
1346
+ # @return [Google::Apis::GenomicsV1::Empty]
1273
1347
  #
1274
1348
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1275
1349
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1276
1350
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1277
- def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1278
- command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options)
1279
- command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation
1280
- command.request_object = undelete_dataset_request_object
1281
- command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1282
- command.response_class = Google::Apis::GenomicsV1::Dataset
1351
+ def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
1352
+ command = make_simple_command(:delete, 'v1/datasets/{datasetId}', options)
1353
+ command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1354
+ command.response_class = Google::Apis::GenomicsV1::Empty
1283
1355
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1284
1356
  command.query['fields'] = fields unless fields.nil?
1285
1357
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1286
1358
  execute_or_queue_command(command, &block)
1287
1359
  end
1288
1360
 
1289
- # Gets a dataset by ID.
1361
+ # Lists datasets within a project.
1290
1362
  # For the definitions of datasets and other genomics resources, see
1291
1363
  # [Fundamentals of Google
1292
1364
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1293
- # @param [String] dataset_id
1294
- # The ID of the dataset.
1365
+ # @param [String] page_token
1366
+ # The continuation token, which is used to page through large result sets.
1367
+ # To get the next page of results, set this parameter to the value of
1368
+ # `nextPageToken` from the previous response.
1369
+ # @param [Fixnum] page_size
1370
+ # The maximum number of results to return in a single page. If unspecified,
1371
+ # defaults to 50. The maximum value is 1024.
1372
+ # @param [String] project_id
1373
+ # Required. The Google Cloud project ID to list datasets for.
1295
1374
  # @param [String] fields
1296
1375
  # Selector specifying which fields to include in a partial response.
1297
1376
  # @param [String] quota_user
@@ -1301,37 +1380,71 @@ module Google
1301
1380
  # Request-specific options
1302
1381
  #
1303
1382
  # @yield [result, err] Result & error if block supplied
1304
- # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1383
+ # @yieldparam result [Google::Apis::GenomicsV1::ListDatasetsResponse] parsed result object
1305
1384
  # @yieldparam err [StandardError] error object if request failed
1306
1385
  #
1307
- # @return [Google::Apis::GenomicsV1::Dataset]
1386
+ # @return [Google::Apis::GenomicsV1::ListDatasetsResponse]
1308
1387
  #
1309
1388
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1310
1389
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1311
1390
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1312
- def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
1313
- command = make_simple_command(:get, 'v1/datasets/{datasetId}', options)
1314
- command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1315
- command.response_class = Google::Apis::GenomicsV1::Dataset
1316
- command.params['datasetId'] = dataset_id unless dataset_id.nil?
1391
+ def list_datasets(page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1392
+ command = make_simple_command(:get, 'v1/datasets', options)
1393
+ command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation
1394
+ command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse
1395
+ command.query['pageToken'] = page_token unless page_token.nil?
1396
+ command.query['pageSize'] = page_size unless page_size.nil?
1397
+ command.query['projectId'] = project_id unless project_id.nil?
1398
+ command.query['fields'] = fields unless fields.nil?
1399
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1400
+ execute_or_queue_command(command, &block)
1401
+ end
1402
+
1403
+ # Sets the access control policy on the specified dataset. Replaces any
1404
+ # existing policy.
1405
+ # For the definitions of datasets and other genomics resources, see
1406
+ # [Fundamentals of Google
1407
+ # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1408
+ # See <a href="/iam/docs/managing-policies#setting_a_policy">Setting a
1409
+ # Policy</a> for more information.
1410
+ # @param [String] resource
1411
+ # REQUIRED: The resource for which policy is being specified. Format is
1412
+ # `datasets/<dataset ID>`.
1413
+ # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object
1414
+ # @param [String] fields
1415
+ # Selector specifying which fields to include in a partial response.
1416
+ # @param [String] quota_user
1417
+ # Available to use for quota purposes for server-side applications. Can be any
1418
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1419
+ # @param [Google::Apis::RequestOptions] options
1420
+ # Request-specific options
1421
+ #
1422
+ # @yield [result, err] Result & error if block supplied
1423
+ # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
1424
+ # @yieldparam err [StandardError] error object if request failed
1425
+ #
1426
+ # @return [Google::Apis::GenomicsV1::Policy]
1427
+ #
1428
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1429
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1430
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1431
+ def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1432
+ command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1433
+ command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation
1434
+ command.request_object = set_iam_policy_request_object
1435
+ command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
1436
+ command.response_class = Google::Apis::GenomicsV1::Policy
1437
+ command.params['resource'] = resource unless resource.nil?
1317
1438
  command.query['fields'] = fields unless fields.nil?
1318
1439
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1319
1440
  execute_or_queue_command(command, &block)
1320
1441
  end
1321
1442
 
1322
- # Updates a dataset.
1443
+ # Creates a new dataset.
1323
1444
  # For the definitions of datasets and other genomics resources, see
1324
1445
  # [Fundamentals of Google
1325
1446
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1326
- # This method supports patch semantics.
1327
- # @param [String] dataset_id
1328
- # The ID of the dataset to be updated.
1329
1447
  # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
1330
- # @param [String] update_mask
1331
- # An optional mask specifying which fields to update. At this time, the only
1332
- # mutable field is name. The only
1333
- # acceptable value is "name". If unspecified, all mutable fields will be
1334
- # updated.
1335
1448
  # @param [String] fields
1336
1449
  # Selector specifying which fields to include in a partial response.
1337
1450
  # @param [String] quota_user
@@ -1349,29 +1462,28 @@ module Google
1349
1462
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1350
1463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1351
1464
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1352
- def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1353
- command = make_simple_command(:patch, 'v1/datasets/{datasetId}', options)
1465
+ def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1466
+ command = make_simple_command(:post, 'v1/datasets', options)
1354
1467
  command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
1355
1468
  command.request_object = dataset_object
1356
1469
  command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1357
1470
  command.response_class = Google::Apis::GenomicsV1::Dataset
1358
- command.params['datasetId'] = dataset_id unless dataset_id.nil?
1359
- command.query['updateMask'] = update_mask unless update_mask.nil?
1360
1471
  command.query['fields'] = fields unless fields.nil?
1361
1472
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1362
1473
  execute_or_queue_command(command, &block)
1363
1474
  end
1364
1475
 
1365
- # Returns permissions that a caller has on the specified resource.
1366
- # See <a href="/iam/docs/managing-policies#testing_permissions">Testing
1367
- # Permissions</a> for more information.
1476
+ # Gets the access control policy for the dataset. This is empty if the
1477
+ # policy or resource does not exist.
1478
+ # See <a href="/iam/docs/managing-policies#getting_a_policy">Getting a
1479
+ # Policy</a> for more information.
1368
1480
  # For the definitions of datasets and other genomics resources, see
1369
1481
  # [Fundamentals of Google
1370
1482
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1371
1483
  # @param [String] resource
1372
1484
  # REQUIRED: The resource for which policy is being specified. Format is
1373
1485
  # `datasets/<dataset ID>`.
1374
- # @param [Google::Apis::GenomicsV1::TestIamPermissionsRequest] test_iam_permissions_request_object
1486
+ # @param [Google::Apis::GenomicsV1::GetIamPolicyRequest] get_iam_policy_request_object
1375
1487
  # @param [String] fields
1376
1488
  # Selector specifying which fields to include in a partial response.
1377
1489
  # @param [String] quota_user
@@ -1381,37 +1493,32 @@ module Google
1381
1493
  # Request-specific options
1382
1494
  #
1383
1495
  # @yield [result, err] Result & error if block supplied
1384
- # @yieldparam result [Google::Apis::GenomicsV1::TestIamPermissionsResponse] parsed result object
1496
+ # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
1385
1497
  # @yieldparam err [StandardError] error object if request failed
1386
1498
  #
1387
- # @return [Google::Apis::GenomicsV1::TestIamPermissionsResponse]
1499
+ # @return [Google::Apis::GenomicsV1::Policy]
1388
1500
  #
1389
1501
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1390
1502
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1391
1503
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1392
- def test_dataset_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1393
- command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
1394
- command.request_representation = Google::Apis::GenomicsV1::TestIamPermissionsRequest::Representation
1395
- command.request_object = test_iam_permissions_request_object
1396
- command.response_representation = Google::Apis::GenomicsV1::TestIamPermissionsResponse::Representation
1397
- command.response_class = Google::Apis::GenomicsV1::TestIamPermissionsResponse
1504
+ def get_dataset_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1505
+ command = make_simple_command(:post, 'v1/{+resource}:getIamPolicy', options)
1506
+ command.request_representation = Google::Apis::GenomicsV1::GetIamPolicyRequest::Representation
1507
+ command.request_object = get_iam_policy_request_object
1508
+ command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
1509
+ command.response_class = Google::Apis::GenomicsV1::Policy
1398
1510
  command.params['resource'] = resource unless resource.nil?
1399
1511
  command.query['fields'] = fields unless fields.nil?
1400
1512
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1401
1513
  execute_or_queue_command(command, &block)
1402
1514
  end
1403
1515
 
1404
- # Deletes a dataset and all of its contents (all read group sets,
1405
- # reference sets, variant sets, call sets, annotation sets, etc.)
1406
- # This is reversible (up to one week after the deletion) via
1407
- # the
1408
- # datasets.undelete
1409
- # operation.
1516
+ # Gets a dataset by ID.
1410
1517
  # For the definitions of datasets and other genomics resources, see
1411
1518
  # [Fundamentals of Google
1412
1519
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1413
1520
  # @param [String] dataset_id
1414
- # The ID of the dataset to be deleted.
1521
+ # The ID of the dataset.
1415
1522
  # @param [String] fields
1416
1523
  # Selector specifying which fields to include in a partial response.
1417
1524
  # @param [String] quota_user
@@ -1421,37 +1528,37 @@ module Google
1421
1528
  # Request-specific options
1422
1529
  #
1423
1530
  # @yield [result, err] Result & error if block supplied
1424
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1531
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1425
1532
  # @yieldparam err [StandardError] error object if request failed
1426
1533
  #
1427
- # @return [Google::Apis::GenomicsV1::Empty]
1534
+ # @return [Google::Apis::GenomicsV1::Dataset]
1428
1535
  #
1429
1536
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1430
1537
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1431
1538
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1432
- def delete_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
1433
- command = make_simple_command(:delete, 'v1/datasets/{datasetId}', options)
1434
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1435
- command.response_class = Google::Apis::GenomicsV1::Empty
1539
+ def get_dataset(dataset_id, fields: nil, quota_user: nil, options: nil, &block)
1540
+ command = make_simple_command(:get, 'v1/datasets/{datasetId}', options)
1541
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1542
+ command.response_class = Google::Apis::GenomicsV1::Dataset
1436
1543
  command.params['datasetId'] = dataset_id unless dataset_id.nil?
1437
1544
  command.query['fields'] = fields unless fields.nil?
1438
1545
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1439
1546
  execute_or_queue_command(command, &block)
1440
1547
  end
1441
1548
 
1442
- # Lists datasets within a project.
1549
+ # Updates a dataset.
1443
1550
  # For the definitions of datasets and other genomics resources, see
1444
1551
  # [Fundamentals of Google
1445
1552
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1446
- # @param [String] page_token
1447
- # The continuation token, which is used to page through large result sets.
1448
- # To get the next page of results, set this parameter to the value of
1449
- # `nextPageToken` from the previous response.
1450
- # @param [Fixnum] page_size
1451
- # The maximum number of results to return in a single page. If unspecified,
1452
- # defaults to 50. The maximum value is 1024.
1453
- # @param [String] project_id
1454
- # Required. The Google Cloud project ID to list datasets for.
1553
+ # This method supports patch semantics.
1554
+ # @param [String] dataset_id
1555
+ # The ID of the dataset to be updated.
1556
+ # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
1557
+ # @param [String] update_mask
1558
+ # An optional mask specifying which fields to update. At this time, the only
1559
+ # mutable field is name. The only
1560
+ # acceptable value is "name". If unspecified, all mutable fields will be
1561
+ # updated.
1455
1562
  # @param [String] fields
1456
1563
  # Selector specifying which fields to include in a partial response.
1457
1564
  # @param [String] quota_user
@@ -1461,31 +1568,35 @@ module Google
1461
1568
  # Request-specific options
1462
1569
  #
1463
1570
  # @yield [result, err] Result & error if block supplied
1464
- # @yieldparam result [Google::Apis::GenomicsV1::ListDatasetsResponse] parsed result object
1571
+ # @yieldparam result [Google::Apis::GenomicsV1::Dataset] parsed result object
1465
1572
  # @yieldparam err [StandardError] error object if request failed
1466
1573
  #
1467
- # @return [Google::Apis::GenomicsV1::ListDatasetsResponse]
1574
+ # @return [Google::Apis::GenomicsV1::Dataset]
1468
1575
  #
1469
1576
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1470
1577
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1471
1578
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1472
- def list_datasets(page_token: nil, page_size: nil, project_id: nil, fields: nil, quota_user: nil, options: nil, &block)
1473
- command = make_simple_command(:get, 'v1/datasets', options)
1474
- command.response_representation = Google::Apis::GenomicsV1::ListDatasetsResponse::Representation
1475
- command.response_class = Google::Apis::GenomicsV1::ListDatasetsResponse
1476
- command.query['pageToken'] = page_token unless page_token.nil?
1477
- command.query['pageSize'] = page_size unless page_size.nil?
1478
- command.query['projectId'] = project_id unless project_id.nil?
1579
+ def patch_dataset(dataset_id, dataset_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
1580
+ command = make_simple_command(:patch, 'v1/datasets/{datasetId}', options)
1581
+ command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
1582
+ command.request_object = dataset_object
1583
+ command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1584
+ command.response_class = Google::Apis::GenomicsV1::Dataset
1585
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1586
+ command.query['updateMask'] = update_mask unless update_mask.nil?
1479
1587
  command.query['fields'] = fields unless fields.nil?
1480
1588
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1481
1589
  execute_or_queue_command(command, &block)
1482
1590
  end
1483
1591
 
1484
- # Creates a new dataset.
1592
+ # Undeletes a dataset by restoring a dataset which was deleted via this API.
1485
1593
  # For the definitions of datasets and other genomics resources, see
1486
1594
  # [Fundamentals of Google
1487
1595
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1488
- # @param [Google::Apis::GenomicsV1::Dataset] dataset_object
1596
+ # This operation is only possible for a week after the deletion occurred.
1597
+ # @param [String] dataset_id
1598
+ # The ID of the dataset to be undeleted.
1599
+ # @param [Google::Apis::GenomicsV1::UndeleteDatasetRequest] undelete_dataset_request_object
1489
1600
  # @param [String] fields
1490
1601
  # Selector specifying which fields to include in a partial response.
1491
1602
  # @param [String] quota_user
@@ -1503,28 +1614,25 @@ module Google
1503
1614
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1504
1615
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1505
1616
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1506
- def create_dataset(dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1507
- command = make_simple_command(:post, 'v1/datasets', options)
1508
- command.request_representation = Google::Apis::GenomicsV1::Dataset::Representation
1509
- command.request_object = dataset_object
1617
+ def undelete_dataset(dataset_id, undelete_dataset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1618
+ command = make_simple_command(:post, 'v1/datasets/{datasetId}:undelete', options)
1619
+ command.request_representation = Google::Apis::GenomicsV1::UndeleteDatasetRequest::Representation
1620
+ command.request_object = undelete_dataset_request_object
1510
1621
  command.response_representation = Google::Apis::GenomicsV1::Dataset::Representation
1511
1622
  command.response_class = Google::Apis::GenomicsV1::Dataset
1623
+ command.params['datasetId'] = dataset_id unless dataset_id.nil?
1512
1624
  command.query['fields'] = fields unless fields.nil?
1513
1625
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1514
1626
  execute_or_queue_command(command, &block)
1515
1627
  end
1516
1628
 
1517
- # Sets the access control policy on the specified dataset. Replaces any
1518
- # existing policy.
1519
- # For the definitions of datasets and other genomics resources, see
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
1520
1632
  # [Fundamentals of Google
1521
1633
  # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1522
- # See <a href="/iam/docs/managing-policies#setting_a_policy">Setting a
1523
- # Policy</a> for more information.
1524
- # @param [String] resource
1525
- # REQUIRED: The resource for which policy is being specified. Format is
1526
- # `datasets/<dataset ID>`.
1527
- # @param [Google::Apis::GenomicsV1::SetIamPolicyRequest] set_iam_policy_request_object
1634
+ # @param [String] variant_set_id
1635
+ # The ID of the variant set to be deleted.
1528
1636
  # @param [String] fields
1529
1637
  # Selector specifying which fields to include in a partial response.
1530
1638
  # @param [String] quota_user
@@ -1534,21 +1642,19 @@ module Google
1534
1642
  # Request-specific options
1535
1643
  #
1536
1644
  # @yield [result, err] Result & error if block supplied
1537
- # @yieldparam result [Google::Apis::GenomicsV1::Policy] parsed result object
1645
+ # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1538
1646
  # @yieldparam err [StandardError] error object if request failed
1539
1647
  #
1540
- # @return [Google::Apis::GenomicsV1::Policy]
1648
+ # @return [Google::Apis::GenomicsV1::Empty]
1541
1649
  #
1542
1650
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1543
1651
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1544
1652
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1545
- def set_dataset_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1546
- command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
1547
- command.request_representation = Google::Apis::GenomicsV1::SetIamPolicyRequest::Representation
1548
- command.request_object = set_iam_policy_request_object
1549
- command.response_representation = Google::Apis::GenomicsV1::Policy::Representation
1550
- command.response_class = Google::Apis::GenomicsV1::Policy
1551
- command.params['resource'] = resource unless resource.nil?
1653
+ def delete_variantset(variant_set_id, fields: nil, quota_user: 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?
1552
1658
  command.query['fields'] = fields unless fields.nil?
1553
1659
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1554
1660
  execute_or_queue_command(command, &block)
@@ -1740,40 +1846,6 @@ module Google
1740
1846
  execute_or_queue_command(command, &block)
1741
1847
  end
1742
1848
 
1743
- # Deletes a variant set including all variants, call sets, and calls within.
1744
- # This is not reversible.
1745
- # For the definitions of variant sets and other genomics resources, see
1746
- # [Fundamentals of Google
1747
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
1748
- # @param [String] variant_set_id
1749
- # The ID of the variant set to be deleted.
1750
- # @param [String] fields
1751
- # Selector specifying which fields to include in a partial response.
1752
- # @param [String] quota_user
1753
- # Available to use for quota purposes for server-side applications. Can be any
1754
- # arbitrary string assigned to a user, but should not exceed 40 characters.
1755
- # @param [Google::Apis::RequestOptions] options
1756
- # Request-specific options
1757
- #
1758
- # @yield [result, err] Result & error if block supplied
1759
- # @yieldparam result [Google::Apis::GenomicsV1::Empty] parsed result object
1760
- # @yieldparam err [StandardError] error object if request failed
1761
- #
1762
- # @return [Google::Apis::GenomicsV1::Empty]
1763
- #
1764
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1765
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1766
- # @raise [Google::Apis::AuthorizationError] Authorization is required
1767
- def delete_variantset(variant_set_id, fields: nil, quota_user: nil, options: nil, &block)
1768
- command = make_simple_command(:delete, 'v1/variantsets/{variantSetId}', options)
1769
- command.response_representation = Google::Apis::GenomicsV1::Empty::Representation
1770
- command.response_class = Google::Apis::GenomicsV1::Empty
1771
- command.params['variantSetId'] = variant_set_id unless variant_set_id.nil?
1772
- command.query['fields'] = fields unless fields.nil?
1773
- command.query['quotaUser'] = quota_user unless quota_user.nil?
1774
- execute_or_queue_command(command, &block)
1775
- end
1776
-
1777
1849
  # Creates a new annotation. Caller must have WRITE permission
1778
1850
  # for the associated annotation set.
1779
1851
  # The following fields are required:
@@ -2122,78 +2194,6 @@ module Google
2122
2194
  command.query['quotaUser'] = quota_user unless quota_user.nil?
2123
2195
  execute_or_queue_command(command, &block)
2124
2196
  end
2125
-
2126
- # Searches for reference sets which match the given criteria.
2127
- # For the definitions of references and other genomics resources, see
2128
- # [Fundamentals of Google
2129
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
2130
- # Implements
2131
- # [GlobalAllianceApi.searchReferenceSets](https://github.com/ga4gh/schemas/blob/
2132
- # v0.5.1/src/main/resources/avro/referencemethods.avdl#L71)
2133
- # @param [Google::Apis::GenomicsV1::SearchReferenceSetsRequest] search_reference_sets_request_object
2134
- # @param [String] fields
2135
- # Selector specifying which fields to include in a partial response.
2136
- # @param [String] quota_user
2137
- # Available to use for quota purposes for server-side applications. Can be any
2138
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2139
- # @param [Google::Apis::RequestOptions] options
2140
- # Request-specific options
2141
- #
2142
- # @yield [result, err] Result & error if block supplied
2143
- # @yieldparam result [Google::Apis::GenomicsV1::SearchReferenceSetsResponse] parsed result object
2144
- # @yieldparam err [StandardError] error object if request failed
2145
- #
2146
- # @return [Google::Apis::GenomicsV1::SearchReferenceSetsResponse]
2147
- #
2148
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2149
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2150
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2151
- def search_reference_sets(search_reference_sets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2152
- command = make_simple_command(:post, 'v1/referencesets/search', options)
2153
- command.request_representation = Google::Apis::GenomicsV1::SearchReferenceSetsRequest::Representation
2154
- command.request_object = search_reference_sets_request_object
2155
- command.response_representation = Google::Apis::GenomicsV1::SearchReferenceSetsResponse::Representation
2156
- command.response_class = Google::Apis::GenomicsV1::SearchReferenceSetsResponse
2157
- command.query['fields'] = fields unless fields.nil?
2158
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2159
- execute_or_queue_command(command, &block)
2160
- end
2161
-
2162
- # Gets a reference set.
2163
- # For the definitions of references and other genomics resources, see
2164
- # [Fundamentals of Google
2165
- # Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics)
2166
- # Implements
2167
- # [GlobalAllianceApi.getReferenceSet](https://github.com/ga4gh/schemas/blob/v0.5.
2168
- # 1/src/main/resources/avro/referencemethods.avdl#L83).
2169
- # @param [String] reference_set_id
2170
- # The ID of the reference set.
2171
- # @param [String] fields
2172
- # Selector specifying which fields to include in a partial response.
2173
- # @param [String] quota_user
2174
- # Available to use for quota purposes for server-side applications. Can be any
2175
- # arbitrary string assigned to a user, but should not exceed 40 characters.
2176
- # @param [Google::Apis::RequestOptions] options
2177
- # Request-specific options
2178
- #
2179
- # @yield [result, err] Result & error if block supplied
2180
- # @yieldparam result [Google::Apis::GenomicsV1::ReferenceSet] parsed result object
2181
- # @yieldparam err [StandardError] error object if request failed
2182
- #
2183
- # @return [Google::Apis::GenomicsV1::ReferenceSet]
2184
- #
2185
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2186
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2187
- # @raise [Google::Apis::AuthorizationError] Authorization is required
2188
- def get_reference_set(reference_set_id, fields: nil, quota_user: nil, options: nil, &block)
2189
- command = make_simple_command(:get, 'v1/referencesets/{referenceSetId}', options)
2190
- command.response_representation = Google::Apis::GenomicsV1::ReferenceSet::Representation
2191
- command.response_class = Google::Apis::GenomicsV1::ReferenceSet
2192
- command.params['referenceSetId'] = reference_set_id unless reference_set_id.nil?
2193
- command.query['fields'] = fields unless fields.nil?
2194
- command.query['quotaUser'] = quota_user unless quota_user.nil?
2195
- execute_or_queue_command(command, &block)
2196
- end
2197
2197
 
2198
2198
  protected
2199
2199