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

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

Issue 1296863002: Api-roll 22: 2015-08-17 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « generated/googleapis/lib/drive/v2.dart ('k') | generated/googleapis/lib/gmail/v1.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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:http/http.dart' as http; 11 import 'package:http/http.dart' as http;
11 12
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show 13 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
13 ApiRequestError, DetailedApiRequestError; 14 ApiRequestError, DetailedApiRequestError;
14 15
15 const core.String USER_AGENT = 'dart-api-client genomics/v1'; 16 const core.String USER_AGENT = 'dart-api-client genomics/v1';
16 17
17 /** 18 /**
18 * An API to store, process, explore, and share DNA sequence reads, 19 * An API to store, process, explore, and share DNA sequence reads,
19 * reference-based alignments, and variant calls. 20 * reference-based alignments, and variant calls.
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 "GET", 388 "GET",
388 body: _body, 389 body: _body,
389 queryParams: _queryParams, 390 queryParams: _queryParams,
390 uploadOptions: _uploadOptions, 391 uploadOptions: _uploadOptions,
391 uploadMedia: _uploadMedia, 392 uploadMedia: _uploadMedia,
392 downloadOptions: _downloadOptions); 393 downloadOptions: _downloadOptions);
393 return _response.then((data) => new Dataset.fromJson(data)); 394 return _response.then((data) => new Dataset.fromJson(data));
394 } 395 }
395 396
396 /** 397 /**
398 * [request] - The metadata request object.
399 *
400 * Request parameters:
401 *
402 * [resource] - REQUIRED: The resource for which policy is being specified.
403 * Format is `datasets/`.
404 * Value must have pattern "^datasets/[^/]*$".
405 *
406 * Completes with a [Policy].
407 *
408 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
409 * error.
410 *
411 * If the used [http.Client] completes with an error when making a REST call,
412 * this method will complete with the same error.
413 */
414 async.Future<Policy> getIamPolicy(GetIamPolicyRequest request, core.String res ource) {
415 var _url = null;
416 var _queryParams = new core.Map();
417 var _uploadMedia = null;
418 var _uploadOptions = null;
419 var _downloadOptions = commons.DownloadOptions.Metadata;
420 var _body = null;
421
422 if (request != null) {
423 _body = convert.JSON.encode((request).toJson());
424 }
425 if (resource == null) {
426 throw new core.ArgumentError("Parameter resource is required.");
427 }
428
429 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':getIam Policy';
430
431 var _response = _requester.request(_url,
432 "POST",
433 body: _body,
434 queryParams: _queryParams,
435 uploadOptions: _uploadOptions,
436 uploadMedia: _uploadMedia,
437 downloadOptions: _downloadOptions);
438 return _response.then((data) => new Policy.fromJson(data));
439 }
440
441 /**
397 * Lists datasets within a project. 442 * Lists datasets within a project.
398 * 443 *
399 * Request parameters: 444 * Request parameters:
400 * 445 *
401 * [projectId] - Required. The project to list datasets for. 446 * [projectId] - Required. The project to list datasets for.
402 * 447 *
403 * [pageSize] - The maximum number of results returned by this request. If 448 * [pageSize] - The maximum number of results returned by this request. If
404 * unspecified, defaults to 50. The maximum value is 1024. 449 * unspecified, defaults to 50. The maximum value is 1024.
405 * 450 *
406 * [pageToken] - The continuation token, which is used to page through large 451 * [pageToken] - The continuation token, which is used to page through large
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 "PATCH", 536 "PATCH",
492 body: _body, 537 body: _body,
493 queryParams: _queryParams, 538 queryParams: _queryParams,
494 uploadOptions: _uploadOptions, 539 uploadOptions: _uploadOptions,
495 uploadMedia: _uploadMedia, 540 uploadMedia: _uploadMedia,
496 downloadOptions: _downloadOptions); 541 downloadOptions: _downloadOptions);
497 return _response.then((data) => new Dataset.fromJson(data)); 542 return _response.then((data) => new Dataset.fromJson(data));
498 } 543 }
499 544
500 /** 545 /**
546 * [request] - The metadata request object.
547 *
548 * Request parameters:
549 *
550 * [resource] - REQUIRED: The resource for which policy is being specified.
551 * Format is `datasets/`.
552 * Value must have pattern "^datasets/[^/]*$".
553 *
554 * Completes with a [Policy].
555 *
556 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
557 * error.
558 *
559 * If the used [http.Client] completes with an error when making a REST call,
560 * this method will complete with the same error.
561 */
562 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
563 var _url = null;
564 var _queryParams = new core.Map();
565 var _uploadMedia = null;
566 var _uploadOptions = null;
567 var _downloadOptions = commons.DownloadOptions.Metadata;
568 var _body = null;
569
570 if (request != null) {
571 _body = convert.JSON.encode((request).toJson());
572 }
573 if (resource == null) {
574 throw new core.ArgumentError("Parameter resource is required.");
575 }
576
577 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':setIam Policy';
578
579 var _response = _requester.request(_url,
580 "POST",
581 body: _body,
582 queryParams: _queryParams,
583 uploadOptions: _uploadOptions,
584 uploadMedia: _uploadMedia,
585 downloadOptions: _downloadOptions);
586 return _response.then((data) => new Policy.fromJson(data));
587 }
588
589 /**
590 * [request] - The metadata request object.
591 *
592 * Request parameters:
593 *
594 * [resource] - REQUIRED: The resource for which policy is being specified.
595 * Format is `datasets/`.
596 * Value must have pattern "^datasets/[^/]*$".
597 *
598 * Completes with a [TestIamPermissionsResponse].
599 *
600 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
601 * error.
602 *
603 * If the used [http.Client] completes with an error when making a REST call,
604 * this method will complete with the same error.
605 */
606 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
607 var _url = null;
608 var _queryParams = new core.Map();
609 var _uploadMedia = null;
610 var _uploadOptions = null;
611 var _downloadOptions = commons.DownloadOptions.Metadata;
612 var _body = null;
613
614 if (request != null) {
615 _body = convert.JSON.encode((request).toJson());
616 }
617 if (resource == null) {
618 throw new core.ArgumentError("Parameter resource is required.");
619 }
620
621 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':testIa mPermissions';
622
623 var _response = _requester.request(_url,
624 "POST",
625 body: _body,
626 queryParams: _queryParams,
627 uploadOptions: _uploadOptions,
628 uploadMedia: _uploadMedia,
629 downloadOptions: _downloadOptions);
630 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
631 }
632
633 /**
501 * Undeletes a dataset by restoring a dataset which was deleted via this API. 634 * Undeletes a dataset by restoring a dataset which was deleted via this API.
502 * This operation is only possible for a week after the deletion occurred. 635 * This operation is only possible for a week after the deletion occurred.
503 * 636 *
504 * [request] - The metadata request object. 637 * [request] - The metadata request object.
505 * 638 *
506 * Request parameters: 639 * Request parameters:
507 * 640 *
508 * [datasetId] - The ID of the dataset to be undeleted. 641 * [datasetId] - The ID of the dataset to be undeleted.
509 * 642 *
510 * Completes with a [Dataset]. 643 * Completes with a [Dataset].
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 queryParams: _queryParams, 929 queryParams: _queryParams,
797 uploadOptions: _uploadOptions, 930 uploadOptions: _uploadOptions,
798 uploadMedia: _uploadMedia, 931 uploadMedia: _uploadMedia,
799 downloadOptions: _downloadOptions); 932 downloadOptions: _downloadOptions);
800 return _response.then((data) => new Empty.fromJson(data)); 933 return _response.then((data) => new Empty.fromJson(data));
801 } 934 }
802 935
803 /** 936 /**
804 * Exports a read group set to a BAM file in Google Cloud Storage. Note that 937 * Exports a read group set to a BAM file in Google Cloud Storage. Note that
805 * currently there may be some differences between exported BAM files and the 938 * currently there may be some differences between exported BAM files and the
806 * original BAM file at the time of import. In particular, comments in the 939 * original BAM file at the time of import. See
807 * input file header will not be preserved, some custom tags will be converted 940 * [ImportReadGroupSets](google.genomics.v1.ReadServiceV1.ImportReadGroupSets)
808 * to strings, and original reference sequence order is not necessarily 941 * for caveats.
809 * preserved.
810 * 942 *
811 * [request] - The metadata request object. 943 * [request] - The metadata request object.
812 * 944 *
813 * Request parameters: 945 * Request parameters:
814 * 946 *
815 * [readGroupSetId] - Required. The ID of the read group set to export. 947 * [readGroupSetId] - Required. The ID of the read group set to export.
816 * 948 *
817 * Completes with a [Operation]. 949 * Completes with a [Operation].
818 * 950 *
819 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 951 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 body: _body, 1015 body: _body,
884 queryParams: _queryParams, 1016 queryParams: _queryParams,
885 uploadOptions: _uploadOptions, 1017 uploadOptions: _uploadOptions,
886 uploadMedia: _uploadMedia, 1018 uploadMedia: _uploadMedia,
887 downloadOptions: _downloadOptions); 1019 downloadOptions: _downloadOptions);
888 return _response.then((data) => new ReadGroupSet.fromJson(data)); 1020 return _response.then((data) => new ReadGroupSet.fromJson(data));
889 } 1021 }
890 1022
891 /** 1023 /**
892 * Creates read group sets by asynchronously importing the provided 1024 * Creates read group sets by asynchronously importing the provided
893 * information. Note that currently comments in the input file header are 1025 * information. The caller must have WRITE permissions to the dataset. ##
894 * **not** imported and some custom tags will be converted to strings, rather 1026 * Notes on [BAM](https://samtools.github.io/hts-specs/SAMv1.pdf) import -
895 * than preserving tag types. The caller must have WRITE permissions to the 1027 * Tags will be converted to strings - tag types are not preserved - Comments
896 * dataset. 1028 * (`@CO`) in the input file header will not be preserved - Original header
1029 * order of references (`@SQ`) will not be preserved - Any reverse stranded
1030 * unmapped reads will be reverse complemented, and their qualities (and "BQ"
1031 * tag, if any) will be reversed - Unmapped reads will be stripped of
1032 * positional information (reference name and position)
897 * 1033 *
898 * [request] - The metadata request object. 1034 * [request] - The metadata request object.
899 * 1035 *
900 * Request parameters: 1036 * Request parameters:
901 * 1037 *
902 * Completes with a [Operation]. 1038 * Completes with a [Operation].
903 * 1039 *
904 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1040 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
905 * error. 1041 * error.
906 * 1042 *
(...skipping 798 matching lines...) Expand 10 before | Expand all | Expand 10 after
1705 } 1841 }
1706 1842
1707 1843
1708 class VariantsetsResourceApi { 1844 class VariantsetsResourceApi {
1709 final commons.ApiRequester _requester; 1845 final commons.ApiRequester _requester;
1710 1846
1711 VariantsetsResourceApi(commons.ApiRequester client) : 1847 VariantsetsResourceApi(commons.ApiRequester client) :
1712 _requester = client; 1848 _requester = client;
1713 1849
1714 /** 1850 /**
1715 * Creates a new variant set. 1851 * Creates a new variant set. The provided variant set must have a valid
1852 * `datasetId` set - all other fields are optional. Note that the `id` field
1853 * will be ignored, as this is assigned by the server.
1716 * 1854 *
1717 * [request] - The metadata request object. 1855 * [request] - The metadata request object.
1718 * 1856 *
1719 * Request parameters: 1857 * Request parameters:
1720 * 1858 *
1721 * Completes with a [VariantSet]. 1859 * Completes with a [VariantSet].
1722 * 1860 *
1723 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1861 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1724 * error. 1862 * error.
1725 * 1863 *
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
1964 uploadOptions: _uploadOptions, 2102 uploadOptions: _uploadOptions,
1965 uploadMedia: _uploadMedia, 2103 uploadMedia: _uploadMedia,
1966 downloadOptions: _downloadOptions); 2104 downloadOptions: _downloadOptions);
1967 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data) ); 2105 return _response.then((data) => new SearchVariantSetsResponse.fromJson(data) );
1968 } 2106 }
1969 2107
1970 } 2108 }
1971 2109
1972 2110
1973 2111
2112 /** Associates members with roles. See below for allowed formats of members. */
2113 class Binding {
2114 /**
2115 * Format of member entries: 1. allUsers Matches any requesting principal
2116 * (users, service accounts or anonymous). 2. allAuthenticatedUsers Matches
2117 * any requesting authenticated principal (users or service accounts). 3.
2118 * user:{emailid} A google user account using an email address. For example
2119 * alice@gmail.com, joe@example.com 4. serviceAccount:{emailid} An service
2120 * account email. 5. group:{emailid} A google group with an email address. For
2121 * example auth-ti-cloud@google.com 6. domain:{domain} A Google Apps domain
2122 * name. For example google.com, example.com
2123 */
2124 core.List<core.String> members;
2125 /**
2126 * The name of the role to which the members should be bound. Examples:
2127 * "roles/viewer", "roles/editor", "roles/owner". Required
2128 */
2129 core.String role;
2130
2131 Binding();
2132
2133 Binding.fromJson(core.Map _json) {
2134 if (_json.containsKey("members")) {
2135 members = _json["members"];
2136 }
2137 if (_json.containsKey("role")) {
2138 role = _json["role"];
2139 }
2140 }
2141
2142 core.Map toJson() {
2143 var _json = new core.Map();
2144 if (members != null) {
2145 _json["members"] = members;
2146 }
2147 if (role != null) {
2148 _json["role"] = role;
2149 }
2150 return _json;
2151 }
2152 }
2153
1974 /** 2154 /**
1975 * A call set is a collection of variant calls, typically for one sample. It 2155 * A call set is a collection of variant calls, typically for one sample. It
1976 * belongs to a variant set. 2156 * belongs to a variant set.
1977 */ 2157 */
1978 class CallSet { 2158 class CallSet {
1979 /** The date this call set was created in milliseconds from the epoch. */ 2159 /** The date this call set was created in milliseconds from the epoch. */
1980 core.String created; 2160 core.String created;
1981 /** The server-generated call set ID, unique across all call sets. */ 2161 /** The server-generated call set ID, unique across all call sets. */
1982 core.String id; 2162 core.String id;
1983 /** 2163 /**
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
2112 if (operationLength != null) { 2292 if (operationLength != null) {
2113 _json["operationLength"] = operationLength; 2293 _json["operationLength"] = operationLength;
2114 } 2294 }
2115 if (referenceSequence != null) { 2295 if (referenceSequence != null) {
2116 _json["referenceSequence"] = referenceSequence; 2296 _json["referenceSequence"] = referenceSequence;
2117 } 2297 }
2118 return _json; 2298 return _json;
2119 } 2299 }
2120 } 2300 }
2121 2301
2302 /** Write a Cloud Audit log */
2303 class CloudAuditOptions {
2304
2305 CloudAuditOptions();
2306
2307 CloudAuditOptions.fromJson(core.Map _json) {
2308 }
2309
2310 core.Map toJson() {
2311 var _json = new core.Map();
2312 return _json;
2313 }
2314 }
2315
2316 /** A condition to be met. */
2317 class Condition {
2318 /**
2319 * Trusted attributes supplied by the IAM system.
2320 * Possible string values are:
2321 * - "NO_ATTR" : A NO_ATTR.
2322 * - "AUTHORITY" : A AUTHORITY.
2323 * - "ATTRIBUTION" : A ATTRIBUTION.
2324 */
2325 core.String iam;
2326 /**
2327 * An operator to apply the subject with.
2328 * Possible string values are:
2329 * - "NO_OP" : A NO_OP.
2330 * - "EQUALS" : A EQUALS.
2331 * - "NOT_EQUALS" : A NOT_EQUALS.
2332 * - "IN" : A IN.
2333 * - "NOT_IN" : A NOT_IN.
2334 * - "DISCHARGED" : A DISCHARGED.
2335 */
2336 core.String op;
2337 /** Trusted attributes discharged by the service. */
2338 core.String svc;
2339 /**
2340 * Trusted attributes supplied by any service that owns resources and uses the
2341 * IAM system for access control.
2342 * Possible string values are:
2343 * - "NO_ATTR" : A NO_ATTR.
2344 * - "REGION" : A REGION.
2345 * - "SERVICE" : A SERVICE.
2346 * - "NAME" : A NAME.
2347 * - "IP" : A IP.
2348 */
2349 core.String sys;
2350 /** The object of the condition. Exactly one of these must be set. */
2351 core.String value;
2352 /** The objects of the condition. This is mutually exclusive with 'value'. */
2353 core.List<core.String> values;
2354
2355 Condition();
2356
2357 Condition.fromJson(core.Map _json) {
2358 if (_json.containsKey("iam")) {
2359 iam = _json["iam"];
2360 }
2361 if (_json.containsKey("op")) {
2362 op = _json["op"];
2363 }
2364 if (_json.containsKey("svc")) {
2365 svc = _json["svc"];
2366 }
2367 if (_json.containsKey("sys")) {
2368 sys = _json["sys"];
2369 }
2370 if (_json.containsKey("value")) {
2371 value = _json["value"];
2372 }
2373 if (_json.containsKey("values")) {
2374 values = _json["values"];
2375 }
2376 }
2377
2378 core.Map toJson() {
2379 var _json = new core.Map();
2380 if (iam != null) {
2381 _json["iam"] = iam;
2382 }
2383 if (op != null) {
2384 _json["op"] = op;
2385 }
2386 if (svc != null) {
2387 _json["svc"] = svc;
2388 }
2389 if (sys != null) {
2390 _json["sys"] = sys;
2391 }
2392 if (value != null) {
2393 _json["value"] = value;
2394 }
2395 if (values != null) {
2396 _json["values"] = values;
2397 }
2398 return _json;
2399 }
2400 }
2401
2402 /** Options for counters */
2403 class CounterOptions {
2404 /** The field value to attribute. */
2405 core.String field;
2406 /** The metric to update. */
2407 core.String metric;
2408
2409 CounterOptions();
2410
2411 CounterOptions.fromJson(core.Map _json) {
2412 if (_json.containsKey("field")) {
2413 field = _json["field"];
2414 }
2415 if (_json.containsKey("metric")) {
2416 metric = _json["metric"];
2417 }
2418 }
2419
2420 core.Map toJson() {
2421 var _json = new core.Map();
2422 if (field != null) {
2423 _json["field"] = field;
2424 }
2425 if (metric != null) {
2426 _json["metric"] = metric;
2427 }
2428 return _json;
2429 }
2430 }
2431
2122 /** 2432 /**
2123 * A bucket over which read coverage has been precomputed. A bucket corresponds 2433 * A bucket over which read coverage has been precomputed. A bucket corresponds
2124 * to a specific range of the reference sequence. 2434 * to a specific range of the reference sequence.
2125 */ 2435 */
2126 class CoverageBucket { 2436 class CoverageBucket {
2127 /** 2437 /**
2128 * The average number of reads which are aligned to each individual reference 2438 * The average number of reads which are aligned to each individual reference
2129 * base in this bucket. 2439 * base in this bucket.
2130 */ 2440 */
2131 core.double meanCoverage; 2441 core.double meanCoverage;
(...skipping 16 matching lines...) Expand all
2148 if (meanCoverage != null) { 2458 if (meanCoverage != null) {
2149 _json["meanCoverage"] = meanCoverage; 2459 _json["meanCoverage"] = meanCoverage;
2150 } 2460 }
2151 if (range != null) { 2461 if (range != null) {
2152 _json["range"] = (range).toJson(); 2462 _json["range"] = (range).toJson();
2153 } 2463 }
2154 return _json; 2464 return _json;
2155 } 2465 }
2156 } 2466 }
2157 2467
2468 /** Write a Data Access (Gin) log */
2469 class DataAccessOptions {
2470
2471 DataAccessOptions();
2472
2473 DataAccessOptions.fromJson(core.Map _json) {
2474 }
2475
2476 core.Map toJson() {
2477 var _json = new core.Map();
2478 return _json;
2479 }
2480 }
2481
2158 /** A Dataset is a collection of genomic data. */ 2482 /** A Dataset is a collection of genomic data. */
2159 class Dataset { 2483 class Dataset {
2160 /** The time this dataset was created, in seconds from the epoch. */ 2484 /** The time this dataset was created, in seconds from the epoch. */
2161 core.String createTime; 2485 core.String createTime;
2162 /** The server-generated dataset ID, unique across all datasets. */ 2486 /** The server-generated dataset ID, unique across all datasets. */
2163 core.String id; 2487 core.String id;
2164 /** The dataset name. */ 2488 /** The dataset name. */
2165 core.String name; 2489 core.String name;
2166 /** The Google Developers Console project ID that this dataset belongs to. */ 2490 /** The Google Developers Console project ID that this dataset belongs to. */
2167 core.String projectId; 2491 core.String projectId;
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2390 if (format != null) { 2714 if (format != null) {
2391 _json["format"] = format; 2715 _json["format"] = format;
2392 } 2716 }
2393 if (projectId != null) { 2717 if (projectId != null) {
2394 _json["projectId"] = projectId; 2718 _json["projectId"] = projectId;
2395 } 2719 }
2396 return _json; 2720 return _json;
2397 } 2721 }
2398 } 2722 }
2399 2723
2724 /** Request message for `GetIamPolicy` method. */
2725 class GetIamPolicyRequest {
2726
2727 GetIamPolicyRequest();
2728
2729 GetIamPolicyRequest.fromJson(core.Map _json) {
2730 }
2731
2732 core.Map toJson() {
2733 var _json = new core.Map();
2734 return _json;
2735 }
2736 }
2737
2400 /** The read group set import request. */ 2738 /** The read group set import request. */
2401 class ImportReadGroupSetsRequest { 2739 class ImportReadGroupSetsRequest {
2402 /** 2740 /**
2403 * Required. The ID of the dataset these read group sets will belong to. The 2741 * Required. The ID of the dataset these read group sets will belong to. The
2404 * caller must have WRITE permissions to this dataset. 2742 * caller must have WRITE permissions to this dataset.
2405 */ 2743 */
2406 core.String datasetId; 2744 core.String datasetId;
2407 /** 2745 /**
2408 * The partition strategy describes how read groups are partitioned into read 2746 * The partition strategy describes how read groups are partitioned into read
2409 * group sets. 2747 * group sets.
2410 * Possible string values are: 2748 * Possible string values are:
2411 * - "PARTITION_STRATEGY_UNSPECIFIED" : A PARTITION_STRATEGY_UNSPECIFIED. 2749 * - "PARTITION_STRATEGY_UNSPECIFIED" : A PARTITION_STRATEGY_UNSPECIFIED.
2412 * - "PER_FILE_PER_SAMPLE" : A PER_FILE_PER_SAMPLE. 2750 * - "PER_FILE_PER_SAMPLE" : A PER_FILE_PER_SAMPLE.
2413 * - "MERGE_ALL" : A MERGE_ALL. 2751 * - "MERGE_ALL" : A MERGE_ALL.
2414 */ 2752 */
2415 core.String partitionStrategy; 2753 core.String partitionStrategy;
2416 /** 2754 /**
2417 * The reference set to which the imported read group sets are aligned to, if 2755 * The reference set to which the imported read group sets are aligned to, if
2418 * any. The reference names of this reference set must be a superset of those 2756 * any. The reference names of this reference set must be a superset of those
2419 * found in the imported file headers. If no reference set id is provided, a 2757 * found in the imported file headers. If no reference set id is provided, a
2420 * best effort is made to associate with a matching reference set. 2758 * best effort is made to associate with a matching reference set.
2421 */ 2759 */
2422 core.String referenceSetId; 2760 core.String referenceSetId;
2423 /** A list of URIs pointing at BAM files in Google Cloud Storage. */ 2761 /**
2762 * A list of URIs pointing at [BAM
2763 * files](https://samtools.github.io/hts-specs/SAMv1.pdf) in Google Cloud
2764 * Storage.
2765 */
2424 core.List<core.String> sourceUris; 2766 core.List<core.String> sourceUris;
2425 2767
2426 ImportReadGroupSetsRequest(); 2768 ImportReadGroupSetsRequest();
2427 2769
2428 ImportReadGroupSetsRequest.fromJson(core.Map _json) { 2770 ImportReadGroupSetsRequest.fromJson(core.Map _json) {
2429 if (_json.containsKey("datasetId")) { 2771 if (_json.containsKey("datasetId")) {
2430 datasetId = _json["datasetId"]; 2772 datasetId = _json["datasetId"];
2431 } 2773 }
2432 if (_json.containsKey("partitionStrategy")) { 2774 if (_json.containsKey("partitionStrategy")) {
2433 partitionStrategy = _json["partitionStrategy"]; 2775 partitionStrategy = _json["partitionStrategy"];
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
2772 _json["nextPageToken"] = nextPageToken; 3114 _json["nextPageToken"] = nextPageToken;
2773 } 3115 }
2774 if (operations != null) { 3116 if (operations != null) {
2775 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 3117 _json["operations"] = operations.map((value) => (value).toJson()).toList() ;
2776 } 3118 }
2777 return _json; 3119 return _json;
2778 } 3120 }
2779 } 3121 }
2780 3122
2781 /** 3123 /**
3124 * Specifies what kind of log the caller must write Increment a streamz counter
3125 * with the specified metric and field names. Metric names should start with a
3126 * '/', generally be lowercase-only, and end in "_count". Field names should not
3127 * contain an initial slash. The actual exported metric names will have
3128 * "/iam/policy" prepended. Field names correspond to IAM request parameters and
3129 * field values are their respective values. At present only "iam_principal",
3130 * corresponding to IAMContext.principal, is supported. Examples: counter {
3131 * metric: "/debug_access_count" field: "iam_principal" } ==> increment counter
3132 * /iam/policy/backend_debug_access_count {iam_principal=[value of
3133 * IAMContext.principal]} At this time we do not support: * multiple field names
3134 * (though this may be supported in the future) * decrementing the counter *
3135 * incrementing it by anything other than 1
3136 */
3137 class LogConfig {
3138 /** Cloud audit options. */
3139 CloudAuditOptions cloudAudit;
3140 /** Counter options. */
3141 CounterOptions counter;
3142 /** Data access options. */
3143 DataAccessOptions dataAccess;
3144
3145 LogConfig();
3146
3147 LogConfig.fromJson(core.Map _json) {
3148 if (_json.containsKey("cloudAudit")) {
3149 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]);
3150 }
3151 if (_json.containsKey("counter")) {
3152 counter = new CounterOptions.fromJson(_json["counter"]);
3153 }
3154 if (_json.containsKey("dataAccess")) {
3155 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]);
3156 }
3157 }
3158
3159 core.Map toJson() {
3160 var _json = new core.Map();
3161 if (cloudAudit != null) {
3162 _json["cloudAudit"] = (cloudAudit).toJson();
3163 }
3164 if (counter != null) {
3165 _json["counter"] = (counter).toJson();
3166 }
3167 if (dataAccess != null) {
3168 _json["dataAccess"] = (dataAccess).toJson();
3169 }
3170 return _json;
3171 }
3172 }
3173
3174 /**
2782 * This resource represents a long-running operation that is the result of a 3175 * This resource represents a long-running operation that is the result of a
2783 * network API call. 3176 * network API call.
2784 */ 3177 */
2785 class Operation { 3178 class Operation {
2786 /** 3179 /**
2787 * If the value is `false`, it means the operation is still in progress. If 3180 * If the value is `false`, it means the operation is still in progress. If
2788 * true, the operation is completed and the `result` is available. 3181 * true, the operation is completed and the `result` is available.
2789 */ 3182 */
2790 core.bool done; 3183 core.bool done;
2791 /** The error result of the operation in case of failure. */ 3184 /** The error result of the operation in case of failure. */
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
2932 _json["projectId"] = projectId; 3325 _json["projectId"] = projectId;
2933 } 3326 }
2934 if (request != null) { 3327 if (request != null) {
2935 _json["request"] = request; 3328 _json["request"] = request;
2936 } 3329 }
2937 return _json; 3330 return _json;
2938 } 3331 }
2939 } 3332 }
2940 3333
2941 /** 3334 /**
3335 * # Overview The `Policy` defines an access control policy language. It is used
3336 * to define policies that are attached to resources like files, folders, VMs,
3337 * etc. # Policy structure A `Policy` consists of a list of bindings. A
3338 * `Binding` binds a set of members to a role, where the members include user
3339 * accounts, user groups, user domains, and service accounts. A 'role' is a
3340 * named set of permissions, defined by IAM. The definition of a role is outside
3341 * the policy. A permission check first determines the roles that include the
3342 * specified permission, and then determines if the principal specified is a
3343 * member of a binding to at least one of these roles. The membership check is
3344 * recursive when a group is bound to a role. Policy examples: ``` { "bindings":
3345 * [ { "role": "roles/owner", "members": [ "user:mike@example.com",
3346 * "group:admins@example.com", "domain:google.com",
3347 * "serviceAccount:frontend@example.iam.gserviceaccounts.com"] }, { "role":
3348 * "roles/viewer", "members": ["user:sean@example.com"] } ] } ```
3349 */
3350 class Policy {
3351 /**
3352 * It is an error to specify multiple bindings for the same role. It is an
3353 * error to specify a binding with no members.
3354 */
3355 core.List<Binding> bindings;
3356 /** Can be used to perform a read-modify-write. */
3357 core.String etag;
3358 core.List<core.int> get etagAsBytes {
3359 return crypto.CryptoUtils.base64StringToBytes(etag);
3360 }
3361
3362 void set etagAsBytes(core.List<core.int> _bytes) {
3363 etag = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
3364 }
3365 core.List<Rule> rules;
3366 /**
3367 * The policy language version. The version of the policy is represented by
3368 * the etag. The default version is 0.
3369 */
3370 core.int version;
3371
3372 Policy();
3373
3374 Policy.fromJson(core.Map _json) {
3375 if (_json.containsKey("bindings")) {
3376 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList();
3377 }
3378 if (_json.containsKey("etag")) {
3379 etag = _json["etag"];
3380 }
3381 if (_json.containsKey("rules")) {
3382 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList();
3383 }
3384 if (_json.containsKey("version")) {
3385 version = _json["version"];
3386 }
3387 }
3388
3389 core.Map toJson() {
3390 var _json = new core.Map();
3391 if (bindings != null) {
3392 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
3393 }
3394 if (etag != null) {
3395 _json["etag"] = etag;
3396 }
3397 if (rules != null) {
3398 _json["rules"] = rules.map((value) => (value).toJson()).toList();
3399 }
3400 if (version != null) {
3401 _json["version"] = version;
3402 }
3403 return _json;
3404 }
3405 }
3406
3407 /**
2942 * An abstraction for referring to a genomic position, in relation to some 3408 * An abstraction for referring to a genomic position, in relation to some
2943 * already known reference. For now, represents a genomic position as a 3409 * already known reference. For now, represents a genomic position as a
2944 * reference name, a base number on that reference (0-based), and a 3410 * reference name, a base number on that reference (0-based), and a
2945 * determination of forward or reverse strand. 3411 * determination of forward or reverse strand.
2946 */ 3412 */
2947 class Position { 3413 class Position {
2948 /** 3414 /**
2949 * The 0-based offset from the start of the forward strand for that reference. 3415 * The 0-based offset from the start of the forward strand for that reference.
2950 */ 3416 */
2951 core.String position; 3417 core.String position;
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after
3747 if (sourceAccessions != null) { 4213 if (sourceAccessions != null) {
3748 _json["sourceAccessions"] = sourceAccessions; 4214 _json["sourceAccessions"] = sourceAccessions;
3749 } 4215 }
3750 if (sourceUri != null) { 4216 if (sourceUri != null) {
3751 _json["sourceUri"] = sourceUri; 4217 _json["sourceUri"] = sourceUri;
3752 } 4218 }
3753 return _json; 4219 return _json;
3754 } 4220 }
3755 } 4221 }
3756 4222
4223 /** A rule to be applied in a Policy. */
4224 class Rule {
4225 /**
4226 * Required
4227 * Possible string values are:
4228 * - "NO_ACTION" : A NO_ACTION.
4229 * - "ALLOW" : A ALLOW.
4230 * - "ALLOW_WITH_LOG" : A ALLOW_WITH_LOG.
4231 * - "DENY" : A DENY.
4232 * - "DENY_WITH_LOG" : A DENY_WITH_LOG.
4233 * - "LOG" : A LOG.
4234 */
4235 core.String action;
4236 /** Additional restrictions that must be met */
4237 core.List<Condition> conditions;
4238 /** Human-readable description of the rule. */
4239 core.String description;
4240 /**
4241 * The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of
4242 * entries.
4243 */
4244 core.List<core.String> in_;
4245 /**
4246 * The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
4247 * that match the LOG action.
4248 */
4249 core.List<LogConfig> logConfig;
4250 /**
4251 * The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
4252 * entries. The formation for in and not_in entries is the same as members in
4253 * a Binding above.
4254 */
4255 core.List<core.String> notIn;
4256 /**
4257 * A permission is a string of form '..' (e.g., 'storage.buckets.list'). A
4258 * value of '*' matches all permissions, and a verb part of '*' (e.g.,
4259 * 'storage.buckets.*') matches all verbs.
4260 */
4261 core.List<core.String> permissions;
4262
4263 Rule();
4264
4265 Rule.fromJson(core.Map _json) {
4266 if (_json.containsKey("action")) {
4267 action = _json["action"];
4268 }
4269 if (_json.containsKey("conditions")) {
4270 conditions = _json["conditions"].map((value) => new Condition.fromJson(val ue)).toList();
4271 }
4272 if (_json.containsKey("description")) {
4273 description = _json["description"];
4274 }
4275 if (_json.containsKey("in")) {
4276 in_ = _json["in"];
4277 }
4278 if (_json.containsKey("logConfig")) {
4279 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value )).toList();
4280 }
4281 if (_json.containsKey("notIn")) {
4282 notIn = _json["notIn"];
4283 }
4284 if (_json.containsKey("permissions")) {
4285 permissions = _json["permissions"];
4286 }
4287 }
4288
4289 core.Map toJson() {
4290 var _json = new core.Map();
4291 if (action != null) {
4292 _json["action"] = action;
4293 }
4294 if (conditions != null) {
4295 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ;
4296 }
4297 if (description != null) {
4298 _json["description"] = description;
4299 }
4300 if (in_ != null) {
4301 _json["in"] = in_;
4302 }
4303 if (logConfig != null) {
4304 _json["logConfig"] = logConfig.map((value) => (value).toJson()).toList();
4305 }
4306 if (notIn != null) {
4307 _json["notIn"] = notIn;
4308 }
4309 if (permissions != null) {
4310 _json["permissions"] = permissions;
4311 }
4312 return _json;
4313 }
4314 }
4315
3757 /** The call set search request. */ 4316 /** The call set search request. */
3758 class SearchCallSetsRequest { 4317 class SearchCallSetsRequest {
3759 /** 4318 /**
3760 * Only return call sets for which a substring of the name matches this 4319 * Only return call sets for which a substring of the name matches this
3761 * string. 4320 * string.
3762 */ 4321 */
3763 core.String name; 4322 core.String name;
3764 /** 4323 /**
3765 * The maximum number of call sets to return. If unspecified, defaults to 4324 * The maximum number of call sets to return. If unspecified, defaults to
3766 * 1000. 4325 * 1000.
(...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
4492 if (nextPageToken != null) { 5051 if (nextPageToken != null) {
4493 _json["nextPageToken"] = nextPageToken; 5052 _json["nextPageToken"] = nextPageToken;
4494 } 5053 }
4495 if (variants != null) { 5054 if (variants != null) {
4496 _json["variants"] = variants.map((value) => (value).toJson()).toList(); 5055 _json["variants"] = variants.map((value) => (value).toJson()).toList();
4497 } 5056 }
4498 return _json; 5057 return _json;
4499 } 5058 }
4500 } 5059 }
4501 5060
5061 /** Request message for `SetIamPolicy` method. */
5062 class SetIamPolicyRequest {
5063 /**
5064 * REQUIRED: The complete policy to be applied to the 'resource'. The size of
5065 * the policy is limited to a few 10s of KB. An empty policy is in general a
5066 * valid policy but certain services (like Projects) might reject them.
5067 */
5068 Policy policy;
5069
5070 SetIamPolicyRequest();
5071
5072 SetIamPolicyRequest.fromJson(core.Map _json) {
5073 if (_json.containsKey("policy")) {
5074 policy = new Policy.fromJson(_json["policy"]);
5075 }
5076 }
5077
5078 core.Map toJson() {
5079 var _json = new core.Map();
5080 if (policy != null) {
5081 _json["policy"] = (policy).toJson();
5082 }
5083 return _json;
5084 }
5085 }
5086
4502 /** 5087 /**
4503 * The `Status` type defines a logical error model that is suitable for 5088 * The `Status` type defines a logical error model that is suitable for
4504 * different programming environments, including REST APIs and RPC APIs. It is 5089 * different programming environments, including REST APIs and RPC APIs. It is
4505 * used by [gRPC](https://github.com/grpc). The error model is designed to be: - 5090 * used by [gRPC](https://github.com/grpc). The error model is designed to be: -
4506 * Simple to use and understand for most users - Flexible enough to meet 5091 * Simple to use and understand for most users - Flexible enough to meet
4507 * unexpected needs # Overview The `Status` message contains three pieces of 5092 * unexpected needs # Overview The `Status` message contains three pieces of
4508 * data: error code, error message, and error details. The error code should be 5093 * data: error code, error message, and error details. The error code should be
4509 * an enum value of [google.rpc.Code][google.rpc.Code], but it may accept 5094 * an enum value of [google.rpc.Code][google.rpc.Code], but it may accept
4510 * additional error codes if needed. The error message should be a 5095 * additional error codes if needed. The error message should be a
4511 * developer-facing English message that helps developers *understand* and 5096 * developer-facing English message that helps developers *understand* and
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
4578 if (details != null) { 5163 if (details != null) {
4579 _json["details"] = details; 5164 _json["details"] = details;
4580 } 5165 }
4581 if (message != null) { 5166 if (message != null) {
4582 _json["message"] = message; 5167 _json["message"] = message;
4583 } 5168 }
4584 return _json; 5169 return _json;
4585 } 5170 }
4586 } 5171 }
4587 5172
5173 /** Request message for `TestIamPermissions` method. */
5174 class TestIamPermissionsRequest {
5175 /**
5176 * REQUIRED: The set of permissions to check for the 'resource'. Permissions
5177 * with wildcards (such as '*' or 'storage.*') are not allowed. Allowed
5178 * permissions are: * `genomics.datasets.create` * `genomics.datasets.delete`
5179 * * `genomics.datasets.get` * `genomics.datasets.list` *
5180 * `genomics.datasets.update` * `genomics.datasets.getIamPolicy` *
5181 * `genomics.datasets.setIamPolicy`
5182 */
5183 core.List<core.String> permissions;
5184
5185 TestIamPermissionsRequest();
5186
5187 TestIamPermissionsRequest.fromJson(core.Map _json) {
5188 if (_json.containsKey("permissions")) {
5189 permissions = _json["permissions"];
5190 }
5191 }
5192
5193 core.Map toJson() {
5194 var _json = new core.Map();
5195 if (permissions != null) {
5196 _json["permissions"] = permissions;
5197 }
5198 return _json;
5199 }
5200 }
5201
5202 /** Response message for `TestIamPermissions` method. */
5203 class TestIamPermissionsResponse {
5204 /**
5205 * A subset of `TestPermissionsRequest.permissions` that the caller is
5206 * allowed.
5207 */
5208 core.List<core.String> permissions;
5209
5210 TestIamPermissionsResponse();
5211
5212 TestIamPermissionsResponse.fromJson(core.Map _json) {
5213 if (_json.containsKey("permissions")) {
5214 permissions = _json["permissions"];
5215 }
5216 }
5217
5218 core.Map toJson() {
5219 var _json = new core.Map();
5220 if (permissions != null) {
5221 _json["permissions"] = permissions;
5222 }
5223 return _json;
5224 }
5225 }
5226
4588 class UndeleteDatasetRequest { 5227 class UndeleteDatasetRequest {
4589 5228
4590 UndeleteDatasetRequest(); 5229 UndeleteDatasetRequest();
4591 5230
4592 UndeleteDatasetRequest.fromJson(core.Map _json) { 5231 UndeleteDatasetRequest.fromJson(core.Map _json) {
4593 } 5232 }
4594 5233
4595 core.Map toJson() { 5234 core.Map toJson() {
4596 var _json = new core.Map(); 5235 var _json = new core.Map();
4597 return _json; 5236 return _json;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
4985 } 5624 }
4986 if (type != null) { 5625 if (type != null) {
4987 _json["type"] = type; 5626 _json["type"] = type;
4988 } 5627 }
4989 if (value != null) { 5628 if (value != null) {
4990 _json["value"] = value; 5629 _json["value"] = value;
4991 } 5630 }
4992 return _json; 5631 return _json;
4993 } 5632 }
4994 } 5633 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/drive/v2.dart ('k') | generated/googleapis/lib/gmail/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698