Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: generated/googleapis/lib/genomics/v1.dart

Issue 1797933002: Api-roll 33: 2016-03-14 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Added resources/*/CHANGELOG.md, addresssed comments Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // This is a generated file (see the discoveryapis_generator project). 1 // This is a generated file (see the discoveryapis_generator project).
2 2
3 library googleapis.genomics.v1; 3 library googleapis.genomics.v1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:crypto/crypto.dart' as crypto; 10 import 'package:crypto/crypto.dart' as crypto;
11 import 'package:http/http.dart' as http; 11 import 'package:http/http.dart' as http;
12 12
13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
14 ApiRequestError, DetailedApiRequestError; 14 ApiRequestError, DetailedApiRequestError;
15 15
16 const core.String USER_AGENT = 'dart-api-client genomics/v1'; 16 const core.String USER_AGENT = 'dart-api-client genomics/v1';
17 17
18 /** 18 /**
19 * An API to store, process, explore, and share genomic data. It supports 19 * Stores, processes, explores and shares genomic data. This API implements the
20 * reference-based alignments, genetic variants, and reference genomes. This API 20 * Global Alliance for Genomics and Health (GA4GH) v0.5.1 API as well as several
21 * provides an implementation of the Global Alliance for Genomics and Health 21 * extensions.
22 * (GA4GH) v0.5.1 API as well as several extensions.
23 */ 22 */
24 class GenomicsApi { 23 class GenomicsApi {
25 /** View and manage your data in Google BigQuery */ 24 /** View and manage your data in Google BigQuery */
26 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery"; 25 static const BigqueryScope = "https://www.googleapis.com/auth/bigquery";
27 26
28 /** View and manage your data across Google Cloud Platform services */ 27 /** View and manage your data across Google Cloud Platform services */
29 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 28 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm";
30 29
31 /** Manage your data in Google Cloud Storage */ 30 /** Manage your data in Google Cloud Storage */
32 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst orage.read_write"; 31 static const DevstorageReadWriteScope = "https://www.googleapis.com/auth/devst orage.read_write";
(...skipping 1798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1831 "POST", 1830 "POST",
1832 body: _body, 1831 body: _body,
1833 queryParams: _queryParams, 1832 queryParams: _queryParams,
1834 uploadOptions: _uploadOptions, 1833 uploadOptions: _uploadOptions,
1835 uploadMedia: _uploadMedia, 1834 uploadMedia: _uploadMedia,
1836 downloadOptions: _downloadOptions); 1835 downloadOptions: _downloadOptions);
1837 return _response.then((data) => new Operation.fromJson(data)); 1836 return _response.then((data) => new Operation.fromJson(data));
1838 } 1837 }
1839 1838
1840 /** 1839 /**
1840 * Merges the given variants with existing variants. For the definitions of
1841 * variants and other genomics resources, see [Fundamentals of Google
1842 * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics )
1843 * Each variant will be merged with an existing variant that matches its
1844 * reference sequence, start, end, reference bases, and alternative bases. If
1845 * no such variant exists, a new one will be created. When variants are
1846 * merged, the call information from the new variant is added to the existing
1847 * variant, and other fields (such as key/value pairs) are discarded.
1848 *
1849 * [request] - The metadata request object.
1850 *
1851 * Request parameters:
1852 *
1853 * Completes with a [Empty].
1854 *
1855 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1856 * error.
1857 *
1858 * If the used [http.Client] completes with an error when making a REST call,
1859 * this method will complete with the same error.
1860 */
1861 async.Future<Empty> merge(MergeVariantsRequest request) {
1862 var _url = null;
1863 var _queryParams = new core.Map();
1864 var _uploadMedia = null;
1865 var _uploadOptions = null;
1866 var _downloadOptions = commons.DownloadOptions.Metadata;
1867 var _body = null;
1868
1869 if (request != null) {
1870 _body = convert.JSON.encode((request).toJson());
1871 }
1872
1873 _url = 'v1/variants:merge';
1874
1875 var _response = _requester.request(_url,
1876 "POST",
1877 body: _body,
1878 queryParams: _queryParams,
1879 uploadOptions: _uploadOptions,
1880 uploadMedia: _uploadMedia,
1881 downloadOptions: _downloadOptions);
1882 return _response.then((data) => new Empty.fromJson(data));
1883 }
1884
1885 /**
1841 * Updates a variant. For the definitions of variants and other genomics 1886 * Updates a variant. For the definitions of variants and other genomics
1842 * resources, see [Fundamentals of Google 1887 * resources, see [Fundamentals of Google
1843 * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics ) 1888 * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics )
1844 * This method supports patch semantics. Returns the modified variant without 1889 * This method supports patch semantics. Returns the modified variant without
1845 * its calls. 1890 * its calls.
1846 * 1891 *
1847 * [request] - The metadata request object. 1892 * [request] - The metadata request object.
1848 * 1893 *
1849 * Request parameters: 1894 * Request parameters:
1850 * 1895 *
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
2022 "POST", 2067 "POST",
2023 body: _body, 2068 body: _body,
2024 queryParams: _queryParams, 2069 queryParams: _queryParams,
2025 uploadOptions: _uploadOptions, 2070 uploadOptions: _uploadOptions,
2026 uploadMedia: _uploadMedia, 2071 uploadMedia: _uploadMedia,
2027 downloadOptions: _downloadOptions); 2072 downloadOptions: _downloadOptions);
2028 return _response.then((data) => new VariantSet.fromJson(data)); 2073 return _response.then((data) => new VariantSet.fromJson(data));
2029 } 2074 }
2030 2075
2031 /** 2076 /**
2032 * Deletes the contents of a variant set. The variant set object is not 2077 * Deletes a variant set including all variants, call sets, and calls within.
2033 * deleted. For the definitions of variant sets and other genomics resources, 2078 * This is not reversible. For the definitions of variant sets and other
2034 * see [Fundamentals of Google 2079 * genomics resources, see [Fundamentals of Google
2035 * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics ) 2080 * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics )
2036 * 2081 *
2037 * Request parameters: 2082 * Request parameters:
2038 * 2083 *
2039 * [variantSetId] - The ID of the variant set to be deleted. 2084 * [variantSetId] - The ID of the variant set to be deleted.
2040 * 2085 *
2041 * Completes with a [Empty]. 2086 * Completes with a [Empty].
2042 * 2087 *
2043 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 2088 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
2044 * error. 2089 * error.
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
3128 if (nextPageToken != null) { 3173 if (nextPageToken != null) {
3129 _json["nextPageToken"] = nextPageToken; 3174 _json["nextPageToken"] = nextPageToken;
3130 } 3175 }
3131 if (operations != null) { 3176 if (operations != null) {
3132 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 3177 _json["operations"] = operations.map((value) => (value).toJson()).toList() ;
3133 } 3178 }
3134 return _json; 3179 return _json;
3135 } 3180 }
3136 } 3181 }
3137 3182
3183 class MergeVariantsRequest {
3184 /** The destination variant set. */
3185 core.String variantSetId;
3186 /** The variants to be merged with existing variants. */
3187 core.List<Variant> variants;
3188
3189 MergeVariantsRequest();
3190
3191 MergeVariantsRequest.fromJson(core.Map _json) {
3192 if (_json.containsKey("variantSetId")) {
3193 variantSetId = _json["variantSetId"];
3194 }
3195 if (_json.containsKey("variants")) {
3196 variants = _json["variants"].map((value) => new Variant.fromJson(value)).t oList();
3197 }
3198 }
3199
3200 core.Map toJson() {
3201 var _json = new core.Map();
3202 if (variantSetId != null) {
3203 _json["variantSetId"] = variantSetId;
3204 }
3205 if (variants != null) {
3206 _json["variants"] = variants.map((value) => (value).toJson()).toList();
3207 }
3208 return _json;
3209 }
3210 }
3211
3138 /** 3212 /**
3139 * This resource represents a long-running operation that is the result of a 3213 * This resource represents a long-running operation that is the result of a
3140 * network API call. 3214 * network API call.
3141 */ 3215 */
3142 class Operation { 3216 class Operation {
3143 /** 3217 /**
3144 * If the value is `false`, it means the operation is still in progress. If 3218 * If the value is `false`, it means the operation is still in progress. If
3145 * true, the operation is completed, and either `error` or `response` is 3219 * true, the operation is completed, and either `error` or `response` is
3146 * available. 3220 * available.
3147 */ 3221 */
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
3293 } 3367 }
3294 3368
3295 /** 3369 /**
3296 * Defines an Identity and Access Management (IAM) policy. It is used to specify 3370 * Defines an Identity and Access Management (IAM) policy. It is used to specify
3297 * access control policies for Cloud Platform resources. A `Policy` consists of 3371 * access control policies for Cloud Platform resources. A `Policy` consists of
3298 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`, 3372 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`,
3299 * where the members can be user accounts, Google groups, Google domains, and 3373 * where the members can be user accounts, Google groups, Google domains, and
3300 * service accounts. A `role` is a named list of permissions defined by IAM. 3374 * service accounts. A `role` is a named list of permissions defined by IAM.
3301 * **Example** { "bindings": [ { "role": "roles/owner", "members": [ 3375 * **Example** { "bindings": [ { "role": "roles/owner", "members": [
3302 * "user:mike@example.com", "group:admins@example.com", "domain:google.com", 3376 * "user:mike@example.com", "group:admins@example.com", "domain:google.com",
3303 * "serviceAccount:my-other-app@appspot.gserviceaccount.com"] }, { "role": 3377 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role":
3304 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description 3378 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description
3305 * of IAM and its features, see the [IAM developer's 3379 * of IAM and its features, see the [IAM developer's
3306 * guide](https://cloud.google.com/iam). 3380 * guide](https://cloud.google.com/iam).
3307 */ 3381 */
3308 class Policy { 3382 class Policy {
3309 /** 3383 /**
3310 * Associates a list of `members` to a `role`. Multiple `bindings` must not be 3384 * Associates a list of `members` to a `role`. Multiple `bindings` must not be
3311 * specified for the same `role`. `bindings` with no members will result in an 3385 * specified for the same `role`. `bindings` with no members will result in an
3312 * error. 3386 * error.
3313 */ 3387 */
(...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
4058 } 4132 }
4059 return _json; 4133 return _json;
4060 } 4134 }
4061 } 4135 }
4062 4136
4063 /** 4137 /**
4064 * ReferenceBound records an upper bound for the starting coordinate of variants 4138 * ReferenceBound records an upper bound for the starting coordinate of variants
4065 * in a particular reference. 4139 * in a particular reference.
4066 */ 4140 */
4067 class ReferenceBound { 4141 class ReferenceBound {
4068 /** The name of the reference associated with this ReferenceBound. */ 4142 /** The name of the reference associated with this reference bound. */
4069 core.String referenceName; 4143 core.String referenceName;
4070 /** 4144 /**
4071 * An upper bound (inclusive) on the starting coordinate of any variant in the 4145 * An upper bound (inclusive) on the starting coordinate of any variant in the
4072 * reference sequence. 4146 * reference sequence.
4073 */ 4147 */
4074 core.String upperBound; 4148 core.String upperBound;
4075 4149
4076 ReferenceBound(); 4150 ReferenceBound();
4077 4151
4078 ReferenceBound.fromJson(core.Map _json) { 4152 ReferenceBound.fromJson(core.Map _json) {
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
4816 * with no calls from any call set will never be returned. 4890 * with no calls from any call set will never be returned.
4817 */ 4891 */
4818 core.List<core.String> callSetIds; 4892 core.List<core.String> callSetIds;
4819 /** 4893 /**
4820 * The end of the window, 0-based exclusive. If unspecified or 0, defaults to 4894 * The end of the window, 0-based exclusive. If unspecified or 0, defaults to
4821 * the length of the reference. 4895 * the length of the reference.
4822 */ 4896 */
4823 core.String end; 4897 core.String end;
4824 /** 4898 /**
4825 * The maximum number of calls to return in a single page. Note that this 4899 * The maximum number of calls to return in a single page. Note that this
4826 * limit may be exceeded; at least one variant is always returned per page, 4900 * limit may be exceeded in the event that a matching variant contains more
4827 * even if it has more calls than this limit. If unspecified, defaults to 4901 * calls than the requested maximum. If unspecified, defaults to 5000. The
4828 * 5000. The maximum value is 10000. 4902 * maximum value is 10000.
4829 */ 4903 */
4830 core.int maxCalls; 4904 core.int maxCalls;
4831 /** 4905 /**
4832 * The maximum number of variants to return in a single page. If unspecified, 4906 * The maximum number of variants to return in a single page. If unspecified,
4833 * defaults to 5000. The maximum value is 10000. 4907 * defaults to 5000. The maximum value is 10000.
4834 */ 4908 */
4835 core.int pageSize; 4909 core.int pageSize;
4836 /** 4910 /**
4837 * The continuation token, which is used to page through large result sets. To 4911 * The continuation token, which is used to page through large result sets. To
4838 * get the next page of results, set this parameter to the value of 4912 * get the next page of results, set this parameter to the value of
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
5075 */ 5149 */
5076 core.String projectId; 5150 core.String projectId;
5077 /** The ID of the read group set from which to stream reads. */ 5151 /** The ID of the read group set from which to stream reads. */
5078 core.String readGroupSetId; 5152 core.String readGroupSetId;
5079 /** 5153 /**
5080 * The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to 5154 * The reference sequence name, for example `chr1`, `1`, or `chrX`. If set to
5081 * *, only unmapped reads are returned. 5155 * *, only unmapped reads are returned.
5082 */ 5156 */
5083 core.String referenceName; 5157 core.String referenceName;
5084 /** 5158 /**
5159 * Restricts results to a shard containing approximately `1/totalShards` of
5160 * the normal response payload for this query. Results from a sharded request
5161 * are disjoint from those returned by all queries which differ only in their
5162 * shard parameter. A shard may yield 0 results; this is especially likely for
5163 * large values of `totalShards`. Valid values are `[0, totalShards)`.
5164 */
5165 core.int shard;
5166 /**
5085 * The start position of the range on the reference, 0-based inclusive. If 5167 * The start position of the range on the reference, 0-based inclusive. If
5086 * specified, `referenceName` must also be specified. 5168 * specified, `referenceName` must also be specified.
5087 */ 5169 */
5088 core.String start; 5170 core.String start;
5171 /**
5172 * Specifying `totalShards` causes a disjoint subset of the normal response
5173 * payload to be returned for each query with a unique `shard` parameter
5174 * specified. A best effort is made to yield equally sized shards. Sharding
5175 * can be used to distribute processing amongst workers, where each worker is
5176 * assigned a unique `shard` number and all workers specify the same
5177 * `totalShards` number. The union of reads returned for all sharded queries
5178 * `[0, totalShards)` is equal to those returned by a single unsharded query.
5179 * Queries for different values of `totalShards` with common divisors will
5180 * share shard boundaries. For example, streaming `shard` 2 of 5 `totalShards`
5181 * yields the same results as streaming `shard`s 4 and 5 of 10 `totalShards`.
5182 * This property can be leveraged for adaptive retries.
5183 */
5184 core.int totalShards;
5089 5185
5090 StreamReadsRequest(); 5186 StreamReadsRequest();
5091 5187
5092 StreamReadsRequest.fromJson(core.Map _json) { 5188 StreamReadsRequest.fromJson(core.Map _json) {
5093 if (_json.containsKey("end")) { 5189 if (_json.containsKey("end")) {
5094 end = _json["end"]; 5190 end = _json["end"];
5095 } 5191 }
5096 if (_json.containsKey("projectId")) { 5192 if (_json.containsKey("projectId")) {
5097 projectId = _json["projectId"]; 5193 projectId = _json["projectId"];
5098 } 5194 }
5099 if (_json.containsKey("readGroupSetId")) { 5195 if (_json.containsKey("readGroupSetId")) {
5100 readGroupSetId = _json["readGroupSetId"]; 5196 readGroupSetId = _json["readGroupSetId"];
5101 } 5197 }
5102 if (_json.containsKey("referenceName")) { 5198 if (_json.containsKey("referenceName")) {
5103 referenceName = _json["referenceName"]; 5199 referenceName = _json["referenceName"];
5104 } 5200 }
5201 if (_json.containsKey("shard")) {
5202 shard = _json["shard"];
5203 }
5105 if (_json.containsKey("start")) { 5204 if (_json.containsKey("start")) {
5106 start = _json["start"]; 5205 start = _json["start"];
5107 } 5206 }
5207 if (_json.containsKey("totalShards")) {
5208 totalShards = _json["totalShards"];
5209 }
5108 } 5210 }
5109 5211
5110 core.Map toJson() { 5212 core.Map toJson() {
5111 var _json = new core.Map(); 5213 var _json = new core.Map();
5112 if (end != null) { 5214 if (end != null) {
5113 _json["end"] = end; 5215 _json["end"] = end;
5114 } 5216 }
5115 if (projectId != null) { 5217 if (projectId != null) {
5116 _json["projectId"] = projectId; 5218 _json["projectId"] = projectId;
5117 } 5219 }
5118 if (readGroupSetId != null) { 5220 if (readGroupSetId != null) {
5119 _json["readGroupSetId"] = readGroupSetId; 5221 _json["readGroupSetId"] = readGroupSetId;
5120 } 5222 }
5121 if (referenceName != null) { 5223 if (referenceName != null) {
5122 _json["referenceName"] = referenceName; 5224 _json["referenceName"] = referenceName;
5123 } 5225 }
5226 if (shard != null) {
5227 _json["shard"] = shard;
5228 }
5124 if (start != null) { 5229 if (start != null) {
5125 _json["start"] = start; 5230 _json["start"] = start;
5126 } 5231 }
5232 if (totalShards != null) {
5233 _json["totalShards"] = totalShards;
5234 }
5127 return _json; 5235 return _json;
5128 } 5236 }
5129 } 5237 }
5130 5238
5131 class StreamReadsResponse { 5239 class StreamReadsResponse {
5132 core.List<Read> alignments; 5240 core.List<Read> alignments;
5133 5241
5134 StreamReadsResponse(); 5242 StreamReadsResponse();
5135 5243
5136 StreamReadsResponse.fromJson(core.Map _json) { 5244 StreamReadsResponse.fromJson(core.Map _json) {
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
5719 } 5827 }
5720 if (type != null) { 5828 if (type != null) {
5721 _json["type"] = type; 5829 _json["type"] = type;
5722 } 5830 }
5723 if (value != null) { 5831 if (value != null) {
5724 _json["value"] = value; 5832 _json["value"] = value;
5725 } 5833 }
5726 return _json; 5834 return _json;
5727 } 5835 }
5728 } 5836 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/gamesmanagement/v1management.dart ('k') | generated/googleapis/lib/gmail/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698