OLD | NEW |
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:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 1392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1403 } | 1403 } |
1404 | 1404 |
1405 /** | 1405 /** |
1406 * Lists operations that match the specified filter in the request. | 1406 * Lists operations that match the specified filter in the request. |
1407 * | 1407 * |
1408 * Request parameters: | 1408 * Request parameters: |
1409 * | 1409 * |
1410 * [name] - The name of the operation's parent resource. | 1410 * [name] - The name of the operation's parent resource. |
1411 * Value must have pattern "^operations$". | 1411 * Value must have pattern "^operations$". |
1412 * | 1412 * |
1413 * [pageToken] - The standard list page token. | |
1414 * | |
1415 * [pageSize] - The maximum number of results to return. If unspecified, | |
1416 * defaults to | |
1417 * 256. The maximum value is 2048. | |
1418 * | |
1419 * [filter] - A string for filtering Operations. | 1413 * [filter] - A string for filtering Operations. |
1420 * The following filter fields are supported: | 1414 * The following filter fields are supported: |
1421 * | 1415 * |
1422 * * projectId: Required. Corresponds to | 1416 * * projectId: Required. Corresponds to |
1423 * OperationMetadata.projectId. | 1417 * OperationMetadata.projectId. |
1424 * * createTime: The time this job was created, in seconds from the | 1418 * * createTime: The time this job was created, in seconds from the |
1425 * [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` | 1419 * [epoch](http://en.wikipedia.org/wiki/Unix_time). Can use `>=` and/or `<=` |
1426 * operators. | 1420 * operators. |
1427 * * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only | 1421 * * status: Can be `RUNNING`, `SUCCESS`, `FAILURE`, or `CANCELED`. Only |
1428 * one status may be specified. | 1422 * one status may be specified. |
1429 * * labels.key where key is a label key. | 1423 * * labels.key where key is a label key. |
1430 * | 1424 * |
1431 * Examples: | 1425 * Examples: |
1432 * | 1426 * |
1433 * * `projectId = my-project AND createTime >= 1432140000` | 1427 * * `projectId = my-project AND createTime >= 1432140000` |
1434 * * `projectId = my-project AND createTime >= 1432140000 AND createTime <= | 1428 * * `projectId = my-project AND createTime >= 1432140000 AND createTime <= |
1435 * 1432150000 AND status = RUNNING` | 1429 * 1432150000 AND status = RUNNING` |
1436 * * `projectId = my-project AND labels.color = *` | 1430 * * `projectId = my-project AND labels.color = *` |
1437 * * `projectId = my-project AND labels.color = red` | 1431 * * `projectId = my-project AND labels.color = red` |
1438 * | 1432 * |
| 1433 * [pageToken] - The standard list page token. |
| 1434 * |
| 1435 * [pageSize] - The maximum number of results to return. If unspecified, |
| 1436 * defaults to |
| 1437 * 256. The maximum value is 2048. |
| 1438 * |
1439 * Completes with a [ListOperationsResponse]. | 1439 * Completes with a [ListOperationsResponse]. |
1440 * | 1440 * |
1441 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1441 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1442 * error. | 1442 * error. |
1443 * | 1443 * |
1444 * If the used [http.Client] completes with an error when making a REST call, | 1444 * If the used [http.Client] completes with an error when making a REST call, |
1445 * this method will complete with the same error. | 1445 * this method will complete with the same error. |
1446 */ | 1446 */ |
1447 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { | 1447 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { |
1448 var _url = null; | 1448 var _url = null; |
1449 var _queryParams = new core.Map(); | 1449 var _queryParams = new core.Map(); |
1450 var _uploadMedia = null; | 1450 var _uploadMedia = null; |
1451 var _uploadOptions = null; | 1451 var _uploadOptions = null; |
1452 var _downloadOptions = commons.DownloadOptions.Metadata; | 1452 var _downloadOptions = commons.DownloadOptions.Metadata; |
1453 var _body = null; | 1453 var _body = null; |
1454 | 1454 |
1455 if (name == null) { | 1455 if (name == null) { |
1456 throw new core.ArgumentError("Parameter name is required."); | 1456 throw new core.ArgumentError("Parameter name is required."); |
1457 } | 1457 } |
| 1458 if (filter != null) { |
| 1459 _queryParams["filter"] = [filter]; |
| 1460 } |
1458 if (pageToken != null) { | 1461 if (pageToken != null) { |
1459 _queryParams["pageToken"] = [pageToken]; | 1462 _queryParams["pageToken"] = [pageToken]; |
1460 } | 1463 } |
1461 if (pageSize != null) { | 1464 if (pageSize != null) { |
1462 _queryParams["pageSize"] = ["${pageSize}"]; | 1465 _queryParams["pageSize"] = ["${pageSize}"]; |
1463 } | 1466 } |
1464 if (filter != null) { | |
1465 _queryParams["filter"] = [filter]; | |
1466 } | |
1467 | 1467 |
1468 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 1468 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
1469 | 1469 |
1470 var _response = _requester.request(_url, | 1470 var _response = _requester.request(_url, |
1471 "GET", | 1471 "GET", |
1472 body: _body, | 1472 body: _body, |
1473 queryParams: _queryParams, | 1473 queryParams: _queryParams, |
1474 uploadOptions: _uploadOptions, | 1474 uploadOptions: _uploadOptions, |
1475 uploadMedia: _uploadMedia, | 1475 uploadMedia: _uploadMedia, |
1476 downloadOptions: _downloadOptions); | 1476 downloadOptions: _downloadOptions); |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1819 * base in the reference sequence. Coverage buckets are available at several | 1819 * base in the reference sequence. Coverage buckets are available at several |
1820 * precomputed bucket widths, enabling retrieval of various coverage 'zoom | 1820 * precomputed bucket widths, enabling retrieval of various coverage 'zoom |
1821 * levels'. The caller must have READ permissions for the target read group | 1821 * levels'. The caller must have READ permissions for the target read group |
1822 * set. | 1822 * set. |
1823 * | 1823 * |
1824 * Request parameters: | 1824 * Request parameters: |
1825 * | 1825 * |
1826 * [readGroupSetId] - Required. The ID of the read group set over which | 1826 * [readGroupSetId] - Required. The ID of the read group set over which |
1827 * coverage is requested. | 1827 * coverage is requested. |
1828 * | 1828 * |
| 1829 * [targetBucketWidth] - The desired width of each reported coverage bucket in |
| 1830 * base pairs. This |
| 1831 * will be rounded down to the nearest precomputed bucket width; the value |
| 1832 * of which is returned as `bucketWidth` in the response. Defaults |
| 1833 * to infinity (each bucket spans an entire reference sequence) or the length |
| 1834 * of the target range, if specified. The smallest precomputed |
| 1835 * `bucketWidth` is currently 2048 base pairs; this is subject to |
| 1836 * change. |
| 1837 * |
1829 * [referenceName] - The name of the reference to query, within the reference | 1838 * [referenceName] - The name of the reference to query, within the reference |
1830 * set associated | 1839 * set associated |
1831 * with this query. Optional. | 1840 * with this query. Optional. |
1832 * | 1841 * |
1833 * [end] - The end position of the range on the reference, 0-based exclusive. | 1842 * [end] - The end position of the range on the reference, 0-based exclusive. |
1834 * If | 1843 * If |
1835 * specified, `referenceName` must also be specified. If unset or 0, defaults | 1844 * specified, `referenceName` must also be specified. If unset or 0, defaults |
1836 * to the length of the reference. | 1845 * to the length of the reference. |
1837 * | 1846 * |
1838 * [pageToken] - The continuation token, which is used to page through large | 1847 * [pageToken] - The continuation token, which is used to page through large |
1839 * result sets. | 1848 * result sets. |
1840 * To get the next page of results, set this parameter to the value of | 1849 * To get the next page of results, set this parameter to the value of |
1841 * `nextPageToken` from the previous response. | 1850 * `nextPageToken` from the previous response. |
1842 * | 1851 * |
1843 * [pageSize] - The maximum number of results to return in a single page. If | 1852 * [pageSize] - The maximum number of results to return in a single page. If |
1844 * unspecified, | 1853 * unspecified, |
1845 * defaults to 1024. The maximum value is 2048. | 1854 * defaults to 1024. The maximum value is 2048. |
1846 * | 1855 * |
1847 * [start] - The start position of the range on the reference, 0-based | 1856 * [start] - The start position of the range on the reference, 0-based |
1848 * inclusive. If | 1857 * inclusive. If |
1849 * specified, `referenceName` must also be specified. Defaults to 0. | 1858 * specified, `referenceName` must also be specified. Defaults to 0. |
1850 * | 1859 * |
1851 * [targetBucketWidth] - The desired width of each reported coverage bucket in | |
1852 * base pairs. This | |
1853 * will be rounded down to the nearest precomputed bucket width; the value | |
1854 * of which is returned as `bucketWidth` in the response. Defaults | |
1855 * to infinity (each bucket spans an entire reference sequence) or the length | |
1856 * of the target range, if specified. The smallest precomputed | |
1857 * `bucketWidth` is currently 2048 base pairs; this is subject to | |
1858 * change. | |
1859 * | |
1860 * Completes with a [ListCoverageBucketsResponse]. | 1860 * Completes with a [ListCoverageBucketsResponse]. |
1861 * | 1861 * |
1862 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1862 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1863 * error. | 1863 * error. |
1864 * | 1864 * |
1865 * If the used [http.Client] completes with an error when making a REST call, | 1865 * If the used [http.Client] completes with an error when making a REST call, |
1866 * this method will complete with the same error. | 1866 * this method will complete with the same error. |
1867 */ | 1867 */ |
1868 async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {co
re.String referenceName, core.String end, core.String pageToken, core.int pageSi
ze, core.String start, core.String targetBucketWidth}) { | 1868 async.Future<ListCoverageBucketsResponse> list(core.String readGroupSetId, {co
re.String targetBucketWidth, core.String referenceName, core.String end, core.St
ring pageToken, core.int pageSize, core.String start}) { |
1869 var _url = null; | 1869 var _url = null; |
1870 var _queryParams = new core.Map(); | 1870 var _queryParams = new core.Map(); |
1871 var _uploadMedia = null; | 1871 var _uploadMedia = null; |
1872 var _uploadOptions = null; | 1872 var _uploadOptions = null; |
1873 var _downloadOptions = commons.DownloadOptions.Metadata; | 1873 var _downloadOptions = commons.DownloadOptions.Metadata; |
1874 var _body = null; | 1874 var _body = null; |
1875 | 1875 |
1876 if (readGroupSetId == null) { | 1876 if (readGroupSetId == null) { |
1877 throw new core.ArgumentError("Parameter readGroupSetId is required."); | 1877 throw new core.ArgumentError("Parameter readGroupSetId is required."); |
1878 } | 1878 } |
| 1879 if (targetBucketWidth != null) { |
| 1880 _queryParams["targetBucketWidth"] = [targetBucketWidth]; |
| 1881 } |
1879 if (referenceName != null) { | 1882 if (referenceName != null) { |
1880 _queryParams["referenceName"] = [referenceName]; | 1883 _queryParams["referenceName"] = [referenceName]; |
1881 } | 1884 } |
1882 if (end != null) { | 1885 if (end != null) { |
1883 _queryParams["end"] = [end]; | 1886 _queryParams["end"] = [end]; |
1884 } | 1887 } |
1885 if (pageToken != null) { | 1888 if (pageToken != null) { |
1886 _queryParams["pageToken"] = [pageToken]; | 1889 _queryParams["pageToken"] = [pageToken]; |
1887 } | 1890 } |
1888 if (pageSize != null) { | 1891 if (pageSize != null) { |
1889 _queryParams["pageSize"] = ["${pageSize}"]; | 1892 _queryParams["pageSize"] = ["${pageSize}"]; |
1890 } | 1893 } |
1891 if (start != null) { | 1894 if (start != null) { |
1892 _queryParams["start"] = [start]; | 1895 _queryParams["start"] = [start]; |
1893 } | 1896 } |
1894 if (targetBucketWidth != null) { | |
1895 _queryParams["targetBucketWidth"] = [targetBucketWidth]; | |
1896 } | |
1897 | 1897 |
1898 _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'
) + '/coveragebuckets'; | 1898 _url = 'v1/readgroupsets/' + commons.Escaper.ecapeVariable('$readGroupSetId'
) + '/coveragebuckets'; |
1899 | 1899 |
1900 var _response = _requester.request(_url, | 1900 var _response = _requester.request(_url, |
1901 "GET", | 1901 "GET", |
1902 body: _body, | 1902 body: _body, |
1903 queryParams: _queryParams, | 1903 queryParams: _queryParams, |
1904 uploadOptions: _uploadOptions, | 1904 uploadOptions: _uploadOptions, |
1905 uploadMedia: _uploadMedia, | 1905 uploadMedia: _uploadMedia, |
1906 downloadOptions: _downloadOptions); | 1906 downloadOptions: _downloadOptions); |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2097 * [Fundamentals of Google | 2097 * [Fundamentals of Google |
2098 * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics
) | 2098 * Genomics](https://cloud.google.com/genomics/fundamentals-of-google-genomics
) |
2099 * | 2099 * |
2100 * Implements | 2100 * Implements |
2101 * [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob
/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221). | 2101 * [GlobalAllianceApi.getReferenceBases](https://github.com/ga4gh/schemas/blob
/v0.5.1/src/main/resources/avro/referencemethods.avdl#L221). |
2102 * | 2102 * |
2103 * Request parameters: | 2103 * Request parameters: |
2104 * | 2104 * |
2105 * [referenceId] - The ID of the reference. | 2105 * [referenceId] - The ID of the reference. |
2106 * | 2106 * |
| 2107 * [end] - The end position (0-based, exclusive) of this query. Defaults to |
| 2108 * the length |
| 2109 * of this reference. |
| 2110 * |
2107 * [pageToken] - The continuation token, which is used to page through large | 2111 * [pageToken] - The continuation token, which is used to page through large |
2108 * result sets. | 2112 * result sets. |
2109 * To get the next page of results, set this parameter to the value of | 2113 * To get the next page of results, set this parameter to the value of |
2110 * `nextPageToken` from the previous response. | 2114 * `nextPageToken` from the previous response. |
2111 * | 2115 * |
2112 * [pageSize] - The maximum number of bases to return in a single page. If | 2116 * [pageSize] - The maximum number of bases to return in a single page. If |
2113 * unspecified, | 2117 * unspecified, |
2114 * defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base | 2118 * defaults to 200Kbp (kilo base pairs). The maximum value is 10Mbp (mega base |
2115 * pairs). | 2119 * pairs). |
2116 * | 2120 * |
2117 * [start] - The start position (0-based) of this query. Defaults to 0. | 2121 * [start] - The start position (0-based) of this query. Defaults to 0. |
2118 * | 2122 * |
2119 * [end] - The end position (0-based, exclusive) of this query. Defaults to | |
2120 * the length | |
2121 * of this reference. | |
2122 * | |
2123 * Completes with a [ListBasesResponse]. | 2123 * Completes with a [ListBasesResponse]. |
2124 * | 2124 * |
2125 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 2125 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
2126 * error. | 2126 * error. |
2127 * | 2127 * |
2128 * If the used [http.Client] completes with an error when making a REST call, | 2128 * If the used [http.Client] completes with an error when making a REST call, |
2129 * this method will complete with the same error. | 2129 * this method will complete with the same error. |
2130 */ | 2130 */ |
2131 async.Future<ListBasesResponse> list(core.String referenceId, {core.String pag
eToken, core.int pageSize, core.String start, core.String end}) { | 2131 async.Future<ListBasesResponse> list(core.String referenceId, {core.String end
, core.String pageToken, core.int pageSize, core.String start}) { |
2132 var _url = null; | 2132 var _url = null; |
2133 var _queryParams = new core.Map(); | 2133 var _queryParams = new core.Map(); |
2134 var _uploadMedia = null; | 2134 var _uploadMedia = null; |
2135 var _uploadOptions = null; | 2135 var _uploadOptions = null; |
2136 var _downloadOptions = commons.DownloadOptions.Metadata; | 2136 var _downloadOptions = commons.DownloadOptions.Metadata; |
2137 var _body = null; | 2137 var _body = null; |
2138 | 2138 |
2139 if (referenceId == null) { | 2139 if (referenceId == null) { |
2140 throw new core.ArgumentError("Parameter referenceId is required."); | 2140 throw new core.ArgumentError("Parameter referenceId is required."); |
2141 } | 2141 } |
| 2142 if (end != null) { |
| 2143 _queryParams["end"] = [end]; |
| 2144 } |
2142 if (pageToken != null) { | 2145 if (pageToken != null) { |
2143 _queryParams["pageToken"] = [pageToken]; | 2146 _queryParams["pageToken"] = [pageToken]; |
2144 } | 2147 } |
2145 if (pageSize != null) { | 2148 if (pageSize != null) { |
2146 _queryParams["pageSize"] = ["${pageSize}"]; | 2149 _queryParams["pageSize"] = ["${pageSize}"]; |
2147 } | 2150 } |
2148 if (start != null) { | 2151 if (start != null) { |
2149 _queryParams["start"] = [start]; | 2152 _queryParams["start"] = [start]; |
2150 } | 2153 } |
2151 if (end != null) { | |
2152 _queryParams["end"] = [end]; | |
2153 } | |
2154 | 2154 |
2155 _url = 'v1/references/' + commons.Escaper.ecapeVariable('$referenceId') + '/
bases'; | 2155 _url = 'v1/references/' + commons.Escaper.ecapeVariable('$referenceId') + '/
bases'; |
2156 | 2156 |
2157 var _response = _requester.request(_url, | 2157 var _response = _requester.request(_url, |
2158 "GET", | 2158 "GET", |
2159 body: _body, | 2159 body: _body, |
2160 queryParams: _queryParams, | 2160 queryParams: _queryParams, |
2161 uploadOptions: _uploadOptions, | 2161 uploadOptions: _uploadOptions, |
2162 uploadMedia: _uploadMedia, | 2162 uploadMedia: _uploadMedia, |
2163 downloadOptions: _downloadOptions); | 2163 downloadOptions: _downloadOptions); |
(...skipping 5522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7686 } | 7686 } |
7687 if (type != null) { | 7687 if (type != null) { |
7688 _json["type"] = type; | 7688 _json["type"] = type; |
7689 } | 7689 } |
7690 if (value != null) { | 7690 if (value != null) { |
7691 _json["value"] = value; | 7691 _json["value"] = value; |
7692 } | 7692 } |
7693 return _json; | 7693 return _json; |
7694 } | 7694 } |
7695 } | 7695 } |
OLD | NEW |