| OLD | NEW |
| 1 library googleapis_beta.genomics.v1beta; | 1 library googleapis_beta.genomics.v1beta; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import "package:crypto/crypto.dart" as crypto; | 8 import "package:crypto/crypto.dart" as crypto; |
| 9 import 'package:http/http.dart' as http; | 9 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | 10 import '../src/common_internal.dart' as common_internal; |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 * | 502 * |
| 503 * Request parameters: | 503 * Request parameters: |
| 504 * | 504 * |
| 505 * [maxResults] - The maximum number of results returned by this request. | 505 * [maxResults] - The maximum number of results returned by this request. |
| 506 * | 506 * |
| 507 * [pageToken] - The continuation token, which is used to page through large | 507 * [pageToken] - The continuation token, which is used to page through large |
| 508 * result sets. To get the next page of results, set this parameter to the | 508 * result sets. To get the next page of results, set this parameter to the |
| 509 * value of nextPageToken from the previous response. | 509 * value of nextPageToken from the previous response. |
| 510 * | 510 * |
| 511 * [projectId] - Only return datasets which belong to this Google Developers | 511 * [projectId] - Only return datasets which belong to this Google Developers |
| 512 * Console project. Only accepts project numbers. | 512 * Console project. Only accepts project numbers. Returns all public projects |
| 513 * if no project number is specified. |
| 513 * | 514 * |
| 514 * Completes with a [ListDatasetsResponse]. | 515 * Completes with a [ListDatasetsResponse]. |
| 515 * | 516 * |
| 516 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 517 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 517 * error. | 518 * error. |
| 518 * | 519 * |
| 519 * If the used [http.Client] completes with an error when making a REST call, | 520 * If the used [http.Client] completes with an error when making a REST call, |
| 520 * this method will complete with the same error. | 521 * this method will complete with the same error. |
| 521 */ | 522 */ |
| 522 async.Future<ListDatasetsResponse> list({core.String maxResults, core.String p
ageToken, core.String projectId}) { | 523 async.Future<ListDatasetsResponse> list({core.String maxResults, core.String p
ageToken, core.String projectId}) { |
| (...skipping 1254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1777 "POST", | 1778 "POST", |
| 1778 body: _body, | 1779 body: _body, |
| 1779 queryParams: _queryParams, | 1780 queryParams: _queryParams, |
| 1780 uploadOptions: _uploadOptions, | 1781 uploadOptions: _uploadOptions, |
| 1781 uploadMedia: _uploadMedia, | 1782 uploadMedia: _uploadMedia, |
| 1782 downloadOptions: _downloadOptions); | 1783 downloadOptions: _downloadOptions); |
| 1783 return _response.then((data) => null); | 1784 return _response.then((data) => null); |
| 1784 } | 1785 } |
| 1785 | 1786 |
| 1786 /** | 1787 /** |
| 1788 * Updates a variant set's metadata. All other modifications are silently |
| 1789 * ignored. Returns the modified variant set. This method supports patch |
| 1790 * semantics. |
| 1791 * |
| 1792 * [request] - The metadata request object. |
| 1793 * |
| 1794 * Request parameters: |
| 1795 * |
| 1796 * [variantSetId] - The ID of the variant to be updated. |
| 1797 * |
| 1798 * Completes with a [VariantSet]. |
| 1799 * |
| 1800 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1801 * error. |
| 1802 * |
| 1803 * If the used [http.Client] completes with an error when making a REST call, |
| 1804 * this method will complete with the same error. |
| 1805 */ |
| 1806 async.Future<VariantSet> patch(VariantSet request, core.String variantSetId) { |
| 1807 var _url = null; |
| 1808 var _queryParams = new core.Map(); |
| 1809 var _uploadMedia = null; |
| 1810 var _uploadOptions = null; |
| 1811 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1812 var _body = null; |
| 1813 |
| 1814 if (request != null) { |
| 1815 _body = convert.JSON.encode((request).toJson()); |
| 1816 } |
| 1817 if (variantSetId == null) { |
| 1818 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1819 } |
| 1820 |
| 1821 |
| 1822 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); |
| 1823 |
| 1824 var _response = _requester.request(_url, |
| 1825 "PATCH", |
| 1826 body: _body, |
| 1827 queryParams: _queryParams, |
| 1828 uploadOptions: _uploadOptions, |
| 1829 uploadMedia: _uploadMedia, |
| 1830 downloadOptions: _downloadOptions); |
| 1831 return _response.then((data) => new VariantSet.fromJson(data)); |
| 1832 } |
| 1833 |
| 1834 /** |
| 1787 * Returns a list of all variant sets matching search criteria. | 1835 * Returns a list of all variant sets matching search criteria. |
| 1788 * | 1836 * |
| 1789 * [request] - The metadata request object. | 1837 * [request] - The metadata request object. |
| 1790 * | 1838 * |
| 1791 * Request parameters: | 1839 * Request parameters: |
| 1792 * | 1840 * |
| 1793 * Completes with a [SearchVariantSetsResponse]. | 1841 * Completes with a [SearchVariantSetsResponse]. |
| 1794 * | 1842 * |
| 1795 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 1843 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1796 * error. | 1844 * error. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 1816 var _response = _requester.request(_url, | 1864 var _response = _requester.request(_url, |
| 1817 "POST", | 1865 "POST", |
| 1818 body: _body, | 1866 body: _body, |
| 1819 queryParams: _queryParams, | 1867 queryParams: _queryParams, |
| 1820 uploadOptions: _uploadOptions, | 1868 uploadOptions: _uploadOptions, |
| 1821 uploadMedia: _uploadMedia, | 1869 uploadMedia: _uploadMedia, |
| 1822 downloadOptions: _downloadOptions); | 1870 downloadOptions: _downloadOptions); |
| 1823 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); | 1871 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data)
); |
| 1824 } | 1872 } |
| 1825 | 1873 |
| 1874 /** |
| 1875 * Updates a variant set's metadata. All other modifications are silently |
| 1876 * ignored. Returns the modified variant set. |
| 1877 * |
| 1878 * [request] - The metadata request object. |
| 1879 * |
| 1880 * Request parameters: |
| 1881 * |
| 1882 * [variantSetId] - The ID of the variant to be updated. |
| 1883 * |
| 1884 * Completes with a [VariantSet]. |
| 1885 * |
| 1886 * Completes with a [common.ApiRequestError] if the API endpoint returned an |
| 1887 * error. |
| 1888 * |
| 1889 * If the used [http.Client] completes with an error when making a REST call, |
| 1890 * this method will complete with the same error. |
| 1891 */ |
| 1892 async.Future<VariantSet> update(VariantSet request, core.String variantSetId)
{ |
| 1893 var _url = null; |
| 1894 var _queryParams = new core.Map(); |
| 1895 var _uploadMedia = null; |
| 1896 var _uploadOptions = null; |
| 1897 var _downloadOptions = common.DownloadOptions.Metadata; |
| 1898 var _body = null; |
| 1899 |
| 1900 if (request != null) { |
| 1901 _body = convert.JSON.encode((request).toJson()); |
| 1902 } |
| 1903 if (variantSetId == null) { |
| 1904 throw new core.ArgumentError("Parameter variantSetId is required."); |
| 1905 } |
| 1906 |
| 1907 |
| 1908 _url = 'variantsets/' + common_internal.Escaper.ecapeVariable('$variantSetId
'); |
| 1909 |
| 1910 var _response = _requester.request(_url, |
| 1911 "PUT", |
| 1912 body: _body, |
| 1913 queryParams: _queryParams, |
| 1914 uploadOptions: _uploadOptions, |
| 1915 uploadMedia: _uploadMedia, |
| 1916 downloadOptions: _downloadOptions); |
| 1917 return _response.then((data) => new VariantSet.fromJson(data)); |
| 1918 } |
| 1919 |
| 1826 } | 1920 } |
| 1827 | 1921 |
| 1828 | 1922 |
| 1829 | 1923 |
| 1830 /** | 1924 /** |
| 1831 * A beacon represents whether any variant call in a variant set has a specific | 1925 * A beacon represents whether any variant call in a variant set has a specific |
| 1832 * allele at a particular position. | 1926 * allele at a particular position. |
| 1833 */ | 1927 */ |
| 1834 class Beacon { | 1928 class Beacon { |
| 1835 /** True if the allele exists on any variant call, false otherwise. */ | 1929 /** True if the allele exists on any variant call, false otherwise. */ |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2104 _json["name"] = name; | 2198 _json["name"] = name; |
| 2105 } | 2199 } |
| 2106 if (projectId != null) { | 2200 if (projectId != null) { |
| 2107 _json["projectId"] = projectId; | 2201 _json["projectId"] = projectId; |
| 2108 } | 2202 } |
| 2109 return _json; | 2203 return _json; |
| 2110 } | 2204 } |
| 2111 } | 2205 } |
| 2112 | 2206 |
| 2113 | 2207 |
| 2114 /** The job creation request. Next ID: 12 */ | 2208 /** The job creation request. */ |
| 2115 class ExperimentalCreateJobRequest { | 2209 class ExperimentalCreateJobRequest { |
| 2116 /** | 2210 /** |
| 2117 * Specifies whether or not to run the alignment pipeline. At least one of | 2211 * Specifies whether or not to run the alignment pipeline. At least one of |
| 2118 * align or callVariants must be provided. | 2212 * align or callVariants must be provided. |
| 2119 */ | 2213 */ |
| 2120 core.bool align; | 2214 core.bool align; |
| 2121 | 2215 |
| 2122 /** | 2216 /** |
| 2123 * Specifies whether or not to run the variant calling pipeline. If specified, | 2217 * Specifies whether or not to run the variant calling pipeline. If specified, |
| 2124 * alignment will be performed first and the aligned BAMs will passed as input | 2218 * alignment will be performed first and the aligned BAMs will passed as input |
| 2125 * to the variant caller. At least one of align or callVariants must be | 2219 * to the variant caller. At least one of align or callVariants must be |
| 2126 * provided. | 2220 * provided. |
| 2127 */ | 2221 */ |
| 2128 core.bool callVariants; | 2222 core.bool callVariants; |
| 2129 | 2223 |
| 2130 /** | 2224 /** |
| 2131 * Specifies where to copy the results of certain pipelines. This should be in | 2225 * Specifies where to copy the results of certain pipelines. This should be in |
| 2132 * the form of gs://bucket/path. | 2226 * the form of gs://bucket/path. |
| 2133 */ | 2227 */ |
| 2134 core.String gcsOutputPath; | 2228 core.String gcsOutputPath; |
| 2135 | 2229 |
| 2136 /** For alignment from FASTQ files, this specifies the library name. */ | |
| 2137 core.String libraryName; | |
| 2138 | |
| 2139 /** | 2230 /** |
| 2140 * A list of Google Cloud Storage URIs of paired end .fastq files to operate | 2231 * A list of Google Cloud Storage URIs of paired end .fastq files to operate |
| 2141 * upon. If specified, this represents the second file of each paired .fastq | 2232 * upon. If specified, this represents the second file of each paired .fastq |
| 2142 * file. The first file of each pair should be specified in sourceUris. | 2233 * file. The first file of each pair should be specified in sourceUris. |
| 2143 */ | 2234 */ |
| 2144 core.List<core.String> pairedSourceUris; | 2235 core.List<core.String> pairedSourceUris; |
| 2145 | 2236 |
| 2146 /** For alignment from FASTQ files, this specifies the platform name. */ | |
| 2147 core.String platformName; | |
| 2148 | |
| 2149 /** For alignment from FASTQ files, this specifies the platform unit. */ | |
| 2150 core.String platformUnit; | |
| 2151 | |
| 2152 /** | 2237 /** |
| 2153 * Required. The Google Cloud Project ID with which to associate the request. | 2238 * Required. The Google Cloud Project ID with which to associate the request. |
| 2154 */ | 2239 */ |
| 2155 core.String projectId; | 2240 core.String projectId; |
| 2156 | 2241 |
| 2157 /** For alignment from FASTQ files, this specifies the read group ID. */ | |
| 2158 core.String readGroupId; | |
| 2159 | |
| 2160 /** For alignment from FASTQ files, this specifies the sample name. */ | |
| 2161 core.String sampleName; | |
| 2162 | |
| 2163 /** | 2242 /** |
| 2164 * A list of Google Cloud Storage URIs of data files to operate upon. These | 2243 * A list of Google Cloud Storage URIs of data files to operate upon. These |
| 2165 * can be .bam, interleaved .fastq, or paired .fastq. If specifying paired | 2244 * can be .bam, interleaved .fastq, or paired .fastq. If specifying paired |
| 2166 * .fastq files, the first of each pair of files should be listed here, and | 2245 * .fastq files, the first of each pair of files should be listed here, and |
| 2167 * the second of each pair should be listed in pairedSourceUris. | 2246 * the second of each pair should be listed in pairedSourceUris. |
| 2168 */ | 2247 */ |
| 2169 core.List<core.String> sourceUris; | 2248 core.List<core.String> sourceUris; |
| 2170 | 2249 |
| 2171 | 2250 |
| 2172 ExperimentalCreateJobRequest(); | 2251 ExperimentalCreateJobRequest(); |
| 2173 | 2252 |
| 2174 ExperimentalCreateJobRequest.fromJson(core.Map _json) { | 2253 ExperimentalCreateJobRequest.fromJson(core.Map _json) { |
| 2175 if (_json.containsKey("align")) { | 2254 if (_json.containsKey("align")) { |
| 2176 align = _json["align"]; | 2255 align = _json["align"]; |
| 2177 } | 2256 } |
| 2178 if (_json.containsKey("callVariants")) { | 2257 if (_json.containsKey("callVariants")) { |
| 2179 callVariants = _json["callVariants"]; | 2258 callVariants = _json["callVariants"]; |
| 2180 } | 2259 } |
| 2181 if (_json.containsKey("gcsOutputPath")) { | 2260 if (_json.containsKey("gcsOutputPath")) { |
| 2182 gcsOutputPath = _json["gcsOutputPath"]; | 2261 gcsOutputPath = _json["gcsOutputPath"]; |
| 2183 } | 2262 } |
| 2184 if (_json.containsKey("libraryName")) { | |
| 2185 libraryName = _json["libraryName"]; | |
| 2186 } | |
| 2187 if (_json.containsKey("pairedSourceUris")) { | 2263 if (_json.containsKey("pairedSourceUris")) { |
| 2188 pairedSourceUris = _json["pairedSourceUris"]; | 2264 pairedSourceUris = _json["pairedSourceUris"]; |
| 2189 } | 2265 } |
| 2190 if (_json.containsKey("platformName")) { | |
| 2191 platformName = _json["platformName"]; | |
| 2192 } | |
| 2193 if (_json.containsKey("platformUnit")) { | |
| 2194 platformUnit = _json["platformUnit"]; | |
| 2195 } | |
| 2196 if (_json.containsKey("projectId")) { | 2266 if (_json.containsKey("projectId")) { |
| 2197 projectId = _json["projectId"]; | 2267 projectId = _json["projectId"]; |
| 2198 } | 2268 } |
| 2199 if (_json.containsKey("readGroupId")) { | |
| 2200 readGroupId = _json["readGroupId"]; | |
| 2201 } | |
| 2202 if (_json.containsKey("sampleName")) { | |
| 2203 sampleName = _json["sampleName"]; | |
| 2204 } | |
| 2205 if (_json.containsKey("sourceUris")) { | 2269 if (_json.containsKey("sourceUris")) { |
| 2206 sourceUris = _json["sourceUris"]; | 2270 sourceUris = _json["sourceUris"]; |
| 2207 } | 2271 } |
| 2208 } | 2272 } |
| 2209 | 2273 |
| 2210 core.Map toJson() { | 2274 core.Map toJson() { |
| 2211 var _json = new core.Map(); | 2275 var _json = new core.Map(); |
| 2212 if (align != null) { | 2276 if (align != null) { |
| 2213 _json["align"] = align; | 2277 _json["align"] = align; |
| 2214 } | 2278 } |
| 2215 if (callVariants != null) { | 2279 if (callVariants != null) { |
| 2216 _json["callVariants"] = callVariants; | 2280 _json["callVariants"] = callVariants; |
| 2217 } | 2281 } |
| 2218 if (gcsOutputPath != null) { | 2282 if (gcsOutputPath != null) { |
| 2219 _json["gcsOutputPath"] = gcsOutputPath; | 2283 _json["gcsOutputPath"] = gcsOutputPath; |
| 2220 } | 2284 } |
| 2221 if (libraryName != null) { | |
| 2222 _json["libraryName"] = libraryName; | |
| 2223 } | |
| 2224 if (pairedSourceUris != null) { | 2285 if (pairedSourceUris != null) { |
| 2225 _json["pairedSourceUris"] = pairedSourceUris; | 2286 _json["pairedSourceUris"] = pairedSourceUris; |
| 2226 } | 2287 } |
| 2227 if (platformName != null) { | |
| 2228 _json["platformName"] = platformName; | |
| 2229 } | |
| 2230 if (platformUnit != null) { | |
| 2231 _json["platformUnit"] = platformUnit; | |
| 2232 } | |
| 2233 if (projectId != null) { | 2288 if (projectId != null) { |
| 2234 _json["projectId"] = projectId; | 2289 _json["projectId"] = projectId; |
| 2235 } | 2290 } |
| 2236 if (readGroupId != null) { | |
| 2237 _json["readGroupId"] = readGroupId; | |
| 2238 } | |
| 2239 if (sampleName != null) { | |
| 2240 _json["sampleName"] = sampleName; | |
| 2241 } | |
| 2242 if (sourceUris != null) { | 2291 if (sourceUris != null) { |
| 2243 _json["sourceUris"] = sourceUris; | 2292 _json["sourceUris"] = sourceUris; |
| 2244 } | 2293 } |
| 2245 return _json; | 2294 return _json; |
| 2246 } | 2295 } |
| 2247 } | 2296 } |
| 2248 | 2297 |
| 2249 | 2298 |
| 2250 /** The job creation response. */ | 2299 /** The job creation response. */ |
| 2251 class ExperimentalCreateJobResponse { | 2300 class ExperimentalCreateJobResponse { |
| (...skipping 2334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4586 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); | 4635 _json["metadata"] = metadata.map((value) => (value).toJson()).toList(); |
| 4587 } | 4636 } |
| 4588 if (referenceBounds != null) { | 4637 if (referenceBounds != null) { |
| 4589 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); | 4638 _json["referenceBounds"] = referenceBounds.map((value) => (value).toJson()
).toList(); |
| 4590 } | 4639 } |
| 4591 return _json; | 4640 return _json; |
| 4592 } | 4641 } |
| 4593 } | 4642 } |
| 4594 | 4643 |
| 4595 | 4644 |
| OLD | NEW |