| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis_beta.genomics.v1beta2; | 3 library googleapis_beta.genomics.v1beta2; |
| 2 | 4 |
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; |
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; |
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
| 7 | 9 |
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | |
| 11 import '../common/common.dart' as common; | |
| 12 | 13 |
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client genomics/v1beta2'; |
| 15 | 18 |
| 16 /** Provides access to Genomics data. */ | 19 /** Provides access to Genomics data. */ |
| 17 class GenomicsApi { | 20 class GenomicsApi { |
| 18 /** View and manage your data in Google BigQuery */ | 21 /** View and manage your data in Google BigQuery */ |
| 19 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery"; | 22 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery"; |
| 20 | 23 |
| 21 /** Manage your data in Google Cloud Storage */ | 24 /** Manage your data in Google Cloud Storage */ |
| 22 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst
orage.read_write"; | 25 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst
orage.read_write"; |
| 23 | 26 |
| 24 /** View and manage Genomics data */ | 27 /** View and manage Genomics data */ |
| 25 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; | 28 static const GenomicsScope = "https://www.googleapis.com/auth/genomics"; |
| 26 | 29 |
| 27 /** View Genomics data */ | 30 /** View Genomics data */ |
| 28 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; | 31 static const GenomicsReadonlyScope = "https://www.googleapis.com/auth/genomics
.readonly"; |
| 29 | 32 |
| 30 | 33 |
| 31 final common_internal.ApiRequester _requester; | 34 final commons.ApiRequester _requester; |
| 32 | 35 |
| 33 AnnotationSetsResourceApi get annotationSets => new AnnotationSetsResourceApi(
_requester); | 36 AnnotationSetsResourceApi get annotationSets => new AnnotationSetsResourceApi(
_requester); |
| 34 AnnotationsResourceApi get annotations => new AnnotationsResourceApi(_requeste
r); | 37 AnnotationsResourceApi get annotations => new AnnotationsResourceApi(_requeste
r); |
| 35 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); | 38 CallsetsResourceApi get callsets => new CallsetsResourceApi(_requester); |
| 36 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); | 39 DatasetsResourceApi get datasets => new DatasetsResourceApi(_requester); |
| 37 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); | 40 ExperimentalResourceApi get experimental => new ExperimentalResourceApi(_reque
ster); |
| 38 JobsResourceApi get jobs => new JobsResourceApi(_requester); | 41 JobsResourceApi get jobs => new JobsResourceApi(_requester); |
| 39 ReadgroupsetsResourceApi get readgroupsets => new ReadgroupsetsResourceApi(_re
quester); | 42 ReadgroupsetsResourceApi get readgroupsets => new ReadgroupsetsResourceApi(_re
quester); |
| 40 ReadsResourceApi get reads => new ReadsResourceApi(_requester); | 43 ReadsResourceApi get reads => new ReadsResourceApi(_requester); |
| 41 ReferencesResourceApi get references => new ReferencesResourceApi(_requester); | 44 ReferencesResourceApi get references => new ReferencesResourceApi(_requester); |
| 42 ReferencesetsResourceApi get referencesets => new ReferencesetsResourceApi(_re
quester); | 45 ReferencesetsResourceApi get referencesets => new ReferencesetsResourceApi(_re
quester); |
| 46 StreamingVariantStoreResourceApi get streamingVariantStore => new StreamingVar
iantStoreResourceApi(_requester); |
| 43 VariantsResourceApi get variants => new VariantsResourceApi(_requester); | 47 VariantsResourceApi get variants => new VariantsResourceApi(_requester); |
| 44 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); | 48 VariantsetsResourceApi get variantsets => new VariantsetsResourceApi(_requeste
r); |
| 45 | 49 |
| 46 GenomicsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "genomics/v1beta2/"}) : | 50 GenomicsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.
com/", core.String servicePath: "genomics/v1beta2/"}) : |
| 47 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 51 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 48 } | 52 } |
| 49 | 53 |
| 50 | 54 |
| 51 /** Not documented yet. */ | |
| 52 class AnnotationSetsResourceApi { | 55 class AnnotationSetsResourceApi { |
| 53 final common_internal.ApiRequester _requester; | 56 final commons.ApiRequester _requester; |
| 54 | 57 |
| 55 AnnotationSetsResourceApi(common_internal.ApiRequester client) : | 58 AnnotationSetsResourceApi(commons.ApiRequester client) : |
| 56 _requester = client; | 59 _requester = client; |
| 57 | 60 |
| 58 /** | 61 /** |
| 59 * Creates a new annotation set. Caller must have WRITE permission for the | 62 * Creates a new annotation set. Caller must have WRITE permission for the |
| 60 * associated dataset. | 63 * associated dataset. |
| 61 * | 64 * |
| 62 * [request] - The metadata request object. | 65 * [request] - The metadata request object. |
| 63 * | 66 * |
| 64 * Request parameters: | 67 * Request parameters: |
| 65 * | 68 * |
| 66 * Completes with a [AnnotationSet]. | 69 * Completes with a [AnnotationSet]. |
| 67 * | 70 * |
| 68 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 71 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 69 * error. | 72 * error. |
| 70 * | 73 * |
| 71 * If the used [http.Client] completes with an error when making a REST call, | 74 * If the used [http.Client] completes with an error when making a REST call, |
| 72 * this method will complete with the same error. | 75 * this method will complete with the same error. |
| 73 */ | 76 */ |
| 74 async.Future<AnnotationSet> create(AnnotationSet request) { | 77 async.Future<AnnotationSet> create(AnnotationSet request) { |
| 75 var _url = null; | 78 var _url = null; |
| 76 var _queryParams = new core.Map(); | 79 var _queryParams = new core.Map(); |
| 77 var _uploadMedia = null; | 80 var _uploadMedia = null; |
| 78 var _uploadOptions = null; | 81 var _uploadOptions = null; |
| 79 var _downloadOptions = common.DownloadOptions.Metadata; | 82 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 80 var _body = null; | 83 var _body = null; |
| 81 | 84 |
| 82 if (request != null) { | 85 if (request != null) { |
| 83 _body = convert.JSON.encode((request).toJson()); | 86 _body = convert.JSON.encode((request).toJson()); |
| 84 } | 87 } |
| 85 | 88 |
| 86 | 89 |
| 87 _url = 'annotationSets'; | 90 _url = 'annotationSets'; |
| 88 | 91 |
| 89 var _response = _requester.request(_url, | 92 var _response = _requester.request(_url, |
| 90 "POST", | 93 "POST", |
| 91 body: _body, | 94 body: _body, |
| 92 queryParams: _queryParams, | 95 queryParams: _queryParams, |
| 93 uploadOptions: _uploadOptions, | 96 uploadOptions: _uploadOptions, |
| 94 uploadMedia: _uploadMedia, | 97 uploadMedia: _uploadMedia, |
| 95 downloadOptions: _downloadOptions); | 98 downloadOptions: _downloadOptions); |
| 96 return _response.then((data) => new AnnotationSet.fromJson(data)); | 99 return _response.then((data) => new AnnotationSet.fromJson(data)); |
| 97 } | 100 } |
| 98 | 101 |
| 99 /** | 102 /** |
| 100 * Deletes an annotation set. Caller must have WRITE permission for the | 103 * Deletes an annotation set. Caller must have WRITE permission for the |
| 101 * associated annotation set. | 104 * associated annotation set. |
| 102 * | 105 * |
| 103 * Request parameters: | 106 * Request parameters: |
| 104 * | 107 * |
| 105 * [annotationSetId] - The ID of the annotation set to be deleted. | 108 * [annotationSetId] - The ID of the annotation set to be deleted. |
| 106 * | 109 * |
| 107 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 110 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 108 * error. | 111 * error. |
| 109 * | 112 * |
| 110 * If the used [http.Client] completes with an error when making a REST call, | 113 * If the used [http.Client] completes with an error when making a REST call, |
| 111 * this method will complete with the same error. | 114 * this method will complete with the same error. |
| 112 */ | 115 */ |
| 113 async.Future delete(core.String annotationSetId) { | 116 async.Future delete(core.String annotationSetId) { |
| 114 var _url = null; | 117 var _url = null; |
| 115 var _queryParams = new core.Map(); | 118 var _queryParams = new core.Map(); |
| 116 var _uploadMedia = null; | 119 var _uploadMedia = null; |
| 117 var _uploadOptions = null; | 120 var _uploadOptions = null; |
| 118 var _downloadOptions = common.DownloadOptions.Metadata; | 121 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 119 var _body = null; | 122 var _body = null; |
| 120 | 123 |
| 121 if (annotationSetId == null) { | 124 if (annotationSetId == null) { |
| 122 throw new core.ArgumentError("Parameter annotationSetId is required."); | 125 throw new core.ArgumentError("Parameter annotationSetId is required."); |
| 123 } | 126 } |
| 124 | 127 |
| 125 _downloadOptions = null; | 128 _downloadOptions = null; |
| 126 | 129 |
| 127 _url = 'annotationSets/' + common_internal.Escaper.ecapeVariable('$annotatio
nSetId'); | 130 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; |
| 128 | 131 |
| 129 var _response = _requester.request(_url, | 132 var _response = _requester.request(_url, |
| 130 "DELETE", | 133 "DELETE", |
| 131 body: _body, | 134 body: _body, |
| 132 queryParams: _queryParams, | 135 queryParams: _queryParams, |
| 133 uploadOptions: _uploadOptions, | 136 uploadOptions: _uploadOptions, |
| 134 uploadMedia: _uploadMedia, | 137 uploadMedia: _uploadMedia, |
| 135 downloadOptions: _downloadOptions); | 138 downloadOptions: _downloadOptions); |
| 136 return _response.then((data) => null); | 139 return _response.then((data) => null); |
| 137 } | 140 } |
| 138 | 141 |
| 139 /** | 142 /** |
| 140 * Gets an annotation set. Caller must have READ permission for the associated | 143 * Gets an annotation set. Caller must have READ permission for the associated |
| 141 * dataset. | 144 * dataset. |
| 142 * | 145 * |
| 143 * Request parameters: | 146 * Request parameters: |
| 144 * | 147 * |
| 145 * [annotationSetId] - The ID of the annotation set to be retrieved. | 148 * [annotationSetId] - The ID of the annotation set to be retrieved. |
| 146 * | 149 * |
| 147 * Completes with a [AnnotationSet]. | 150 * Completes with a [AnnotationSet]. |
| 148 * | 151 * |
| 149 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 152 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 150 * error. | 153 * error. |
| 151 * | 154 * |
| 152 * If the used [http.Client] completes with an error when making a REST call, | 155 * If the used [http.Client] completes with an error when making a REST call, |
| 153 * this method will complete with the same error. | 156 * this method will complete with the same error. |
| 154 */ | 157 */ |
| 155 async.Future<AnnotationSet> get(core.String annotationSetId) { | 158 async.Future<AnnotationSet> get(core.String annotationSetId) { |
| 156 var _url = null; | 159 var _url = null; |
| 157 var _queryParams = new core.Map(); | 160 var _queryParams = new core.Map(); |
| 158 var _uploadMedia = null; | 161 var _uploadMedia = null; |
| 159 var _uploadOptions = null; | 162 var _uploadOptions = null; |
| 160 var _downloadOptions = common.DownloadOptions.Metadata; | 163 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 161 var _body = null; | 164 var _body = null; |
| 162 | 165 |
| 163 if (annotationSetId == null) { | 166 if (annotationSetId == null) { |
| 164 throw new core.ArgumentError("Parameter annotationSetId is required."); | 167 throw new core.ArgumentError("Parameter annotationSetId is required."); |
| 165 } | 168 } |
| 166 | 169 |
| 167 | 170 |
| 168 _url = 'annotationSets/' + common_internal.Escaper.ecapeVariable('$annotatio
nSetId'); | 171 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; |
| 169 | 172 |
| 170 var _response = _requester.request(_url, | 173 var _response = _requester.request(_url, |
| 171 "GET", | 174 "GET", |
| 172 body: _body, | 175 body: _body, |
| 173 queryParams: _queryParams, | 176 queryParams: _queryParams, |
| 174 uploadOptions: _uploadOptions, | 177 uploadOptions: _uploadOptions, |
| 175 uploadMedia: _uploadMedia, | 178 uploadMedia: _uploadMedia, |
| 176 downloadOptions: _downloadOptions); | 179 downloadOptions: _downloadOptions); |
| 177 return _response.then((data) => new AnnotationSet.fromJson(data)); | 180 return _response.then((data) => new AnnotationSet.fromJson(data)); |
| 178 } | 181 } |
| 179 | 182 |
| 180 /** | 183 /** |
| 181 * Updates an annotation set. The update must respect all mutability | 184 * Updates an annotation set. The update must respect all mutability |
| 182 * restrictions and other invariants described on the annotation set resource. | 185 * restrictions and other invariants described on the annotation set resource. |
| 183 * Caller must have WRITE permission for the associated dataset. This method | 186 * Caller must have WRITE permission for the associated dataset. This method |
| 184 * supports patch semantics. | 187 * supports patch semantics. |
| 185 * | 188 * |
| 186 * [request] - The metadata request object. | 189 * [request] - The metadata request object. |
| 187 * | 190 * |
| 188 * Request parameters: | 191 * Request parameters: |
| 189 * | 192 * |
| 190 * [annotationSetId] - The ID of the annotation set to be updated. | 193 * [annotationSetId] - The ID of the annotation set to be updated. |
| 191 * | 194 * |
| 192 * Completes with a [AnnotationSet]. | 195 * Completes with a [AnnotationSet]. |
| 193 * | 196 * |
| 194 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 195 * error. | 198 * error. |
| 196 * | 199 * |
| 197 * If the used [http.Client] completes with an error when making a REST call, | 200 * If the used [http.Client] completes with an error when making a REST call, |
| 198 * this method will complete with the same error. | 201 * this method will complete with the same error. |
| 199 */ | 202 */ |
| 200 async.Future<AnnotationSet> patch(AnnotationSet request, core.String annotatio
nSetId) { | 203 async.Future<AnnotationSet> patch(AnnotationSet request, core.String annotatio
nSetId) { |
| 201 var _url = null; | 204 var _url = null; |
| 202 var _queryParams = new core.Map(); | 205 var _queryParams = new core.Map(); |
| 203 var _uploadMedia = null; | 206 var _uploadMedia = null; |
| 204 var _uploadOptions = null; | 207 var _uploadOptions = null; |
| 205 var _downloadOptions = common.DownloadOptions.Metadata; | 208 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 206 var _body = null; | 209 var _body = null; |
| 207 | 210 |
| 208 if (request != null) { | 211 if (request != null) { |
| 209 _body = convert.JSON.encode((request).toJson()); | 212 _body = convert.JSON.encode((request).toJson()); |
| 210 } | 213 } |
| 211 if (annotationSetId == null) { | 214 if (annotationSetId == null) { |
| 212 throw new core.ArgumentError("Parameter annotationSetId is required."); | 215 throw new core.ArgumentError("Parameter annotationSetId is required."); |
| 213 } | 216 } |
| 214 | 217 |
| 215 | 218 |
| 216 _url = 'annotationSets/' + common_internal.Escaper.ecapeVariable('$annotatio
nSetId'); | 219 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; |
| 217 | 220 |
| 218 var _response = _requester.request(_url, | 221 var _response = _requester.request(_url, |
| 219 "PATCH", | 222 "PATCH", |
| 220 body: _body, | 223 body: _body, |
| 221 queryParams: _queryParams, | 224 queryParams: _queryParams, |
| 222 uploadOptions: _uploadOptions, | 225 uploadOptions: _uploadOptions, |
| 223 uploadMedia: _uploadMedia, | 226 uploadMedia: _uploadMedia, |
| 224 downloadOptions: _downloadOptions); | 227 downloadOptions: _downloadOptions); |
| 225 return _response.then((data) => new AnnotationSet.fromJson(data)); | 228 return _response.then((data) => new AnnotationSet.fromJson(data)); |
| 226 } | 229 } |
| 227 | 230 |
| 228 /** | 231 /** |
| 229 * Searches for annotation sets which match the given criteria. Results are | 232 * Searches for annotation sets that match the given criteria. Results are |
| 230 * returned in a deterministic order. Caller must have READ permission for the | 233 * returned in a deterministic order. Caller must have READ permission for the |
| 231 * queried datasets. | 234 * queried datasets. |
| 232 * | 235 * |
| 233 * [request] - The metadata request object. | 236 * [request] - The metadata request object. |
| 234 * | 237 * |
| 235 * Request parameters: | 238 * Request parameters: |
| 236 * | 239 * |
| 237 * Completes with a [SearchAnnotationSetsResponse]. | 240 * Completes with a [SearchAnnotationSetsResponse]. |
| 238 * | 241 * |
| 239 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 242 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 240 * error. | 243 * error. |
| 241 * | 244 * |
| 242 * If the used [http.Client] completes with an error when making a REST call, | 245 * If the used [http.Client] completes with an error when making a REST call, |
| 243 * this method will complete with the same error. | 246 * this method will complete with the same error. |
| 244 */ | 247 */ |
| 245 async.Future<SearchAnnotationSetsResponse> search(SearchAnnotationSetsRequest
request) { | 248 async.Future<SearchAnnotationSetsResponse> search(SearchAnnotationSetsRequest
request) { |
| 246 var _url = null; | 249 var _url = null; |
| 247 var _queryParams = new core.Map(); | 250 var _queryParams = new core.Map(); |
| 248 var _uploadMedia = null; | 251 var _uploadMedia = null; |
| 249 var _uploadOptions = null; | 252 var _uploadOptions = null; |
| 250 var _downloadOptions = common.DownloadOptions.Metadata; | 253 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 251 var _body = null; | 254 var _body = null; |
| 252 | 255 |
| 253 if (request != null) { | 256 if (request != null) { |
| 254 _body = convert.JSON.encode((request).toJson()); | 257 _body = convert.JSON.encode((request).toJson()); |
| 255 } | 258 } |
| 256 | 259 |
| 257 | 260 |
| 258 _url = 'annotationSets/search'; | 261 _url = 'annotationSets/search'; |
| 259 | 262 |
| 260 var _response = _requester.request(_url, | 263 var _response = _requester.request(_url, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 273 * Caller must have WRITE permission for the associated dataset. | 276 * Caller must have WRITE permission for the associated dataset. |
| 274 * | 277 * |
| 275 * [request] - The metadata request object. | 278 * [request] - The metadata request object. |
| 276 * | 279 * |
| 277 * Request parameters: | 280 * Request parameters: |
| 278 * | 281 * |
| 279 * [annotationSetId] - The ID of the annotation set to be updated. | 282 * [annotationSetId] - The ID of the annotation set to be updated. |
| 280 * | 283 * |
| 281 * Completes with a [AnnotationSet]. | 284 * Completes with a [AnnotationSet]. |
| 282 * | 285 * |
| 283 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 286 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 284 * error. | 287 * error. |
| 285 * | 288 * |
| 286 * If the used [http.Client] completes with an error when making a REST call, | 289 * If the used [http.Client] completes with an error when making a REST call, |
| 287 * this method will complete with the same error. | 290 * this method will complete with the same error. |
| 288 */ | 291 */ |
| 289 async.Future<AnnotationSet> update(AnnotationSet request, core.String annotati
onSetId) { | 292 async.Future<AnnotationSet> update(AnnotationSet request, core.String annotati
onSetId) { |
| 290 var _url = null; | 293 var _url = null; |
| 291 var _queryParams = new core.Map(); | 294 var _queryParams = new core.Map(); |
| 292 var _uploadMedia = null; | 295 var _uploadMedia = null; |
| 293 var _uploadOptions = null; | 296 var _uploadOptions = null; |
| 294 var _downloadOptions = common.DownloadOptions.Metadata; | 297 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 295 var _body = null; | 298 var _body = null; |
| 296 | 299 |
| 297 if (request != null) { | 300 if (request != null) { |
| 298 _body = convert.JSON.encode((request).toJson()); | 301 _body = convert.JSON.encode((request).toJson()); |
| 299 } | 302 } |
| 300 if (annotationSetId == null) { | 303 if (annotationSetId == null) { |
| 301 throw new core.ArgumentError("Parameter annotationSetId is required."); | 304 throw new core.ArgumentError("Parameter annotationSetId is required."); |
| 302 } | 305 } |
| 303 | 306 |
| 304 | 307 |
| 305 _url = 'annotationSets/' + common_internal.Escaper.ecapeVariable('$annotatio
nSetId'); | 308 _url = 'annotationSets/' + commons.Escaper.ecapeVariable('$annotationSetId')
; |
| 306 | 309 |
| 307 var _response = _requester.request(_url, | 310 var _response = _requester.request(_url, |
| 308 "PUT", | 311 "PUT", |
| 309 body: _body, | 312 body: _body, |
| 310 queryParams: _queryParams, | 313 queryParams: _queryParams, |
| 311 uploadOptions: _uploadOptions, | 314 uploadOptions: _uploadOptions, |
| 312 uploadMedia: _uploadMedia, | 315 uploadMedia: _uploadMedia, |
| 313 downloadOptions: _downloadOptions); | 316 downloadOptions: _downloadOptions); |
| 314 return _response.then((data) => new AnnotationSet.fromJson(data)); | 317 return _response.then((data) => new AnnotationSet.fromJson(data)); |
| 315 } | 318 } |
| 316 | 319 |
| 317 } | 320 } |
| 318 | 321 |
| 319 | 322 |
| 320 /** Not documented yet. */ | |
| 321 class AnnotationsResourceApi { | 323 class AnnotationsResourceApi { |
| 322 final common_internal.ApiRequester _requester; | 324 final commons.ApiRequester _requester; |
| 323 | 325 |
| 324 AnnotationsResourceApi(common_internal.ApiRequester client) : | 326 AnnotationsResourceApi(commons.ApiRequester client) : |
| 325 _requester = client; | 327 _requester = client; |
| 326 | 328 |
| 327 /** | 329 /** |
| 328 * Creates one or more new annotations atomically. All annotations must belong | 330 * Creates one or more new annotations atomically. All annotations must belong |
| 329 * to the same annotation set. Caller must have WRITE permission for this | 331 * to the same annotation set. Caller must have WRITE permission for this |
| 330 * annotation set. For optimal performance, batch positionally adjacent | 332 * annotation set. For optimal performance, batch positionally adjacent |
| 331 * annotations together. | 333 * annotations together. |
| 332 * | 334 * |
| 333 * | 335 * |
| 334 * If the request has a systemic issue, such as an attempt to write to an | 336 * If the request has a systemic issue, such as an attempt to write to an |
| 335 * inaccessible annotation set, the entire RPC will fail accordingly. For | 337 * inaccessible annotation set, the entire RPC will fail accordingly. For |
| 336 * lesser data issues, when possible an error will be isolated to the | 338 * lesser data issues, when possible an error will be isolated to the |
| 337 * corresponding batch entry in the response; the remaining well formed | 339 * corresponding batch entry in the response; the remaining well formed |
| 338 * annotations will be created normally. | 340 * annotations will be created normally. |
| 339 * | 341 * |
| 340 * [request] - The metadata request object. | 342 * [request] - The metadata request object. |
| 341 * | 343 * |
| 342 * Request parameters: | 344 * Request parameters: |
| 343 * | 345 * |
| 344 * Completes with a [BatchAnnotationsResponse]. | 346 * Completes with a [BatchAnnotationsResponse]. |
| 345 * | 347 * |
| 346 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 348 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 347 * error. | 349 * error. |
| 348 * | 350 * |
| 349 * If the used [http.Client] completes with an error when making a REST call, | 351 * If the used [http.Client] completes with an error when making a REST call, |
| 350 * this method will complete with the same error. | 352 * this method will complete with the same error. |
| 351 */ | 353 */ |
| 352 async.Future<BatchAnnotationsResponse> batchCreate(BatchCreateAnnotationsReque
st request) { | 354 async.Future<BatchAnnotationsResponse> batchCreate(BatchCreateAnnotationsReque
st request) { |
| 353 var _url = null; | 355 var _url = null; |
| 354 var _queryParams = new core.Map(); | 356 var _queryParams = new core.Map(); |
| 355 var _uploadMedia = null; | 357 var _uploadMedia = null; |
| 356 var _uploadOptions = null; | 358 var _uploadOptions = null; |
| 357 var _downloadOptions = common.DownloadOptions.Metadata; | 359 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 358 var _body = null; | 360 var _body = null; |
| 359 | 361 |
| 360 if (request != null) { | 362 if (request != null) { |
| 361 _body = convert.JSON.encode((request).toJson()); | 363 _body = convert.JSON.encode((request).toJson()); |
| 362 } | 364 } |
| 363 | 365 |
| 364 | 366 |
| 365 _url = 'annotations:batchCreate'; | 367 _url = 'annotations:batchCreate'; |
| 366 | 368 |
| 367 var _response = _requester.request(_url, | 369 var _response = _requester.request(_url, |
| 368 "POST", | 370 "POST", |
| 369 body: _body, | 371 body: _body, |
| 370 queryParams: _queryParams, | 372 queryParams: _queryParams, |
| 371 uploadOptions: _uploadOptions, | 373 uploadOptions: _uploadOptions, |
| 372 uploadMedia: _uploadMedia, | 374 uploadMedia: _uploadMedia, |
| 373 downloadOptions: _downloadOptions); | 375 downloadOptions: _downloadOptions); |
| 374 return _response.then((data) => new BatchAnnotationsResponse.fromJson(data))
; | 376 return _response.then((data) => new BatchAnnotationsResponse.fromJson(data))
; |
| 375 } | 377 } |
| 376 | 378 |
| 377 /** | 379 /** |
| 378 * Creates a new annotation. Caller must have WRITE permission for the | 380 * Creates a new annotation. Caller must have WRITE permission for the |
| 379 * associated annotation set. | 381 * associated annotation set. |
| 380 * | 382 * |
| 381 * [request] - The metadata request object. | 383 * [request] - The metadata request object. |
| 382 * | 384 * |
| 383 * Request parameters: | 385 * Request parameters: |
| 384 * | 386 * |
| 385 * Completes with a [Annotation]. | 387 * Completes with a [Annotation]. |
| 386 * | 388 * |
| 387 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 389 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 388 * error. | 390 * error. |
| 389 * | 391 * |
| 390 * If the used [http.Client] completes with an error when making a REST call, | 392 * If the used [http.Client] completes with an error when making a REST call, |
| 391 * this method will complete with the same error. | 393 * this method will complete with the same error. |
| 392 */ | 394 */ |
| 393 async.Future<Annotation> create(Annotation request) { | 395 async.Future<Annotation> create(Annotation request) { |
| 394 var _url = null; | 396 var _url = null; |
| 395 var _queryParams = new core.Map(); | 397 var _queryParams = new core.Map(); |
| 396 var _uploadMedia = null; | 398 var _uploadMedia = null; |
| 397 var _uploadOptions = null; | 399 var _uploadOptions = null; |
| 398 var _downloadOptions = common.DownloadOptions.Metadata; | 400 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 399 var _body = null; | 401 var _body = null; |
| 400 | 402 |
| 401 if (request != null) { | 403 if (request != null) { |
| 402 _body = convert.JSON.encode((request).toJson()); | 404 _body = convert.JSON.encode((request).toJson()); |
| 403 } | 405 } |
| 404 | 406 |
| 405 | 407 |
| 406 _url = 'annotations'; | 408 _url = 'annotations'; |
| 407 | 409 |
| 408 var _response = _requester.request(_url, | 410 var _response = _requester.request(_url, |
| 409 "POST", | 411 "POST", |
| 410 body: _body, | 412 body: _body, |
| 411 queryParams: _queryParams, | 413 queryParams: _queryParams, |
| 412 uploadOptions: _uploadOptions, | 414 uploadOptions: _uploadOptions, |
| 413 uploadMedia: _uploadMedia, | 415 uploadMedia: _uploadMedia, |
| 414 downloadOptions: _downloadOptions); | 416 downloadOptions: _downloadOptions); |
| 415 return _response.then((data) => new Annotation.fromJson(data)); | 417 return _response.then((data) => new Annotation.fromJson(data)); |
| 416 } | 418 } |
| 417 | 419 |
| 418 /** | 420 /** |
| 419 * Deletes an annotation. Caller must have WRITE permission for the associated | 421 * Deletes an annotation. Caller must have WRITE permission for the associated |
| 420 * annotation set. | 422 * annotation set. |
| 421 * | 423 * |
| 422 * Request parameters: | 424 * Request parameters: |
| 423 * | 425 * |
| 424 * [annotationId] - The ID of the annotation set to be deleted. | 426 * [annotationId] - The ID of the annotation set to be deleted. |
| 425 * | 427 * |
| 426 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 428 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 427 * error. | 429 * error. |
| 428 * | 430 * |
| 429 * If the used [http.Client] completes with an error when making a REST call, | 431 * If the used [http.Client] completes with an error when making a REST call, |
| 430 * this method will complete with the same error. | 432 * this method will complete with the same error. |
| 431 */ | 433 */ |
| 432 async.Future delete(core.String annotationId) { | 434 async.Future delete(core.String annotationId) { |
| 433 var _url = null; | 435 var _url = null; |
| 434 var _queryParams = new core.Map(); | 436 var _queryParams = new core.Map(); |
| 435 var _uploadMedia = null; | 437 var _uploadMedia = null; |
| 436 var _uploadOptions = null; | 438 var _uploadOptions = null; |
| 437 var _downloadOptions = common.DownloadOptions.Metadata; | 439 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 438 var _body = null; | 440 var _body = null; |
| 439 | 441 |
| 440 if (annotationId == null) { | 442 if (annotationId == null) { |
| 441 throw new core.ArgumentError("Parameter annotationId is required."); | 443 throw new core.ArgumentError("Parameter annotationId is required."); |
| 442 } | 444 } |
| 443 | 445 |
| 444 _downloadOptions = null; | 446 _downloadOptions = null; |
| 445 | 447 |
| 446 _url = 'annotations/' + common_internal.Escaper.ecapeVariable('$annotationId
'); | 448 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); |
| 447 | 449 |
| 448 var _response = _requester.request(_url, | 450 var _response = _requester.request(_url, |
| 449 "DELETE", | 451 "DELETE", |
| 450 body: _body, | 452 body: _body, |
| 451 queryParams: _queryParams, | 453 queryParams: _queryParams, |
| 452 uploadOptions: _uploadOptions, | 454 uploadOptions: _uploadOptions, |
| 453 uploadMedia: _uploadMedia, | 455 uploadMedia: _uploadMedia, |
| 454 downloadOptions: _downloadOptions); | 456 downloadOptions: _downloadOptions); |
| 455 return _response.then((data) => null); | 457 return _response.then((data) => null); |
| 456 } | 458 } |
| 457 | 459 |
| 458 /** | 460 /** |
| 459 * Gets an annotation. Caller must have READ permission for the associated | 461 * Gets an annotation. Caller must have READ permission for the associated |
| 460 * annotation set. | 462 * annotation set. |
| 461 * | 463 * |
| 462 * Request parameters: | 464 * Request parameters: |
| 463 * | 465 * |
| 464 * [annotationId] - The ID of the annotation set to be retrieved. | 466 * [annotationId] - The ID of the annotation set to be retrieved. |
| 465 * | 467 * |
| 466 * Completes with a [Annotation]. | 468 * Completes with a [Annotation]. |
| 467 * | 469 * |
| 468 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 470 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 469 * error. | 471 * error. |
| 470 * | 472 * |
| 471 * If the used [http.Client] completes with an error when making a REST call, | 473 * If the used [http.Client] completes with an error when making a REST call, |
| 472 * this method will complete with the same error. | 474 * this method will complete with the same error. |
| 473 */ | 475 */ |
| 474 async.Future<Annotation> get(core.String annotationId) { | 476 async.Future<Annotation> get(core.String annotationId) { |
| 475 var _url = null; | 477 var _url = null; |
| 476 var _queryParams = new core.Map(); | 478 var _queryParams = new core.Map(); |
| 477 var _uploadMedia = null; | 479 var _uploadMedia = null; |
| 478 var _uploadOptions = null; | 480 var _uploadOptions = null; |
| 479 var _downloadOptions = common.DownloadOptions.Metadata; | 481 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 480 var _body = null; | 482 var _body = null; |
| 481 | 483 |
| 482 if (annotationId == null) { | 484 if (annotationId == null) { |
| 483 throw new core.ArgumentError("Parameter annotationId is required."); | 485 throw new core.ArgumentError("Parameter annotationId is required."); |
| 484 } | 486 } |
| 485 | 487 |
| 486 | 488 |
| 487 _url = 'annotations/' + common_internal.Escaper.ecapeVariable('$annotationId
'); | 489 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); |
| 488 | 490 |
| 489 var _response = _requester.request(_url, | 491 var _response = _requester.request(_url, |
| 490 "GET", | 492 "GET", |
| 491 body: _body, | 493 body: _body, |
| 492 queryParams: _queryParams, | 494 queryParams: _queryParams, |
| 493 uploadOptions: _uploadOptions, | 495 uploadOptions: _uploadOptions, |
| 494 uploadMedia: _uploadMedia, | 496 uploadMedia: _uploadMedia, |
| 495 downloadOptions: _downloadOptions); | 497 downloadOptions: _downloadOptions); |
| 496 return _response.then((data) => new Annotation.fromJson(data)); | 498 return _response.then((data) => new Annotation.fromJson(data)); |
| 497 } | 499 } |
| 498 | 500 |
| 499 /** | 501 /** |
| 500 * Updates an annotation. The update must respect all mutability restrictions | 502 * Updates an annotation. The update must respect all mutability restrictions |
| 501 * and other invariants described on the annotation resource. Caller must have | 503 * and other invariants described on the annotation resource. Caller must have |
| 502 * WRITE permission for the associated dataset. This method supports patch | 504 * WRITE permission for the associated dataset. This method supports patch |
| 503 * semantics. | 505 * semantics. |
| 504 * | 506 * |
| 505 * [request] - The metadata request object. | 507 * [request] - The metadata request object. |
| 506 * | 508 * |
| 507 * Request parameters: | 509 * Request parameters: |
| 508 * | 510 * |
| 509 * [annotationId] - The ID of the annotation set to be updated. | 511 * [annotationId] - The ID of the annotation set to be updated. |
| 510 * | 512 * |
| 511 * Completes with a [Annotation]. | 513 * Completes with a [Annotation]. |
| 512 * | 514 * |
| 513 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 515 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 514 * error. | 516 * error. |
| 515 * | 517 * |
| 516 * If the used [http.Client] completes with an error when making a REST call, | 518 * If the used [http.Client] completes with an error when making a REST call, |
| 517 * this method will complete with the same error. | 519 * this method will complete with the same error. |
| 518 */ | 520 */ |
| 519 async.Future<Annotation> patch(Annotation request, core.String annotationId) { | 521 async.Future<Annotation> patch(Annotation request, core.String annotationId) { |
| 520 var _url = null; | 522 var _url = null; |
| 521 var _queryParams = new core.Map(); | 523 var _queryParams = new core.Map(); |
| 522 var _uploadMedia = null; | 524 var _uploadMedia = null; |
| 523 var _uploadOptions = null; | 525 var _uploadOptions = null; |
| 524 var _downloadOptions = common.DownloadOptions.Metadata; | 526 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 525 var _body = null; | 527 var _body = null; |
| 526 | 528 |
| 527 if (request != null) { | 529 if (request != null) { |
| 528 _body = convert.JSON.encode((request).toJson()); | 530 _body = convert.JSON.encode((request).toJson()); |
| 529 } | 531 } |
| 530 if (annotationId == null) { | 532 if (annotationId == null) { |
| 531 throw new core.ArgumentError("Parameter annotationId is required."); | 533 throw new core.ArgumentError("Parameter annotationId is required."); |
| 532 } | 534 } |
| 533 | 535 |
| 534 | 536 |
| 535 _url = 'annotations/' + common_internal.Escaper.ecapeVariable('$annotationId
'); | 537 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); |
| 536 | 538 |
| 537 var _response = _requester.request(_url, | 539 var _response = _requester.request(_url, |
| 538 "PATCH", | 540 "PATCH", |
| 539 body: _body, | 541 body: _body, |
| 540 queryParams: _queryParams, | 542 queryParams: _queryParams, |
| 541 uploadOptions: _uploadOptions, | 543 uploadOptions: _uploadOptions, |
| 542 uploadMedia: _uploadMedia, | 544 uploadMedia: _uploadMedia, |
| 543 downloadOptions: _downloadOptions); | 545 downloadOptions: _downloadOptions); |
| 544 return _response.then((data) => new Annotation.fromJson(data)); | 546 return _response.then((data) => new Annotation.fromJson(data)); |
| 545 } | 547 } |
| 546 | 548 |
| 547 /** | 549 /** |
| 548 * Searches for annotations which match the given criteria. Results are | 550 * Searches for annotations that match the given criteria. Results are |
| 549 * returned ordered by start position. Annotations which have matching start | 551 * returned ordered by start position. Annotations that have matching start |
| 550 * positions are ordered deterministically. Caller must have READ permission | 552 * positions are ordered deterministically. Caller must have READ permission |
| 551 * for the queried annotation sets. | 553 * for the queried annotation sets. |
| 552 * | 554 * |
| 553 * [request] - The metadata request object. | 555 * [request] - The metadata request object. |
| 554 * | 556 * |
| 555 * Request parameters: | 557 * Request parameters: |
| 556 * | 558 * |
| 557 * Completes with a [SearchAnnotationsResponse]. | 559 * Completes with a [SearchAnnotationsResponse]. |
| 558 * | 560 * |
| 559 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 561 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 560 * error. | 562 * error. |
| 561 * | 563 * |
| 562 * If the used [http.Client] completes with an error when making a REST call, | 564 * If the used [http.Client] completes with an error when making a REST call, |
| 563 * this method will complete with the same error. | 565 * this method will complete with the same error. |
| 564 */ | 566 */ |
| 565 async.Future<SearchAnnotationsResponse> search(SearchAnnotationsRequest reques
t) { | 567 async.Future<SearchAnnotationsResponse> search(SearchAnnotationsRequest reques
t) { |
| 566 var _url = null; | 568 var _url = null; |
| 567 var _queryParams = new core.Map(); | 569 var _queryParams = new core.Map(); |
| 568 var _uploadMedia = null; | 570 var _uploadMedia = null; |
| 569 var _uploadOptions = null; | 571 var _uploadOptions = null; |
| 570 var _downloadOptions = common.DownloadOptions.Metadata; | 572 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 571 var _body = null; | 573 var _body = null; |
| 572 | 574 |
| 573 if (request != null) { | 575 if (request != null) { |
| 574 _body = convert.JSON.encode((request).toJson()); | 576 _body = convert.JSON.encode((request).toJson()); |
| 575 } | 577 } |
| 576 | 578 |
| 577 | 579 |
| 578 _url = 'annotations/search'; | 580 _url = 'annotations/search'; |
| 579 | 581 |
| 580 var _response = _requester.request(_url, | 582 var _response = _requester.request(_url, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 593 * WRITE permission for the associated dataset. | 595 * WRITE permission for the associated dataset. |
| 594 * | 596 * |
| 595 * [request] - The metadata request object. | 597 * [request] - The metadata request object. |
| 596 * | 598 * |
| 597 * Request parameters: | 599 * Request parameters: |
| 598 * | 600 * |
| 599 * [annotationId] - The ID of the annotation set to be updated. | 601 * [annotationId] - The ID of the annotation set to be updated. |
| 600 * | 602 * |
| 601 * Completes with a [Annotation]. | 603 * Completes with a [Annotation]. |
| 602 * | 604 * |
| 603 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 605 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 604 * error. | 606 * error. |
| 605 * | 607 * |
| 606 * If the used [http.Client] completes with an error when making a REST call, | 608 * If the used [http.Client] completes with an error when making a REST call, |
| 607 * this method will complete with the same error. | 609 * this method will complete with the same error. |
| 608 */ | 610 */ |
| 609 async.Future<Annotation> update(Annotation request, core.String annotationId)
{ | 611 async.Future<Annotation> update(Annotation request, core.String annotationId)
{ |
| 610 var _url = null; | 612 var _url = null; |
| 611 var _queryParams = new core.Map(); | 613 var _queryParams = new core.Map(); |
| 612 var _uploadMedia = null; | 614 var _uploadMedia = null; |
| 613 var _uploadOptions = null; | 615 var _uploadOptions = null; |
| 614 var _downloadOptions = common.DownloadOptions.Metadata; | 616 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 615 var _body = null; | 617 var _body = null; |
| 616 | 618 |
| 617 if (request != null) { | 619 if (request != null) { |
| 618 _body = convert.JSON.encode((request).toJson()); | 620 _body = convert.JSON.encode((request).toJson()); |
| 619 } | 621 } |
| 620 if (annotationId == null) { | 622 if (annotationId == null) { |
| 621 throw new core.ArgumentError("Parameter annotationId is required."); | 623 throw new core.ArgumentError("Parameter annotationId is required."); |
| 622 } | 624 } |
| 623 | 625 |
| 624 | 626 |
| 625 _url = 'annotations/' + common_internal.Escaper.ecapeVariable('$annotationId
'); | 627 _url = 'annotations/' + commons.Escaper.ecapeVariable('$annotationId'); |
| 626 | 628 |
| 627 var _response = _requester.request(_url, | 629 var _response = _requester.request(_url, |
| 628 "PUT", | 630 "PUT", |
| 629 body: _body, | 631 body: _body, |
| 630 queryParams: _queryParams, | 632 queryParams: _queryParams, |
| 631 uploadOptions: _uploadOptions, | 633 uploadOptions: _uploadOptions, |
| 632 uploadMedia: _uploadMedia, | 634 uploadMedia: _uploadMedia, |
| 633 downloadOptions: _downloadOptions); | 635 downloadOptions: _downloadOptions); |
| 634 return _response.then((data) => new Annotation.fromJson(data)); | 636 return _response.then((data) => new Annotation.fromJson(data)); |
| 635 } | 637 } |
| 636 | 638 |
| 637 } | 639 } |
| 638 | 640 |
| 639 | 641 |
| 640 /** Not documented yet. */ | |
| 641 class CallsetsResourceApi { | 642 class CallsetsResourceApi { |
| 642 final common_internal.ApiRequester _requester; | 643 final commons.ApiRequester _requester; |
| 643 | 644 |
| 644 CallsetsResourceApi(common_internal.ApiRequester client) : | 645 CallsetsResourceApi(commons.ApiRequester client) : |
| 645 _requester = client; | 646 _requester = client; |
| 646 | 647 |
| 647 /** | 648 /** |
| 648 * Creates a new call set. | 649 * Creates a new call set. |
| 649 * | 650 * |
| 650 * [request] - The metadata request object. | 651 * [request] - The metadata request object. |
| 651 * | 652 * |
| 652 * Request parameters: | 653 * Request parameters: |
| 653 * | 654 * |
| 654 * Completes with a [CallSet]. | 655 * Completes with a [CallSet]. |
| 655 * | 656 * |
| 656 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 657 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 657 * error. | 658 * error. |
| 658 * | 659 * |
| 659 * If the used [http.Client] completes with an error when making a REST call, | 660 * If the used [http.Client] completes with an error when making a REST call, |
| 660 * this method will complete with the same error. | 661 * this method will complete with the same error. |
| 661 */ | 662 */ |
| 662 async.Future<CallSet> create(CallSet request) { | 663 async.Future<CallSet> create(CallSet request) { |
| 663 var _url = null; | 664 var _url = null; |
| 664 var _queryParams = new core.Map(); | 665 var _queryParams = new core.Map(); |
| 665 var _uploadMedia = null; | 666 var _uploadMedia = null; |
| 666 var _uploadOptions = null; | 667 var _uploadOptions = null; |
| 667 var _downloadOptions = common.DownloadOptions.Metadata; | 668 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 668 var _body = null; | 669 var _body = null; |
| 669 | 670 |
| 670 if (request != null) { | 671 if (request != null) { |
| 671 _body = convert.JSON.encode((request).toJson()); | 672 _body = convert.JSON.encode((request).toJson()); |
| 672 } | 673 } |
| 673 | 674 |
| 674 | 675 |
| 675 _url = 'callsets'; | 676 _url = 'callsets'; |
| 676 | 677 |
| 677 var _response = _requester.request(_url, | 678 var _response = _requester.request(_url, |
| 678 "POST", | 679 "POST", |
| 679 body: _body, | 680 body: _body, |
| 680 queryParams: _queryParams, | 681 queryParams: _queryParams, |
| 681 uploadOptions: _uploadOptions, | 682 uploadOptions: _uploadOptions, |
| 682 uploadMedia: _uploadMedia, | 683 uploadMedia: _uploadMedia, |
| 683 downloadOptions: _downloadOptions); | 684 downloadOptions: _downloadOptions); |
| 684 return _response.then((data) => new CallSet.fromJson(data)); | 685 return _response.then((data) => new CallSet.fromJson(data)); |
| 685 } | 686 } |
| 686 | 687 |
| 687 /** | 688 /** |
| 688 * Deletes a call set. | 689 * Deletes a call set. |
| 689 * | 690 * |
| 690 * Request parameters: | 691 * Request parameters: |
| 691 * | 692 * |
| 692 * [callSetId] - The ID of the call set to be deleted. | 693 * [callSetId] - The ID of the call set to be deleted. |
| 693 * | 694 * |
| 694 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 695 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 695 * error. | 696 * error. |
| 696 * | 697 * |
| 697 * If the used [http.Client] completes with an error when making a REST call, | 698 * If the used [http.Client] completes with an error when making a REST call, |
| 698 * this method will complete with the same error. | 699 * this method will complete with the same error. |
| 699 */ | 700 */ |
| 700 async.Future delete(core.String callSetId) { | 701 async.Future delete(core.String callSetId) { |
| 701 var _url = null; | 702 var _url = null; |
| 702 var _queryParams = new core.Map(); | 703 var _queryParams = new core.Map(); |
| 703 var _uploadMedia = null; | 704 var _uploadMedia = null; |
| 704 var _uploadOptions = null; | 705 var _uploadOptions = null; |
| 705 var _downloadOptions = common.DownloadOptions.Metadata; | 706 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 706 var _body = null; | 707 var _body = null; |
| 707 | 708 |
| 708 if (callSetId == null) { | 709 if (callSetId == null) { |
| 709 throw new core.ArgumentError("Parameter callSetId is required."); | 710 throw new core.ArgumentError("Parameter callSetId is required."); |
| 710 } | 711 } |
| 711 | 712 |
| 712 _downloadOptions = null; | 713 _downloadOptions = null; |
| 713 | 714 |
| 714 _url = 'callsets/' + common_internal.Escaper.ecapeVariable('$callSetId'); | 715 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); |
| 715 | 716 |
| 716 var _response = _requester.request(_url, | 717 var _response = _requester.request(_url, |
| 717 "DELETE", | 718 "DELETE", |
| 718 body: _body, | 719 body: _body, |
| 719 queryParams: _queryParams, | 720 queryParams: _queryParams, |
| 720 uploadOptions: _uploadOptions, | 721 uploadOptions: _uploadOptions, |
| 721 uploadMedia: _uploadMedia, | 722 uploadMedia: _uploadMedia, |
| 722 downloadOptions: _downloadOptions); | 723 downloadOptions: _downloadOptions); |
| 723 return _response.then((data) => null); | 724 return _response.then((data) => null); |
| 724 } | 725 } |
| 725 | 726 |
| 726 /** | 727 /** |
| 727 * Gets a call set by ID. | 728 * Gets a call set by ID. |
| 728 * | 729 * |
| 729 * Request parameters: | 730 * Request parameters: |
| 730 * | 731 * |
| 731 * [callSetId] - The ID of the call set. | 732 * [callSetId] - The ID of the call set. |
| 732 * | 733 * |
| 733 * Completes with a [CallSet]. | 734 * Completes with a [CallSet]. |
| 734 * | 735 * |
| 735 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 736 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 736 * error. | 737 * error. |
| 737 * | 738 * |
| 738 * If the used [http.Client] completes with an error when making a REST call, | 739 * If the used [http.Client] completes with an error when making a REST call, |
| 739 * this method will complete with the same error. | 740 * this method will complete with the same error. |
| 740 */ | 741 */ |
| 741 async.Future<CallSet> get(core.String callSetId) { | 742 async.Future<CallSet> get(core.String callSetId) { |
| 742 var _url = null; | 743 var _url = null; |
| 743 var _queryParams = new core.Map(); | 744 var _queryParams = new core.Map(); |
| 744 var _uploadMedia = null; | 745 var _uploadMedia = null; |
| 745 var _uploadOptions = null; | 746 var _uploadOptions = null; |
| 746 var _downloadOptions = common.DownloadOptions.Metadata; | 747 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 747 var _body = null; | 748 var _body = null; |
| 748 | 749 |
| 749 if (callSetId == null) { | 750 if (callSetId == null) { |
| 750 throw new core.ArgumentError("Parameter callSetId is required."); | 751 throw new core.ArgumentError("Parameter callSetId is required."); |
| 751 } | 752 } |
| 752 | 753 |
| 753 | 754 |
| 754 _url = 'callsets/' + common_internal.Escaper.ecapeVariable('$callSetId'); | 755 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); |
| 755 | 756 |
| 756 var _response = _requester.request(_url, | 757 var _response = _requester.request(_url, |
| 757 "GET", | 758 "GET", |
| 758 body: _body, | 759 body: _body, |
| 759 queryParams: _queryParams, | 760 queryParams: _queryParams, |
| 760 uploadOptions: _uploadOptions, | 761 uploadOptions: _uploadOptions, |
| 761 uploadMedia: _uploadMedia, | 762 uploadMedia: _uploadMedia, |
| 762 downloadOptions: _downloadOptions); | 763 downloadOptions: _downloadOptions); |
| 763 return _response.then((data) => new CallSet.fromJson(data)); | 764 return _response.then((data) => new CallSet.fromJson(data)); |
| 764 } | 765 } |
| 765 | 766 |
| 766 /** | 767 /** |
| 767 * Updates a call set. This method supports patch semantics. | 768 * Updates a call set. This method supports patch semantics. |
| 768 * | 769 * |
| 769 * [request] - The metadata request object. | 770 * [request] - The metadata request object. |
| 770 * | 771 * |
| 771 * Request parameters: | 772 * Request parameters: |
| 772 * | 773 * |
| 773 * [callSetId] - The ID of the call set to be updated. | 774 * [callSetId] - The ID of the call set to be updated. |
| 774 * | 775 * |
| 775 * Completes with a [CallSet]. | 776 * Completes with a [CallSet]. |
| 776 * | 777 * |
| 777 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 778 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 778 * error. | 779 * error. |
| 779 * | 780 * |
| 780 * If the used [http.Client] completes with an error when making a REST call, | 781 * If the used [http.Client] completes with an error when making a REST call, |
| 781 * this method will complete with the same error. | 782 * this method will complete with the same error. |
| 782 */ | 783 */ |
| 783 async.Future<CallSet> patch(CallSet request, core.String callSetId) { | 784 async.Future<CallSet> patch(CallSet request, core.String callSetId) { |
| 784 var _url = null; | 785 var _url = null; |
| 785 var _queryParams = new core.Map(); | 786 var _queryParams = new core.Map(); |
| 786 var _uploadMedia = null; | 787 var _uploadMedia = null; |
| 787 var _uploadOptions = null; | 788 var _uploadOptions = null; |
| 788 var _downloadOptions = common.DownloadOptions.Metadata; | 789 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 789 var _body = null; | 790 var _body = null; |
| 790 | 791 |
| 791 if (request != null) { | 792 if (request != null) { |
| 792 _body = convert.JSON.encode((request).toJson()); | 793 _body = convert.JSON.encode((request).toJson()); |
| 793 } | 794 } |
| 794 if (callSetId == null) { | 795 if (callSetId == null) { |
| 795 throw new core.ArgumentError("Parameter callSetId is required."); | 796 throw new core.ArgumentError("Parameter callSetId is required."); |
| 796 } | 797 } |
| 797 | 798 |
| 798 | 799 |
| 799 _url = 'callsets/' + common_internal.Escaper.ecapeVariable('$callSetId'); | 800 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); |
| 800 | 801 |
| 801 var _response = _requester.request(_url, | 802 var _response = _requester.request(_url, |
| 802 "PATCH", | 803 "PATCH", |
| 803 body: _body, | 804 body: _body, |
| 804 queryParams: _queryParams, | 805 queryParams: _queryParams, |
| 805 uploadOptions: _uploadOptions, | 806 uploadOptions: _uploadOptions, |
| 806 uploadMedia: _uploadMedia, | 807 uploadMedia: _uploadMedia, |
| 807 downloadOptions: _downloadOptions); | 808 downloadOptions: _downloadOptions); |
| 808 return _response.then((data) => new CallSet.fromJson(data)); | 809 return _response.then((data) => new CallSet.fromJson(data)); |
| 809 } | 810 } |
| 810 | 811 |
| 811 /** | 812 /** |
| 812 * Gets a list of call sets matching the criteria. | 813 * Gets a list of call sets matching the criteria. |
| 813 * | 814 * |
| 814 * Implements GlobalAllianceApi.searchCallSets. | 815 * Implements GlobalAllianceApi.searchCallSets. |
| 815 * | 816 * |
| 816 * [request] - The metadata request object. | 817 * [request] - The metadata request object. |
| 817 * | 818 * |
| 818 * Request parameters: | 819 * Request parameters: |
| 819 * | 820 * |
| 820 * Completes with a [SearchCallSetsResponse]. | 821 * Completes with a [SearchCallSetsResponse]. |
| 821 * | 822 * |
| 822 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 823 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 823 * error. | 824 * error. |
| 824 * | 825 * |
| 825 * If the used [http.Client] completes with an error when making a REST call, | 826 * If the used [http.Client] completes with an error when making a REST call, |
| 826 * this method will complete with the same error. | 827 * this method will complete with the same error. |
| 827 */ | 828 */ |
| 828 async.Future<SearchCallSetsResponse> search(SearchCallSetsRequest request) { | 829 async.Future<SearchCallSetsResponse> search(SearchCallSetsRequest request) { |
| 829 var _url = null; | 830 var _url = null; |
| 830 var _queryParams = new core.Map(); | 831 var _queryParams = new core.Map(); |
| 831 var _uploadMedia = null; | 832 var _uploadMedia = null; |
| 832 var _uploadOptions = null; | 833 var _uploadOptions = null; |
| 833 var _downloadOptions = common.DownloadOptions.Metadata; | 834 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 834 var _body = null; | 835 var _body = null; |
| 835 | 836 |
| 836 if (request != null) { | 837 if (request != null) { |
| 837 _body = convert.JSON.encode((request).toJson()); | 838 _body = convert.JSON.encode((request).toJson()); |
| 838 } | 839 } |
| 839 | 840 |
| 840 | 841 |
| 841 _url = 'callsets/search'; | 842 _url = 'callsets/search'; |
| 842 | 843 |
| 843 var _response = _requester.request(_url, | 844 var _response = _requester.request(_url, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 854 * Updates a call set. | 855 * Updates a call set. |
| 855 * | 856 * |
| 856 * [request] - The metadata request object. | 857 * [request] - The metadata request object. |
| 857 * | 858 * |
| 858 * Request parameters: | 859 * Request parameters: |
| 859 * | 860 * |
| 860 * [callSetId] - The ID of the call set to be updated. | 861 * [callSetId] - The ID of the call set to be updated. |
| 861 * | 862 * |
| 862 * Completes with a [CallSet]. | 863 * Completes with a [CallSet]. |
| 863 * | 864 * |
| 864 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 865 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 865 * error. | 866 * error. |
| 866 * | 867 * |
| 867 * If the used [http.Client] completes with an error when making a REST call, | 868 * If the used [http.Client] completes with an error when making a REST call, |
| 868 * this method will complete with the same error. | 869 * this method will complete with the same error. |
| 869 */ | 870 */ |
| 870 async.Future<CallSet> update(CallSet request, core.String callSetId) { | 871 async.Future<CallSet> update(CallSet request, core.String callSetId) { |
| 871 var _url = null; | 872 var _url = null; |
| 872 var _queryParams = new core.Map(); | 873 var _queryParams = new core.Map(); |
| 873 var _uploadMedia = null; | 874 var _uploadMedia = null; |
| 874 var _uploadOptions = null; | 875 var _uploadOptions = null; |
| 875 var _downloadOptions = common.DownloadOptions.Metadata; | 876 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 876 var _body = null; | 877 var _body = null; |
| 877 | 878 |
| 878 if (request != null) { | 879 if (request != null) { |
| 879 _body = convert.JSON.encode((request).toJson()); | 880 _body = convert.JSON.encode((request).toJson()); |
| 880 } | 881 } |
| 881 if (callSetId == null) { | 882 if (callSetId == null) { |
| 882 throw new core.ArgumentError("Parameter callSetId is required."); | 883 throw new core.ArgumentError("Parameter callSetId is required."); |
| 883 } | 884 } |
| 884 | 885 |
| 885 | 886 |
| 886 _url = 'callsets/' + common_internal.Escaper.ecapeVariable('$callSetId'); | 887 _url = 'callsets/' + commons.Escaper.ecapeVariable('$callSetId'); |
| 887 | 888 |
| 888 var _response = _requester.request(_url, | 889 var _response = _requester.request(_url, |
| 889 "PUT", | 890 "PUT", |
| 890 body: _body, | 891 body: _body, |
| 891 queryParams: _queryParams, | 892 queryParams: _queryParams, |
| 892 uploadOptions: _uploadOptions, | 893 uploadOptions: _uploadOptions, |
| 893 uploadMedia: _uploadMedia, | 894 uploadMedia: _uploadMedia, |
| 894 downloadOptions: _downloadOptions); | 895 downloadOptions: _downloadOptions); |
| 895 return _response.then((data) => new CallSet.fromJson(data)); | 896 return _response.then((data) => new CallSet.fromJson(data)); |
| 896 } | 897 } |
| 897 | 898 |
| 898 } | 899 } |
| 899 | 900 |
| 900 | 901 |
| 901 /** Not documented yet. */ | |
| 902 class DatasetsResourceApi { | 902 class DatasetsResourceApi { |
| 903 final common_internal.ApiRequester _requester; | 903 final commons.ApiRequester _requester; |
| 904 | 904 |
| 905 DatasetsResourceApi(common_internal.ApiRequester client) : | 905 DatasetsResourceApi(commons.ApiRequester client) : |
| 906 _requester = client; | 906 _requester = client; |
| 907 | 907 |
| 908 /** | 908 /** |
| 909 * Creates a new dataset. | 909 * Creates a new dataset. |
| 910 * | 910 * |
| 911 * [request] - The metadata request object. | 911 * [request] - The metadata request object. |
| 912 * | 912 * |
| 913 * Request parameters: | 913 * Request parameters: |
| 914 * | 914 * |
| 915 * Completes with a [Dataset]. | 915 * Completes with a [Dataset]. |
| 916 * | 916 * |
| 917 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 917 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 918 * error. | 918 * error. |
| 919 * | 919 * |
| 920 * If the used [http.Client] completes with an error when making a REST call, | 920 * If the used [http.Client] completes with an error when making a REST call, |
| 921 * this method will complete with the same error. | 921 * this method will complete with the same error. |
| 922 */ | 922 */ |
| 923 async.Future<Dataset> create(Dataset request) { | 923 async.Future<Dataset> create(Dataset request) { |
| 924 var _url = null; | 924 var _url = null; |
| 925 var _queryParams = new core.Map(); | 925 var _queryParams = new core.Map(); |
| 926 var _uploadMedia = null; | 926 var _uploadMedia = null; |
| 927 var _uploadOptions = null; | 927 var _uploadOptions = null; |
| 928 var _downloadOptions = common.DownloadOptions.Metadata; | 928 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 929 var _body = null; | 929 var _body = null; |
| 930 | 930 |
| 931 if (request != null) { | 931 if (request != null) { |
| 932 _body = convert.JSON.encode((request).toJson()); | 932 _body = convert.JSON.encode((request).toJson()); |
| 933 } | 933 } |
| 934 | 934 |
| 935 | 935 |
| 936 _url = 'datasets'; | 936 _url = 'datasets'; |
| 937 | 937 |
| 938 var _response = _requester.request(_url, | 938 var _response = _requester.request(_url, |
| 939 "POST", | 939 "POST", |
| 940 body: _body, | 940 body: _body, |
| 941 queryParams: _queryParams, | 941 queryParams: _queryParams, |
| 942 uploadOptions: _uploadOptions, | 942 uploadOptions: _uploadOptions, |
| 943 uploadMedia: _uploadMedia, | 943 uploadMedia: _uploadMedia, |
| 944 downloadOptions: _downloadOptions); | 944 downloadOptions: _downloadOptions); |
| 945 return _response.then((data) => new Dataset.fromJson(data)); | 945 return _response.then((data) => new Dataset.fromJson(data)); |
| 946 } | 946 } |
| 947 | 947 |
| 948 /** | 948 /** |
| 949 * Deletes a dataset. | 949 * Deletes a dataset. |
| 950 * | 950 * |
| 951 * Request parameters: | 951 * Request parameters: |
| 952 * | 952 * |
| 953 * [datasetId] - The ID of the dataset to be deleted. | 953 * [datasetId] - The ID of the dataset to be deleted. |
| 954 * | 954 * |
| 955 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 955 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 956 * error. | 956 * error. |
| 957 * | 957 * |
| 958 * If the used [http.Client] completes with an error when making a REST call, | 958 * If the used [http.Client] completes with an error when making a REST call, |
| 959 * this method will complete with the same error. | 959 * this method will complete with the same error. |
| 960 */ | 960 */ |
| 961 async.Future delete(core.String datasetId) { | 961 async.Future delete(core.String datasetId) { |
| 962 var _url = null; | 962 var _url = null; |
| 963 var _queryParams = new core.Map(); | 963 var _queryParams = new core.Map(); |
| 964 var _uploadMedia = null; | 964 var _uploadMedia = null; |
| 965 var _uploadOptions = null; | 965 var _uploadOptions = null; |
| 966 var _downloadOptions = common.DownloadOptions.Metadata; | 966 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 967 var _body = null; | 967 var _body = null; |
| 968 | 968 |
| 969 if (datasetId == null) { | 969 if (datasetId == null) { |
| 970 throw new core.ArgumentError("Parameter datasetId is required."); | 970 throw new core.ArgumentError("Parameter datasetId is required."); |
| 971 } | 971 } |
| 972 | 972 |
| 973 _downloadOptions = null; | 973 _downloadOptions = null; |
| 974 | 974 |
| 975 _url = 'datasets/' + common_internal.Escaper.ecapeVariable('$datasetId'); | 975 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); |
| 976 | 976 |
| 977 var _response = _requester.request(_url, | 977 var _response = _requester.request(_url, |
| 978 "DELETE", | 978 "DELETE", |
| 979 body: _body, | 979 body: _body, |
| 980 queryParams: _queryParams, | 980 queryParams: _queryParams, |
| 981 uploadOptions: _uploadOptions, | 981 uploadOptions: _uploadOptions, |
| 982 uploadMedia: _uploadMedia, | 982 uploadMedia: _uploadMedia, |
| 983 downloadOptions: _downloadOptions); | 983 downloadOptions: _downloadOptions); |
| 984 return _response.then((data) => null); | 984 return _response.then((data) => null); |
| 985 } | 985 } |
| 986 | 986 |
| 987 /** | 987 /** |
| 988 * Gets a dataset by ID. | 988 * Gets a dataset by ID. |
| 989 * | 989 * |
| 990 * Request parameters: | 990 * Request parameters: |
| 991 * | 991 * |
| 992 * [datasetId] - The ID of the dataset. | 992 * [datasetId] - The ID of the dataset. |
| 993 * | 993 * |
| 994 * Completes with a [Dataset]. | 994 * Completes with a [Dataset]. |
| 995 * | 995 * |
| 996 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 996 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 997 * error. | 997 * error. |
| 998 * | 998 * |
| 999 * If the used [http.Client] completes with an error when making a REST call, | 999 * If the used [http.Client] completes with an error when making a REST call, |
| 1000 * this method will complete with the same error. | 1000 * this method will complete with the same error. |
| 1001 */ | 1001 */ |
| 1002 async.Future<Dataset> get(core.String datasetId) { | 1002 async.Future<Dataset> get(core.String datasetId) { |
| 1003 var _url = null; | 1003 var _url = null; |
| 1004 var _queryParams = new core.Map(); | 1004 var _queryParams = new core.Map(); |
| 1005 var _uploadMedia = null; | 1005 var _uploadMedia = null; |
| 1006 var _uploadOptions = null; | 1006 var _uploadOptions = null; |
| 1007 var _downloadOptions = common.DownloadOptions.Metadata; | 1007 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1008 var _body = null; | 1008 var _body = null; |
| 1009 | 1009 |
| 1010 if (datasetId == null) { | 1010 if (datasetId == null) { |
| 1011 throw new core.ArgumentError("Parameter datasetId is required."); | 1011 throw new core.ArgumentError("Parameter datasetId is required."); |
| 1012 } | 1012 } |
| 1013 | 1013 |
| 1014 | 1014 |
| 1015 _url = 'datasets/' + common_internal.Escaper.ecapeVariable('$datasetId'); | 1015 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); |
| 1016 | 1016 |
| 1017 var _response = _requester.request(_url, | 1017 var _response = _requester.request(_url, |
| 1018 "GET", | 1018 "GET", |
| 1019 body: _body, | 1019 body: _body, |
| 1020 queryParams: _queryParams, | 1020 queryParams: _queryParams, |
| 1021 uploadOptions: _uploadOptions, | 1021 uploadOptions: _uploadOptions, |
| 1022 uploadMedia: _uploadMedia, | 1022 uploadMedia: _uploadMedia, |
| 1023 downloadOptions: _downloadOptions); | 1023 downloadOptions: _downloadOptions); |
| 1024 return _response.then((data) => new Dataset.fromJson(data)); | 1024 return _response.then((data) => new Dataset.fromJson(data)); |
| 1025 } | 1025 } |
| 1026 | 1026 |
| 1027 /** | 1027 /** |
| 1028 * Lists all datasets. | 1028 * Lists datasets within a project. |
| 1029 * | 1029 * |
| 1030 * Request parameters: | 1030 * Request parameters: |
| 1031 * | 1031 * |
| 1032 * [pageSize] - The maximum number of results returned by this request. | 1032 * [pageSize] - The maximum number of results returned by this request. If |
| 1033 * unspecified, defaults to 50. |
| 1033 * | 1034 * |
| 1034 * [pageToken] - The continuation token, which is used to page through large | 1035 * [pageToken] - The continuation token, which is used to page through large |
| 1035 * result sets. To get the next page of results, set this parameter to the | 1036 * result sets. To get the next page of results, set this parameter to the |
| 1036 * value of nextPageToken from the previous response. | 1037 * value of nextPageToken from the previous response. |
| 1037 * | 1038 * |
| 1038 * [projectNumber] - Only return datasets which belong to this Google | 1039 * [projectNumber] - The project to list datasets for. |
| 1039 * Developers Console project. Only accepts project numbers. Returns all | |
| 1040 * public projects if no project number is specified. | |
| 1041 * | 1040 * |
| 1042 * Completes with a [ListDatasetsResponse]. | 1041 * Completes with a [ListDatasetsResponse]. |
| 1043 * | 1042 * |
| 1044 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1043 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1045 * error. | 1044 * error. |
| 1046 * | 1045 * |
| 1047 * If the used [http.Client] completes with an error when making a REST call, | 1046 * If the used [http.Client] completes with an error when making a REST call, |
| 1048 * this method will complete with the same error. | 1047 * this method will complete with the same error. |
| 1049 */ | 1048 */ |
| 1050 async.Future<ListDatasetsResponse> list({core.int pageSize, core.String pageTo
ken, core.String projectNumber}) { | 1049 async.Future<ListDatasetsResponse> list({core.int pageSize, core.String pageTo
ken, core.String projectNumber}) { |
| 1051 var _url = null; | 1050 var _url = null; |
| 1052 var _queryParams = new core.Map(); | 1051 var _queryParams = new core.Map(); |
| 1053 var _uploadMedia = null; | 1052 var _uploadMedia = null; |
| 1054 var _uploadOptions = null; | 1053 var _uploadOptions = null; |
| 1055 var _downloadOptions = common.DownloadOptions.Metadata; | 1054 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1056 var _body = null; | 1055 var _body = null; |
| 1057 | 1056 |
| 1058 if (pageSize != null) { | 1057 if (pageSize != null) { |
| 1059 _queryParams["pageSize"] = ["${pageSize}"]; | 1058 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1060 } | 1059 } |
| 1061 if (pageToken != null) { | 1060 if (pageToken != null) { |
| 1062 _queryParams["pageToken"] = [pageToken]; | 1061 _queryParams["pageToken"] = [pageToken]; |
| 1063 } | 1062 } |
| 1064 if (projectNumber != null) { | 1063 if (projectNumber != null) { |
| 1065 _queryParams["projectNumber"] = [projectNumber]; | 1064 _queryParams["projectNumber"] = [projectNumber]; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1082 * Updates a dataset. This method supports patch semantics. | 1081 * Updates a dataset. This method supports patch semantics. |
| 1083 * | 1082 * |
| 1084 * [request] - The metadata request object. | 1083 * [request] - The metadata request object. |
| 1085 * | 1084 * |
| 1086 * Request parameters: | 1085 * Request parameters: |
| 1087 * | 1086 * |
| 1088 * [datasetId] - The ID of the dataset to be updated. | 1087 * [datasetId] - The ID of the dataset to be updated. |
| 1089 * | 1088 * |
| 1090 * Completes with a [Dataset]. | 1089 * Completes with a [Dataset]. |
| 1091 * | 1090 * |
| 1092 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1091 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1093 * error. | 1092 * error. |
| 1094 * | 1093 * |
| 1095 * If the used [http.Client] completes with an error when making a REST call, | 1094 * If the used [http.Client] completes with an error when making a REST call, |
| 1096 * this method will complete with the same error. | 1095 * this method will complete with the same error. |
| 1097 */ | 1096 */ |
| 1098 async.Future<Dataset> patch(Dataset request, core.String datasetId) { | 1097 async.Future<Dataset> patch(Dataset request, core.String datasetId) { |
| 1099 var _url = null; | 1098 var _url = null; |
| 1100 var _queryParams = new core.Map(); | 1099 var _queryParams = new core.Map(); |
| 1101 var _uploadMedia = null; | 1100 var _uploadMedia = null; |
| 1102 var _uploadOptions = null; | 1101 var _uploadOptions = null; |
| 1103 var _downloadOptions = common.DownloadOptions.Metadata; | 1102 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1104 var _body = null; | 1103 var _body = null; |
| 1105 | 1104 |
| 1106 if (request != null) { | 1105 if (request != null) { |
| 1107 _body = convert.JSON.encode((request).toJson()); | 1106 _body = convert.JSON.encode((request).toJson()); |
| 1108 } | 1107 } |
| 1109 if (datasetId == null) { | 1108 if (datasetId == null) { |
| 1110 throw new core.ArgumentError("Parameter datasetId is required."); | 1109 throw new core.ArgumentError("Parameter datasetId is required."); |
| 1111 } | 1110 } |
| 1112 | 1111 |
| 1113 | 1112 |
| 1114 _url = 'datasets/' + common_internal.Escaper.ecapeVariable('$datasetId'); | 1113 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); |
| 1115 | 1114 |
| 1116 var _response = _requester.request(_url, | 1115 var _response = _requester.request(_url, |
| 1117 "PATCH", | 1116 "PATCH", |
| 1118 body: _body, | 1117 body: _body, |
| 1119 queryParams: _queryParams, | 1118 queryParams: _queryParams, |
| 1120 uploadOptions: _uploadOptions, | 1119 uploadOptions: _uploadOptions, |
| 1121 uploadMedia: _uploadMedia, | 1120 uploadMedia: _uploadMedia, |
| 1122 downloadOptions: _downloadOptions); | 1121 downloadOptions: _downloadOptions); |
| 1123 return _response.then((data) => new Dataset.fromJson(data)); | 1122 return _response.then((data) => new Dataset.fromJson(data)); |
| 1124 } | 1123 } |
| 1125 | 1124 |
| 1126 /** | 1125 /** |
| 1127 * Undeletes a dataset by restoring a dataset which was deleted via this API. | 1126 * Undeletes a dataset by restoring a dataset which was deleted via this API. |
| 1128 * This operation is only possible for a week after the deletion occurred. | 1127 * This operation is only possible for a week after the deletion occurred. |
| 1129 * | 1128 * |
| 1130 * Request parameters: | 1129 * Request parameters: |
| 1131 * | 1130 * |
| 1132 * [datasetId] - The ID of the dataset to be undeleted. | 1131 * [datasetId] - The ID of the dataset to be undeleted. |
| 1133 * | 1132 * |
| 1134 * Completes with a [Dataset]. | 1133 * Completes with a [Dataset]. |
| 1135 * | 1134 * |
| 1136 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1135 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1137 * error. | 1136 * error. |
| 1138 * | 1137 * |
| 1139 * If the used [http.Client] completes with an error when making a REST call, | 1138 * If the used [http.Client] completes with an error when making a REST call, |
| 1140 * this method will complete with the same error. | 1139 * this method will complete with the same error. |
| 1141 */ | 1140 */ |
| 1142 async.Future<Dataset> undelete(core.String datasetId) { | 1141 async.Future<Dataset> undelete(core.String datasetId) { |
| 1143 var _url = null; | 1142 var _url = null; |
| 1144 var _queryParams = new core.Map(); | 1143 var _queryParams = new core.Map(); |
| 1145 var _uploadMedia = null; | 1144 var _uploadMedia = null; |
| 1146 var _uploadOptions = null; | 1145 var _uploadOptions = null; |
| 1147 var _downloadOptions = common.DownloadOptions.Metadata; | 1146 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1148 var _body = null; | 1147 var _body = null; |
| 1149 | 1148 |
| 1150 if (datasetId == null) { | 1149 if (datasetId == null) { |
| 1151 throw new core.ArgumentError("Parameter datasetId is required."); | 1150 throw new core.ArgumentError("Parameter datasetId is required."); |
| 1152 } | 1151 } |
| 1153 | 1152 |
| 1154 | 1153 |
| 1155 _url = 'datasets/' + common_internal.Escaper.ecapeVariable('$datasetId') + '
/undelete'; | 1154 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId') + '/undelet
e'; |
| 1156 | 1155 |
| 1157 var _response = _requester.request(_url, | 1156 var _response = _requester.request(_url, |
| 1158 "POST", | 1157 "POST", |
| 1159 body: _body, | 1158 body: _body, |
| 1160 queryParams: _queryParams, | 1159 queryParams: _queryParams, |
| 1161 uploadOptions: _uploadOptions, | 1160 uploadOptions: _uploadOptions, |
| 1162 uploadMedia: _uploadMedia, | 1161 uploadMedia: _uploadMedia, |
| 1163 downloadOptions: _downloadOptions); | 1162 downloadOptions: _downloadOptions); |
| 1164 return _response.then((data) => new Dataset.fromJson(data)); | 1163 return _response.then((data) => new Dataset.fromJson(data)); |
| 1165 } | 1164 } |
| 1166 | 1165 |
| 1167 /** | 1166 /** |
| 1168 * Updates a dataset. | 1167 * Updates a dataset. |
| 1169 * | 1168 * |
| 1170 * [request] - The metadata request object. | 1169 * [request] - The metadata request object. |
| 1171 * | 1170 * |
| 1172 * Request parameters: | 1171 * Request parameters: |
| 1173 * | 1172 * |
| 1174 * [datasetId] - The ID of the dataset to be updated. | 1173 * [datasetId] - The ID of the dataset to be updated. |
| 1175 * | 1174 * |
| 1176 * Completes with a [Dataset]. | 1175 * Completes with a [Dataset]. |
| 1177 * | 1176 * |
| 1178 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1177 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1179 * error. | 1178 * error. |
| 1180 * | 1179 * |
| 1181 * If the used [http.Client] completes with an error when making a REST call, | 1180 * If the used [http.Client] completes with an error when making a REST call, |
| 1182 * this method will complete with the same error. | 1181 * this method will complete with the same error. |
| 1183 */ | 1182 */ |
| 1184 async.Future<Dataset> update(Dataset request, core.String datasetId) { | 1183 async.Future<Dataset> update(Dataset request, core.String datasetId) { |
| 1185 var _url = null; | 1184 var _url = null; |
| 1186 var _queryParams = new core.Map(); | 1185 var _queryParams = new core.Map(); |
| 1187 var _uploadMedia = null; | 1186 var _uploadMedia = null; |
| 1188 var _uploadOptions = null; | 1187 var _uploadOptions = null; |
| 1189 var _downloadOptions = common.DownloadOptions.Metadata; | 1188 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1190 var _body = null; | 1189 var _body = null; |
| 1191 | 1190 |
| 1192 if (request != null) { | 1191 if (request != null) { |
| 1193 _body = convert.JSON.encode((request).toJson()); | 1192 _body = convert.JSON.encode((request).toJson()); |
| 1194 } | 1193 } |
| 1195 if (datasetId == null) { | 1194 if (datasetId == null) { |
| 1196 throw new core.ArgumentError("Parameter datasetId is required."); | 1195 throw new core.ArgumentError("Parameter datasetId is required."); |
| 1197 } | 1196 } |
| 1198 | 1197 |
| 1199 | 1198 |
| 1200 _url = 'datasets/' + common_internal.Escaper.ecapeVariable('$datasetId'); | 1199 _url = 'datasets/' + commons.Escaper.ecapeVariable('$datasetId'); |
| 1201 | 1200 |
| 1202 var _response = _requester.request(_url, | 1201 var _response = _requester.request(_url, |
| 1203 "PUT", | 1202 "PUT", |
| 1204 body: _body, | 1203 body: _body, |
| 1205 queryParams: _queryParams, | 1204 queryParams: _queryParams, |
| 1206 uploadOptions: _uploadOptions, | 1205 uploadOptions: _uploadOptions, |
| 1207 uploadMedia: _uploadMedia, | 1206 uploadMedia: _uploadMedia, |
| 1208 downloadOptions: _downloadOptions); | 1207 downloadOptions: _downloadOptions); |
| 1209 return _response.then((data) => new Dataset.fromJson(data)); | 1208 return _response.then((data) => new Dataset.fromJson(data)); |
| 1210 } | 1209 } |
| 1211 | 1210 |
| 1212 } | 1211 } |
| 1213 | 1212 |
| 1214 | 1213 |
| 1215 /** Not documented yet. */ | |
| 1216 class ExperimentalResourceApi { | 1214 class ExperimentalResourceApi { |
| 1217 final common_internal.ApiRequester _requester; | 1215 final commons.ApiRequester _requester; |
| 1218 | 1216 |
| 1219 ExperimentalJobsResourceApi get jobs => new ExperimentalJobsResourceApi(_reque
ster); | 1217 ExperimentalJobsResourceApi get jobs => new ExperimentalJobsResourceApi(_reque
ster); |
| 1220 | 1218 |
| 1221 ExperimentalResourceApi(common_internal.ApiRequester client) : | 1219 ExperimentalResourceApi(commons.ApiRequester client) : |
| 1222 _requester = client; | 1220 _requester = client; |
| 1223 } | 1221 } |
| 1224 | 1222 |
| 1225 | 1223 |
| 1226 /** Not documented yet. */ | |
| 1227 class ExperimentalJobsResourceApi { | 1224 class ExperimentalJobsResourceApi { |
| 1228 final common_internal.ApiRequester _requester; | 1225 final commons.ApiRequester _requester; |
| 1229 | 1226 |
| 1230 ExperimentalJobsResourceApi(common_internal.ApiRequester client) : | 1227 ExperimentalJobsResourceApi(commons.ApiRequester client) : |
| 1231 _requester = client; | 1228 _requester = client; |
| 1232 | 1229 |
| 1233 /** | 1230 /** |
| 1234 * Creates and asynchronously runs an ad-hoc job. This is an experimental call | 1231 * Creates and asynchronously runs an ad-hoc job. This is an experimental call |
| 1235 * and may be removed or changed at any time. | 1232 * and may be removed or changed at any time. |
| 1236 * | 1233 * |
| 1237 * [request] - The metadata request object. | 1234 * [request] - The metadata request object. |
| 1238 * | 1235 * |
| 1239 * Request parameters: | 1236 * Request parameters: |
| 1240 * | 1237 * |
| 1241 * Completes with a [ExperimentalCreateJobResponse]. | 1238 * Completes with a [ExperimentalCreateJobResponse]. |
| 1242 * | 1239 * |
| 1243 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1240 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1244 * error. | 1241 * error. |
| 1245 * | 1242 * |
| 1246 * If the used [http.Client] completes with an error when making a REST call, | 1243 * If the used [http.Client] completes with an error when making a REST call, |
| 1247 * this method will complete with the same error. | 1244 * this method will complete with the same error. |
| 1248 */ | 1245 */ |
| 1249 async.Future<ExperimentalCreateJobResponse> create(ExperimentalCreateJobReques
t request) { | 1246 async.Future<ExperimentalCreateJobResponse> create(ExperimentalCreateJobReques
t request) { |
| 1250 var _url = null; | 1247 var _url = null; |
| 1251 var _queryParams = new core.Map(); | 1248 var _queryParams = new core.Map(); |
| 1252 var _uploadMedia = null; | 1249 var _uploadMedia = null; |
| 1253 var _uploadOptions = null; | 1250 var _uploadOptions = null; |
| 1254 var _downloadOptions = common.DownloadOptions.Metadata; | 1251 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1255 var _body = null; | 1252 var _body = null; |
| 1256 | 1253 |
| 1257 if (request != null) { | 1254 if (request != null) { |
| 1258 _body = convert.JSON.encode((request).toJson()); | 1255 _body = convert.JSON.encode((request).toJson()); |
| 1259 } | 1256 } |
| 1260 | 1257 |
| 1261 | 1258 |
| 1262 _url = 'experimental/jobs/create'; | 1259 _url = 'experimental/jobs/create'; |
| 1263 | 1260 |
| 1264 var _response = _requester.request(_url, | 1261 var _response = _requester.request(_url, |
| 1265 "POST", | 1262 "POST", |
| 1266 body: _body, | 1263 body: _body, |
| 1267 queryParams: _queryParams, | 1264 queryParams: _queryParams, |
| 1268 uploadOptions: _uploadOptions, | 1265 uploadOptions: _uploadOptions, |
| 1269 uploadMedia: _uploadMedia, | 1266 uploadMedia: _uploadMedia, |
| 1270 downloadOptions: _downloadOptions); | 1267 downloadOptions: _downloadOptions); |
| 1271 return _response.then((data) => new ExperimentalCreateJobResponse.fromJson(d
ata)); | 1268 return _response.then((data) => new ExperimentalCreateJobResponse.fromJson(d
ata)); |
| 1272 } | 1269 } |
| 1273 | 1270 |
| 1274 } | 1271 } |
| 1275 | 1272 |
| 1276 | 1273 |
| 1277 /** Not documented yet. */ | |
| 1278 class JobsResourceApi { | 1274 class JobsResourceApi { |
| 1279 final common_internal.ApiRequester _requester; | 1275 final commons.ApiRequester _requester; |
| 1280 | 1276 |
| 1281 JobsResourceApi(common_internal.ApiRequester client) : | 1277 JobsResourceApi(commons.ApiRequester client) : |
| 1282 _requester = client; | 1278 _requester = client; |
| 1283 | 1279 |
| 1284 /** | 1280 /** |
| 1285 * Cancels a job by ID. Note that it is possible for partial results to be | 1281 * Cancels a job by ID. Note that it is possible for partial results to be |
| 1286 * generated and stored for cancelled jobs. | 1282 * generated and stored for cancelled jobs. |
| 1287 * | 1283 * |
| 1288 * Request parameters: | 1284 * Request parameters: |
| 1289 * | 1285 * |
| 1290 * [jobId] - Required. The ID of the job. | 1286 * [jobId] - Required. The ID of the job. |
| 1291 * | 1287 * |
| 1292 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1288 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1293 * error. | 1289 * error. |
| 1294 * | 1290 * |
| 1295 * If the used [http.Client] completes with an error when making a REST call, | 1291 * If the used [http.Client] completes with an error when making a REST call, |
| 1296 * this method will complete with the same error. | 1292 * this method will complete with the same error. |
| 1297 */ | 1293 */ |
| 1298 async.Future cancel(core.String jobId) { | 1294 async.Future cancel(core.String jobId) { |
| 1299 var _url = null; | 1295 var _url = null; |
| 1300 var _queryParams = new core.Map(); | 1296 var _queryParams = new core.Map(); |
| 1301 var _uploadMedia = null; | 1297 var _uploadMedia = null; |
| 1302 var _uploadOptions = null; | 1298 var _uploadOptions = null; |
| 1303 var _downloadOptions = common.DownloadOptions.Metadata; | 1299 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1304 var _body = null; | 1300 var _body = null; |
| 1305 | 1301 |
| 1306 if (jobId == null) { | 1302 if (jobId == null) { |
| 1307 throw new core.ArgumentError("Parameter jobId is required."); | 1303 throw new core.ArgumentError("Parameter jobId is required."); |
| 1308 } | 1304 } |
| 1309 | 1305 |
| 1310 _downloadOptions = null; | 1306 _downloadOptions = null; |
| 1311 | 1307 |
| 1312 _url = 'jobs/' + common_internal.Escaper.ecapeVariable('$jobId') + '/cancel'
; | 1308 _url = 'jobs/' + commons.Escaper.ecapeVariable('$jobId') + '/cancel'; |
| 1313 | 1309 |
| 1314 var _response = _requester.request(_url, | 1310 var _response = _requester.request(_url, |
| 1315 "POST", | 1311 "POST", |
| 1316 body: _body, | 1312 body: _body, |
| 1317 queryParams: _queryParams, | 1313 queryParams: _queryParams, |
| 1318 uploadOptions: _uploadOptions, | 1314 uploadOptions: _uploadOptions, |
| 1319 uploadMedia: _uploadMedia, | 1315 uploadMedia: _uploadMedia, |
| 1320 downloadOptions: _downloadOptions); | 1316 downloadOptions: _downloadOptions); |
| 1321 return _response.then((data) => null); | 1317 return _response.then((data) => null); |
| 1322 } | 1318 } |
| 1323 | 1319 |
| 1324 /** | 1320 /** |
| 1325 * Gets a job by ID. | 1321 * Gets a job by ID. |
| 1326 * | 1322 * |
| 1327 * Request parameters: | 1323 * Request parameters: |
| 1328 * | 1324 * |
| 1329 * [jobId] - Required. The ID of the job. | 1325 * [jobId] - Required. The ID of the job. |
| 1330 * | 1326 * |
| 1331 * Completes with a [Job]. | 1327 * Completes with a [Job]. |
| 1332 * | 1328 * |
| 1333 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1329 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1334 * error. | 1330 * error. |
| 1335 * | 1331 * |
| 1336 * If the used [http.Client] completes with an error when making a REST call, | 1332 * If the used [http.Client] completes with an error when making a REST call, |
| 1337 * this method will complete with the same error. | 1333 * this method will complete with the same error. |
| 1338 */ | 1334 */ |
| 1339 async.Future<Job> get(core.String jobId) { | 1335 async.Future<Job> get(core.String jobId) { |
| 1340 var _url = null; | 1336 var _url = null; |
| 1341 var _queryParams = new core.Map(); | 1337 var _queryParams = new core.Map(); |
| 1342 var _uploadMedia = null; | 1338 var _uploadMedia = null; |
| 1343 var _uploadOptions = null; | 1339 var _uploadOptions = null; |
| 1344 var _downloadOptions = common.DownloadOptions.Metadata; | 1340 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1345 var _body = null; | 1341 var _body = null; |
| 1346 | 1342 |
| 1347 if (jobId == null) { | 1343 if (jobId == null) { |
| 1348 throw new core.ArgumentError("Parameter jobId is required."); | 1344 throw new core.ArgumentError("Parameter jobId is required."); |
| 1349 } | 1345 } |
| 1350 | 1346 |
| 1351 | 1347 |
| 1352 _url = 'jobs/' + common_internal.Escaper.ecapeVariable('$jobId'); | 1348 _url = 'jobs/' + commons.Escaper.ecapeVariable('$jobId'); |
| 1353 | 1349 |
| 1354 var _response = _requester.request(_url, | 1350 var _response = _requester.request(_url, |
| 1355 "GET", | 1351 "GET", |
| 1356 body: _body, | 1352 body: _body, |
| 1357 queryParams: _queryParams, | 1353 queryParams: _queryParams, |
| 1358 uploadOptions: _uploadOptions, | 1354 uploadOptions: _uploadOptions, |
| 1359 uploadMedia: _uploadMedia, | 1355 uploadMedia: _uploadMedia, |
| 1360 downloadOptions: _downloadOptions); | 1356 downloadOptions: _downloadOptions); |
| 1361 return _response.then((data) => new Job.fromJson(data)); | 1357 return _response.then((data) => new Job.fromJson(data)); |
| 1362 } | 1358 } |
| 1363 | 1359 |
| 1364 /** | 1360 /** |
| 1365 * Gets a list of jobs matching the criteria. | 1361 * Gets a list of jobs matching the criteria. |
| 1366 * | 1362 * |
| 1367 * [request] - The metadata request object. | 1363 * [request] - The metadata request object. |
| 1368 * | 1364 * |
| 1369 * Request parameters: | 1365 * Request parameters: |
| 1370 * | 1366 * |
| 1371 * Completes with a [SearchJobsResponse]. | 1367 * Completes with a [SearchJobsResponse]. |
| 1372 * | 1368 * |
| 1373 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1369 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1374 * error. | 1370 * error. |
| 1375 * | 1371 * |
| 1376 * If the used [http.Client] completes with an error when making a REST call, | 1372 * If the used [http.Client] completes with an error when making a REST call, |
| 1377 * this method will complete with the same error. | 1373 * this method will complete with the same error. |
| 1378 */ | 1374 */ |
| 1379 async.Future<SearchJobsResponse> search(SearchJobsRequest request) { | 1375 async.Future<SearchJobsResponse> search(SearchJobsRequest request) { |
| 1380 var _url = null; | 1376 var _url = null; |
| 1381 var _queryParams = new core.Map(); | 1377 var _queryParams = new core.Map(); |
| 1382 var _uploadMedia = null; | 1378 var _uploadMedia = null; |
| 1383 var _uploadOptions = null; | 1379 var _uploadOptions = null; |
| 1384 var _downloadOptions = common.DownloadOptions.Metadata; | 1380 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1385 var _body = null; | 1381 var _body = null; |
| 1386 | 1382 |
| 1387 if (request != null) { | 1383 if (request != null) { |
| 1388 _body = convert.JSON.encode((request).toJson()); | 1384 _body = convert.JSON.encode((request).toJson()); |
| 1389 } | 1385 } |
| 1390 | 1386 |
| 1391 | 1387 |
| 1392 _url = 'jobs/search'; | 1388 _url = 'jobs/search'; |
| 1393 | 1389 |
| 1394 var _response = _requester.request(_url, | 1390 var _response = _requester.request(_url, |
| 1395 "POST", | 1391 "POST", |
| 1396 body: _body, | 1392 body: _body, |
| 1397 queryParams: _queryParams, | 1393 queryParams: _queryParams, |
| 1398 uploadOptions: _uploadOptions, | 1394 uploadOptions: _uploadOptions, |
| 1399 uploadMedia: _uploadMedia, | 1395 uploadMedia: _uploadMedia, |
| 1400 downloadOptions: _downloadOptions); | 1396 downloadOptions: _downloadOptions); |
| 1401 return _response.then((data) => new SearchJobsResponse.fromJson(data)); | 1397 return _response.then((data) => new SearchJobsResponse.fromJson(data)); |
| 1402 } | 1398 } |
| 1403 | 1399 |
| 1404 } | 1400 } |
| 1405 | 1401 |
| 1406 | 1402 |
| 1407 /** Not documented yet. */ | |
| 1408 class ReadgroupsetsResourceApi { | 1403 class ReadgroupsetsResourceApi { |
| 1409 final common_internal.ApiRequester _requester; | 1404 final commons.ApiRequester _requester; |
| 1410 | 1405 |
| 1411 ReadgroupsetsCoveragebucketsResourceApi get coveragebuckets => new Readgroupse
tsCoveragebucketsResourceApi(_requester); | 1406 ReadgroupsetsCoveragebucketsResourceApi get coveragebuckets => new Readgroupse
tsCoveragebucketsResourceApi(_requester); |
| 1412 | 1407 |
| 1413 ReadgroupsetsResourceApi(common_internal.ApiRequester client) : | 1408 ReadgroupsetsResourceApi(commons.ApiRequester client) : |
| 1414 _requester = client; | 1409 _requester = client; |
| 1415 | 1410 |
| 1416 /** | 1411 /** |
| 1417 * Aligns read data from existing read group sets or files from Google Cloud | 1412 * Aligns read data from existing read group sets or files from Google Cloud |
| 1418 * Storage. See the alignment and variant calling documentation for more | 1413 * Storage. See the alignment and variant calling documentation for more |
| 1419 * details. | 1414 * details. |
| 1420 * | 1415 * |
| 1421 * [request] - The metadata request object. | 1416 * [request] - The metadata request object. |
| 1422 * | 1417 * |
| 1423 * Request parameters: | 1418 * Request parameters: |
| 1424 * | 1419 * |
| 1425 * Completes with a [AlignReadGroupSetsResponse]. | 1420 * Completes with a [AlignReadGroupSetsResponse]. |
| 1426 * | 1421 * |
| 1427 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1422 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1428 * error. | 1423 * error. |
| 1429 * | 1424 * |
| 1430 * If the used [http.Client] completes with an error when making a REST call, | 1425 * If the used [http.Client] completes with an error when making a REST call, |
| 1431 * this method will complete with the same error. | 1426 * this method will complete with the same error. |
| 1432 */ | 1427 */ |
| 1433 async.Future<AlignReadGroupSetsResponse> align(AlignReadGroupSetsRequest reque
st) { | 1428 async.Future<AlignReadGroupSetsResponse> align(AlignReadGroupSetsRequest reque
st) { |
| 1434 var _url = null; | 1429 var _url = null; |
| 1435 var _queryParams = new core.Map(); | 1430 var _queryParams = new core.Map(); |
| 1436 var _uploadMedia = null; | 1431 var _uploadMedia = null; |
| 1437 var _uploadOptions = null; | 1432 var _uploadOptions = null; |
| 1438 var _downloadOptions = common.DownloadOptions.Metadata; | 1433 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1439 var _body = null; | 1434 var _body = null; |
| 1440 | 1435 |
| 1441 if (request != null) { | 1436 if (request != null) { |
| 1442 _body = convert.JSON.encode((request).toJson()); | 1437 _body = convert.JSON.encode((request).toJson()); |
| 1443 } | 1438 } |
| 1444 | 1439 |
| 1445 | 1440 |
| 1446 _url = 'readgroupsets/align'; | 1441 _url = 'readgroupsets/align'; |
| 1447 | 1442 |
| 1448 var _response = _requester.request(_url, | 1443 var _response = _requester.request(_url, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1459 * Calls variants on read data from existing read group sets or files from | 1454 * Calls variants on read data from existing read group sets or files from |
| 1460 * Google Cloud Storage. See the alignment and variant calling documentation | 1455 * Google Cloud Storage. See the alignment and variant calling documentation |
| 1461 * for more details. | 1456 * for more details. |
| 1462 * | 1457 * |
| 1463 * [request] - The metadata request object. | 1458 * [request] - The metadata request object. |
| 1464 * | 1459 * |
| 1465 * Request parameters: | 1460 * Request parameters: |
| 1466 * | 1461 * |
| 1467 * Completes with a [CallReadGroupSetsResponse]. | 1462 * Completes with a [CallReadGroupSetsResponse]. |
| 1468 * | 1463 * |
| 1469 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1464 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1470 * error. | 1465 * error. |
| 1471 * | 1466 * |
| 1472 * If the used [http.Client] completes with an error when making a REST call, | 1467 * If the used [http.Client] completes with an error when making a REST call, |
| 1473 * this method will complete with the same error. | 1468 * this method will complete with the same error. |
| 1474 */ | 1469 */ |
| 1475 async.Future<CallReadGroupSetsResponse> call(CallReadGroupSetsRequest request)
{ | 1470 async.Future<CallReadGroupSetsResponse> call(CallReadGroupSetsRequest request)
{ |
| 1476 var _url = null; | 1471 var _url = null; |
| 1477 var _queryParams = new core.Map(); | 1472 var _queryParams = new core.Map(); |
| 1478 var _uploadMedia = null; | 1473 var _uploadMedia = null; |
| 1479 var _uploadOptions = null; | 1474 var _uploadOptions = null; |
| 1480 var _downloadOptions = common.DownloadOptions.Metadata; | 1475 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1481 var _body = null; | 1476 var _body = null; |
| 1482 | 1477 |
| 1483 if (request != null) { | 1478 if (request != null) { |
| 1484 _body = convert.JSON.encode((request).toJson()); | 1479 _body = convert.JSON.encode((request).toJson()); |
| 1485 } | 1480 } |
| 1486 | 1481 |
| 1487 | 1482 |
| 1488 _url = 'readgroupsets/call'; | 1483 _url = 'readgroupsets/call'; |
| 1489 | 1484 |
| 1490 var _response = _requester.request(_url, | 1485 var _response = _requester.request(_url, |
| 1491 "POST", | 1486 "POST", |
| 1492 body: _body, | 1487 body: _body, |
| 1493 queryParams: _queryParams, | 1488 queryParams: _queryParams, |
| 1494 uploadOptions: _uploadOptions, | 1489 uploadOptions: _uploadOptions, |
| 1495 uploadMedia: _uploadMedia, | 1490 uploadMedia: _uploadMedia, |
| 1496 downloadOptions: _downloadOptions); | 1491 downloadOptions: _downloadOptions); |
| 1497 return _response.then((data) => new CallReadGroupSetsResponse.fromJson(data)
); | 1492 return _response.then((data) => new CallReadGroupSetsResponse.fromJson(data)
); |
| 1498 } | 1493 } |
| 1499 | 1494 |
| 1500 /** | 1495 /** |
| 1501 * Deletes a read group set. | 1496 * Deletes a read group set. |
| 1502 * | 1497 * |
| 1503 * Request parameters: | 1498 * Request parameters: |
| 1504 * | 1499 * |
| 1505 * [readGroupSetId] - The ID of the read group set to be deleted. The caller | 1500 * [readGroupSetId] - The ID of the read group set to be deleted. The caller |
| 1506 * must have WRITE permissions to the dataset associated with this read group | 1501 * must have WRITE permissions to the dataset associated with this read group |
| 1507 * set. | 1502 * set. |
| 1508 * | 1503 * |
| 1509 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1504 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1510 * error. | 1505 * error. |
| 1511 * | 1506 * |
| 1512 * If the used [http.Client] completes with an error when making a REST call, | 1507 * If the used [http.Client] completes with an error when making a REST call, |
| 1513 * this method will complete with the same error. | 1508 * this method will complete with the same error. |
| 1514 */ | 1509 */ |
| 1515 async.Future delete(core.String readGroupSetId) { | 1510 async.Future delete(core.String readGroupSetId) { |
| 1516 var _url = null; | 1511 var _url = null; |
| 1517 var _queryParams = new core.Map(); | 1512 var _queryParams = new core.Map(); |
| 1518 var _uploadMedia = null; | 1513 var _uploadMedia = null; |
| 1519 var _uploadOptions = null; | 1514 var _uploadOptions = null; |
| 1520 var _downloadOptions = common.DownloadOptions.Metadata; | 1515 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1521 var _body = null; | 1516 var _body = null; |
| 1522 | 1517 |
| 1523 if (readGroupSetId == null) { | 1518 if (readGroupSetId == null) { |
| 1524 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1519 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 1525 } | 1520 } |
| 1526 | 1521 |
| 1527 _downloadOptions = null; | 1522 _downloadOptions = null; |
| 1528 | 1523 |
| 1529 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); | 1524 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); |
| 1530 | 1525 |
| 1531 var _response = _requester.request(_url, | 1526 var _response = _requester.request(_url, |
| 1532 "DELETE", | 1527 "DELETE", |
| 1533 body: _body, | 1528 body: _body, |
| 1534 queryParams: _queryParams, | 1529 queryParams: _queryParams, |
| 1535 uploadOptions: _uploadOptions, | 1530 uploadOptions: _uploadOptions, |
| 1536 uploadMedia: _uploadMedia, | 1531 uploadMedia: _uploadMedia, |
| 1537 downloadOptions: _downloadOptions); | 1532 downloadOptions: _downloadOptions); |
| 1538 return _response.then((data) => null); | 1533 return _response.then((data) => null); |
| 1539 } | 1534 } |
| 1540 | 1535 |
| 1541 /** | 1536 /** |
| 1542 * Exports read group sets to a BAM file in Google Cloud Storage. | 1537 * Exports read group sets to a BAM file in Google Cloud Storage. |
| 1543 * | 1538 * |
| 1544 * Note that currently there may be some differences between exported BAM | 1539 * Note that currently there may be some differences between exported BAM |
| 1545 * files and the original BAM file at the time of import. In particular, | 1540 * files and the original BAM file at the time of import. In particular, |
| 1546 * comments in the input file header will not be preserved, some custom tags | 1541 * comments in the input file header will not be preserved, some custom tags |
| 1547 * will be converted to strings, and original reference sequence order is not | 1542 * will be converted to strings, and original reference sequence order is not |
| 1548 * necessarily preserved. | 1543 * necessarily preserved. |
| 1549 * | 1544 * |
| 1550 * [request] - The metadata request object. | 1545 * [request] - The metadata request object. |
| 1551 * | 1546 * |
| 1552 * Request parameters: | 1547 * Request parameters: |
| 1553 * | 1548 * |
| 1554 * Completes with a [ExportReadGroupSetsResponse]. | 1549 * Completes with a [ExportReadGroupSetsResponse]. |
| 1555 * | 1550 * |
| 1556 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1551 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1557 * error. | 1552 * error. |
| 1558 * | 1553 * |
| 1559 * If the used [http.Client] completes with an error when making a REST call, | 1554 * If the used [http.Client] completes with an error when making a REST call, |
| 1560 * this method will complete with the same error. | 1555 * this method will complete with the same error. |
| 1561 */ | 1556 */ |
| 1562 async.Future<ExportReadGroupSetsResponse> export(ExportReadGroupSetsRequest re
quest) { | 1557 async.Future<ExportReadGroupSetsResponse> export(ExportReadGroupSetsRequest re
quest) { |
| 1563 var _url = null; | 1558 var _url = null; |
| 1564 var _queryParams = new core.Map(); | 1559 var _queryParams = new core.Map(); |
| 1565 var _uploadMedia = null; | 1560 var _uploadMedia = null; |
| 1566 var _uploadOptions = null; | 1561 var _uploadOptions = null; |
| 1567 var _downloadOptions = common.DownloadOptions.Metadata; | 1562 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1568 var _body = null; | 1563 var _body = null; |
| 1569 | 1564 |
| 1570 if (request != null) { | 1565 if (request != null) { |
| 1571 _body = convert.JSON.encode((request).toJson()); | 1566 _body = convert.JSON.encode((request).toJson()); |
| 1572 } | 1567 } |
| 1573 | 1568 |
| 1574 | 1569 |
| 1575 _url = 'readgroupsets/export'; | 1570 _url = 'readgroupsets/export'; |
| 1576 | 1571 |
| 1577 var _response = _requester.request(_url, | 1572 var _response = _requester.request(_url, |
| 1578 "POST", | 1573 "POST", |
| 1579 body: _body, | 1574 body: _body, |
| 1580 queryParams: _queryParams, | 1575 queryParams: _queryParams, |
| 1581 uploadOptions: _uploadOptions, | 1576 uploadOptions: _uploadOptions, |
| 1582 uploadMedia: _uploadMedia, | 1577 uploadMedia: _uploadMedia, |
| 1583 downloadOptions: _downloadOptions); | 1578 downloadOptions: _downloadOptions); |
| 1584 return _response.then((data) => new ExportReadGroupSetsResponse.fromJson(dat
a)); | 1579 return _response.then((data) => new ExportReadGroupSetsResponse.fromJson(dat
a)); |
| 1585 } | 1580 } |
| 1586 | 1581 |
| 1587 /** | 1582 /** |
| 1588 * Gets a read group set by ID. | 1583 * Gets a read group set by ID. |
| 1589 * | 1584 * |
| 1590 * Request parameters: | 1585 * Request parameters: |
| 1591 * | 1586 * |
| 1592 * [readGroupSetId] - The ID of the read group set. | 1587 * [readGroupSetId] - The ID of the read group set. |
| 1593 * | 1588 * |
| 1594 * Completes with a [ReadGroupSet]. | 1589 * Completes with a [ReadGroupSet]. |
| 1595 * | 1590 * |
| 1596 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1591 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1597 * error. | 1592 * error. |
| 1598 * | 1593 * |
| 1599 * If the used [http.Client] completes with an error when making a REST call, | 1594 * If the used [http.Client] completes with an error when making a REST call, |
| 1600 * this method will complete with the same error. | 1595 * this method will complete with the same error. |
| 1601 */ | 1596 */ |
| 1602 async.Future<ReadGroupSet> get(core.String readGroupSetId) { | 1597 async.Future<ReadGroupSet> get(core.String readGroupSetId) { |
| 1603 var _url = null; | 1598 var _url = null; |
| 1604 var _queryParams = new core.Map(); | 1599 var _queryParams = new core.Map(); |
| 1605 var _uploadMedia = null; | 1600 var _uploadMedia = null; |
| 1606 var _uploadOptions = null; | 1601 var _uploadOptions = null; |
| 1607 var _downloadOptions = common.DownloadOptions.Metadata; | 1602 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1608 var _body = null; | 1603 var _body = null; |
| 1609 | 1604 |
| 1610 if (readGroupSetId == null) { | 1605 if (readGroupSetId == null) { |
| 1611 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1606 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 1612 } | 1607 } |
| 1613 | 1608 |
| 1614 | 1609 |
| 1615 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); | 1610 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); |
| 1616 | 1611 |
| 1617 var _response = _requester.request(_url, | 1612 var _response = _requester.request(_url, |
| 1618 "GET", | 1613 "GET", |
| 1619 body: _body, | 1614 body: _body, |
| 1620 queryParams: _queryParams, | 1615 queryParams: _queryParams, |
| 1621 uploadOptions: _uploadOptions, | 1616 uploadOptions: _uploadOptions, |
| 1622 uploadMedia: _uploadMedia, | 1617 uploadMedia: _uploadMedia, |
| 1623 downloadOptions: _downloadOptions); | 1618 downloadOptions: _downloadOptions); |
| 1624 return _response.then((data) => new ReadGroupSet.fromJson(data)); | 1619 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
| 1625 } | 1620 } |
| 1626 | 1621 |
| 1627 /** | 1622 /** |
| 1628 * Creates read group sets by asynchronously importing the provided | 1623 * Creates read group sets by asynchronously importing the provided |
| 1629 * information. | 1624 * information. |
| 1630 * | 1625 * |
| 1631 * Note that currently comments in the input file header are not imported and | 1626 * Note that currently comments in the input file header are not imported and |
| 1632 * some custom tags will be converted to strings, rather than preserving tag | 1627 * some custom tags will be converted to strings, rather than preserving tag |
| 1633 * types. The caller must have WRITE permissions to the dataset. | 1628 * types. The caller must have WRITE permissions to the dataset. |
| 1634 * | 1629 * |
| 1635 * [request] - The metadata request object. | 1630 * [request] - The metadata request object. |
| 1636 * | 1631 * |
| 1637 * Request parameters: | 1632 * Request parameters: |
| 1638 * | 1633 * |
| 1639 * Completes with a [ImportReadGroupSetsResponse]. | 1634 * Completes with a [ImportReadGroupSetsResponse]. |
| 1640 * | 1635 * |
| 1641 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1636 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1642 * error. | 1637 * error. |
| 1643 * | 1638 * |
| 1644 * If the used [http.Client] completes with an error when making a REST call, | 1639 * If the used [http.Client] completes with an error when making a REST call, |
| 1645 * this method will complete with the same error. | 1640 * this method will complete with the same error. |
| 1646 */ | 1641 */ |
| 1647 async.Future<ImportReadGroupSetsResponse> import(ImportReadGroupSetsRequest re
quest) { | 1642 async.Future<ImportReadGroupSetsResponse> import(ImportReadGroupSetsRequest re
quest) { |
| 1648 var _url = null; | 1643 var _url = null; |
| 1649 var _queryParams = new core.Map(); | 1644 var _queryParams = new core.Map(); |
| 1650 var _uploadMedia = null; | 1645 var _uploadMedia = null; |
| 1651 var _uploadOptions = null; | 1646 var _uploadOptions = null; |
| 1652 var _downloadOptions = common.DownloadOptions.Metadata; | 1647 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1653 var _body = null; | 1648 var _body = null; |
| 1654 | 1649 |
| 1655 if (request != null) { | 1650 if (request != null) { |
| 1656 _body = convert.JSON.encode((request).toJson()); | 1651 _body = convert.JSON.encode((request).toJson()); |
| 1657 } | 1652 } |
| 1658 | 1653 |
| 1659 | 1654 |
| 1660 _url = 'readgroupsets/import'; | 1655 _url = 'readgroupsets/import'; |
| 1661 | 1656 |
| 1662 var _response = _requester.request(_url, | 1657 var _response = _requester.request(_url, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1675 * [request] - The metadata request object. | 1670 * [request] - The metadata request object. |
| 1676 * | 1671 * |
| 1677 * Request parameters: | 1672 * Request parameters: |
| 1678 * | 1673 * |
| 1679 * [readGroupSetId] - The ID of the read group set to be updated. The caller | 1674 * [readGroupSetId] - The ID of the read group set to be updated. The caller |
| 1680 * must have WRITE permissions to the dataset associated with this read group | 1675 * must have WRITE permissions to the dataset associated with this read group |
| 1681 * set. | 1676 * set. |
| 1682 * | 1677 * |
| 1683 * Completes with a [ReadGroupSet]. | 1678 * Completes with a [ReadGroupSet]. |
| 1684 * | 1679 * |
| 1685 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1680 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1686 * error. | 1681 * error. |
| 1687 * | 1682 * |
| 1688 * If the used [http.Client] completes with an error when making a REST call, | 1683 * If the used [http.Client] completes with an error when making a REST call, |
| 1689 * this method will complete with the same error. | 1684 * this method will complete with the same error. |
| 1690 */ | 1685 */ |
| 1691 async.Future<ReadGroupSet> patch(ReadGroupSet request, core.String readGroupSe
tId) { | 1686 async.Future<ReadGroupSet> patch(ReadGroupSet request, core.String readGroupSe
tId) { |
| 1692 var _url = null; | 1687 var _url = null; |
| 1693 var _queryParams = new core.Map(); | 1688 var _queryParams = new core.Map(); |
| 1694 var _uploadMedia = null; | 1689 var _uploadMedia = null; |
| 1695 var _uploadOptions = null; | 1690 var _uploadOptions = null; |
| 1696 var _downloadOptions = common.DownloadOptions.Metadata; | 1691 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1697 var _body = null; | 1692 var _body = null; |
| 1698 | 1693 |
| 1699 if (request != null) { | 1694 if (request != null) { |
| 1700 _body = convert.JSON.encode((request).toJson()); | 1695 _body = convert.JSON.encode((request).toJson()); |
| 1701 } | 1696 } |
| 1702 if (readGroupSetId == null) { | 1697 if (readGroupSetId == null) { |
| 1703 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1698 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 1704 } | 1699 } |
| 1705 | 1700 |
| 1706 | 1701 |
| 1707 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); | 1702 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); |
| 1708 | 1703 |
| 1709 var _response = _requester.request(_url, | 1704 var _response = _requester.request(_url, |
| 1710 "PATCH", | 1705 "PATCH", |
| 1711 body: _body, | 1706 body: _body, |
| 1712 queryParams: _queryParams, | 1707 queryParams: _queryParams, |
| 1713 uploadOptions: _uploadOptions, | 1708 uploadOptions: _uploadOptions, |
| 1714 uploadMedia: _uploadMedia, | 1709 uploadMedia: _uploadMedia, |
| 1715 downloadOptions: _downloadOptions); | 1710 downloadOptions: _downloadOptions); |
| 1716 return _response.then((data) => new ReadGroupSet.fromJson(data)); | 1711 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
| 1717 } | 1712 } |
| 1718 | 1713 |
| 1719 /** | 1714 /** |
| 1720 * Searches for read group sets matching the criteria. | 1715 * Searches for read group sets matching the criteria. |
| 1721 * | 1716 * |
| 1722 * Implements GlobalAllianceApi.searchReadGroupSets. | 1717 * Implements GlobalAllianceApi.searchReadGroupSets. |
| 1723 * | 1718 * |
| 1724 * [request] - The metadata request object. | 1719 * [request] - The metadata request object. |
| 1725 * | 1720 * |
| 1726 * Request parameters: | 1721 * Request parameters: |
| 1727 * | 1722 * |
| 1728 * Completes with a [SearchReadGroupSetsResponse]. | 1723 * Completes with a [SearchReadGroupSetsResponse]. |
| 1729 * | 1724 * |
| 1730 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1725 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1731 * error. | 1726 * error. |
| 1732 * | 1727 * |
| 1733 * If the used [http.Client] completes with an error when making a REST call, | 1728 * If the used [http.Client] completes with an error when making a REST call, |
| 1734 * this method will complete with the same error. | 1729 * this method will complete with the same error. |
| 1735 */ | 1730 */ |
| 1736 async.Future<SearchReadGroupSetsResponse> search(SearchReadGroupSetsRequest re
quest) { | 1731 async.Future<SearchReadGroupSetsResponse> search(SearchReadGroupSetsRequest re
quest) { |
| 1737 var _url = null; | 1732 var _url = null; |
| 1738 var _queryParams = new core.Map(); | 1733 var _queryParams = new core.Map(); |
| 1739 var _uploadMedia = null; | 1734 var _uploadMedia = null; |
| 1740 var _uploadOptions = null; | 1735 var _uploadOptions = null; |
| 1741 var _downloadOptions = common.DownloadOptions.Metadata; | 1736 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1742 var _body = null; | 1737 var _body = null; |
| 1743 | 1738 |
| 1744 if (request != null) { | 1739 if (request != null) { |
| 1745 _body = convert.JSON.encode((request).toJson()); | 1740 _body = convert.JSON.encode((request).toJson()); |
| 1746 } | 1741 } |
| 1747 | 1742 |
| 1748 | 1743 |
| 1749 _url = 'readgroupsets/search'; | 1744 _url = 'readgroupsets/search'; |
| 1750 | 1745 |
| 1751 var _response = _requester.request(_url, | 1746 var _response = _requester.request(_url, |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1764 * [request] - The metadata request object. | 1759 * [request] - The metadata request object. |
| 1765 * | 1760 * |
| 1766 * Request parameters: | 1761 * Request parameters: |
| 1767 * | 1762 * |
| 1768 * [readGroupSetId] - The ID of the read group set to be updated. The caller | 1763 * [readGroupSetId] - The ID of the read group set to be updated. The caller |
| 1769 * must have WRITE permissions to the dataset associated with this read group | 1764 * must have WRITE permissions to the dataset associated with this read group |
| 1770 * set. | 1765 * set. |
| 1771 * | 1766 * |
| 1772 * Completes with a [ReadGroupSet]. | 1767 * Completes with a [ReadGroupSet]. |
| 1773 * | 1768 * |
| 1774 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1769 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1775 * error. | 1770 * error. |
| 1776 * | 1771 * |
| 1777 * If the used [http.Client] completes with an error when making a REST call, | 1772 * If the used [http.Client] completes with an error when making a REST call, |
| 1778 * this method will complete with the same error. | 1773 * this method will complete with the same error. |
| 1779 */ | 1774 */ |
| 1780 async.Future<ReadGroupSet> update(ReadGroupSet request, core.String readGroupS
etId) { | 1775 async.Future<ReadGroupSet> update(ReadGroupSet request, core.String readGroupS
etId) { |
| 1781 var _url = null; | 1776 var _url = null; |
| 1782 var _queryParams = new core.Map(); | 1777 var _queryParams = new core.Map(); |
| 1783 var _uploadMedia = null; | 1778 var _uploadMedia = null; |
| 1784 var _uploadOptions = null; | 1779 var _uploadOptions = null; |
| 1785 var _downloadOptions = common.DownloadOptions.Metadata; | 1780 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1786 var _body = null; | 1781 var _body = null; |
| 1787 | 1782 |
| 1788 if (request != null) { | 1783 if (request != null) { |
| 1789 _body = convert.JSON.encode((request).toJson()); | 1784 _body = convert.JSON.encode((request).toJson()); |
| 1790 } | 1785 } |
| 1791 if (readGroupSetId == null) { | 1786 if (readGroupSetId == null) { |
| 1792 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1787 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 1793 } | 1788 } |
| 1794 | 1789 |
| 1795 | 1790 |
| 1796 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId'); | 1791 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'); |
| 1797 | 1792 |
| 1798 var _response = _requester.request(_url, | 1793 var _response = _requester.request(_url, |
| 1799 "PUT", | 1794 "PUT", |
| 1800 body: _body, | 1795 body: _body, |
| 1801 queryParams: _queryParams, | 1796 queryParams: _queryParams, |
| 1802 uploadOptions: _uploadOptions, | 1797 uploadOptions: _uploadOptions, |
| 1803 uploadMedia: _uploadMedia, | 1798 uploadMedia: _uploadMedia, |
| 1804 downloadOptions: _downloadOptions); | 1799 downloadOptions: _downloadOptions); |
| 1805 return _response.then((data) => new ReadGroupSet.fromJson(data)); | 1800 return _response.then((data) => new ReadGroupSet.fromJson(data)); |
| 1806 } | 1801 } |
| 1807 | 1802 |
| 1808 } | 1803 } |
| 1809 | 1804 |
| 1810 | 1805 |
| 1811 /** Not documented yet. */ | |
| 1812 class ReadgroupsetsCoveragebucketsResourceApi { | 1806 class ReadgroupsetsCoveragebucketsResourceApi { |
| 1813 final common_internal.ApiRequester _requester; | 1807 final commons.ApiRequester _requester; |
| 1814 | 1808 |
| 1815 ReadgroupsetsCoveragebucketsResourceApi(common_internal.ApiRequester client) :
| 1809 ReadgroupsetsCoveragebucketsResourceApi(commons.ApiRequester client) : |
| 1816 _requester = client; | 1810 _requester = client; |
| 1817 | 1811 |
| 1818 /** | 1812 /** |
| 1819 * Lists fixed width coverage buckets for a read group set, each of which | 1813 * Lists fixed width coverage buckets for a read group set, each of which |
| 1820 * correspond to a range of a reference sequence. Each bucket summarizes | 1814 * correspond to a range of a reference sequence. Each bucket summarizes |
| 1821 * coverage information across its corresponding genomic range. | 1815 * coverage information across its corresponding genomic range. |
| 1822 * | 1816 * |
| 1823 * Coverage is defined as the number of reads which are aligned to a given | 1817 * Coverage is defined as the number of reads which are aligned to a given |
| 1824 * base in the reference sequence. Coverage buckets are available at several | 1818 * base in the reference sequence. Coverage buckets are available at several |
| 1825 * precomputed bucket widths, enabling retrieval of various coverage 'zoom | 1819 * precomputed bucket widths, enabling retrieval of various coverage 'zoom |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1849 * | 1843 * |
| 1850 * [targetBucketWidth] - The desired width of each reported coverage bucket in | 1844 * [targetBucketWidth] - The desired width of each reported coverage bucket in |
| 1851 * base pairs. This will be rounded down to the nearest precomputed bucket | 1845 * base pairs. This will be rounded down to the nearest precomputed bucket |
| 1852 * width; the value of which is returned as bucketWidth in the response. | 1846 * width; the value of which is returned as bucketWidth in the response. |
| 1853 * Defaults to infinity (each bucket spans an entire reference sequence) or | 1847 * Defaults to infinity (each bucket spans an entire reference sequence) or |
| 1854 * the length of the target range, if specified. The smallest precomputed | 1848 * the length of the target range, if specified. The smallest precomputed |
| 1855 * bucketWidth is currently 2048 base pairs; this is subject to change. | 1849 * bucketWidth is currently 2048 base pairs; this is subject to change. |
| 1856 * | 1850 * |
| 1857 * Completes with a [ListCoverageBucketsResponse]. | 1851 * Completes with a [ListCoverageBucketsResponse]. |
| 1858 * | 1852 * |
| 1859 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1853 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1860 * error. | 1854 * error. |
| 1861 * | 1855 * |
| 1862 * If the used [http.Client] completes with an error when making a REST call, | 1856 * If the used [http.Client] completes with an error when making a REST call, |
| 1863 * this method will complete with the same error. | 1857 * this method will complete with the same error. |
| 1864 */ | 1858 */ |
| 1865 async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {co
re.int pageSize, core.String pageToken, core.String range_end, core.String range
_referenceName, core.String range_start, core.String targetBucketWidth}) { | 1859 async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {co
re.int pageSize, core.String pageToken, core.String range_end, core.String range
_referenceName, core.String range_start, core.String targetBucketWidth}) { |
| 1866 var _url = null; | 1860 var _url = null; |
| 1867 var _queryParams = new core.Map(); | 1861 var _queryParams = new core.Map(); |
| 1868 var _uploadMedia = null; | 1862 var _uploadMedia = null; |
| 1869 var _uploadOptions = null; | 1863 var _uploadOptions = null; |
| 1870 var _downloadOptions = common.DownloadOptions.Metadata; | 1864 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1871 var _body = null; | 1865 var _body = null; |
| 1872 | 1866 |
| 1873 if (readGroupSetId == null) { | 1867 if (readGroupSetId == null) { |
| 1874 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1868 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
| 1875 } | 1869 } |
| 1876 if (pageSize != null) { | 1870 if (pageSize != null) { |
| 1877 _queryParams["pageSize"] = ["${pageSize}"]; | 1871 _queryParams["pageSize"] = ["${pageSize}"]; |
| 1878 } | 1872 } |
| 1879 if (pageToken != null) { | 1873 if (pageToken != null) { |
| 1880 _queryParams["pageToken"] = [pageToken]; | 1874 _queryParams["pageToken"] = [pageToken]; |
| 1881 } | 1875 } |
| 1882 if (range_end != null) { | 1876 if (range_end != null) { |
| 1883 _queryParams["range.end"] = [range_end]; | 1877 _queryParams["range.end"] = [range_end]; |
| 1884 } | 1878 } |
| 1885 if (range_referenceName != null) { | 1879 if (range_referenceName != null) { |
| 1886 _queryParams["range.referenceName"] = [range_referenceName]; | 1880 _queryParams["range.referenceName"] = [range_referenceName]; |
| 1887 } | 1881 } |
| 1888 if (range_start != null) { | 1882 if (range_start != null) { |
| 1889 _queryParams["range.start"] = [range_start]; | 1883 _queryParams["range.start"] = [range_start]; |
| 1890 } | 1884 } |
| 1891 if (targetBucketWidth != null) { | 1885 if (targetBucketWidth != null) { |
| 1892 _queryParams["targetBucketWidth"] = [targetBucketWidth]; | 1886 _queryParams["targetBucketWidth"] = [targetBucketWidth]; |
| 1893 } | 1887 } |
| 1894 | 1888 |
| 1895 | 1889 |
| 1896 _url = 'readgroupsets/' + common_internal.Escaper.ecapeVariable('$readGroupS
etId') + '/coveragebuckets'; | 1890 _url = 'readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId') +
'/coveragebuckets'; |
| 1897 | 1891 |
| 1898 var _response = _requester.request(_url, | 1892 var _response = _requester.request(_url, |
| 1899 "GET", | 1893 "GET", |
| 1900 body: _body, | 1894 body: _body, |
| 1901 queryParams: _queryParams, | 1895 queryParams: _queryParams, |
| 1902 uploadOptions: _uploadOptions, | 1896 uploadOptions: _uploadOptions, |
| 1903 uploadMedia: _uploadMedia, | 1897 uploadMedia: _uploadMedia, |
| 1904 downloadOptions: _downloadOptions); | 1898 downloadOptions: _downloadOptions); |
| 1905 return _response.then((data) => new ListCoverageBucketsResponse.fromJson(dat
a)); | 1899 return _response.then((data) => new ListCoverageBucketsResponse.fromJson(dat
a)); |
| 1906 } | 1900 } |
| 1907 | 1901 |
| 1908 } | 1902 } |
| 1909 | 1903 |
| 1910 | 1904 |
| 1911 /** Not documented yet. */ | |
| 1912 class ReadsResourceApi { | 1905 class ReadsResourceApi { |
| 1913 final common_internal.ApiRequester _requester; | 1906 final commons.ApiRequester _requester; |
| 1914 | 1907 |
| 1915 ReadsResourceApi(common_internal.ApiRequester client) : | 1908 ReadsResourceApi(commons.ApiRequester client) : |
| 1916 _requester = client; | 1909 _requester = client; |
| 1917 | 1910 |
| 1918 /** | 1911 /** |
| 1919 * Gets a list of reads for one or more read group sets. Reads search operates | 1912 * Gets a list of reads for one or more read group sets. Reads search operates |
| 1920 * over a genomic coordinate space of reference sequence & position defined | 1913 * over a genomic coordinate space of reference sequence & position defined |
| 1921 * over the reference sequences to which the requested read group sets are | 1914 * over the reference sequences to which the requested read group sets are |
| 1922 * aligned. | 1915 * aligned. |
| 1923 * | 1916 * |
| 1924 * If a target positional range is specified, search returns all reads whose | 1917 * If a target positional range is specified, search returns all reads whose |
| 1925 * alignment to the reference genome overlap the range. A query which | 1918 * alignment to the reference genome overlap the range. A query which |
| 1926 * specifies only read group set IDs yields all reads in those read group | 1919 * specifies only read group set IDs yields all reads in those read group |
| 1927 * sets, including unmapped reads. | 1920 * sets, including unmapped reads. |
| 1928 * | 1921 * |
| 1929 * All reads returned (including reads on subsequent pages) are ordered by | 1922 * All reads returned (including reads on subsequent pages) are ordered by |
| 1930 * genomic coordinate (reference sequence & position). Reads with equivalent | 1923 * genomic coordinate (reference sequence & position). Reads with equivalent |
| 1931 * genomic coordinates are returned in a deterministic order. | 1924 * genomic coordinates are returned in a deterministic order. |
| 1932 * | 1925 * |
| 1933 * Implements GlobalAllianceApi.searchReads. | 1926 * Implements GlobalAllianceApi.searchReads. |
| 1934 * | 1927 * |
| 1935 * [request] - The metadata request object. | 1928 * [request] - The metadata request object. |
| 1936 * | 1929 * |
| 1937 * Request parameters: | 1930 * Request parameters: |
| 1938 * | 1931 * |
| 1939 * Completes with a [SearchReadsResponse]. | 1932 * Completes with a [SearchReadsResponse]. |
| 1940 * | 1933 * |
| 1941 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1934 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1942 * error. | 1935 * error. |
| 1943 * | 1936 * |
| 1944 * If the used [http.Client] completes with an error when making a REST call, | 1937 * If the used [http.Client] completes with an error when making a REST call, |
| 1945 * this method will complete with the same error. | 1938 * this method will complete with the same error. |
| 1946 */ | 1939 */ |
| 1947 async.Future<SearchReadsResponse> search(SearchReadsRequest request) { | 1940 async.Future<SearchReadsResponse> search(SearchReadsRequest request) { |
| 1948 var _url = null; | 1941 var _url = null; |
| 1949 var _queryParams = new core.Map(); | 1942 var _queryParams = new core.Map(); |
| 1950 var _uploadMedia = null; | 1943 var _uploadMedia = null; |
| 1951 var _uploadOptions = null; | 1944 var _uploadOptions = null; |
| 1952 var _downloadOptions = common.DownloadOptions.Metadata; | 1945 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 1953 var _body = null; | 1946 var _body = null; |
| 1954 | 1947 |
| 1955 if (request != null) { | 1948 if (request != null) { |
| 1956 _body = convert.JSON.encode((request).toJson()); | 1949 _body = convert.JSON.encode((request).toJson()); |
| 1957 } | 1950 } |
| 1958 | 1951 |
| 1959 | 1952 |
| 1960 _url = 'reads/search'; | 1953 _url = 'reads/search'; |
| 1961 | 1954 |
| 1962 var _response = _requester.request(_url, | 1955 var _response = _requester.request(_url, |
| 1963 "POST", | 1956 "POST", |
| 1964 body: _body, | 1957 body: _body, |
| 1965 queryParams: _queryParams, | 1958 queryParams: _queryParams, |
| 1966 uploadOptions: _uploadOptions, | 1959 uploadOptions: _uploadOptions, |
| 1967 uploadMedia: _uploadMedia, | 1960 uploadMedia: _uploadMedia, |
| 1968 downloadOptions: _downloadOptions); | 1961 downloadOptions: _downloadOptions); |
| 1969 return _response.then((data) => new SearchReadsResponse.fromJson(data)); | 1962 return _response.then((data) => new SearchReadsResponse.fromJson(data)); |
| 1970 } | 1963 } |
| 1971 | 1964 |
| 1972 } | 1965 } |
| 1973 | 1966 |
| 1974 | 1967 |
| 1975 /** Not documented yet. */ | |
| 1976 class ReferencesResourceApi { | 1968 class ReferencesResourceApi { |
| 1977 final common_internal.ApiRequester _requester; | 1969 final commons.ApiRequester _requester; |
| 1978 | 1970 |
| 1979 ReferencesBasesResourceApi get bases => new ReferencesBasesResourceApi(_reques
ter); | 1971 ReferencesBasesResourceApi get bases => new ReferencesBasesResourceApi(_reques
ter); |
| 1980 | 1972 |
| 1981 ReferencesResourceApi(common_internal.ApiRequester client) : | 1973 ReferencesResourceApi(commons.ApiRequester client) : |
| 1982 _requester = client; | 1974 _requester = client; |
| 1983 | 1975 |
| 1984 /** | 1976 /** |
| 1985 * Gets a reference. | 1977 * Gets a reference. |
| 1986 * | 1978 * |
| 1987 * Implements GlobalAllianceApi.getReference. | 1979 * Implements GlobalAllianceApi.getReference. |
| 1988 * | 1980 * |
| 1989 * Request parameters: | 1981 * Request parameters: |
| 1990 * | 1982 * |
| 1991 * [referenceId] - The ID of the reference. | 1983 * [referenceId] - The ID of the reference. |
| 1992 * | 1984 * |
| 1993 * Completes with a [Reference]. | 1985 * Completes with a [Reference]. |
| 1994 * | 1986 * |
| 1995 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1987 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 1996 * error. | 1988 * error. |
| 1997 * | 1989 * |
| 1998 * If the used [http.Client] completes with an error when making a REST call, | 1990 * If the used [http.Client] completes with an error when making a REST call, |
| 1999 * this method will complete with the same error. | 1991 * this method will complete with the same error. |
| 2000 */ | 1992 */ |
| 2001 async.Future<Reference> get(core.String referenceId) { | 1993 async.Future<Reference> get(core.String referenceId) { |
| 2002 var _url = null; | 1994 var _url = null; |
| 2003 var _queryParams = new core.Map(); | 1995 var _queryParams = new core.Map(); |
| 2004 var _uploadMedia = null; | 1996 var _uploadMedia = null; |
| 2005 var _uploadOptions = null; | 1997 var _uploadOptions = null; |
| 2006 var _downloadOptions = common.DownloadOptions.Metadata; | 1998 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2007 var _body = null; | 1999 var _body = null; |
| 2008 | 2000 |
| 2009 if (referenceId == null) { | 2001 if (referenceId == null) { |
| 2010 throw new core.ArgumentError("Parameter referenceId is required."); | 2002 throw new core.ArgumentError("Parameter referenceId is required."); |
| 2011 } | 2003 } |
| 2012 | 2004 |
| 2013 | 2005 |
| 2014 _url = 'references/' + common_internal.Escaper.ecapeVariable('$referenceId')
; | 2006 _url = 'references/' + commons.Escaper.ecapeVariable('$referenceId'); |
| 2015 | 2007 |
| 2016 var _response = _requester.request(_url, | 2008 var _response = _requester.request(_url, |
| 2017 "GET", | 2009 "GET", |
| 2018 body: _body, | 2010 body: _body, |
| 2019 queryParams: _queryParams, | 2011 queryParams: _queryParams, |
| 2020 uploadOptions: _uploadOptions, | 2012 uploadOptions: _uploadOptions, |
| 2021 uploadMedia: _uploadMedia, | 2013 uploadMedia: _uploadMedia, |
| 2022 downloadOptions: _downloadOptions); | 2014 downloadOptions: _downloadOptions); |
| 2023 return _response.then((data) => new Reference.fromJson(data)); | 2015 return _response.then((data) => new Reference.fromJson(data)); |
| 2024 } | 2016 } |
| 2025 | 2017 |
| 2026 /** | 2018 /** |
| 2027 * Searches for references which match the given criteria. | 2019 * Searches for references which match the given criteria. |
| 2028 * | 2020 * |
| 2029 * Implements GlobalAllianceApi.searchReferences. | 2021 * Implements GlobalAllianceApi.searchReferences. |
| 2030 * | 2022 * |
| 2031 * [request] - The metadata request object. | 2023 * [request] - The metadata request object. |
| 2032 * | 2024 * |
| 2033 * Request parameters: | 2025 * Request parameters: |
| 2034 * | 2026 * |
| 2035 * Completes with a [SearchReferencesResponse]. | 2027 * Completes with a [SearchReferencesResponse]. |
| 2036 * | 2028 * |
| 2037 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2029 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2038 * error. | 2030 * error. |
| 2039 * | 2031 * |
| 2040 * If the used [http.Client] completes with an error when making a REST call, | 2032 * If the used [http.Client] completes with an error when making a REST call, |
| 2041 * this method will complete with the same error. | 2033 * this method will complete with the same error. |
| 2042 */ | 2034 */ |
| 2043 async.Future<SearchReferencesResponse> search(SearchReferencesRequest request)
{ | 2035 async.Future<SearchReferencesResponse> search(SearchReferencesRequest request)
{ |
| 2044 var _url = null; | 2036 var _url = null; |
| 2045 var _queryParams = new core.Map(); | 2037 var _queryParams = new core.Map(); |
| 2046 var _uploadMedia = null; | 2038 var _uploadMedia = null; |
| 2047 var _uploadOptions = null; | 2039 var _uploadOptions = null; |
| 2048 var _downloadOptions = common.DownloadOptions.Metadata; | 2040 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2049 var _body = null; | 2041 var _body = null; |
| 2050 | 2042 |
| 2051 if (request != null) { | 2043 if (request != null) { |
| 2052 _body = convert.JSON.encode((request).toJson()); | 2044 _body = convert.JSON.encode((request).toJson()); |
| 2053 } | 2045 } |
| 2054 | 2046 |
| 2055 | 2047 |
| 2056 _url = 'references/search'; | 2048 _url = 'references/search'; |
| 2057 | 2049 |
| 2058 var _response = _requester.request(_url, | 2050 var _response = _requester.request(_url, |
| 2059 "POST", | 2051 "POST", |
| 2060 body: _body, | 2052 body: _body, |
| 2061 queryParams: _queryParams, | 2053 queryParams: _queryParams, |
| 2062 uploadOptions: _uploadOptions, | 2054 uploadOptions: _uploadOptions, |
| 2063 uploadMedia: _uploadMedia, | 2055 uploadMedia: _uploadMedia, |
| 2064 downloadOptions: _downloadOptions); | 2056 downloadOptions: _downloadOptions); |
| 2065 return _response.then((data) => new SearchReferencesResponse.fromJson(data))
; | 2057 return _response.then((data) => new SearchReferencesResponse.fromJson(data))
; |
| 2066 } | 2058 } |
| 2067 | 2059 |
| 2068 } | 2060 } |
| 2069 | 2061 |
| 2070 | 2062 |
| 2071 /** Not documented yet. */ | |
| 2072 class ReferencesBasesResourceApi { | 2063 class ReferencesBasesResourceApi { |
| 2073 final common_internal.ApiRequester _requester; | 2064 final commons.ApiRequester _requester; |
| 2074 | 2065 |
| 2075 ReferencesBasesResourceApi(common_internal.ApiRequester client) : | 2066 ReferencesBasesResourceApi(commons.ApiRequester client) : |
| 2076 _requester = client; | 2067 _requester = client; |
| 2077 | 2068 |
| 2078 /** | 2069 /** |
| 2079 * Lists the bases in a reference, optionally restricted to a range. | 2070 * Lists the bases in a reference, optionally restricted to a range. |
| 2080 * | 2071 * |
| 2081 * Implements GlobalAllianceApi.getReferenceBases. | 2072 * Implements GlobalAllianceApi.getReferenceBases. |
| 2082 * | 2073 * |
| 2083 * Request parameters: | 2074 * Request parameters: |
| 2084 * | 2075 * |
| 2085 * [referenceId] - The ID of the reference. | 2076 * [referenceId] - The ID of the reference. |
| 2086 * | 2077 * |
| 2087 * [end] - The end position (0-based, exclusive) of this query. Defaults to | 2078 * [end] - The end position (0-based, exclusive) of this query. Defaults to |
| 2088 * the length of this reference. | 2079 * the length of this reference. |
| 2089 * | 2080 * |
| 2090 * [pageSize] - Specifies the maximum number of bases to return in a single | 2081 * [pageSize] - Specifies the maximum number of bases to return in a single |
| 2091 * page. | 2082 * page. |
| 2092 * | 2083 * |
| 2093 * [pageToken] - The continuation token, which is used to page through large | 2084 * [pageToken] - The continuation token, which is used to page through large |
| 2094 * result sets. To get the next page of results, set this parameter to the | 2085 * result sets. To get the next page of results, set this parameter to the |
| 2095 * value of nextPageToken from the previous response. | 2086 * value of nextPageToken from the previous response. |
| 2096 * | 2087 * |
| 2097 * [start] - The start position (0-based) of this query. Defaults to 0. | 2088 * [start] - The start position (0-based) of this query. Defaults to 0. |
| 2098 * | 2089 * |
| 2099 * Completes with a [ListBasesResponse]. | 2090 * Completes with a [ListBasesResponse]. |
| 2100 * | 2091 * |
| 2101 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2102 * error. | 2093 * error. |
| 2103 * | 2094 * |
| 2104 * If the used [http.Client] completes with an error when making a REST call, | 2095 * If the used [http.Client] completes with an error when making a REST call, |
| 2105 * this method will complete with the same error. | 2096 * this method will complete with the same error. |
| 2106 */ | 2097 */ |
| 2107 async.Future<ListBasesResponse> list(core.String referenceId, {core.String end
, core.int pageSize, core.String pageToken, core.String start}) { | 2098 async.Future<ListBasesResponse> list(core.String referenceId, {core.String end
, core.int pageSize, core.String pageToken, core.String start}) { |
| 2108 var _url = null; | 2099 var _url = null; |
| 2109 var _queryParams = new core.Map(); | 2100 var _queryParams = new core.Map(); |
| 2110 var _uploadMedia = null; | 2101 var _uploadMedia = null; |
| 2111 var _uploadOptions = null; | 2102 var _uploadOptions = null; |
| 2112 var _downloadOptions = common.DownloadOptions.Metadata; | 2103 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2113 var _body = null; | 2104 var _body = null; |
| 2114 | 2105 |
| 2115 if (referenceId == null) { | 2106 if (referenceId == null) { |
| 2116 throw new core.ArgumentError("Parameter referenceId is required."); | 2107 throw new core.ArgumentError("Parameter referenceId is required."); |
| 2117 } | 2108 } |
| 2118 if (end != null) { | 2109 if (end != null) { |
| 2119 _queryParams["end"] = [end]; | 2110 _queryParams["end"] = [end]; |
| 2120 } | 2111 } |
| 2121 if (pageSize != null) { | 2112 if (pageSize != null) { |
| 2122 _queryParams["pageSize"] = ["${pageSize}"]; | 2113 _queryParams["pageSize"] = ["${pageSize}"]; |
| 2123 } | 2114 } |
| 2124 if (pageToken != null) { | 2115 if (pageToken != null) { |
| 2125 _queryParams["pageToken"] = [pageToken]; | 2116 _queryParams["pageToken"] = [pageToken]; |
| 2126 } | 2117 } |
| 2127 if (start != null) { | 2118 if (start != null) { |
| 2128 _queryParams["start"] = [start]; | 2119 _queryParams["start"] = [start]; |
| 2129 } | 2120 } |
| 2130 | 2121 |
| 2131 | 2122 |
| 2132 _url = 'references/' + common_internal.Escaper.ecapeVariable('$referenceId')
+ '/bases'; | 2123 _url = 'references/' + commons.Escaper.ecapeVariable('$referenceId') + '/bas
es'; |
| 2133 | 2124 |
| 2134 var _response = _requester.request(_url, | 2125 var _response = _requester.request(_url, |
| 2135 "GET", | 2126 "GET", |
| 2136 body: _body, | 2127 body: _body, |
| 2137 queryParams: _queryParams, | 2128 queryParams: _queryParams, |
| 2138 uploadOptions: _uploadOptions, | 2129 uploadOptions: _uploadOptions, |
| 2139 uploadMedia: _uploadMedia, | 2130 uploadMedia: _uploadMedia, |
| 2140 downloadOptions: _downloadOptions); | 2131 downloadOptions: _downloadOptions); |
| 2141 return _response.then((data) => new ListBasesResponse.fromJson(data)); | 2132 return _response.then((data) => new ListBasesResponse.fromJson(data)); |
| 2142 } | 2133 } |
| 2143 | 2134 |
| 2144 } | 2135 } |
| 2145 | 2136 |
| 2146 | 2137 |
| 2147 /** Not documented yet. */ | |
| 2148 class ReferencesetsResourceApi { | 2138 class ReferencesetsResourceApi { |
| 2149 final common_internal.ApiRequester _requester; | 2139 final commons.ApiRequester _requester; |
| 2150 | 2140 |
| 2151 ReferencesetsResourceApi(common_internal.ApiRequester client) : | 2141 ReferencesetsResourceApi(commons.ApiRequester client) : |
| 2152 _requester = client; | 2142 _requester = client; |
| 2153 | 2143 |
| 2154 /** | 2144 /** |
| 2155 * Gets a reference set. | 2145 * Gets a reference set. |
| 2156 * | 2146 * |
| 2157 * Implements GlobalAllianceApi.getReferenceSet. | 2147 * Implements GlobalAllianceApi.getReferenceSet. |
| 2158 * | 2148 * |
| 2159 * Request parameters: | 2149 * Request parameters: |
| 2160 * | 2150 * |
| 2161 * [referenceSetId] - The ID of the reference set. | 2151 * [referenceSetId] - The ID of the reference set. |
| 2162 * | 2152 * |
| 2163 * Completes with a [ReferenceSet]. | 2153 * Completes with a [ReferenceSet]. |
| 2164 * | 2154 * |
| 2165 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2155 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2166 * error. | 2156 * error. |
| 2167 * | 2157 * |
| 2168 * If the used [http.Client] completes with an error when making a REST call, | 2158 * If the used [http.Client] completes with an error when making a REST call, |
| 2169 * this method will complete with the same error. | 2159 * this method will complete with the same error. |
| 2170 */ | 2160 */ |
| 2171 async.Future<ReferenceSet> get(core.String referenceSetId) { | 2161 async.Future<ReferenceSet> get(core.String referenceSetId) { |
| 2172 var _url = null; | 2162 var _url = null; |
| 2173 var _queryParams = new core.Map(); | 2163 var _queryParams = new core.Map(); |
| 2174 var _uploadMedia = null; | 2164 var _uploadMedia = null; |
| 2175 var _uploadOptions = null; | 2165 var _uploadOptions = null; |
| 2176 var _downloadOptions = common.DownloadOptions.Metadata; | 2166 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2177 var _body = null; | 2167 var _body = null; |
| 2178 | 2168 |
| 2179 if (referenceSetId == null) { | 2169 if (referenceSetId == null) { |
| 2180 throw new core.ArgumentError("Parameter referenceSetId is required."); | 2170 throw new core.ArgumentError("Parameter referenceSetId is required."); |
| 2181 } | 2171 } |
| 2182 | 2172 |
| 2183 | 2173 |
| 2184 _url = 'referencesets/' + common_internal.Escaper.ecapeVariable('$referenceS
etId'); | 2174 _url = 'referencesets/' + commons.Escaper.ecapeVariable('$referenceSetId'); |
| 2185 | 2175 |
| 2186 var _response = _requester.request(_url, | 2176 var _response = _requester.request(_url, |
| 2187 "GET", | 2177 "GET", |
| 2188 body: _body, | 2178 body: _body, |
| 2189 queryParams: _queryParams, | 2179 queryParams: _queryParams, |
| 2190 uploadOptions: _uploadOptions, | 2180 uploadOptions: _uploadOptions, |
| 2191 uploadMedia: _uploadMedia, | 2181 uploadMedia: _uploadMedia, |
| 2192 downloadOptions: _downloadOptions); | 2182 downloadOptions: _downloadOptions); |
| 2193 return _response.then((data) => new ReferenceSet.fromJson(data)); | 2183 return _response.then((data) => new ReferenceSet.fromJson(data)); |
| 2194 } | 2184 } |
| 2195 | 2185 |
| 2196 /** | 2186 /** |
| 2197 * Searches for reference sets which match the given criteria. | 2187 * Searches for reference sets which match the given criteria. |
| 2198 * | 2188 * |
| 2199 * Implements GlobalAllianceApi.searchReferenceSets. | 2189 * Implements GlobalAllianceApi.searchReferenceSets. |
| 2200 * | 2190 * |
| 2201 * [request] - The metadata request object. | 2191 * [request] - The metadata request object. |
| 2202 * | 2192 * |
| 2203 * Request parameters: | 2193 * Request parameters: |
| 2204 * | 2194 * |
| 2205 * Completes with a [SearchReferenceSetsResponse]. | 2195 * Completes with a [SearchReferenceSetsResponse]. |
| 2206 * | 2196 * |
| 2207 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2197 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2208 * error. | 2198 * error. |
| 2209 * | 2199 * |
| 2210 * If the used [http.Client] completes with an error when making a REST call, | 2200 * If the used [http.Client] completes with an error when making a REST call, |
| 2211 * this method will complete with the same error. | 2201 * this method will complete with the same error. |
| 2212 */ | 2202 */ |
| 2213 async.Future<SearchReferenceSetsResponse> search(SearchReferenceSetsRequest re
quest) { | 2203 async.Future<SearchReferenceSetsResponse> search(SearchReferenceSetsRequest re
quest) { |
| 2214 var _url = null; | 2204 var _url = null; |
| 2215 var _queryParams = new core.Map(); | 2205 var _queryParams = new core.Map(); |
| 2216 var _uploadMedia = null; | 2206 var _uploadMedia = null; |
| 2217 var _uploadOptions = null; | 2207 var _uploadOptions = null; |
| 2218 var _downloadOptions = common.DownloadOptions.Metadata; | 2208 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2219 var _body = null; | 2209 var _body = null; |
| 2220 | 2210 |
| 2221 if (request != null) { | 2211 if (request != null) { |
| 2222 _body = convert.JSON.encode((request).toJson()); | 2212 _body = convert.JSON.encode((request).toJson()); |
| 2223 } | 2213 } |
| 2224 | 2214 |
| 2225 | 2215 |
| 2226 _url = 'referencesets/search'; | 2216 _url = 'referencesets/search'; |
| 2227 | 2217 |
| 2228 var _response = _requester.request(_url, | 2218 var _response = _requester.request(_url, |
| 2229 "POST", | 2219 "POST", |
| 2230 body: _body, | 2220 body: _body, |
| 2231 queryParams: _queryParams, | 2221 queryParams: _queryParams, |
| 2232 uploadOptions: _uploadOptions, | 2222 uploadOptions: _uploadOptions, |
| 2233 uploadMedia: _uploadMedia, | 2223 uploadMedia: _uploadMedia, |
| 2234 downloadOptions: _downloadOptions); | 2224 downloadOptions: _downloadOptions); |
| 2235 return _response.then((data) => new SearchReferenceSetsResponse.fromJson(dat
a)); | 2225 return _response.then((data) => new SearchReferenceSetsResponse.fromJson(dat
a)); |
| 2236 } | 2226 } |
| 2237 | 2227 |
| 2238 } | 2228 } |
| 2239 | 2229 |
| 2240 | 2230 |
| 2241 /** Not documented yet. */ | 2231 class StreamingVariantStoreResourceApi { |
| 2242 class VariantsResourceApi { | 2232 final commons.ApiRequester _requester; |
| 2243 final common_internal.ApiRequester _requester; | |
| 2244 | 2233 |
| 2245 VariantsResourceApi(common_internal.ApiRequester client) : | 2234 StreamingVariantStoreResourceApi(commons.ApiRequester client) : |
| 2246 _requester = client; | 2235 _requester = client; |
| 2247 | 2236 |
| 2248 /** | 2237 /** |
| 2238 * Returns a stream of all the variants matching the search request, ordered |
| 2239 * by reference name, position, and ID. |
| 2240 * |
| 2241 * [request] - The metadata request object. |
| 2242 * |
| 2243 * Request parameters: |
| 2244 * |
| 2245 * Completes with a [Variant]. |
| 2246 * |
| 2247 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2248 * error. |
| 2249 * |
| 2250 * If the used [http.Client] completes with an error when making a REST call, |
| 2251 * this method will complete with the same error. |
| 2252 */ |
| 2253 async.Future<Variant> streamvariants(StreamVariantsRequest request) { |
| 2254 var _url = null; |
| 2255 var _queryParams = new core.Map(); |
| 2256 var _uploadMedia = null; |
| 2257 var _uploadOptions = null; |
| 2258 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2259 var _body = null; |
| 2260 |
| 2261 if (request != null) { |
| 2262 _body = convert.JSON.encode((request).toJson()); |
| 2263 } |
| 2264 |
| 2265 |
| 2266 _url = 'streamingVariantStore/streamvariants'; |
| 2267 |
| 2268 var _response = _requester.request(_url, |
| 2269 "POST", |
| 2270 body: _body, |
| 2271 queryParams: _queryParams, |
| 2272 uploadOptions: _uploadOptions, |
| 2273 uploadMedia: _uploadMedia, |
| 2274 downloadOptions: _downloadOptions); |
| 2275 return _response.then((data) => new Variant.fromJson(data)); |
| 2276 } |
| 2277 |
| 2278 } |
| 2279 |
| 2280 |
| 2281 class VariantsResourceApi { |
| 2282 final commons.ApiRequester _requester; |
| 2283 |
| 2284 VariantsResourceApi(commons.ApiRequester client) : |
| 2285 _requester = client; |
| 2286 |
| 2287 /** |
| 2249 * Creates a new variant. | 2288 * Creates a new variant. |
| 2250 * | 2289 * |
| 2251 * [request] - The metadata request object. | 2290 * [request] - The metadata request object. |
| 2252 * | 2291 * |
| 2253 * Request parameters: | 2292 * Request parameters: |
| 2254 * | 2293 * |
| 2255 * Completes with a [Variant]. | 2294 * Completes with a [Variant]. |
| 2256 * | 2295 * |
| 2257 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2296 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2258 * error. | 2297 * error. |
| 2259 * | 2298 * |
| 2260 * If the used [http.Client] completes with an error when making a REST call, | 2299 * If the used [http.Client] completes with an error when making a REST call, |
| 2261 * this method will complete with the same error. | 2300 * this method will complete with the same error. |
| 2262 */ | 2301 */ |
| 2263 async.Future<Variant> create(Variant request) { | 2302 async.Future<Variant> create(Variant request) { |
| 2264 var _url = null; | 2303 var _url = null; |
| 2265 var _queryParams = new core.Map(); | 2304 var _queryParams = new core.Map(); |
| 2266 var _uploadMedia = null; | 2305 var _uploadMedia = null; |
| 2267 var _uploadOptions = null; | 2306 var _uploadOptions = null; |
| 2268 var _downloadOptions = common.DownloadOptions.Metadata; | 2307 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2269 var _body = null; | 2308 var _body = null; |
| 2270 | 2309 |
| 2271 if (request != null) { | 2310 if (request != null) { |
| 2272 _body = convert.JSON.encode((request).toJson()); | 2311 _body = convert.JSON.encode((request).toJson()); |
| 2273 } | 2312 } |
| 2274 | 2313 |
| 2275 | 2314 |
| 2276 _url = 'variants'; | 2315 _url = 'variants'; |
| 2277 | 2316 |
| 2278 var _response = _requester.request(_url, | 2317 var _response = _requester.request(_url, |
| 2279 "POST", | 2318 "POST", |
| 2280 body: _body, | 2319 body: _body, |
| 2281 queryParams: _queryParams, | 2320 queryParams: _queryParams, |
| 2282 uploadOptions: _uploadOptions, | 2321 uploadOptions: _uploadOptions, |
| 2283 uploadMedia: _uploadMedia, | 2322 uploadMedia: _uploadMedia, |
| 2284 downloadOptions: _downloadOptions); | 2323 downloadOptions: _downloadOptions); |
| 2285 return _response.then((data) => new Variant.fromJson(data)); | 2324 return _response.then((data) => new Variant.fromJson(data)); |
| 2286 } | 2325 } |
| 2287 | 2326 |
| 2288 /** | 2327 /** |
| 2289 * Deletes a variant. | 2328 * Deletes a variant. |
| 2290 * | 2329 * |
| 2291 * Request parameters: | 2330 * Request parameters: |
| 2292 * | 2331 * |
| 2293 * [variantId] - The ID of the variant to be deleted. | 2332 * [variantId] - The ID of the variant to be deleted. |
| 2294 * | 2333 * |
| 2295 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2334 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2296 * error. | 2335 * error. |
| 2297 * | 2336 * |
| 2298 * If the used [http.Client] completes with an error when making a REST call, | 2337 * If the used [http.Client] completes with an error when making a REST call, |
| 2299 * this method will complete with the same error. | 2338 * this method will complete with the same error. |
| 2300 */ | 2339 */ |
| 2301 async.Future delete(core.String variantId) { | 2340 async.Future delete(core.String variantId) { |
| 2302 var _url = null; | 2341 var _url = null; |
| 2303 var _queryParams = new core.Map(); | 2342 var _queryParams = new core.Map(); |
| 2304 var _uploadMedia = null; | 2343 var _uploadMedia = null; |
| 2305 var _uploadOptions = null; | 2344 var _uploadOptions = null; |
| 2306 var _downloadOptions = common.DownloadOptions.Metadata; | 2345 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2307 var _body = null; | 2346 var _body = null; |
| 2308 | 2347 |
| 2309 if (variantId == null) { | 2348 if (variantId == null) { |
| 2310 throw new core.ArgumentError("Parameter variantId is required."); | 2349 throw new core.ArgumentError("Parameter variantId is required."); |
| 2311 } | 2350 } |
| 2312 | 2351 |
| 2313 _downloadOptions = null; | 2352 _downloadOptions = null; |
| 2314 | 2353 |
| 2315 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); | 2354 _url = 'variants/' + commons.Escaper.ecapeVariable('$variantId'); |
| 2316 | 2355 |
| 2317 var _response = _requester.request(_url, | 2356 var _response = _requester.request(_url, |
| 2318 "DELETE", | 2357 "DELETE", |
| 2319 body: _body, | 2358 body: _body, |
| 2320 queryParams: _queryParams, | 2359 queryParams: _queryParams, |
| 2321 uploadOptions: _uploadOptions, | 2360 uploadOptions: _uploadOptions, |
| 2322 uploadMedia: _uploadMedia, | 2361 uploadMedia: _uploadMedia, |
| 2323 downloadOptions: _downloadOptions); | 2362 downloadOptions: _downloadOptions); |
| 2324 return _response.then((data) => null); | 2363 return _response.then((data) => null); |
| 2325 } | 2364 } |
| 2326 | 2365 |
| 2327 /** | 2366 /** |
| 2328 * Gets a variant by ID. | 2367 * Gets a variant by ID. |
| 2329 * | 2368 * |
| 2330 * Request parameters: | 2369 * Request parameters: |
| 2331 * | 2370 * |
| 2332 * [variantId] - The ID of the variant. | 2371 * [variantId] - The ID of the variant. |
| 2333 * | 2372 * |
| 2334 * Completes with a [Variant]. | 2373 * Completes with a [Variant]. |
| 2335 * | 2374 * |
| 2336 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2375 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2337 * error. | 2376 * error. |
| 2338 * | 2377 * |
| 2339 * If the used [http.Client] completes with an error when making a REST call, | 2378 * If the used [http.Client] completes with an error when making a REST call, |
| 2340 * this method will complete with the same error. | 2379 * this method will complete with the same error. |
| 2341 */ | 2380 */ |
| 2342 async.Future<Variant> get(core.String variantId) { | 2381 async.Future<Variant> get(core.String variantId) { |
| 2343 var _url = null; | 2382 var _url = null; |
| 2344 var _queryParams = new core.Map(); | 2383 var _queryParams = new core.Map(); |
| 2345 var _uploadMedia = null; | 2384 var _uploadMedia = null; |
| 2346 var _uploadOptions = null; | 2385 var _uploadOptions = null; |
| 2347 var _downloadOptions = common.DownloadOptions.Metadata; | 2386 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2348 var _body = null; | 2387 var _body = null; |
| 2349 | 2388 |
| 2350 if (variantId == null) { | 2389 if (variantId == null) { |
| 2351 throw new core.ArgumentError("Parameter variantId is required."); | 2390 throw new core.ArgumentError("Parameter variantId is required."); |
| 2352 } | 2391 } |
| 2353 | 2392 |
| 2354 | 2393 |
| 2355 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); | 2394 _url = 'variants/' + commons.Escaper.ecapeVariable('$variantId'); |
| 2356 | 2395 |
| 2357 var _response = _requester.request(_url, | 2396 var _response = _requester.request(_url, |
| 2358 "GET", | 2397 "GET", |
| 2359 body: _body, | 2398 body: _body, |
| 2360 queryParams: _queryParams, | 2399 queryParams: _queryParams, |
| 2361 uploadOptions: _uploadOptions, | 2400 uploadOptions: _uploadOptions, |
| 2362 uploadMedia: _uploadMedia, | 2401 uploadMedia: _uploadMedia, |
| 2363 downloadOptions: _downloadOptions); | 2402 downloadOptions: _downloadOptions); |
| 2364 return _response.then((data) => new Variant.fromJson(data)); | 2403 return _response.then((data) => new Variant.fromJson(data)); |
| 2365 } | 2404 } |
| 2366 | 2405 |
| 2367 /** | 2406 /** |
| 2368 * Gets a list of variants matching the criteria. | 2407 * Gets a list of variants matching the criteria. |
| 2369 * | 2408 * |
| 2370 * Implements GlobalAllianceApi.searchVariants. | 2409 * Implements GlobalAllianceApi.searchVariants. |
| 2371 * | 2410 * |
| 2372 * [request] - The metadata request object. | 2411 * [request] - The metadata request object. |
| 2373 * | 2412 * |
| 2374 * Request parameters: | 2413 * Request parameters: |
| 2375 * | 2414 * |
| 2376 * Completes with a [SearchVariantsResponse]. | 2415 * Completes with a [SearchVariantsResponse]. |
| 2377 * | 2416 * |
| 2378 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2417 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2379 * error. | 2418 * error. |
| 2380 * | 2419 * |
| 2381 * If the used [http.Client] completes with an error when making a REST call, | 2420 * If the used [http.Client] completes with an error when making a REST call, |
| 2382 * this method will complete with the same error. | 2421 * this method will complete with the same error. |
| 2383 */ | 2422 */ |
| 2384 async.Future<SearchVariantsResponse> search(SearchVariantsRequest request) { | 2423 async.Future<SearchVariantsResponse> search(SearchVariantsRequest request) { |
| 2385 var _url = null; | 2424 var _url = null; |
| 2386 var _queryParams = new core.Map(); | 2425 var _queryParams = new core.Map(); |
| 2387 var _uploadMedia = null; | 2426 var _uploadMedia = null; |
| 2388 var _uploadOptions = null; | 2427 var _uploadOptions = null; |
| 2389 var _downloadOptions = common.DownloadOptions.Metadata; | 2428 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2390 var _body = null; | 2429 var _body = null; |
| 2391 | 2430 |
| 2392 if (request != null) { | 2431 if (request != null) { |
| 2393 _body = convert.JSON.encode((request).toJson()); | 2432 _body = convert.JSON.encode((request).toJson()); |
| 2394 } | 2433 } |
| 2395 | 2434 |
| 2396 | 2435 |
| 2397 _url = 'variants/search'; | 2436 _url = 'variants/search'; |
| 2398 | 2437 |
| 2399 var _response = _requester.request(_url, | 2438 var _response = _requester.request(_url, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2411 * silently ignored. Returns the modified variant without its calls. | 2450 * silently ignored. Returns the modified variant without its calls. |
| 2412 * | 2451 * |
| 2413 * [request] - The metadata request object. | 2452 * [request] - The metadata request object. |
| 2414 * | 2453 * |
| 2415 * Request parameters: | 2454 * Request parameters: |
| 2416 * | 2455 * |
| 2417 * [variantId] - The ID of the variant to be updated. | 2456 * [variantId] - The ID of the variant to be updated. |
| 2418 * | 2457 * |
| 2419 * Completes with a [Variant]. | 2458 * Completes with a [Variant]. |
| 2420 * | 2459 * |
| 2421 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2460 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2422 * error. | 2461 * error. |
| 2423 * | 2462 * |
| 2424 * If the used [http.Client] completes with an error when making a REST call, | 2463 * If the used [http.Client] completes with an error when making a REST call, |
| 2425 * this method will complete with the same error. | 2464 * this method will complete with the same error. |
| 2426 */ | 2465 */ |
| 2427 async.Future<Variant> update(Variant request, core.String variantId) { | 2466 async.Future<Variant> update(Variant request, core.String variantId) { |
| 2428 var _url = null; | 2467 var _url = null; |
| 2429 var _queryParams = new core.Map(); | 2468 var _queryParams = new core.Map(); |
| 2430 var _uploadMedia = null; | 2469 var _uploadMedia = null; |
| 2431 var _uploadOptions = null; | 2470 var _uploadOptions = null; |
| 2432 var _downloadOptions = common.DownloadOptions.Metadata; | 2471 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2433 var _body = null; | 2472 var _body = null; |
| 2434 | 2473 |
| 2435 if (request != null) { | 2474 if (request != null) { |
| 2436 _body = convert.JSON.encode((request).toJson()); | 2475 _body = convert.JSON.encode((request).toJson()); |
| 2437 } | 2476 } |
| 2438 if (variantId == null) { | 2477 if (variantId == null) { |
| 2439 throw new core.ArgumentError("Parameter variantId is required."); | 2478 throw new core.ArgumentError("Parameter variantId is required."); |
| 2440 } | 2479 } |
| 2441 | 2480 |
| 2442 | 2481 |
| 2443 _url = 'variants/' + common_internal.Escaper.ecapeVariable('$variantId'); | 2482 _url = 'variants/' + commons.Escaper.ecapeVariable('$variantId'); |
| 2444 | 2483 |
| 2445 var _response = _requester.request(_url, | 2484 var _response = _requester.request(_url, |
| 2446 "PUT", | 2485 "PUT", |
| 2447 body: _body, | 2486 body: _body, |
| 2448 queryParams: _queryParams, | 2487 queryParams: _queryParams, |
| 2449 uploadOptions: _uploadOptions, | 2488 uploadOptions: _uploadOptions, |
| 2450 uploadMedia: _uploadMedia, | 2489 uploadMedia: _uploadMedia, |
| 2451 downloadOptions: _downloadOptions); | 2490 downloadOptions: _downloadOptions); |
| 2452 return _response.then((data) => new Variant.fromJson(data)); | 2491 return _response.then((data) => new Variant.fromJson(data)); |
| 2453 } | 2492 } |
| 2454 | 2493 |
| 2455 } | 2494 } |
| 2456 | 2495 |
| 2457 | 2496 |
| 2458 /** Not documented yet. */ | |
| 2459 class VariantsetsResourceApi { | 2497 class VariantsetsResourceApi { |
| 2460 final common_internal.ApiRequester _requester; | 2498 final commons.ApiRequester _requester; |
| 2461 | 2499 |
| 2462 VariantsetsResourceApi(common_internal.ApiRequester client) : | 2500 VariantsetsResourceApi(commons.ApiRequester client) : |
| 2463 _requester = client; | 2501 _requester = client; |
| 2464 | 2502 |
| 2465 /** | 2503 /** |
| 2466 * Deletes the contents of a variant set. The variant set object is not | 2504 * Deletes the contents of a variant set. The variant set object is not |
| 2467 * deleted. | 2505 * deleted. |
| 2468 * | 2506 * |
| 2469 * Request parameters: | 2507 * Request parameters: |
| 2470 * | 2508 * |
| 2471 * [variantSetId] - The ID of the variant set to be deleted. | 2509 * [variantSetId] - The ID of the variant set to be deleted. |
| 2472 * | 2510 * |
| 2473 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2511 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2474 * error. | 2512 * error. |
| 2475 * | 2513 * |
| 2476 * If the used [http.Client] completes with an error when making a REST call, | 2514 * If the used [http.Client] completes with an error when making a REST call, |
| 2477 * this method will complete with the same error. | 2515 * this method will complete with the same error. |
| 2478 */ | 2516 */ |
| 2479 async.Future delete(core.String variantSetId) { | 2517 async.Future delete(core.String variantSetId) { |
| 2480 var _url = null; | 2518 var _url = null; |
| 2481 var _queryParams = new core.Map(); | 2519 var _queryParams = new core.Map(); |
| 2482 var _uploadMedia = null; | 2520 var _uploadMedia = null; |
| 2483 var _uploadOptions = null; | 2521 var _uploadOptions = null; |
| 2484 var _downloadOptions = common.DownloadOptions.Metadata; | 2522 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2485 var _body = null; | 2523 var _body = null; |
| 2486 | 2524 |
| 2487 if (variantSetId == null) { | 2525 if (variantSetId == null) { |
| 2488 throw new core.ArgumentError("Parameter variantSetId is required."); | 2526 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2489 } | 2527 } |
| 2490 | 2528 |
| 2491 _downloadOptions = null; | 2529 _downloadOptions = null; |
| 2492 | 2530 |
| 2493 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); | 2531 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); |
| 2494 | 2532 |
| 2495 var _response = _requester.request(_url, | 2533 var _response = _requester.request(_url, |
| 2496 "DELETE", | 2534 "DELETE", |
| 2497 body: _body, | 2535 body: _body, |
| 2498 queryParams: _queryParams, | 2536 queryParams: _queryParams, |
| 2499 uploadOptions: _uploadOptions, | 2537 uploadOptions: _uploadOptions, |
| 2500 uploadMedia: _uploadMedia, | 2538 uploadMedia: _uploadMedia, |
| 2501 downloadOptions: _downloadOptions); | 2539 downloadOptions: _downloadOptions); |
| 2502 return _response.then((data) => null); | 2540 return _response.then((data) => null); |
| 2503 } | 2541 } |
| 2504 | 2542 |
| 2505 /** | 2543 /** |
| 2506 * Exports variant set data to an external destination. | 2544 * Exports variant set data to an external destination. |
| 2507 * | 2545 * |
| 2508 * [request] - The metadata request object. | 2546 * [request] - The metadata request object. |
| 2509 * | 2547 * |
| 2510 * Request parameters: | 2548 * Request parameters: |
| 2511 * | 2549 * |
| 2512 * [variantSetId] - Required. The ID of the variant set that contains variant | 2550 * [variantSetId] - Required. The ID of the variant set that contains variant |
| 2513 * data which should be exported. The caller must have READ access to this | 2551 * data which should be exported. The caller must have READ access to this |
| 2514 * variant set. | 2552 * variant set. |
| 2515 * | 2553 * |
| 2516 * Completes with a [ExportVariantSetResponse]. | 2554 * Completes with a [ExportVariantSetResponse]. |
| 2517 * | 2555 * |
| 2518 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2519 * error. | 2557 * error. |
| 2520 * | 2558 * |
| 2521 * If the used [http.Client] completes with an error when making a REST call, | 2559 * If the used [http.Client] completes with an error when making a REST call, |
| 2522 * this method will complete with the same error. | 2560 * this method will complete with the same error. |
| 2523 */ | 2561 */ |
| 2524 async.Future<ExportVariantSetResponse> export(ExportVariantSetRequest request,
core.String variantSetId) { | 2562 async.Future<ExportVariantSetResponse> export(ExportVariantSetRequest request,
core.String variantSetId) { |
| 2525 var _url = null; | 2563 var _url = null; |
| 2526 var _queryParams = new core.Map(); | 2564 var _queryParams = new core.Map(); |
| 2527 var _uploadMedia = null; | 2565 var _uploadMedia = null; |
| 2528 var _uploadOptions = null; | 2566 var _uploadOptions = null; |
| 2529 var _downloadOptions = common.DownloadOptions.Metadata; | 2567 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2530 var _body = null; | 2568 var _body = null; |
| 2531 | 2569 |
| 2532 if (request != null) { | 2570 if (request != null) { |
| 2533 _body = convert.JSON.encode((request).toJson()); | 2571 _body = convert.JSON.encode((request).toJson()); |
| 2534 } | 2572 } |
| 2535 if (variantSetId == null) { | 2573 if (variantSetId == null) { |
| 2536 throw new core.ArgumentError("Parameter variantSetId is required."); | 2574 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2537 } | 2575 } |
| 2538 | 2576 |
| 2539 | 2577 |
| 2540 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
') + '/export'; | 2578 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId') + '/e
xport'; |
| 2541 | 2579 |
| 2542 var _response = _requester.request(_url, | 2580 var _response = _requester.request(_url, |
| 2543 "POST", | 2581 "POST", |
| 2544 body: _body, | 2582 body: _body, |
| 2545 queryParams: _queryParams, | 2583 queryParams: _queryParams, |
| 2546 uploadOptions: _uploadOptions, | 2584 uploadOptions: _uploadOptions, |
| 2547 uploadMedia: _uploadMedia, | 2585 uploadMedia: _uploadMedia, |
| 2548 downloadOptions: _downloadOptions); | 2586 downloadOptions: _downloadOptions); |
| 2549 return _response.then((data) => new ExportVariantSetResponse.fromJson(data))
; | 2587 return _response.then((data) => new ExportVariantSetResponse.fromJson(data))
; |
| 2550 } | 2588 } |
| 2551 | 2589 |
| 2552 /** | 2590 /** |
| 2553 * Gets a variant set by ID. | 2591 * Gets a variant set by ID. |
| 2554 * | 2592 * |
| 2555 * Request parameters: | 2593 * Request parameters: |
| 2556 * | 2594 * |
| 2557 * [variantSetId] - Required. The ID of the variant set. | 2595 * [variantSetId] - Required. The ID of the variant set. |
| 2558 * | 2596 * |
| 2559 * Completes with a [VariantSet]. | 2597 * Completes with a [VariantSet]. |
| 2560 * | 2598 * |
| 2561 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2599 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2562 * error. | 2600 * error. |
| 2563 * | 2601 * |
| 2564 * If the used [http.Client] completes with an error when making a REST call, | 2602 * If the used [http.Client] completes with an error when making a REST call, |
| 2565 * this method will complete with the same error. | 2603 * this method will complete with the same error. |
| 2566 */ | 2604 */ |
| 2567 async.Future<VariantSet> get(core.String variantSetId) { | 2605 async.Future<VariantSet> get(core.String variantSetId) { |
| 2568 var _url = null; | 2606 var _url = null; |
| 2569 var _queryParams = new core.Map(); | 2607 var _queryParams = new core.Map(); |
| 2570 var _uploadMedia = null; | 2608 var _uploadMedia = null; |
| 2571 var _uploadOptions = null; | 2609 var _uploadOptions = null; |
| 2572 var _downloadOptions = common.DownloadOptions.Metadata; | 2610 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2573 var _body = null; | 2611 var _body = null; |
| 2574 | 2612 |
| 2575 if (variantSetId == null) { | 2613 if (variantSetId == null) { |
| 2576 throw new core.ArgumentError("Parameter variantSetId is required."); | 2614 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2577 } | 2615 } |
| 2578 | 2616 |
| 2579 | 2617 |
| 2580 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); | 2618 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); |
| 2581 | 2619 |
| 2582 var _response = _requester.request(_url, | 2620 var _response = _requester.request(_url, |
| 2583 "GET", | 2621 "GET", |
| 2584 body: _body, | 2622 body: _body, |
| 2585 queryParams: _queryParams, | 2623 queryParams: _queryParams, |
| 2586 uploadOptions: _uploadOptions, | 2624 uploadOptions: _uploadOptions, |
| 2587 uploadMedia: _uploadMedia, | 2625 uploadMedia: _uploadMedia, |
| 2588 downloadOptions: _downloadOptions); | 2626 downloadOptions: _downloadOptions); |
| 2589 return _response.then((data) => new VariantSet.fromJson(data)); | 2627 return _response.then((data) => new VariantSet.fromJson(data)); |
| 2590 } | 2628 } |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2602 * | 2640 * |
| 2603 * [request] - The metadata request object. | 2641 * [request] - The metadata request object. |
| 2604 * | 2642 * |
| 2605 * Request parameters: | 2643 * Request parameters: |
| 2606 * | 2644 * |
| 2607 * [variantSetId] - Required. The variant set to which variant data should be | 2645 * [variantSetId] - Required. The variant set to which variant data should be |
| 2608 * imported. | 2646 * imported. |
| 2609 * | 2647 * |
| 2610 * Completes with a [ImportVariantsResponse]. | 2648 * Completes with a [ImportVariantsResponse]. |
| 2611 * | 2649 * |
| 2612 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2650 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2613 * error. | 2651 * error. |
| 2614 * | 2652 * |
| 2615 * If the used [http.Client] completes with an error when making a REST call, | 2653 * If the used [http.Client] completes with an error when making a REST call, |
| 2616 * this method will complete with the same error. | 2654 * this method will complete with the same error. |
| 2617 */ | 2655 */ |
| 2618 async.Future<ImportVariantsResponse> importVariants(ImportVariantsRequest requ
est, core.String variantSetId) { | 2656 async.Future<ImportVariantsResponse> importVariants(ImportVariantsRequest requ
est, core.String variantSetId) { |
| 2619 var _url = null; | 2657 var _url = null; |
| 2620 var _queryParams = new core.Map(); | 2658 var _queryParams = new core.Map(); |
| 2621 var _uploadMedia = null; | 2659 var _uploadMedia = null; |
| 2622 var _uploadOptions = null; | 2660 var _uploadOptions = null; |
| 2623 var _downloadOptions = common.DownloadOptions.Metadata; | 2661 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2624 var _body = null; | 2662 var _body = null; |
| 2625 | 2663 |
| 2626 if (request != null) { | 2664 if (request != null) { |
| 2627 _body = convert.JSON.encode((request).toJson()); | 2665 _body = convert.JSON.encode((request).toJson()); |
| 2628 } | 2666 } |
| 2629 if (variantSetId == null) { | 2667 if (variantSetId == null) { |
| 2630 throw new core.ArgumentError("Parameter variantSetId is required."); | 2668 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2631 } | 2669 } |
| 2632 | 2670 |
| 2633 | 2671 |
| 2634 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
') + '/importVariants'; | 2672 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId') + '/i
mportVariants'; |
| 2635 | 2673 |
| 2636 var _response = _requester.request(_url, | 2674 var _response = _requester.request(_url, |
| 2637 "POST", | 2675 "POST", |
| 2638 body: _body, | 2676 body: _body, |
| 2639 queryParams: _queryParams, | 2677 queryParams: _queryParams, |
| 2640 uploadOptions: _uploadOptions, | 2678 uploadOptions: _uploadOptions, |
| 2641 uploadMedia: _uploadMedia, | 2679 uploadMedia: _uploadMedia, |
| 2642 downloadOptions: _downloadOptions); | 2680 downloadOptions: _downloadOptions); |
| 2643 return _response.then((data) => new ImportVariantsResponse.fromJson(data)); | 2681 return _response.then((data) => new ImportVariantsResponse.fromJson(data)); |
| 2644 } | 2682 } |
| 2645 | 2683 |
| 2646 /** | 2684 /** |
| 2647 * Merges the given variants with existing variants. Each variant will be | 2685 * Merges the given variants with existing variants. Each variant will be |
| 2648 * merged with an existing variant that matches its reference sequence, start, | 2686 * merged with an existing variant that matches its reference sequence, start, |
| 2649 * end, reference bases, and alternative bases. If no such variant exists, a | 2687 * end, reference bases, and alternative bases. If no such variant exists, a |
| 2650 * new one will be created. | 2688 * new one will be created. |
| 2651 * | 2689 * |
| 2652 * When variants are merged, the call information from the new variant is | 2690 * When variants are merged, the call information from the new variant is |
| 2653 * added to the existing variant, and other fields (such as key/value pairs) | 2691 * added to the existing variant, and other fields (such as key/value pairs) |
| 2654 * are discarded. | 2692 * are discarded. |
| 2655 * | 2693 * |
| 2656 * [request] - The metadata request object. | 2694 * [request] - The metadata request object. |
| 2657 * | 2695 * |
| 2658 * Request parameters: | 2696 * Request parameters: |
| 2659 * | 2697 * |
| 2660 * [variantSetId] - The destination variant set. | 2698 * [variantSetId] - The destination variant set. |
| 2661 * | 2699 * |
| 2662 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2700 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2663 * error. | 2701 * error. |
| 2664 * | 2702 * |
| 2665 * If the used [http.Client] completes with an error when making a REST call, | 2703 * If the used [http.Client] completes with an error when making a REST call, |
| 2666 * this method will complete with the same error. | 2704 * this method will complete with the same error. |
| 2667 */ | 2705 */ |
| 2668 async.Future mergeVariants(MergeVariantsRequest request, core.String variantSe
tId) { | 2706 async.Future mergeVariants(MergeVariantsRequest request, core.String variantSe
tId) { |
| 2669 var _url = null; | 2707 var _url = null; |
| 2670 var _queryParams = new core.Map(); | 2708 var _queryParams = new core.Map(); |
| 2671 var _uploadMedia = null; | 2709 var _uploadMedia = null; |
| 2672 var _uploadOptions = null; | 2710 var _uploadOptions = null; |
| 2673 var _downloadOptions = common.DownloadOptions.Metadata; | 2711 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2674 var _body = null; | 2712 var _body = null; |
| 2675 | 2713 |
| 2676 if (request != null) { | 2714 if (request != null) { |
| 2677 _body = convert.JSON.encode((request).toJson()); | 2715 _body = convert.JSON.encode((request).toJson()); |
| 2678 } | 2716 } |
| 2679 if (variantSetId == null) { | 2717 if (variantSetId == null) { |
| 2680 throw new core.ArgumentError("Parameter variantSetId is required."); | 2718 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2681 } | 2719 } |
| 2682 | 2720 |
| 2683 _downloadOptions = null; | 2721 _downloadOptions = null; |
| 2684 | 2722 |
| 2685 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
') + '/mergeVariants'; | 2723 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId') + '/m
ergeVariants'; |
| 2686 | 2724 |
| 2687 var _response = _requester.request(_url, | 2725 var _response = _requester.request(_url, |
| 2688 "POST", | 2726 "POST", |
| 2689 body: _body, | 2727 body: _body, |
| 2690 queryParams: _queryParams, | 2728 queryParams: _queryParams, |
| 2691 uploadOptions: _uploadOptions, | 2729 uploadOptions: _uploadOptions, |
| 2692 uploadMedia: _uploadMedia, | 2730 uploadMedia: _uploadMedia, |
| 2693 downloadOptions: _downloadOptions); | 2731 downloadOptions: _downloadOptions); |
| 2694 return _response.then((data) => null); | 2732 return _response.then((data) => null); |
| 2695 } | 2733 } |
| 2696 | 2734 |
| 2697 /** | 2735 /** |
| 2698 * Updates a variant set's metadata. All other modifications are silently | 2736 * Updates a variant set's metadata. All other modifications are silently |
| 2699 * ignored. This method supports patch semantics. | 2737 * ignored. This method supports patch semantics. |
| 2700 * | 2738 * |
| 2701 * [request] - The metadata request object. | 2739 * [request] - The metadata request object. |
| 2702 * | 2740 * |
| 2703 * Request parameters: | 2741 * Request parameters: |
| 2704 * | 2742 * |
| 2705 * [variantSetId] - The ID of the variant to be updated. | 2743 * [variantSetId] - The ID of the variant to be updated. |
| 2706 * | 2744 * |
| 2707 * Completes with a [VariantSet]. | 2745 * Completes with a [VariantSet]. |
| 2708 * | 2746 * |
| 2709 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2747 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2710 * error. | 2748 * error. |
| 2711 * | 2749 * |
| 2712 * If the used [http.Client] completes with an error when making a REST call, | 2750 * If the used [http.Client] completes with an error when making a REST call, |
| 2713 * this method will complete with the same error. | 2751 * this method will complete with the same error. |
| 2714 */ | 2752 */ |
| 2715 async.Future<VariantSet> patch(VariantSet request, core.String variantSetId) { | 2753 async.Future<VariantSet> patch(VariantSet request, core.String variantSetId) { |
| 2716 var _url = null; | 2754 var _url = null; |
| 2717 var _queryParams = new core.Map(); | 2755 var _queryParams = new core.Map(); |
| 2718 var _uploadMedia = null; | 2756 var _uploadMedia = null; |
| 2719 var _uploadOptions = null; | 2757 var _uploadOptions = null; |
| 2720 var _downloadOptions = common.DownloadOptions.Metadata; | 2758 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2721 var _body = null; | 2759 var _body = null; |
| 2722 | 2760 |
| 2723 if (request != null) { | 2761 if (request != null) { |
| 2724 _body = convert.JSON.encode((request).toJson()); | 2762 _body = convert.JSON.encode((request).toJson()); |
| 2725 } | 2763 } |
| 2726 if (variantSetId == null) { | 2764 if (variantSetId == null) { |
| 2727 throw new core.ArgumentError("Parameter variantSetId is required."); | 2765 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2728 } | 2766 } |
| 2729 | 2767 |
| 2730 | 2768 |
| 2731 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); | 2769 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); |
| 2732 | 2770 |
| 2733 var _response = _requester.request(_url, | 2771 var _response = _requester.request(_url, |
| 2734 "PATCH", | 2772 "PATCH", |
| 2735 body: _body, | 2773 body: _body, |
| 2736 queryParams: _queryParams, | 2774 queryParams: _queryParams, |
| 2737 uploadOptions: _uploadOptions, | 2775 uploadOptions: _uploadOptions, |
| 2738 uploadMedia: _uploadMedia, | 2776 uploadMedia: _uploadMedia, |
| 2739 downloadOptions: _downloadOptions); | 2777 downloadOptions: _downloadOptions); |
| 2740 return _response.then((data) => new VariantSet.fromJson(data)); | 2778 return _response.then((data) => new VariantSet.fromJson(data)); |
| 2741 } | 2779 } |
| 2742 | 2780 |
| 2743 /** | 2781 /** |
| 2744 * Returns a list of all variant sets matching search criteria. | 2782 * Returns a list of all variant sets matching search criteria. |
| 2745 * | 2783 * |
| 2746 * Implements GlobalAllianceApi.searchVariantSets. | 2784 * Implements GlobalAllianceApi.searchVariantSets. |
| 2747 * | 2785 * |
| 2748 * [request] - The metadata request object. | 2786 * [request] - The metadata request object. |
| 2749 * | 2787 * |
| 2750 * Request parameters: | 2788 * Request parameters: |
| 2751 * | 2789 * |
| 2752 * Completes with a [SearchVariantSetsResponse]. | 2790 * Completes with a [SearchVariantSetsResponse]. |
| 2753 * | 2791 * |
| 2754 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2792 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2755 * error. | 2793 * error. |
| 2756 * | 2794 * |
| 2757 * If the used [http.Client] completes with an error when making a REST call, | 2795 * If the used [http.Client] completes with an error when making a REST call, |
| 2758 * this method will complete with the same error. | 2796 * this method will complete with the same error. |
| 2759 */ | 2797 */ |
| 2760 async.Future<SearchVariantSetsResponse> search(SearchVariantSetsRequest reques
t) { | 2798 async.Future<SearchVariantSetsResponse> search(SearchVariantSetsRequest reques
t) { |
| 2761 var _url = null; | 2799 var _url = null; |
| 2762 var _queryParams = new core.Map(); | 2800 var _queryParams = new core.Map(); |
| 2763 var _uploadMedia = null; | 2801 var _uploadMedia = null; |
| 2764 var _uploadOptions = null; | 2802 var _uploadOptions = null; |
| 2765 var _downloadOptions = common.DownloadOptions.Metadata; | 2803 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2766 var _body = null; | 2804 var _body = null; |
| 2767 | 2805 |
| 2768 if (request != null) { | 2806 if (request != null) { |
| 2769 _body = convert.JSON.encode((request).toJson()); | 2807 _body = convert.JSON.encode((request).toJson()); |
| 2770 } | 2808 } |
| 2771 | 2809 |
| 2772 | 2810 |
| 2773 _url = 'variantsets/search'; | 2811 _url = 'variantsets/search'; |
| 2774 | 2812 |
| 2775 var _response = _requester.request(_url, | 2813 var _response = _requester.request(_url, |
| (...skipping 11 matching lines...) Expand all Loading... |
| 2787 * ignored. | 2825 * ignored. |
| 2788 * | 2826 * |
| 2789 * [request] - The metadata request object. | 2827 * [request] - The metadata request object. |
| 2790 * | 2828 * |
| 2791 * Request parameters: | 2829 * Request parameters: |
| 2792 * | 2830 * |
| 2793 * [variantSetId] - The ID of the variant to be updated. | 2831 * [variantSetId] - The ID of the variant to be updated. |
| 2794 * | 2832 * |
| 2795 * Completes with a [VariantSet]. | 2833 * Completes with a [VariantSet]. |
| 2796 * | 2834 * |
| 2797 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 2835 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 2798 * error. | 2836 * error. |
| 2799 * | 2837 * |
| 2800 * If the used [http.Client] completes with an error when making a REST call, | 2838 * If the used [http.Client] completes with an error when making a REST call, |
| 2801 * this method will complete with the same error. | 2839 * this method will complete with the same error. |
| 2802 */ | 2840 */ |
| 2803 async.Future<VariantSet> update(VariantSet request, core.String variantSetId)
{ | 2841 async.Future<VariantSet> update(VariantSet request, core.String variantSetId)
{ |
| 2804 var _url = null; | 2842 var _url = null; |
| 2805 var _queryParams = new core.Map(); | 2843 var _queryParams = new core.Map(); |
| 2806 var _uploadMedia = null; | 2844 var _uploadMedia = null; |
| 2807 var _uploadOptions = null; | 2845 var _uploadOptions = null; |
| 2808 var _downloadOptions = common.DownloadOptions.Metadata; | 2846 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 2809 var _body = null; | 2847 var _body = null; |
| 2810 | 2848 |
| 2811 if (request != null) { | 2849 if (request != null) { |
| 2812 _body = convert.JSON.encode((request).toJson()); | 2850 _body = convert.JSON.encode((request).toJson()); |
| 2813 } | 2851 } |
| 2814 if (variantSetId == null) { | 2852 if (variantSetId == null) { |
| 2815 throw new core.ArgumentError("Parameter variantSetId is required."); | 2853 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 2816 } | 2854 } |
| 2817 | 2855 |
| 2818 | 2856 |
| 2819 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); | 2857 _url = 'variantsets/' + commons.Escaper.ecapeVariable('$variantSetId'); |
| 2820 | 2858 |
| 2821 var _response = _requester.request(_url, | 2859 var _response = _requester.request(_url, |
| 2822 "PUT", | 2860 "PUT", |
| 2823 body: _body, | 2861 body: _body, |
| 2824 queryParams: _queryParams, | 2862 queryParams: _queryParams, |
| 2825 uploadOptions: _uploadOptions, | 2863 uploadOptions: _uploadOptions, |
| 2826 uploadMedia: _uploadMedia, | 2864 uploadMedia: _uploadMedia, |
| 2827 downloadOptions: _downloadOptions); | 2865 downloadOptions: _downloadOptions); |
| 2828 return _response.then((data) => new VariantSet.fromJson(data)); | 2866 return _response.then((data) => new VariantSet.fromJson(data)); |
| 2829 } | 2867 } |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2937 return _json; | 2975 return _json; |
| 2938 } | 2976 } |
| 2939 } | 2977 } |
| 2940 | 2978 |
| 2941 | 2979 |
| 2942 /** | 2980 /** |
| 2943 * An annotation describes a region of reference genome. The value of an | 2981 * An annotation describes a region of reference genome. The value of an |
| 2944 * annotation may be one of several canonical types, supplemented by arbitrary | 2982 * annotation may be one of several canonical types, supplemented by arbitrary |
| 2945 * info tags. A variant annotation is represented by one or more of these | 2983 * info tags. A variant annotation is represented by one or more of these |
| 2946 * canonical types. An annotation is not inherently associated with a specific | 2984 * canonical types. An annotation is not inherently associated with a specific |
| 2947 * sample/individual (though a client could choose to use annotations in this | 2985 * sample or individual (though a client could choose to use annotations in this |
| 2948 * way). Example canonical annotation types are 'Gene' and 'Variant'. | 2986 * way). Example canonical annotation types are 'Gene' and 'Variant'. |
| 2949 */ | 2987 */ |
| 2950 class Annotation { | 2988 class Annotation { |
| 2951 /** The ID of the containing annotation set. */ | 2989 /** The ID of the containing annotation set. */ |
| 2952 core.String annotationSetId; | 2990 core.String annotationSetId; |
| 2953 | 2991 |
| 2954 /** The generated unique ID for this annotation. */ | 2992 /** The generated unique ID for this annotation. */ |
| 2955 core.String id; | 2993 core.String id; |
| 2956 | 2994 |
| 2957 /** A map of additional data for this annotation. */ | 2995 /** A map of additional data for this annotation. */ |
| 2958 core.Map<core.String, core.List<core.String>> info; | 2996 core.Map<core.String, core.List<core.String>> info; |
| 2959 | 2997 |
| 2960 /** The display name of this annotation. */ | 2998 /** The display name of this annotation. */ |
| 2961 core.String name; | 2999 core.String name; |
| 2962 | 3000 |
| 2963 /** The position of this annotation on the reference sequence. */ | 3001 /** The position of this annotation on the reference sequence. */ |
| 2964 RangePosition position; | 3002 RangePosition position; |
| 2965 | 3003 |
| 2966 /** | 3004 /** |
| 2967 * A transcript value represents the assertion that a particular region of the | 3005 * A transcript value represents the assertion that a particular region of the |
| 2968 * reference genome may be transcribed as RNA. An alternate splicing pattern | 3006 * reference genome may be transcribed as RNA. An alternative splicing pattern |
| 2969 * would be represented as separate transcript object. This field is only set | 3007 * would be represented as a separate transcript object. This field is only |
| 2970 * for annotations of type TRANSCRIPT. | 3008 * set for annotations of type TRANSCRIPT. |
| 2971 */ | 3009 */ |
| 2972 Transcript transcript; | 3010 Transcript transcript; |
| 2973 | 3011 |
| 2974 /** | 3012 /** |
| 2975 * The data type for this annotation. Must match the containing annotation | 3013 * The data type for this annotation. Must match the containing annotation |
| 2976 * set's type. | 3014 * set's type. |
| 2977 * Possible string values are: | 3015 * Possible string values are: |
| 2978 * - "GENE" | 3016 * - "GENE" |
| 2979 * - "GENERIC" | 3017 * - "GENERIC" |
| 2980 * - "TRANSCRIPT" | 3018 * - "TRANSCRIPT" |
| 2981 * - "VARIANT" | 3019 * - "VARIANT" |
| 2982 */ | 3020 */ |
| 2983 core.String type; | 3021 core.String type; |
| 2984 | 3022 |
| 2985 /** | 3023 /** |
| 2986 * A variant annotation which describes the effect of a variant on the genome, | 3024 * A variant annotation, which describes the effect of a variant on the |
| 2987 * the coding sequence, and/or higher level consequences at the organism level | 3025 * genome, the coding sequence, and/or higher level consequences at the |
| 2988 * e.g. pathogenicity. This field is only set for annotations of type VARIANT. | 3026 * organism level e.g. pathogenicity. This field is only set for annotations |
| 3027 * of type VARIANT. |
| 2989 */ | 3028 */ |
| 2990 VariantAnnotation variant; | 3029 VariantAnnotation variant; |
| 2991 | 3030 |
| 2992 | 3031 |
| 2993 Annotation(); | 3032 Annotation(); |
| 2994 | 3033 |
| 2995 Annotation.fromJson(core.Map _json) { | 3034 Annotation.fromJson(core.Map _json) { |
| 2996 if (_json.containsKey("annotationSetId")) { | 3035 if (_json.containsKey("annotationSetId")) { |
| 2997 annotationSetId = _json["annotationSetId"]; | 3036 annotationSetId = _json["annotationSetId"]; |
| 2998 } | 3037 } |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3044 } | 3083 } |
| 3045 if (variant != null) { | 3084 if (variant != null) { |
| 3046 _json["variant"] = (variant).toJson(); | 3085 _json["variant"] = (variant).toJson(); |
| 3047 } | 3086 } |
| 3048 return _json; | 3087 return _json; |
| 3049 } | 3088 } |
| 3050 } | 3089 } |
| 3051 | 3090 |
| 3052 | 3091 |
| 3053 /** | 3092 /** |
| 3054 * An annotation set is a logical grouping of annotations which share consistent | 3093 * An annotation set is a logical grouping of annotations that share consistent |
| 3055 * type information and provenance. An example would be 'all genes from refseq', | 3094 * type information and provenance. Examples of annotation sets include 'all |
| 3056 * or 'all variant annotations from ClinVar'. | 3095 * genes from refseq', and 'all variant annotations from ClinVar'. |
| 3057 */ | 3096 */ |
| 3058 class AnnotationSet { | 3097 class AnnotationSet { |
| 3059 /** The ID of the containing dataset. */ | 3098 /** The ID of the containing dataset. */ |
| 3060 core.String datasetId; | 3099 core.String datasetId; |
| 3061 | 3100 |
| 3062 /** The generated unique ID for this annotation set. */ | 3101 /** The generated unique ID for this annotation set. */ |
| 3063 core.String id; | 3102 core.String id; |
| 3064 | 3103 |
| 3065 /** A map of additional data for this annotation set. */ | 3104 /** A map of additional data for this annotation set. */ |
| 3066 core.Map<core.String, core.List<core.String>> info; | 3105 core.Map<core.String, core.List<core.String>> info; |
| 3067 | 3106 |
| 3068 /** The display name for this annotation set. */ | 3107 /** The display name for this annotation set. */ |
| 3069 core.String name; | 3108 core.String name; |
| 3070 | 3109 |
| 3071 /** | 3110 /** |
| 3072 * The ID of the reference set which defines the coordinate-space for this | 3111 * The ID of the reference set that defines the coordinate space for this |
| 3073 * set's annotations. | 3112 * set's annotations. |
| 3074 */ | 3113 */ |
| 3075 core.String referenceSetId; | 3114 core.String referenceSetId; |
| 3076 | 3115 |
| 3077 /** | 3116 /** |
| 3078 * The source URI describing the file from which this annotation set was | 3117 * The source URI describing the file from which this annotation set was |
| 3079 * generated, if any. | 3118 * generated, if any. |
| 3080 */ | 3119 */ |
| 3081 core.String sourceUri; | 3120 core.String sourceUri; |
| 3082 | 3121 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3138 _json["sourceUri"] = sourceUri; | 3177 _json["sourceUri"] = sourceUri; |
| 3139 } | 3178 } |
| 3140 if (type != null) { | 3179 if (type != null) { |
| 3141 _json["type"] = type; | 3180 _json["type"] = type; |
| 3142 } | 3181 } |
| 3143 return _json; | 3182 return _json; |
| 3144 } | 3183 } |
| 3145 } | 3184 } |
| 3146 | 3185 |
| 3147 | 3186 |
| 3148 /** Not documented yet. */ | |
| 3149 class BatchAnnotationsResponse { | 3187 class BatchAnnotationsResponse { |
| 3150 /** | 3188 /** |
| 3151 * The resulting per-annotation entries, ordered consistently with the | 3189 * The resulting per-annotation entries, ordered consistently with the |
| 3152 * original request. | 3190 * original request. |
| 3153 */ | 3191 */ |
| 3154 core.List<BatchAnnotationsResponseEntry> entries; | 3192 core.List<BatchAnnotationsResponseEntry> entries; |
| 3155 | 3193 |
| 3156 | 3194 |
| 3157 BatchAnnotationsResponse(); | 3195 BatchAnnotationsResponse(); |
| 3158 | 3196 |
| 3159 BatchAnnotationsResponse.fromJson(core.Map _json) { | 3197 BatchAnnotationsResponse.fromJson(core.Map _json) { |
| 3160 if (_json.containsKey("entries")) { | 3198 if (_json.containsKey("entries")) { |
| 3161 entries = _json["entries"].map((value) => new BatchAnnotationsResponseEntr
y.fromJson(value)).toList(); | 3199 entries = _json["entries"].map((value) => new BatchAnnotationsResponseEntr
y.fromJson(value)).toList(); |
| 3162 } | 3200 } |
| 3163 } | 3201 } |
| 3164 | 3202 |
| 3165 core.Map toJson() { | 3203 core.Map toJson() { |
| 3166 var _json = new core.Map(); | 3204 var _json = new core.Map(); |
| 3167 if (entries != null) { | 3205 if (entries != null) { |
| 3168 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 3206 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
| 3169 } | 3207 } |
| 3170 return _json; | 3208 return _json; |
| 3171 } | 3209 } |
| 3172 } | 3210 } |
| 3173 | 3211 |
| 3174 | 3212 |
| 3175 /** Not documented yet. */ | |
| 3176 class BatchAnnotationsResponseEntry { | 3213 class BatchAnnotationsResponseEntry { |
| 3177 /** The annotation, if any. */ | 3214 /** The annotation, if any. */ |
| 3178 Annotation annotation; | 3215 Annotation annotation; |
| 3179 | 3216 |
| 3180 /** The resulting status for this annotation operation. */ | 3217 /** The resulting status for this annotation operation. */ |
| 3181 BatchAnnotationsResponseEntryStatus status; | 3218 BatchAnnotationsResponseEntryStatus status; |
| 3182 | 3219 |
| 3183 | 3220 |
| 3184 BatchAnnotationsResponseEntry(); | 3221 BatchAnnotationsResponseEntry(); |
| 3185 | 3222 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3198 _json["annotation"] = (annotation).toJson(); | 3235 _json["annotation"] = (annotation).toJson(); |
| 3199 } | 3236 } |
| 3200 if (status != null) { | 3237 if (status != null) { |
| 3201 _json["status"] = (status).toJson(); | 3238 _json["status"] = (status).toJson(); |
| 3202 } | 3239 } |
| 3203 return _json; | 3240 return _json; |
| 3204 } | 3241 } |
| 3205 } | 3242 } |
| 3206 | 3243 |
| 3207 | 3244 |
| 3208 /** Not documented yet. */ | |
| 3209 class BatchAnnotationsResponseEntryStatus { | 3245 class BatchAnnotationsResponseEntryStatus { |
| 3210 /** The HTTP status code for this operation. */ | 3246 /** The HTTP status code for this operation. */ |
| 3211 core.int code; | 3247 core.int code; |
| 3212 | 3248 |
| 3213 /** Error message for this status, if any. */ | 3249 /** Error message for this status, if any. */ |
| 3214 core.String message; | 3250 core.String message; |
| 3215 | 3251 |
| 3216 | 3252 |
| 3217 BatchAnnotationsResponseEntryStatus(); | 3253 BatchAnnotationsResponseEntryStatus(); |
| 3218 | 3254 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3231 _json["code"] = code; | 3267 _json["code"] = code; |
| 3232 } | 3268 } |
| 3233 if (message != null) { | 3269 if (message != null) { |
| 3234 _json["message"] = message; | 3270 _json["message"] = message; |
| 3235 } | 3271 } |
| 3236 return _json; | 3272 return _json; |
| 3237 } | 3273 } |
| 3238 } | 3274 } |
| 3239 | 3275 |
| 3240 | 3276 |
| 3241 /** Not documented yet. */ | |
| 3242 class BatchCreateAnnotationsRequest { | 3277 class BatchCreateAnnotationsRequest { |
| 3243 /** | 3278 /** |
| 3244 * The annotations to be created. At most 4096 can be specified in a single | 3279 * The annotations to be created. At most 4096 can be specified in a single |
| 3245 * request. | 3280 * request. |
| 3246 */ | 3281 */ |
| 3247 core.List<Annotation> annotations; | 3282 core.List<Annotation> annotations; |
| 3248 | 3283 |
| 3249 | 3284 |
| 3250 BatchCreateAnnotationsRequest(); | 3285 BatchCreateAnnotationsRequest(); |
| 3251 | 3286 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3506 _json["variantSetIds"] = variantSetIds; | 3541 _json["variantSetIds"] = variantSetIds; |
| 3507 } | 3542 } |
| 3508 return _json; | 3543 return _json; |
| 3509 } | 3544 } |
| 3510 } | 3545 } |
| 3511 | 3546 |
| 3512 | 3547 |
| 3513 /** A single CIGAR operation. */ | 3548 /** A single CIGAR operation. */ |
| 3514 class CigarUnit { | 3549 class CigarUnit { |
| 3515 /** | 3550 /** |
| 3516 * Not documented yet. | 3551 * |
| 3517 * Possible string values are: | 3552 * Possible string values are: |
| 3518 * - "ALIGNMENT_MATCH" | 3553 * - "ALIGNMENT_MATCH" |
| 3519 * - "CLIP_HARD" | 3554 * - "CLIP_HARD" |
| 3520 * - "CLIP_SOFT" | 3555 * - "CLIP_SOFT" |
| 3521 * - "DELETE" | 3556 * - "DELETE" |
| 3522 * - "INSERT" | 3557 * - "INSERT" |
| 3523 * - "PAD" | 3558 * - "PAD" |
| 3524 * - "SEQUENCE_MATCH" | 3559 * - "SEQUENCE_MATCH" |
| 3525 * - "SEQUENCE_MISMATCH" | 3560 * - "SEQUENCE_MISMATCH" |
| 3526 * - "SKIP" | 3561 * - "SKIP" |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3772 _json["jobId"] = jobId; | 3807 _json["jobId"] = jobId; |
| 3773 } | 3808 } |
| 3774 return _json; | 3809 return _json; |
| 3775 } | 3810 } |
| 3776 } | 3811 } |
| 3777 | 3812 |
| 3778 | 3813 |
| 3779 /** The read group set export request. */ | 3814 /** The read group set export request. */ |
| 3780 class ExportReadGroupSetsRequest { | 3815 class ExportReadGroupSetsRequest { |
| 3781 /** | 3816 /** |
| 3782 * A Google Cloud Storage URI where the exported BAM file will be created. The | 3817 * A Google Cloud Storage URI for the exported BAM file. The currently |
| 3783 * currently authenticated user must have write access to the new file | 3818 * authenticated user must have write access to the new file. An error will be |
| 3784 * location. An error will be returned if the URI already contains data. | 3819 * returned if the URI already contains data. |
| 3785 */ | 3820 */ |
| 3786 core.String exportUri; | 3821 core.String exportUri; |
| 3787 | 3822 |
| 3788 /** The Google Developers Console project number that owns this export. */ | 3823 /** The Google Developers Console project number that owns this export. */ |
| 3789 core.String projectNumber; | 3824 core.String projectNumber; |
| 3790 | 3825 |
| 3791 /** The IDs of the read group sets to export. */ | 3826 /** The IDs of the read group sets to export. */ |
| 3792 core.List<core.String> readGroupSetIds; | 3827 core.List<core.String> readGroupSetIds; |
| 3793 | 3828 |
| 3794 /** | 3829 /** |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3953 core.Map toJson() { | 3988 core.Map toJson() { |
| 3954 var _json = new core.Map(); | 3989 var _json = new core.Map(); |
| 3955 if (jobId != null) { | 3990 if (jobId != null) { |
| 3956 _json["jobId"] = jobId; | 3991 _json["jobId"] = jobId; |
| 3957 } | 3992 } |
| 3958 return _json; | 3993 return _json; |
| 3959 } | 3994 } |
| 3960 } | 3995 } |
| 3961 | 3996 |
| 3962 | 3997 |
| 3963 /** Not documented yet. */ | |
| 3964 class ExternalId { | 3998 class ExternalId { |
| 3965 /** The id used by the source of this data. */ | 3999 /** The id used by the source of this data. */ |
| 3966 core.String id; | 4000 core.String id; |
| 3967 | 4001 |
| 3968 /** The name of the source of this data. */ | 4002 /** The name of the source of this data. */ |
| 3969 core.String sourceName; | 4003 core.String sourceName; |
| 3970 | 4004 |
| 3971 | 4005 |
| 3972 ExternalId(); | 4006 ExternalId(); |
| 3973 | 4007 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 3986 _json["id"] = id; | 4020 _json["id"] = id; |
| 3987 } | 4021 } |
| 3988 if (sourceName != null) { | 4022 if (sourceName != null) { |
| 3989 _json["sourceName"] = sourceName; | 4023 _json["sourceName"] = sourceName; |
| 3990 } | 4024 } |
| 3991 return _json; | 4025 return _json; |
| 3992 } | 4026 } |
| 3993 } | 4027 } |
| 3994 | 4028 |
| 3995 | 4029 |
| 3996 /** Not documented yet. */ | |
| 3997 class FastqMetadata { | 4030 class FastqMetadata { |
| 3998 /** Optionally specifies the library name for alignment from FASTQ. */ | 4031 /** Optionally specifies the library name for alignment from FASTQ. */ |
| 3999 core.String libraryName; | 4032 core.String libraryName; |
| 4000 | 4033 |
| 4001 /** | 4034 /** |
| 4002 * Optionally specifies the platform name for alignment from FASTQ. For | 4035 * Optionally specifies the platform name for alignment from FASTQ. For |
| 4003 * example: CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT, PACBIO. | 4036 * example: CAPILLARY, LS454, ILLUMINA, SOLID, HELICOS, IONTORRENT, PACBIO. |
| 4004 */ | 4037 */ |
| 4005 core.String platformName; | 4038 core.String platformName; |
| 4006 | 4039 |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4494 _json["mappingQuality"] = mappingQuality; | 4527 _json["mappingQuality"] = mappingQuality; |
| 4495 } | 4528 } |
| 4496 if (position != null) { | 4529 if (position != null) { |
| 4497 _json["position"] = (position).toJson(); | 4530 _json["position"] = (position).toJson(); |
| 4498 } | 4531 } |
| 4499 return _json; | 4532 return _json; |
| 4500 } | 4533 } |
| 4501 } | 4534 } |
| 4502 | 4535 |
| 4503 | 4536 |
| 4504 /** Not documented yet. */ | |
| 4505 class ListBasesResponse { | 4537 class ListBasesResponse { |
| 4506 /** | 4538 /** |
| 4507 * The continuation token, which is used to page through large result sets. | 4539 * The continuation token, which is used to page through large result sets. |
| 4508 * Provide this value in a subsequent request to return the next page of | 4540 * Provide this value in a subsequent request to return the next page of |
| 4509 * results. This field will be empty if there aren't any additional results. | 4541 * results. This field will be empty if there aren't any additional results. |
| 4510 */ | 4542 */ |
| 4511 core.String nextPageToken; | 4543 core.String nextPageToken; |
| 4512 | 4544 |
| 4513 /** | 4545 /** |
| 4514 * The offset position (0-based) of the given sequence from the start of this | 4546 * The offset position (0-based) of the given sequence from the start of this |
| (...skipping 28 matching lines...) Expand all Loading... |
| 4543 _json["offset"] = offset; | 4575 _json["offset"] = offset; |
| 4544 } | 4576 } |
| 4545 if (sequence != null) { | 4577 if (sequence != null) { |
| 4546 _json["sequence"] = sequence; | 4578 _json["sequence"] = sequence; |
| 4547 } | 4579 } |
| 4548 return _json; | 4580 return _json; |
| 4549 } | 4581 } |
| 4550 } | 4582 } |
| 4551 | 4583 |
| 4552 | 4584 |
| 4553 /** Not documented yet. */ | |
| 4554 class ListCoverageBucketsResponse { | 4585 class ListCoverageBucketsResponse { |
| 4555 /** | 4586 /** |
| 4556 * The length of each coverage bucket in base pairs. Note that buckets at the | 4587 * The length of each coverage bucket in base pairs. Note that buckets at the |
| 4557 * end of a reference sequence may be shorter. This value is omitted if the | 4588 * end of a reference sequence may be shorter. This value is omitted if the |
| 4558 * bucket width is infinity (the default behaviour, with no range or | 4589 * bucket width is infinity (the default behaviour, with no range or |
| 4559 * targetBucketWidth). | 4590 * targetBucketWidth). |
| 4560 */ | 4591 */ |
| 4561 core.String bucketWidth; | 4592 core.String bucketWidth; |
| 4562 | 4593 |
| 4563 /** | 4594 /** |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4636 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); | 4667 _json["datasets"] = datasets.map((value) => (value).toJson()).toList(); |
| 4637 } | 4668 } |
| 4638 if (nextPageToken != null) { | 4669 if (nextPageToken != null) { |
| 4639 _json["nextPageToken"] = nextPageToken; | 4670 _json["nextPageToken"] = nextPageToken; |
| 4640 } | 4671 } |
| 4641 return _json; | 4672 return _json; |
| 4642 } | 4673 } |
| 4643 } | 4674 } |
| 4644 | 4675 |
| 4645 | 4676 |
| 4646 /** Not documented yet. */ | |
| 4647 class MergeVariantsRequest { | 4677 class MergeVariantsRequest { |
| 4648 /** The variants to be merged with existing variants. */ | 4678 /** The variants to be merged with existing variants. */ |
| 4649 core.List<Variant> variants; | 4679 core.List<Variant> variants; |
| 4650 | 4680 |
| 4651 | 4681 |
| 4652 MergeVariantsRequest(); | 4682 MergeVariantsRequest(); |
| 4653 | 4683 |
| 4654 MergeVariantsRequest.fromJson(core.Map _json) { | 4684 MergeVariantsRequest.fromJson(core.Map _json) { |
| 4655 if (_json.containsKey("variants")) { | 4685 if (_json.containsKey("variants")) { |
| 4656 variants = _json["variants"].map((value) => new Variant.fromJson(value)).t
oList(); | 4686 variants = _json["variants"].map((value) => new Variant.fromJson(value)).t
oList(); |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5425 _json["referenceSetId"] = referenceSetId; | 5455 _json["referenceSetId"] = referenceSetId; |
| 5426 } | 5456 } |
| 5427 if (sampleId != null) { | 5457 if (sampleId != null) { |
| 5428 _json["sampleId"] = sampleId; | 5458 _json["sampleId"] = sampleId; |
| 5429 } | 5459 } |
| 5430 return _json; | 5460 return _json; |
| 5431 } | 5461 } |
| 5432 } | 5462 } |
| 5433 | 5463 |
| 5434 | 5464 |
| 5435 /** Not documented yet. */ | |
| 5436 class ReadGroupExperiment { | 5465 class ReadGroupExperiment { |
| 5437 /** | 5466 /** |
| 5438 * The instrument model used as part of this experiment. This maps to | 5467 * The instrument model used as part of this experiment. This maps to |
| 5439 * sequencing technology in BAM. | 5468 * sequencing technology in BAM. |
| 5440 */ | 5469 */ |
| 5441 core.String instrumentModel; | 5470 core.String instrumentModel; |
| 5442 | 5471 |
| 5443 /** | 5472 /** |
| 5444 * The library used as part of this experiment. Note: This is not an actual ID | 5473 * The library used as part of this experiment. Note: This is not an actual ID |
| 5445 * within this repository, but rather an identifier for a library which may be | 5474 * within this repository, but rather an identifier for a library which may be |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5486 _json["platformUnit"] = platformUnit; | 5515 _json["platformUnit"] = platformUnit; |
| 5487 } | 5516 } |
| 5488 if (sequencingCenter != null) { | 5517 if (sequencingCenter != null) { |
| 5489 _json["sequencingCenter"] = sequencingCenter; | 5518 _json["sequencingCenter"] = sequencingCenter; |
| 5490 } | 5519 } |
| 5491 return _json; | 5520 return _json; |
| 5492 } | 5521 } |
| 5493 } | 5522 } |
| 5494 | 5523 |
| 5495 | 5524 |
| 5496 /** Not documented yet. */ | |
| 5497 class ReadGroupProgram { | 5525 class ReadGroupProgram { |
| 5498 /** The command line used to run this program. */ | 5526 /** The command line used to run this program. */ |
| 5499 core.String commandLine; | 5527 core.String commandLine; |
| 5500 | 5528 |
| 5501 /** | 5529 /** |
| 5502 * The user specified locally unique ID of the program. Used along with | 5530 * The user specified locally unique ID of the program. Used along with |
| 5503 * prevProgramId to define an ordering between programs. | 5531 * prevProgramId to define an ordering between programs. |
| 5504 */ | 5532 */ |
| 5505 core.String id; | 5533 core.String id; |
| 5506 | 5534 |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5789 * A reference set is a set of references which typically comprise a reference | 5817 * A reference set is a set of references which typically comprise a reference |
| 5790 * assembly for a species, such as GRCh38 which is representative of the human | 5818 * assembly for a species, such as GRCh38 which is representative of the human |
| 5791 * genome. A reference set defines a common coordinate space for comparing | 5819 * genome. A reference set defines a common coordinate space for comparing |
| 5792 * reference-aligned experimental data. A reference set contains 1 or more | 5820 * reference-aligned experimental data. A reference set contains 1 or more |
| 5793 * references. | 5821 * references. |
| 5794 */ | 5822 */ |
| 5795 class ReferenceSet { | 5823 class ReferenceSet { |
| 5796 /** Public id of this reference set, such as GRCh37. */ | 5824 /** Public id of this reference set, such as GRCh37. */ |
| 5797 core.String assemblyId; | 5825 core.String assemblyId; |
| 5798 | 5826 |
| 5799 /** Optional free text description of this reference set. */ | 5827 /** Free text description of this reference set. */ |
| 5800 core.String description; | 5828 core.String description; |
| 5801 | 5829 |
| 5802 /** The Google generated immutable ID of the reference set. */ | 5830 /** The Google generated immutable ID of the reference set. */ |
| 5803 core.String id; | 5831 core.String id; |
| 5804 | 5832 |
| 5805 /** | 5833 /** |
| 5806 * Order-independent MD5 checksum which identifies this reference set. The | 5834 * Order-independent MD5 checksum which identifies this reference set. The |
| 5807 * checksum is computed by sorting all lower case hexidecimal string | 5835 * checksum is computed by sorting all lower case hexidecimal string |
| 5808 * reference.md5checksum (for all reference in this set) in ascending | 5836 * reference.md5checksum (for all reference in this set) in ascending |
| 5809 * lexicographic order, concatenating, and taking the MD5 of that value. The | 5837 * lexicographic order, concatenating, and taking the MD5 of that value. The |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5889 _json["sourceAccessions"] = sourceAccessions; | 5917 _json["sourceAccessions"] = sourceAccessions; |
| 5890 } | 5918 } |
| 5891 if (sourceURI != null) { | 5919 if (sourceURI != null) { |
| 5892 _json["sourceURI"] = sourceURI; | 5920 _json["sourceURI"] = sourceURI; |
| 5893 } | 5921 } |
| 5894 return _json; | 5922 return _json; |
| 5895 } | 5923 } |
| 5896 } | 5924 } |
| 5897 | 5925 |
| 5898 | 5926 |
| 5899 /** Not documented yet. */ | |
| 5900 class SearchAnnotationSetsRequest { | 5927 class SearchAnnotationSetsRequest { |
| 5901 /** | 5928 /** |
| 5902 * The dataset IDs to search within. Caller must have READ access to these | 5929 * The dataset IDs to search within. Caller must have READ access to these |
| 5903 * datasets. | 5930 * datasets. |
| 5904 */ | 5931 */ |
| 5905 core.List<core.String> datasetIds; | 5932 core.List<core.String> datasetIds; |
| 5906 | 5933 |
| 5907 /** | 5934 /** |
| 5908 * Only return annotations sets for which a substring of the name matches this | 5935 * Only return annotations sets for which a substring of the name matches this |
| 5909 * string (case insensitive). | 5936 * string (case insensitive). |
| (...skipping 13 matching lines...) Expand all Loading... |
| 5923 */ | 5950 */ |
| 5924 core.String pageToken; | 5951 core.String pageToken; |
| 5925 | 5952 |
| 5926 /** | 5953 /** |
| 5927 * If specified, only annotation sets associated with the given reference set | 5954 * If specified, only annotation sets associated with the given reference set |
| 5928 * are returned. | 5955 * are returned. |
| 5929 */ | 5956 */ |
| 5930 core.String referenceSetId; | 5957 core.String referenceSetId; |
| 5931 | 5958 |
| 5932 /** | 5959 /** |
| 5933 * If specified, only annotation sets which have any of these types are | 5960 * If specified, only annotation sets that have any of these types are |
| 5934 * returned. | 5961 * returned. |
| 5935 */ | 5962 */ |
| 5936 core.List<core.String> types; | 5963 core.List<core.String> types; |
| 5937 | 5964 |
| 5938 | 5965 |
| 5939 SearchAnnotationSetsRequest(); | 5966 SearchAnnotationSetsRequest(); |
| 5940 | 5967 |
| 5941 SearchAnnotationSetsRequest.fromJson(core.Map _json) { | 5968 SearchAnnotationSetsRequest.fromJson(core.Map _json) { |
| 5942 if (_json.containsKey("datasetIds")) { | 5969 if (_json.containsKey("datasetIds")) { |
| 5943 datasetIds = _json["datasetIds"]; | 5970 datasetIds = _json["datasetIds"]; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5977 _json["referenceSetId"] = referenceSetId; | 6004 _json["referenceSetId"] = referenceSetId; |
| 5978 } | 6005 } |
| 5979 if (types != null) { | 6006 if (types != null) { |
| 5980 _json["types"] = types; | 6007 _json["types"] = types; |
| 5981 } | 6008 } |
| 5982 return _json; | 6009 return _json; |
| 5983 } | 6010 } |
| 5984 } | 6011 } |
| 5985 | 6012 |
| 5986 | 6013 |
| 5987 /** Not documented yet. */ | |
| 5988 class SearchAnnotationSetsResponse { | 6014 class SearchAnnotationSetsResponse { |
| 5989 /** The matching annotation sets. */ | 6015 /** The matching annotation sets. */ |
| 5990 core.List<AnnotationSet> annotationSets; | 6016 core.List<AnnotationSet> annotationSets; |
| 5991 | 6017 |
| 5992 /** | 6018 /** |
| 5993 * The continuation token, which is used to page through large result sets. | 6019 * The continuation token, which is used to page through large result sets. |
| 5994 * Provide this value in a subsequent request to return the next page of | 6020 * Provide this value in a subsequent request to return the next page of |
| 5995 * results. This field will be empty if there aren't any additional results. | 6021 * results. This field will be empty if there aren't any additional results. |
| 5996 */ | 6022 */ |
| 5997 core.String nextPageToken; | 6023 core.String nextPageToken; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6014 _json["annotationSets"] = annotationSets.map((value) => (value).toJson()).
toList(); | 6040 _json["annotationSets"] = annotationSets.map((value) => (value).toJson()).
toList(); |
| 6015 } | 6041 } |
| 6016 if (nextPageToken != null) { | 6042 if (nextPageToken != null) { |
| 6017 _json["nextPageToken"] = nextPageToken; | 6043 _json["nextPageToken"] = nextPageToken; |
| 6018 } | 6044 } |
| 6019 return _json; | 6045 return _json; |
| 6020 } | 6046 } |
| 6021 } | 6047 } |
| 6022 | 6048 |
| 6023 | 6049 |
| 6024 /** Not documented yet. */ | |
| 6025 class SearchAnnotationsRequest { | 6050 class SearchAnnotationsRequest { |
| 6026 /** | 6051 /** |
| 6027 * The annotation sets to search within. The caller must have READ access to | 6052 * The annotation sets to search within. The caller must have READ access to |
| 6028 * these annotation sets. Required. All queried annotation sets must have the | 6053 * these annotation sets. Required. All queried annotation sets must have the |
| 6029 * same type. | 6054 * same type. |
| 6030 */ | 6055 */ |
| 6031 core.List<core.String> annotationSetIds; | 6056 core.List<core.String> annotationSetIds; |
| 6032 | 6057 |
| 6033 /** | 6058 /** |
| 6034 * Specifies number of results to return in a single page. If unspecified, it | 6059 * Specifies number of results to return in a single page. If unspecified, it |
| 6035 * will default to 256. The maximum value is 2048. | 6060 * will default to 256. The maximum value is 2048. |
| 6036 */ | 6061 */ |
| 6037 core.int pageSize; | 6062 core.int pageSize; |
| 6038 | 6063 |
| 6039 /** | 6064 /** |
| 6040 * The continuation token, which is used to page through large result sets. To | 6065 * The continuation token, which is used to page through large result sets. To |
| 6041 * get the next page of results, set this parameter to the value of | 6066 * get the next page of results, set this parameter to the value of |
| 6042 * nextPageToken from the previous response. | 6067 * nextPageToken from the previous response. |
| 6043 */ | 6068 */ |
| 6044 core.String pageToken; | 6069 core.String pageToken; |
| 6045 | 6070 |
| 6046 /** | 6071 /** |
| 6047 * If specified, this query matches only annotations which overlap this range. | 6072 * If specified, this query matches only annotations that overlap this range. |
| 6048 */ | 6073 */ |
| 6049 QueryRange range; | 6074 QueryRange range; |
| 6050 | 6075 |
| 6051 | 6076 |
| 6052 SearchAnnotationsRequest(); | 6077 SearchAnnotationsRequest(); |
| 6053 | 6078 |
| 6054 SearchAnnotationsRequest.fromJson(core.Map _json) { | 6079 SearchAnnotationsRequest.fromJson(core.Map _json) { |
| 6055 if (_json.containsKey("annotationSetIds")) { | 6080 if (_json.containsKey("annotationSetIds")) { |
| 6056 annotationSetIds = _json["annotationSetIds"]; | 6081 annotationSetIds = _json["annotationSetIds"]; |
| 6057 } | 6082 } |
| (...skipping 20 matching lines...) Expand all Loading... |
| 6078 _json["pageToken"] = pageToken; | 6103 _json["pageToken"] = pageToken; |
| 6079 } | 6104 } |
| 6080 if (range != null) { | 6105 if (range != null) { |
| 6081 _json["range"] = (range).toJson(); | 6106 _json["range"] = (range).toJson(); |
| 6082 } | 6107 } |
| 6083 return _json; | 6108 return _json; |
| 6084 } | 6109 } |
| 6085 } | 6110 } |
| 6086 | 6111 |
| 6087 | 6112 |
| 6088 /** Not documented yet. */ | |
| 6089 class SearchAnnotationsResponse { | 6113 class SearchAnnotationsResponse { |
| 6090 /** The matching annotations. */ | 6114 /** The matching annotations. */ |
| 6091 core.List<Annotation> annotations; | 6115 core.List<Annotation> annotations; |
| 6092 | 6116 |
| 6093 /** | 6117 /** |
| 6094 * The continuation token, which is used to page through large result sets. | 6118 * The continuation token, which is used to page through large result sets. |
| 6095 * Provide this value in a subsequent request to return the next page of | 6119 * Provide this value in a subsequent request to return the next page of |
| 6096 * results. This field will be empty if there aren't any additional results. | 6120 * results. This field will be empty if there aren't any additional results. |
| 6097 */ | 6121 */ |
| 6098 core.String nextPageToken; | 6122 core.String nextPageToken; |
| (...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6351 core.List<core.String> datasetIds; | 6375 core.List<core.String> datasetIds; |
| 6352 | 6376 |
| 6353 /** | 6377 /** |
| 6354 * Only return read group sets for which a substring of the name matches this | 6378 * Only return read group sets for which a substring of the name matches this |
| 6355 * string. | 6379 * string. |
| 6356 */ | 6380 */ |
| 6357 core.String name; | 6381 core.String name; |
| 6358 | 6382 |
| 6359 /** | 6383 /** |
| 6360 * Specifies number of results to return in a single page. If unspecified, it | 6384 * Specifies number of results to return in a single page. If unspecified, it |
| 6361 * will default to 128. The maximum value is 1024. | 6385 * will default to 256. The maximum value is 1024. |
| 6362 */ | 6386 */ |
| 6363 core.int pageSize; | 6387 core.int pageSize; |
| 6364 | 6388 |
| 6365 /** | 6389 /** |
| 6366 * The continuation token, which is used to page through large result sets. To | 6390 * The continuation token, which is used to page through large result sets. To |
| 6367 * get the next page of results, set this parameter to the value of | 6391 * get the next page of results, set this parameter to the value of |
| 6368 * nextPageToken from the previous response. | 6392 * nextPageToken from the previous response. |
| 6369 */ | 6393 */ |
| 6370 core.String pageToken; | 6394 core.String pageToken; |
| 6371 | 6395 |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6581 _json["alignments"] = alignments.map((value) => (value).toJson()).toList()
; | 6605 _json["alignments"] = alignments.map((value) => (value).toJson()).toList()
; |
| 6582 } | 6606 } |
| 6583 if (nextPageToken != null) { | 6607 if (nextPageToken != null) { |
| 6584 _json["nextPageToken"] = nextPageToken; | 6608 _json["nextPageToken"] = nextPageToken; |
| 6585 } | 6609 } |
| 6586 return _json; | 6610 return _json; |
| 6587 } | 6611 } |
| 6588 } | 6612 } |
| 6589 | 6613 |
| 6590 | 6614 |
| 6591 /** Not documented yet. */ | |
| 6592 class SearchReferenceSetsRequest { | 6615 class SearchReferenceSetsRequest { |
| 6593 /** | 6616 /** |
| 6594 * If present, return references for which the accession matches any of these | 6617 * If present, return references for which the accession matches any of these |
| 6595 * strings. Best to give a version number, for example GCF_000001405.26. If | 6618 * strings. Best to give a version number, for example GCF_000001405.26. If |
| 6596 * only the main accession number is given then all records with that main | 6619 * only the main accession number is given then all records with that main |
| 6597 * accession will be returned, whichever version. Note that different versions | 6620 * accession will be returned, whichever version. Note that different versions |
| 6598 * will have different sequences. | 6621 * will have different sequences. |
| 6599 */ | 6622 */ |
| 6600 core.List<core.String> accessions; | 6623 core.List<core.String> accessions; |
| 6601 | 6624 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6657 _json["pageSize"] = pageSize; | 6680 _json["pageSize"] = pageSize; |
| 6658 } | 6681 } |
| 6659 if (pageToken != null) { | 6682 if (pageToken != null) { |
| 6660 _json["pageToken"] = pageToken; | 6683 _json["pageToken"] = pageToken; |
| 6661 } | 6684 } |
| 6662 return _json; | 6685 return _json; |
| 6663 } | 6686 } |
| 6664 } | 6687 } |
| 6665 | 6688 |
| 6666 | 6689 |
| 6667 /** Not documented yet. */ | |
| 6668 class SearchReferenceSetsResponse { | 6690 class SearchReferenceSetsResponse { |
| 6669 /** | 6691 /** |
| 6670 * The continuation token, which is used to page through large result sets. | 6692 * The continuation token, which is used to page through large result sets. |
| 6671 * Provide this value in a subsequent request to return the next page of | 6693 * Provide this value in a subsequent request to return the next page of |
| 6672 * results. This field will be empty if there aren't any additional results. | 6694 * results. This field will be empty if there aren't any additional results. |
| 6673 */ | 6695 */ |
| 6674 core.String nextPageToken; | 6696 core.String nextPageToken; |
| 6675 | 6697 |
| 6676 /** The matching references sets. */ | 6698 /** The matching references sets. */ |
| 6677 core.List<ReferenceSet> referenceSets; | 6699 core.List<ReferenceSet> referenceSets; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 6694 _json["nextPageToken"] = nextPageToken; | 6716 _json["nextPageToken"] = nextPageToken; |
| 6695 } | 6717 } |
| 6696 if (referenceSets != null) { | 6718 if (referenceSets != null) { |
| 6697 _json["referenceSets"] = referenceSets.map((value) => (value).toJson()).to
List(); | 6719 _json["referenceSets"] = referenceSets.map((value) => (value).toJson()).to
List(); |
| 6698 } | 6720 } |
| 6699 return _json; | 6721 return _json; |
| 6700 } | 6722 } |
| 6701 } | 6723 } |
| 6702 | 6724 |
| 6703 | 6725 |
| 6704 /** Not documented yet. */ | |
| 6705 class SearchReferencesRequest { | 6726 class SearchReferencesRequest { |
| 6706 /** | 6727 /** |
| 6707 * If present, return references for which the accession matches this string. | 6728 * If present, return references for which the accession matches this string. |
| 6708 * Best to give a version number, for example GCF_000001405.26. If only the | 6729 * Best to give a version number, for example GCF_000001405.26. If only the |
| 6709 * main accession number is given then all records with that main accession | 6730 * main accession number is given then all records with that main accession |
| 6710 * will be returned, whichever version. Note that different versions will have | 6731 * will be returned, whichever version. Note that different versions will have |
| 6711 * different sequences. | 6732 * different sequences. |
| 6712 */ | 6733 */ |
| 6713 core.List<core.String> accessions; | 6734 core.List<core.String> accessions; |
| 6714 | 6735 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6767 _json["pageToken"] = pageToken; | 6788 _json["pageToken"] = pageToken; |
| 6768 } | 6789 } |
| 6769 if (referenceSetId != null) { | 6790 if (referenceSetId != null) { |
| 6770 _json["referenceSetId"] = referenceSetId; | 6791 _json["referenceSetId"] = referenceSetId; |
| 6771 } | 6792 } |
| 6772 return _json; | 6793 return _json; |
| 6773 } | 6794 } |
| 6774 } | 6795 } |
| 6775 | 6796 |
| 6776 | 6797 |
| 6777 /** Not documented yet. */ | |
| 6778 class SearchReferencesResponse { | 6798 class SearchReferencesResponse { |
| 6779 /** | 6799 /** |
| 6780 * The continuation token, which is used to page through large result sets. | 6800 * The continuation token, which is used to page through large result sets. |
| 6781 * Provide this value in a subsequent request to return the next page of | 6801 * Provide this value in a subsequent request to return the next page of |
| 6782 * results. This field will be empty if there aren't any additional results. | 6802 * results. This field will be empty if there aren't any additional results. |
| 6783 */ | 6803 */ |
| 6784 core.String nextPageToken; | 6804 core.String nextPageToken; |
| 6785 | 6805 |
| 6786 /** The matching references. */ | 6806 /** The matching references. */ |
| 6787 core.List<Reference> references; | 6807 core.List<Reference> references; |
| (...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7044 _json["nextPageToken"] = nextPageToken; | 7064 _json["nextPageToken"] = nextPageToken; |
| 7045 } | 7065 } |
| 7046 if (variants != null) { | 7066 if (variants != null) { |
| 7047 _json["variants"] = variants.map((value) => (value).toJson()).toList(); | 7067 _json["variants"] = variants.map((value) => (value).toJson()).toList(); |
| 7048 } | 7068 } |
| 7049 return _json; | 7069 return _json; |
| 7050 } | 7070 } |
| 7051 } | 7071 } |
| 7052 | 7072 |
| 7053 | 7073 |
| 7074 /** The stream variants request. */ |
| 7075 class StreamVariantsRequest { |
| 7076 /** |
| 7077 * Only return variant calls which belong to call sets with these ids. Leaving |
| 7078 * this blank returns all variant calls. |
| 7079 */ |
| 7080 core.List<core.String> callSetIds; |
| 7081 |
| 7082 /** |
| 7083 * The end of the window (0-based, exclusive) for which overlapping variants |
| 7084 * should be returned. |
| 7085 */ |
| 7086 core.String end; |
| 7087 |
| 7088 /** Required. Only return variants in this reference sequence. */ |
| 7089 core.String referenceName; |
| 7090 |
| 7091 /** |
| 7092 * The beginning of the window (0-based, inclusive) for which overlapping |
| 7093 * variants should be returned. |
| 7094 */ |
| 7095 core.String start; |
| 7096 |
| 7097 /** |
| 7098 * Exactly one variant set ID must be provided. Only variants from this |
| 7099 * variant set will be returned. |
| 7100 */ |
| 7101 core.List<core.String> variantSetIds; |
| 7102 |
| 7103 |
| 7104 StreamVariantsRequest(); |
| 7105 |
| 7106 StreamVariantsRequest.fromJson(core.Map _json) { |
| 7107 if (_json.containsKey("callSetIds")) { |
| 7108 callSetIds = _json["callSetIds"]; |
| 7109 } |
| 7110 if (_json.containsKey("end")) { |
| 7111 end = _json["end"]; |
| 7112 } |
| 7113 if (_json.containsKey("referenceName")) { |
| 7114 referenceName = _json["referenceName"]; |
| 7115 } |
| 7116 if (_json.containsKey("start")) { |
| 7117 start = _json["start"]; |
| 7118 } |
| 7119 if (_json.containsKey("variantSetIds")) { |
| 7120 variantSetIds = _json["variantSetIds"]; |
| 7121 } |
| 7122 } |
| 7123 |
| 7124 core.Map toJson() { |
| 7125 var _json = new core.Map(); |
| 7126 if (callSetIds != null) { |
| 7127 _json["callSetIds"] = callSetIds; |
| 7128 } |
| 7129 if (end != null) { |
| 7130 _json["end"] = end; |
| 7131 } |
| 7132 if (referenceName != null) { |
| 7133 _json["referenceName"] = referenceName; |
| 7134 } |
| 7135 if (start != null) { |
| 7136 _json["start"] = start; |
| 7137 } |
| 7138 if (variantSetIds != null) { |
| 7139 _json["variantSetIds"] = variantSetIds; |
| 7140 } |
| 7141 return _json; |
| 7142 } |
| 7143 } |
| 7144 |
| 7145 |
| 7054 /** | 7146 /** |
| 7055 * A transcript represents the assertion that a particular region of the | 7147 * A transcript represents the assertion that a particular region of the |
| 7056 * reference genome may be transcribed as RNA. | 7148 * reference genome may be transcribed as RNA. |
| 7057 */ | 7149 */ |
| 7058 class Transcript { | 7150 class Transcript { |
| 7059 /** | 7151 /** |
| 7060 * The range of the coding sequence for this transcript, if any. To determine | 7152 * The range of the coding sequence for this transcript, if any. To determine |
| 7061 * the exact ranges of coding sequence, intersect this range with those of the | 7153 * the exact ranges of coding sequence, intersect this range with those of the |
| 7062 * exons, if any. If there are any exons, the codingSequence must start and | 7154 * exons, if any. If there are any exons, the codingSequence must start and |
| 7063 * end within them. | 7155 * end within them. |
| 7064 * | 7156 * |
| 7065 * Note that in some cases, the reference genome will not exactly match the | 7157 * Note that in some cases, the reference genome will not exactly match the |
| 7066 * observed mRNA transcript e.g. due to variance in the source genome from | 7158 * observed mRNA transcript e.g. due to variance in the source genome from |
| 7067 * reference. In these cases, exon.frame will not necessarily match the | 7159 * reference. In these cases, exon.frame will not necessarily match the |
| 7068 * expected reference reading frame and coding exon reference bases cannot | 7160 * expected reference reading frame and coding exon reference bases cannot |
| 7069 * necessarily be concatenated to produce the original transcript mRNA. | 7161 * necessarily be concatenated to produce the original transcript mRNA. |
| 7070 */ | 7162 */ |
| 7071 TranscriptCodingSequence codingSequence; | 7163 TranscriptCodingSequence codingSequence; |
| 7072 | 7164 |
| 7073 /** | 7165 /** |
| 7074 * The exons which compose this transcript. Exons are the pieces of the | 7166 * The exons that compose this transcript. This field should be unset for |
| 7075 * transcript which are spliced together, may be exported from a cell's | 7167 * genomes where transcript splicing does not occur, for example prokaryotes. |
| 7076 * nucleus, and may then be translated to protein. This field should be unset | |
| 7077 * for genomes where transcript splicing does not occur, for example | |
| 7078 * prokaryotes. | |
| 7079 * | 7168 * |
| 7080 * | 7169 * |
| 7081 * Introns are regions of the transcript which are not included in the spliced | 7170 * Introns are regions of the transcript that are not included in the spliced |
| 7082 * RNA product. Though not explicitly modeled here, intron ranges can be | 7171 * RNA product. Though not explicitly modeled here, intron ranges can be |
| 7083 * deduced; all regions of this transcript which are not exons are introns. | 7172 * deduced; all regions of this transcript that are not exons are introns. |
| 7084 * | 7173 * |
| 7085 * | 7174 * |
| 7086 * Exonic sequences do not necessarily code for a translational product (amino | 7175 * Exonic sequences do not necessarily code for a translational product (amino |
| 7087 * acids). Only the regions of exons bounded by the codingSequence correspond | 7176 * acids). Only the regions of exons bounded by the codingSequence correspond |
| 7088 * to coding DNA sequence. | 7177 * to coding DNA sequence. |
| 7089 * | 7178 * |
| 7090 * | 7179 * |
| 7091 * Exons are ordered by start position and may not overlap. | 7180 * Exons are ordered by start position and may not overlap. |
| 7092 */ | 7181 */ |
| 7093 core.List<TranscriptExon> exons; | 7182 core.List<TranscriptExon> exons; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7121 _json["exons"] = exons.map((value) => (value).toJson()).toList(); | 7210 _json["exons"] = exons.map((value) => (value).toJson()).toList(); |
| 7122 } | 7211 } |
| 7123 if (geneId != null) { | 7212 if (geneId != null) { |
| 7124 _json["geneId"] = geneId; | 7213 _json["geneId"] = geneId; |
| 7125 } | 7214 } |
| 7126 return _json; | 7215 return _json; |
| 7127 } | 7216 } |
| 7128 } | 7217 } |
| 7129 | 7218 |
| 7130 | 7219 |
| 7131 /** Not documented yet. */ | |
| 7132 class TranscriptCodingSequence { | 7220 class TranscriptCodingSequence { |
| 7133 /** | 7221 /** |
| 7134 * The end of the coding sequence on this annotation's reference sequence, | 7222 * The end of the coding sequence on this annotation's reference sequence, |
| 7135 * 0-based exclusive. Note that this position is relative to the reference | 7223 * 0-based exclusive. Note that this position is relative to the reference |
| 7136 * start, and not the containing annotation start. | 7224 * start, and not the containing annotation start. |
| 7137 */ | 7225 */ |
| 7138 core.String end; | 7226 core.String end; |
| 7139 | 7227 |
| 7140 /** | 7228 /** |
| 7141 * The start of the coding sequence on this annotation's reference sequence, | 7229 * The start of the coding sequence on this annotation's reference sequence, |
| (...skipping 20 matching lines...) Expand all Loading... |
| 7162 _json["end"] = end; | 7250 _json["end"] = end; |
| 7163 } | 7251 } |
| 7164 if (start != null) { | 7252 if (start != null) { |
| 7165 _json["start"] = start; | 7253 _json["start"] = start; |
| 7166 } | 7254 } |
| 7167 return _json; | 7255 return _json; |
| 7168 } | 7256 } |
| 7169 } | 7257 } |
| 7170 | 7258 |
| 7171 | 7259 |
| 7172 /** Not documented yet. */ | |
| 7173 class TranscriptExon { | 7260 class TranscriptExon { |
| 7174 /** | 7261 /** |
| 7175 * The end position of the exon on this annotation's reference sequence, | 7262 * The end position of the exon on this annotation's reference sequence, |
| 7176 * 0-based exclusive. Note that this is relative to the reference start, and | 7263 * 0-based exclusive. Note that this is relative to the reference start, and |
| 7177 * not the containing annotation start. | 7264 * not the containing annotation start. |
| 7178 */ | 7265 */ |
| 7179 core.String end; | 7266 core.String end; |
| 7180 | 7267 |
| 7181 /** | 7268 /** |
| 7182 * The frame of this exon. Contains a value of 0, 1, or 2 which indicates the | 7269 * The frame of this exon. Contains a value of 0, 1, or 2, which indicates the |
| 7183 * offset of the first coding base of the exon within the reading frame of the | 7270 * offset of the first coding base of the exon within the reading frame of the |
| 7184 * coding DNA sequence, if any. This field is dependent on the strandedness of | 7271 * coding DNA sequence, if any. This field is dependent on the strandedness of |
| 7185 * this annotation (see Annotation.position.reverseStrand). For forward | 7272 * this annotation (see Annotation.position.reverseStrand). For forward |
| 7186 * stranded annotations, this offset is relative to the exon.start. For | 7273 * stranded annotations, this offset is relative to the exon.start. For |
| 7187 * reverse strand annotations, this offset is relative to the exon.end-1. | 7274 * reverse strand annotations, this offset is relative to the exon.end-1. |
| 7188 * | 7275 * |
| 7189 * Unset if this exon does not intersect the coding sequence. Upon creation of | 7276 * Unset if this exon does not intersect the coding sequence. Upon creation of |
| 7190 * a transcript, the frame must be populated for all or none of the coding | 7277 * a transcript, the frame must be populated for all or none of the coding |
| 7191 * exons. | 7278 * exons. |
| 7192 */ | 7279 */ |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7441 */ | 7528 */ |
| 7442 core.String effect; | 7529 core.String effect; |
| 7443 | 7530 |
| 7444 /** | 7531 /** |
| 7445 * Google annotation ID of the gene affected by this variant. This should be | 7532 * Google annotation ID of the gene affected by this variant. This should be |
| 7446 * provided when the variant is created. | 7533 * provided when the variant is created. |
| 7447 */ | 7534 */ |
| 7448 core.String geneId; | 7535 core.String geneId; |
| 7449 | 7536 |
| 7450 /** | 7537 /** |
| 7451 * Google annotation ID of the transcripts affected by this variant. These | 7538 * Google annotation IDs of the transcripts affected by this variant. These |
| 7452 * should be provided when the variant is created. | 7539 * should be provided when the variant is created. |
| 7453 */ | 7540 */ |
| 7454 core.List<core.String> transcriptIds; | 7541 core.List<core.String> transcriptIds; |
| 7455 | 7542 |
| 7456 /** | 7543 /** |
| 7457 * Type has been adapted from ClinVar's list of variant types. | 7544 * Type has been adapted from ClinVar's list of variant types. |
| 7458 * Possible string values are: | 7545 * Possible string values are: |
| 7459 * - "CNV" | 7546 * - "CNV" |
| 7460 * - "DELETION" | 7547 * - "DELETION" |
| 7461 * - "INSERTION" | 7548 * - "INSERTION" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7515 _json["transcriptIds"] = transcriptIds; | 7602 _json["transcriptIds"] = transcriptIds; |
| 7516 } | 7603 } |
| 7517 if (type != null) { | 7604 if (type != null) { |
| 7518 _json["type"] = type; | 7605 _json["type"] = type; |
| 7519 } | 7606 } |
| 7520 return _json; | 7607 return _json; |
| 7521 } | 7608 } |
| 7522 } | 7609 } |
| 7523 | 7610 |
| 7524 | 7611 |
| 7525 /** Not documented yet. */ | |
| 7526 class VariantAnnotationCondition { | 7612 class VariantAnnotationCondition { |
| 7527 /** | 7613 /** |
| 7528 * The MedGen concept id associated with this gene. Search for these IDs at | 7614 * The MedGen concept id associated with this gene. Search for these IDs at |
| 7529 * http://www.ncbi.nlm.nih.gov/medgen/ | 7615 * http://www.ncbi.nlm.nih.gov/medgen/ |
| 7530 */ | 7616 */ |
| 7531 core.String conceptId; | 7617 core.String conceptId; |
| 7532 | 7618 |
| 7533 /** The set of external ids for this condition. */ | 7619 /** The set of external IDs for this condition. */ |
| 7534 core.List<ExternalId> externalIds; | 7620 core.List<ExternalId> externalIds; |
| 7535 | 7621 |
| 7536 /** A set of names for the condition. */ | 7622 /** A set of names for the condition. */ |
| 7537 core.List<core.String> names; | 7623 core.List<core.String> names; |
| 7538 | 7624 |
| 7539 /** | 7625 /** |
| 7540 * The OMIM id for this condition. Search for these IDs at http://omim.org/ | 7626 * The OMIM id for this condition. Search for these IDs at http://omim.org/ |
| 7541 */ | 7627 */ |
| 7542 core.String omimId; | 7628 core.String omimId; |
| 7543 | 7629 |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7626 } | 7712 } |
| 7627 if (metadata != null) { | 7713 if (metadata != null) { |
| 7628 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); | 7714 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); |
| 7629 } | 7715 } |
| 7630 if (referenceBounds != null) { | 7716 if (referenceBounds != null) { |
| 7631 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); | 7717 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); |
| 7632 } | 7718 } |
| 7633 return _json; | 7719 return _json; |
| 7634 } | 7720 } |
| 7635 } | 7721 } |
| 7636 | |
| 7637 | |
| OLD | NEW |