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

Side by Side Diff: generated/googleapis_beta/lib/dataproc/v1beta1.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_beta.dataproc.v1beta1; 3 library googleapis_beta.dataproc.v1beta1;
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 dataproc/v1beta1'; 16 const core.String USER_AGENT = 'dart-api-client dataproc/v1beta1';
16 17
17 /** 18 /**
18 * An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. 19 * An API for managing Hadoop-based clusters and jobs on Google Cloud Platform.
19 */ 20 */
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after
432 "GET", 433 "GET",
433 body: _body, 434 body: _body,
434 queryParams: _queryParams, 435 queryParams: _queryParams,
435 uploadOptions: _uploadOptions, 436 uploadOptions: _uploadOptions,
436 uploadMedia: _uploadMedia, 437 uploadMedia: _uploadMedia,
437 downloadOptions: _downloadOptions); 438 downloadOptions: _downloadOptions);
438 return _response.then((data) => new Cluster.fromJson(data)); 439 return _response.then((data) => new Cluster.fromJson(data));
439 } 440 }
440 441
441 /** 442 /**
443 * Gets the access control policy for a `resource`. Returns an empty policy if
444 * the resource exists and does not have a policy set.
445 *
446 * Request parameters:
447 *
448 * [resource] - REQUIRED: The resource for which the policy is being
449 * requested. `resource` is usually specified as a path, such as `projects / *
450 * project * / zones / * zone * / disks / * disk*`. The format for the path
451 * specified in this value is resource specific and is specified in the
452 * `getIamPolicy` documentation.
453 * Value must have pattern "^projects/[^/] * / clusters/[^/]*$".
454 *
455 * Completes with a [Policy].
456 *
457 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
458 * error.
459 *
460 * If the used [http.Client] completes with an error when making a REST call,
461 * this method will complete with the same error.
462 */
463 async.Future<Policy> getIamPolicy(core.String resource) {
464 var _url = null;
465 var _queryParams = new core.Map();
466 var _uploadMedia = null;
467 var _uploadOptions = null;
468 var _downloadOptions = commons.DownloadOptions.Metadata;
469 var _body = null;
470
471 if (resource == null) {
472 throw new core.ArgumentError("Parameter resource is required.");
473 }
474
475 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':g etIamPolicy';
476
477 var _response = _requester.request(_url,
478 "GET",
479 body: _body,
480 queryParams: _queryParams,
481 uploadOptions: _uploadOptions,
482 uploadMedia: _uploadMedia,
483 downloadOptions: _downloadOptions);
484 return _response.then((data) => new Policy.fromJson(data));
485 }
486
487 /**
442 * Lists all clusters in a project. 488 * Lists all clusters in a project.
443 * 489 *
444 * Request parameters: 490 * Request parameters:
445 * 491 *
446 * [projectId] - [Required] The ID of the Google Cloud Platform project that 492 * [projectId] - [Required] The ID of the Google Cloud Platform project that
447 * the cluster belongs to. 493 * the cluster belongs to.
448 * 494 *
449 * [pageSize] - The standard List page size. 495 * [pageSize] - The standard List page size.
450 * 496 *
451 * [pageToken] - The standard List page token. 497 * [pageToken] - The standard List page token.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
543 var _response = _requester.request(_url, 589 var _response = _requester.request(_url,
544 "PATCH", 590 "PATCH",
545 body: _body, 591 body: _body,
546 queryParams: _queryParams, 592 queryParams: _queryParams,
547 uploadOptions: _uploadOptions, 593 uploadOptions: _uploadOptions,
548 uploadMedia: _uploadMedia, 594 uploadMedia: _uploadMedia,
549 downloadOptions: _downloadOptions); 595 downloadOptions: _downloadOptions);
550 return _response.then((data) => new Operation.fromJson(data)); 596 return _response.then((data) => new Operation.fromJson(data));
551 } 597 }
552 598
599 /**
600 * Sets the access control policy on the specified resource. Replaces any
601 * existing policy.
602 *
603 * [request] - The metadata request object.
604 *
605 * Request parameters:
606 *
607 * [resource] - REQUIRED: The resource for which the policy is being
608 * specified. `resource` is usually specified as a path, such as `projects / *
609 * project * / zones / * zone * / disks / * disk*`. The format for the path
610 * specified in this value is resource specific and is specified in the
611 * `setIamPolicy` documentation.
612 * Value must have pattern "^projects/[^/] * / clusters/[^/]*$".
613 *
614 * Completes with a [Policy].
615 *
616 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
617 * error.
618 *
619 * If the used [http.Client] completes with an error when making a REST call,
620 * this method will complete with the same error.
621 */
622 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
623 var _url = null;
624 var _queryParams = new core.Map();
625 var _uploadMedia = null;
626 var _uploadOptions = null;
627 var _downloadOptions = commons.DownloadOptions.Metadata;
628 var _body = null;
629
630 if (request != null) {
631 _body = convert.JSON.encode((request).toJson());
632 }
633 if (resource == null) {
634 throw new core.ArgumentError("Parameter resource is required.");
635 }
636
637 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':s etIamPolicy';
638
639 var _response = _requester.request(_url,
640 "POST",
641 body: _body,
642 queryParams: _queryParams,
643 uploadOptions: _uploadOptions,
644 uploadMedia: _uploadMedia,
645 downloadOptions: _downloadOptions);
646 return _response.then((data) => new Policy.fromJson(data));
647 }
648
649 /**
650 * Returns permissions that a caller has on the specified resource.
651 *
652 * [request] - The metadata request object.
653 *
654 * Request parameters:
655 *
656 * [resource] - REQUIRED: The resource for which the policy detail is being
657 * requested. `resource` is usually specified as a path, such as `projects / *
658 * project * / zones / * zone * / disks / * disk*`. The format for the path
659 * specified in this value is resource specific and is specified in the
660 * `testIamPermissions` documentation.
661 * Value must have pattern "^projects/[^/] * / clusters/[^/]*$".
662 *
663 * Completes with a [TestIamPermissionsResponse].
664 *
665 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
666 * error.
667 *
668 * If the used [http.Client] completes with an error when making a REST call,
669 * this method will complete with the same error.
670 */
671 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
672 var _url = null;
673 var _queryParams = new core.Map();
674 var _uploadMedia = null;
675 var _uploadOptions = null;
676 var _downloadOptions = commons.DownloadOptions.Metadata;
677 var _body = null;
678
679 if (request != null) {
680 _body = convert.JSON.encode((request).toJson());
681 }
682 if (resource == null) {
683 throw new core.ArgumentError("Parameter resource is required.");
684 }
685
686 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':t estIamPermissions';
687
688 var _response = _requester.request(_url,
689 "POST",
690 body: _body,
691 queryParams: _queryParams,
692 uploadOptions: _uploadOptions,
693 uploadMedia: _uploadMedia,
694 downloadOptions: _downloadOptions);
695 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
696 }
697
553 } 698 }
554 699
555 700
556 class ProjectsJobsResourceApi { 701 class ProjectsJobsResourceApi {
557 final commons.ApiRequester _requester; 702 final commons.ApiRequester _requester;
558 703
559 ProjectsJobsResourceApi(commons.ApiRequester client) : 704 ProjectsJobsResourceApi(commons.ApiRequester client) :
560 _requester = client; 705 _requester = client;
561 706
562 /** 707 /**
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
697 "GET", 842 "GET",
698 body: _body, 843 body: _body,
699 queryParams: _queryParams, 844 queryParams: _queryParams,
700 uploadOptions: _uploadOptions, 845 uploadOptions: _uploadOptions,
701 uploadMedia: _uploadMedia, 846 uploadMedia: _uploadMedia,
702 downloadOptions: _downloadOptions); 847 downloadOptions: _downloadOptions);
703 return _response.then((data) => new Job.fromJson(data)); 848 return _response.then((data) => new Job.fromJson(data));
704 } 849 }
705 850
706 /** 851 /**
852 * Gets the access control policy for a `resource`. Returns an empty policy if
853 * the resource exists and does not have a policy set.
854 *
855 * Request parameters:
856 *
857 * [resource] - REQUIRED: The resource for which the policy is being
858 * requested. `resource` is usually specified as a path, such as `projects / *
859 * project * / zones / * zone * / disks / * disk*`. The format for the path
860 * specified in this value is resource specific and is specified in the
861 * `getIamPolicy` documentation.
862 * Value must have pattern "^projects/[^/] * / jobs/[^/]*$".
863 *
864 * Completes with a [Policy].
865 *
866 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
867 * error.
868 *
869 * If the used [http.Client] completes with an error when making a REST call,
870 * this method will complete with the same error.
871 */
872 async.Future<Policy> getIamPolicy(core.String resource) {
873 var _url = null;
874 var _queryParams = new core.Map();
875 var _uploadMedia = null;
876 var _uploadOptions = null;
877 var _downloadOptions = commons.DownloadOptions.Metadata;
878 var _body = null;
879
880 if (resource == null) {
881 throw new core.ArgumentError("Parameter resource is required.");
882 }
883
884 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':g etIamPolicy';
885
886 var _response = _requester.request(_url,
887 "GET",
888 body: _body,
889 queryParams: _queryParams,
890 uploadOptions: _uploadOptions,
891 uploadMedia: _uploadMedia,
892 downloadOptions: _downloadOptions);
893 return _response.then((data) => new Policy.fromJson(data));
894 }
895
896 /**
707 * Lists jobs in a project. 897 * Lists jobs in a project.
708 * 898 *
709 * Request parameters: 899 * Request parameters:
710 * 900 *
711 * [projectId] - [Required] The ID of the Google Cloud Platform project that 901 * [projectId] - [Required] The ID of the Google Cloud Platform project that
712 * the job belongs to. 902 * the job belongs to.
713 * 903 *
714 * [pageSize] - [Optional] The number of results to return in each response. 904 * [pageSize] - [Optional] The number of results to return in each response.
715 * 905 *
716 * [pageToken] - [Optional] The page token, returned by a previous call, to 906 * [pageToken] - [Optional] The page token, returned by a previous call, to
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
764 "GET", 954 "GET",
765 body: _body, 955 body: _body,
766 queryParams: _queryParams, 956 queryParams: _queryParams,
767 uploadOptions: _uploadOptions, 957 uploadOptions: _uploadOptions,
768 uploadMedia: _uploadMedia, 958 uploadMedia: _uploadMedia,
769 downloadOptions: _downloadOptions); 959 downloadOptions: _downloadOptions);
770 return _response.then((data) => new ListJobsResponse.fromJson(data)); 960 return _response.then((data) => new ListJobsResponse.fromJson(data));
771 } 961 }
772 962
773 /** 963 /**
964 * Sets the access control policy on the specified resource. Replaces any
965 * existing policy.
966 *
967 * [request] - The metadata request object.
968 *
969 * Request parameters:
970 *
971 * [resource] - REQUIRED: The resource for which the policy is being
972 * specified. `resource` is usually specified as a path, such as `projects / *
973 * project * / zones / * zone * / disks / * disk*`. The format for the path
974 * specified in this value is resource specific and is specified in the
975 * `setIamPolicy` documentation.
976 * Value must have pattern "^projects/[^/] * / jobs/[^/]*$".
977 *
978 * Completes with a [Policy].
979 *
980 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
981 * error.
982 *
983 * If the used [http.Client] completes with an error when making a REST call,
984 * this method will complete with the same error.
985 */
986 async.Future<Policy> setIamPolicy(SetIamPolicyRequest request, core.String res ource) {
987 var _url = null;
988 var _queryParams = new core.Map();
989 var _uploadMedia = null;
990 var _uploadOptions = null;
991 var _downloadOptions = commons.DownloadOptions.Metadata;
992 var _body = null;
993
994 if (request != null) {
995 _body = convert.JSON.encode((request).toJson());
996 }
997 if (resource == null) {
998 throw new core.ArgumentError("Parameter resource is required.");
999 }
1000
1001 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':s etIamPolicy';
1002
1003 var _response = _requester.request(_url,
1004 "POST",
1005 body: _body,
1006 queryParams: _queryParams,
1007 uploadOptions: _uploadOptions,
1008 uploadMedia: _uploadMedia,
1009 downloadOptions: _downloadOptions);
1010 return _response.then((data) => new Policy.fromJson(data));
1011 }
1012
1013 /**
774 * Submits a job to a cluster. 1014 * Submits a job to a cluster.
775 * 1015 *
776 * [request] - The metadata request object. 1016 * [request] - The metadata request object.
777 * 1017 *
778 * Request parameters: 1018 * Request parameters:
779 * 1019 *
780 * [projectId] - [Required] The ID of the Google Cloud Platform project that 1020 * [projectId] - [Required] The ID of the Google Cloud Platform project that
781 * the job belongs to. 1021 * the job belongs to.
782 * 1022 *
783 * Completes with a [Job]. 1023 * Completes with a [Job].
(...skipping 24 matching lines...) Expand all
808 var _response = _requester.request(_url, 1048 var _response = _requester.request(_url,
809 "POST", 1049 "POST",
810 body: _body, 1050 body: _body,
811 queryParams: _queryParams, 1051 queryParams: _queryParams,
812 uploadOptions: _uploadOptions, 1052 uploadOptions: _uploadOptions,
813 uploadMedia: _uploadMedia, 1053 uploadMedia: _uploadMedia,
814 downloadOptions: _downloadOptions); 1054 downloadOptions: _downloadOptions);
815 return _response.then((data) => new Job.fromJson(data)); 1055 return _response.then((data) => new Job.fromJson(data));
816 } 1056 }
817 1057
1058 /**
1059 * Returns permissions that a caller has on the specified resource.
1060 *
1061 * [request] - The metadata request object.
1062 *
1063 * Request parameters:
1064 *
1065 * [resource] - REQUIRED: The resource for which the policy detail is being
1066 * requested. `resource` is usually specified as a path, such as `projects / *
1067 * project * / zones / * zone * / disks / * disk*`. The format for the path
1068 * specified in this value is resource specific and is specified in the
1069 * `testIamPermissions` documentation.
1070 * Value must have pattern "^projects/[^/] * / jobs/[^/]*$".
1071 *
1072 * Completes with a [TestIamPermissionsResponse].
1073 *
1074 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1075 * error.
1076 *
1077 * If the used [http.Client] completes with an error when making a REST call,
1078 * this method will complete with the same error.
1079 */
1080 async.Future<TestIamPermissionsResponse> testIamPermissions(TestIamPermissions Request request, core.String resource) {
1081 var _url = null;
1082 var _queryParams = new core.Map();
1083 var _uploadMedia = null;
1084 var _uploadOptions = null;
1085 var _downloadOptions = commons.DownloadOptions.Metadata;
1086 var _body = null;
1087
1088 if (request != null) {
1089 _body = convert.JSON.encode((request).toJson());
1090 }
1091 if (resource == null) {
1092 throw new core.ArgumentError("Parameter resource is required.");
1093 }
1094
1095 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$resource') + ':t estIamPermissions';
1096
1097 var _response = _requester.request(_url,
1098 "POST",
1099 body: _body,
1100 queryParams: _queryParams,
1101 uploadOptions: _uploadOptions,
1102 uploadMedia: _uploadMedia,
1103 downloadOptions: _downloadOptions);
1104 return _response.then((data) => new TestIamPermissionsResponse.fromJson(data ));
1105 }
1106
818 } 1107 }
819 1108
820 1109
821 1110
1111 /** Associates `members` with a `role`. */
1112 class Binding {
1113 /**
1114 * Specifies the identities requesting access for a Cloud Platform resource.
1115 * `members` can have the following values: * `allUsers`: A special identifier
1116 * that represents anyone who is on the internet; with or without a Google
1117 * account. * `allAuthenticatedUsers`: A special identifier that represents
1118 * anyone who is authenticated with a Google account or a service account. *
1119 * `user:{emailid}`: An email address that represents a specific Google
1120 * account. For example, `alice@gmail.com` or `joe@example.com`. *
1121 * `serviceAccount:{emailid}`: An email address that represents a service
1122 * account. For example, `my-other-app@appspot.gserviceaccount.com`. *
1123 * `group:{emailid}`: An email address that represents a Google group. For
1124 * example, `admins@example.com`. * `domain:{domain}`: A Google Apps domain
1125 * name that represents all the users of that domain. For example,
1126 * `google.com` or `example.com`.
1127 */
1128 core.List<core.String> members;
1129 /**
1130 * Role that is assigned to `members`. For example, `roles/viewer`,
1131 * `roles/editor`, or `roles/owner`. Required
1132 */
1133 core.String role;
1134
1135 Binding();
1136
1137 Binding.fromJson(core.Map _json) {
1138 if (_json.containsKey("members")) {
1139 members = _json["members"];
1140 }
1141 if (_json.containsKey("role")) {
1142 role = _json["role"];
1143 }
1144 }
1145
1146 core.Map toJson() {
1147 var _json = new core.Map();
1148 if (members != null) {
1149 _json["members"] = members;
1150 }
1151 if (role != null) {
1152 _json["role"] = role;
1153 }
1154 return _json;
1155 }
1156 }
1157
822 /** A request to cancel a job. */ 1158 /** A request to cancel a job. */
823 class CancelJobRequest { 1159 class CancelJobRequest {
824 1160
825 CancelJobRequest(); 1161 CancelJobRequest();
826 1162
827 CancelJobRequest.fromJson(core.Map _json) { 1163 CancelJobRequest.fromJson(core.Map _json) {
828 } 1164 }
829 1165
830 core.Map toJson() { 1166 core.Map toJson() {
831 var _json = new core.Map(); 1167 var _json = new core.Map();
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
1013 if (softwareConfiguration != null) { 1349 if (softwareConfiguration != null) {
1014 _json["softwareConfiguration"] = (softwareConfiguration).toJson(); 1350 _json["softwareConfiguration"] = (softwareConfiguration).toJson();
1015 } 1351 }
1016 if (workerConfiguration != null) { 1352 if (workerConfiguration != null) {
1017 _json["workerConfiguration"] = (workerConfiguration).toJson(); 1353 _json["workerConfiguration"] = (workerConfiguration).toJson();
1018 } 1354 }
1019 return _json; 1355 return _json;
1020 } 1356 }
1021 } 1357 }
1022 1358
1359 /** Metadata describing the operation. */
1360 class ClusterOperationMetadata {
1361 /** Name of the cluster for the operation. */
1362 core.String clusterName;
1363 /** Cluster UUId for the operation. */
1364 core.String clusterUuid;
1365 /** [Output-only] Short description of operation. */
1366 core.String description;
1367 /** [Output-only] The operation type. */
1368 core.String operationType;
1369 /** [Output-only] Current operation status. */
1370 ClusterOperationStatus status;
1371 /** [Output-only] The previous operation status. */
1372 core.List<ClusterOperationStatus> statusHistory;
1373
1374 ClusterOperationMetadata();
1375
1376 ClusterOperationMetadata.fromJson(core.Map _json) {
1377 if (_json.containsKey("clusterName")) {
1378 clusterName = _json["clusterName"];
1379 }
1380 if (_json.containsKey("clusterUuid")) {
1381 clusterUuid = _json["clusterUuid"];
1382 }
1383 if (_json.containsKey("description")) {
1384 description = _json["description"];
1385 }
1386 if (_json.containsKey("operationType")) {
1387 operationType = _json["operationType"];
1388 }
1389 if (_json.containsKey("status")) {
1390 status = new ClusterOperationStatus.fromJson(_json["status"]);
1391 }
1392 if (_json.containsKey("statusHistory")) {
1393 statusHistory = _json["statusHistory"].map((value) => new ClusterOperation Status.fromJson(value)).toList();
1394 }
1395 }
1396
1397 core.Map toJson() {
1398 var _json = new core.Map();
1399 if (clusterName != null) {
1400 _json["clusterName"] = clusterName;
1401 }
1402 if (clusterUuid != null) {
1403 _json["clusterUuid"] = clusterUuid;
1404 }
1405 if (description != null) {
1406 _json["description"] = description;
1407 }
1408 if (operationType != null) {
1409 _json["operationType"] = operationType;
1410 }
1411 if (status != null) {
1412 _json["status"] = (status).toJson();
1413 }
1414 if (statusHistory != null) {
1415 _json["statusHistory"] = statusHistory.map((value) => (value).toJson()).to List();
1416 }
1417 return _json;
1418 }
1419 }
1420
1421 /** The status of the operation. */
1422 class ClusterOperationStatus {
1423 /** A message containing any operation metadata details. */
1424 core.String details;
1425 /** A message containing the detailed operation state. */
1426 core.String innerState;
1427 /**
1428 * A message containing the operation state.
1429 * Possible string values are:
1430 * - "UNKNOWN" : A UNKNOWN.
1431 * - "PENDING" : A PENDING.
1432 * - "RUNNING" : A RUNNING.
1433 * - "DONE" : A DONE.
1434 */
1435 core.String state;
1436 /** The time this state was entered. */
1437 core.String stateStartTime;
1438
1439 ClusterOperationStatus();
1440
1441 ClusterOperationStatus.fromJson(core.Map _json) {
1442 if (_json.containsKey("details")) {
1443 details = _json["details"];
1444 }
1445 if (_json.containsKey("innerState")) {
1446 innerState = _json["innerState"];
1447 }
1448 if (_json.containsKey("state")) {
1449 state = _json["state"];
1450 }
1451 if (_json.containsKey("stateStartTime")) {
1452 stateStartTime = _json["stateStartTime"];
1453 }
1454 }
1455
1456 core.Map toJson() {
1457 var _json = new core.Map();
1458 if (details != null) {
1459 _json["details"] = details;
1460 }
1461 if (innerState != null) {
1462 _json["innerState"] = innerState;
1463 }
1464 if (state != null) {
1465 _json["state"] = state;
1466 }
1467 if (stateStartTime != null) {
1468 _json["stateStartTime"] = stateStartTime;
1469 }
1470 return _json;
1471 }
1472 }
1473
1023 /** The status of a cluster and its instances. */ 1474 /** The status of a cluster and its instances. */
1024 class ClusterStatus { 1475 class ClusterStatus {
1025 /** Optional details of cluster's state. */ 1476 /** Optional details of cluster's state. */
1026 core.String detail; 1477 core.String detail;
1027 /** 1478 /**
1028 * The cluster's state. 1479 * The cluster's state.
1029 * Possible string values are: 1480 * Possible string values are:
1030 * - "UNKNOWN" : A UNKNOWN. 1481 * - "UNKNOWN" : A UNKNOWN.
1031 * - "CREATING" : A CREATING. 1482 * - "CREATING" : A CREATING.
1032 * - "RUNNING" : A RUNNING. 1483 * - "RUNNING" : A RUNNING.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
1099 1550
1100 DiagnoseClusterRequest.fromJson(core.Map _json) { 1551 DiagnoseClusterRequest.fromJson(core.Map _json) {
1101 } 1552 }
1102 1553
1103 core.Map toJson() { 1554 core.Map toJson() {
1104 var _json = new core.Map(); 1555 var _json = new core.Map();
1105 return _json; 1556 return _json;
1106 } 1557 }
1107 } 1558 }
1108 1559
1560 /** The location of diagnostic output. */
1561 class DiagnoseClusterResults {
1562 /**
1563 * [Output-only] The Google Cloud Storage URI of the diagnostic output. This
1564 * is a plain text file with a summary of collected diagnostics.
1565 */
1566 core.String outputUri;
1567
1568 DiagnoseClusterResults();
1569
1570 DiagnoseClusterResults.fromJson(core.Map _json) {
1571 if (_json.containsKey("outputUri")) {
1572 outputUri = _json["outputUri"];
1573 }
1574 }
1575
1576 core.Map toJson() {
1577 var _json = new core.Map();
1578 if (outputUri != null) {
1579 _json["outputUri"] = outputUri;
1580 }
1581 return _json;
1582 }
1583 }
1584
1109 /** Specifies the configuration of disk options for a group of VM instances. */ 1585 /** Specifies the configuration of disk options for a group of VM instances. */
1110 class DiskConfiguration { 1586 class DiskConfiguration {
1111 /** [Optional] Size in GB of the boot disk (default is 500GB). */ 1587 /** [Optional] Size in GB of the boot disk (default is 500GB). */
1112 core.int bootDiskSizeGb; 1588 core.int bootDiskSizeGb;
1113 /** 1589 /**
1114 * [Optional] Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are 1590 * [Optional] Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are
1115 * not attached, the boot disk is used to store runtime logs and HDFS data. If 1591 * not attached, the boot disk is used to store runtime logs and HDFS data. If
1116 * one or more SSDs are attached, this runtime bulk data is spread across 1592 * one or more SSDs are attached, this runtime bulk data is spread across
1117 * them, and the boot disk contains only basic configuration and installed 1593 * them, and the boot disk contains only basic configuration and installed
1118 * binaries. 1594 * binaries.
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1160 var _json = new core.Map(); 1636 var _json = new core.Map();
1161 return _json; 1637 return _json;
1162 } 1638 }
1163 } 1639 }
1164 1640
1165 /** 1641 /**
1166 * Common configuration settings for resources of Google Compute Engine cluster 1642 * Common configuration settings for resources of Google Compute Engine cluster
1167 * instances, applicable to all instances in the cluster. 1643 * instances, applicable to all instances in the cluster.
1168 */ 1644 */
1169 class GceClusterConfiguration { 1645 class GceClusterConfiguration {
1646 /** The Google Compute Engine metadata entries to add to all instances. */
1647 core.Map<core.String, core.String> metadata;
1170 /** 1648 /**
1171 * The Google Compute Engine network to be used for machine communications. 1649 * The Google Compute Engine network to be used for machine communications.
1172 * Inbound SSH connections are necessary to complete cluster configuration. 1650 * Cannot be specified with subnetwork_uri. If neither network_uri nor
1651 * subnetwork_uri is specified, the "default" network of the project is used,
1652 * if it exists. Cannot be a "Custom Subnet Network" (see
1653 * https://cloud.google.com/compute/docs/subnetworks for more information).
1173 * Example: 1654 * Example:
1174 * `compute.googleapis.com/projects/[project_id]/zones/us-east1-a/default`. 1655 * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global /default`.
1175 */ 1656 */
1176 core.String networkUri; 1657 core.String networkUri;
1177 /** 1658 /**
1178 * The URIs of service account scopes to be included in Google Compute Engine 1659 * The URIs of service account scopes to be included in Google Compute Engine
1179 * instances. The following base set of scopes is always included: - 1660 * instances. The following base set of scopes is always included: -
1180 * https://www.googleapis.com/auth/cloud.useraccounts.readonly - 1661 * https://www.googleapis.com/auth/cloud.useraccounts.readonly -
1181 * https://www.googleapis.com/auth/devstorage.read_write - 1662 * https://www.googleapis.com/auth/devstorage.read_write -
1182 * https://www.googleapis.com/auth/logging.write If no scopes are specfied, 1663 * https://www.googleapis.com/auth/logging.write If no scopes are specfied,
1183 * the following defaults are also provided: - 1664 * the following defaults are also provided: -
1184 * https://www.googleapis.com/auth/bigquery - 1665 * https://www.googleapis.com/auth/bigquery -
1185 * https://www.googleapis.com/auth/bigtable.admin.table - 1666 * https://www.googleapis.com/auth/bigtable.admin.table -
1186 * https://www.googleapis.com/auth/bigtable.data - 1667 * https://www.googleapis.com/auth/bigtable.data -
1187 * https://www.googleapis.com/auth/devstorage.full_control 1668 * https://www.googleapis.com/auth/devstorage.full_control
1188 */ 1669 */
1189 core.List<core.String> serviceAccountScopes; 1670 core.List<core.String> serviceAccountScopes;
1190 /** 1671 /**
1672 * The Google Compute Engine subnetwork to be used for machine communications.
1673 * Cannot be specified with network_uri. Example:
1674 * `https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-eas t1/sub0`.
1675 */
1676 core.String subnetworkUri;
1677 /** The Google Compute Engine tags to add to all instances. */
1678 core.List<core.String> tags;
1679 /**
1191 * [Required] The zone where the Google Compute Engine cluster will be 1680 * [Required] The zone where the Google Compute Engine cluster will be
1192 * located. Example: 1681 * located. Example:
1193 * `compute.googleapis.com/projects/[project_id]/zones/us-east1-a`. 1682 * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]`.
1194 */ 1683 */
1195 core.String zoneUri; 1684 core.String zoneUri;
1196 1685
1197 GceClusterConfiguration(); 1686 GceClusterConfiguration();
1198 1687
1199 GceClusterConfiguration.fromJson(core.Map _json) { 1688 GceClusterConfiguration.fromJson(core.Map _json) {
1689 if (_json.containsKey("metadata")) {
1690 metadata = _json["metadata"];
1691 }
1200 if (_json.containsKey("networkUri")) { 1692 if (_json.containsKey("networkUri")) {
1201 networkUri = _json["networkUri"]; 1693 networkUri = _json["networkUri"];
1202 } 1694 }
1203 if (_json.containsKey("serviceAccountScopes")) { 1695 if (_json.containsKey("serviceAccountScopes")) {
1204 serviceAccountScopes = _json["serviceAccountScopes"]; 1696 serviceAccountScopes = _json["serviceAccountScopes"];
1205 } 1697 }
1698 if (_json.containsKey("subnetworkUri")) {
1699 subnetworkUri = _json["subnetworkUri"];
1700 }
1701 if (_json.containsKey("tags")) {
1702 tags = _json["tags"];
1703 }
1206 if (_json.containsKey("zoneUri")) { 1704 if (_json.containsKey("zoneUri")) {
1207 zoneUri = _json["zoneUri"]; 1705 zoneUri = _json["zoneUri"];
1208 } 1706 }
1209 } 1707 }
1210 1708
1211 core.Map toJson() { 1709 core.Map toJson() {
1212 var _json = new core.Map(); 1710 var _json = new core.Map();
1711 if (metadata != null) {
1712 _json["metadata"] = metadata;
1713 }
1213 if (networkUri != null) { 1714 if (networkUri != null) {
1214 _json["networkUri"] = networkUri; 1715 _json["networkUri"] = networkUri;
1215 } 1716 }
1216 if (serviceAccountScopes != null) { 1717 if (serviceAccountScopes != null) {
1217 _json["serviceAccountScopes"] = serviceAccountScopes; 1718 _json["serviceAccountScopes"] = serviceAccountScopes;
1218 } 1719 }
1720 if (subnetworkUri != null) {
1721 _json["subnetworkUri"] = subnetworkUri;
1722 }
1723 if (tags != null) {
1724 _json["tags"] = tags;
1725 }
1219 if (zoneUri != null) { 1726 if (zoneUri != null) {
1220 _json["zoneUri"] = zoneUri; 1727 _json["zoneUri"] = zoneUri;
1221 } 1728 }
1222 return _json; 1729 return _json;
1223 } 1730 }
1224 } 1731 }
1225 1732
1226 /** A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. */ 1733 /** A Cloud Dataproc job for running Hadoop MapReduce jobs on YARN. */
1227 class HadoopJob { 1734 class HadoopJob {
1228 /** 1735 /**
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1408 1915
1409 /** 1916 /**
1410 * The configuration settings for Google Compute Engine resources in an instance 1917 * The configuration settings for Google Compute Engine resources in an instance
1411 * group, such as a master or worker group. 1918 * group, such as a master or worker group.
1412 */ 1919 */
1413 class InstanceGroupConfiguration { 1920 class InstanceGroupConfiguration {
1414 /** Disk option configuration settings. */ 1921 /** Disk option configuration settings. */
1415 DiskConfiguration diskConfiguration; 1922 DiskConfiguration diskConfiguration;
1416 /** 1923 /**
1417 * [Output-only] The Google Compute Engine image resource used for cluster 1924 * [Output-only] The Google Compute Engine image resource used for cluster
1418 * instances. Inferred from `SoftwareConfiguration.image_version`. Example: 1925 * instances. Inferred from `SoftwareConfiguration.image_version`.
1419 * `compute.googleapis.com/projects/debian-cloud/global/images/backports-debia n-7-wheezy-v20140904`.
1420 */ 1926 */
1421 core.String imageUri; 1927 core.String imageUri;
1422 /** 1928 /**
1423 * The list of instance names. Dataproc derives the names from `cluster_name`, 1929 * The list of instance names. Dataproc derives the names from `cluster_name`,
1424 * `num_instances`, and the instance group if not set by user (recommended 1930 * `num_instances`, and the instance group if not set by user (recommended
1425 * practice is to let Dataproc derive the name). 1931 * practice is to let Dataproc derive the name).
1426 */ 1932 */
1427 core.List<core.String> instanceNames; 1933 core.List<core.String> instanceNames;
1428 /** Specifies that this instance group contains Preemptible Instances. */ 1934 /** Specifies that this instance group contains Preemptible Instances. */
1429 core.bool isPreemptible; 1935 core.bool isPreemptible;
1430 /** 1936 /**
1431 * The Google Compute Engine machine type used for cluster instances. Example: 1937 * The Google Compute Engine machine type used for cluster instances. Example:
1432 * `compute.googleapis.com/projects/[project_id]/zones/us-east1-a/machineTypes /n1-standard-2`. 1938 * `https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1 -a/machineTypes/n1-standard-2`.
1433 */ 1939 */
1434 core.String machineTypeUri; 1940 core.String machineTypeUri;
1435 /** 1941 /**
1436 * [Output-only] The configuration for Google Compute Engine Instance Group 1942 * [Output-only] The configuration for Google Compute Engine Instance Group
1437 * Manager that manages this group. This is only used for preemptible instance 1943 * Manager that manages this group. This is only used for preemptible instance
1438 * groups. 1944 * groups.
1439 */ 1945 */
1440 ManagedGroupConfiguration managedGroupConfiguration; 1946 ManagedGroupConfiguration managedGroupConfiguration;
1441 /** 1947 /**
1442 * The number of VM instances in the instance group. For master instance 1948 * The number of VM instances in the instance group. For master instance
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
1999 * contains progress information and common metadata such as create time. Some 2505 * contains progress information and common metadata such as create time. Some
2000 * services might not provide such metadata. Any method that returns a 2506 * services might not provide such metadata. Any method that returns a
2001 * long-running operation should document the metadata type, if any. 2507 * long-running operation should document the metadata type, if any.
2002 * 2508 *
2003 * The values for Object must be JSON objects. It can consist of `num`, 2509 * The values for Object must be JSON objects. It can consist of `num`,
2004 * `String`, `bool` and `null` as well as `Map` and `List` values. 2510 * `String`, `bool` and `null` as well as `Map` and `List` values.
2005 */ 2511 */
2006 core.Map<core.String, core.Object> metadata; 2512 core.Map<core.String, core.Object> metadata;
2007 /** 2513 /**
2008 * The server-assigned name, which is only unique within the same service that 2514 * The server-assigned name, which is only unique within the same service that
2009 * originally returns it. If you use the default HTTP mapping above, the 2515 * originally returns it. If you use the default HTTP mapping, the `name`
2010 * `name` should have the format of `operations/some/unique/name`. 2516 * should have the format of `operations/some/unique/name`.
2011 */ 2517 */
2012 core.String name; 2518 core.String name;
2013 /** 2519 /**
2014 * The normal response of the operation in case of success. If the original 2520 * The normal response of the operation in case of success. If the original
2015 * method returns no data on success, such as `Delete`, the response is 2521 * method returns no data on success, such as `Delete`, the response is
2016 * `google.protobuf.Empty`. If the original method is standard 2522 * `google.protobuf.Empty`. If the original method is standard
2017 * `Get`/`Create`/`Update`, the response should be the resource. For other 2523 * `Get`/`Create`/`Update`, the response should be the resource. For other
2018 * methods, the response should have the type `XxxResponse`, where `Xxx` is 2524 * methods, the response should have the type `XxxResponse`, where `Xxx` is
2019 * the original method name. For example, if the original method name is 2525 * the original method name. For example, if the original method name is
2020 * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`. 2526 * `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 return _json; 2570 return _json;
2065 } 2571 }
2066 } 2572 }
2067 2573
2068 /** Metadata describing the operation. */ 2574 /** Metadata describing the operation. */
2069 class OperationMetadata { 2575 class OperationMetadata {
2070 /** Name of the cluster for the operation. */ 2576 /** Name of the cluster for the operation. */
2071 core.String clusterName; 2577 core.String clusterName;
2072 /** Cluster UUId for the operation. */ 2578 /** Cluster UUId for the operation. */
2073 core.String clusterUuid; 2579 core.String clusterUuid;
2580 /** [Output-only] Short description of operation. */
2581 core.String description;
2074 /** A message containing any operation metadata details. */ 2582 /** A message containing any operation metadata details. */
2075 core.String details; 2583 core.String details;
2076 /** The time that the operation completed. */ 2584 /** The time that the operation completed. */
2077 core.String endTime; 2585 core.String endTime;
2078 /** A message containing the detailed operation state. */ 2586 /** A message containing the detailed operation state. */
2079 core.String innerState; 2587 core.String innerState;
2080 /** The time that the operation was requested. */ 2588 /** The time that the operation was requested. */
2081 core.String insertTime; 2589 core.String insertTime;
2590 /** [Output-only] The operation type. */
2591 core.String operationType;
2082 /** The time that the operation was started by the server. */ 2592 /** The time that the operation was started by the server. */
2083 core.String startTime; 2593 core.String startTime;
2084 /** 2594 /**
2085 * A message containing the operation state. 2595 * A message containing the operation state.
2086 * Possible string values are: 2596 * Possible string values are:
2087 * - "UNKNOWN" : A UNKNOWN. 2597 * - "UNKNOWN" : A UNKNOWN.
2088 * - "PENDING" : A PENDING. 2598 * - "PENDING" : A PENDING.
2089 * - "RUNNING" : A RUNNING. 2599 * - "RUNNING" : A RUNNING.
2090 * - "DONE" : A DONE. 2600 * - "DONE" : A DONE.
2091 */ 2601 */
2092 core.String state; 2602 core.String state;
2093 /** [Output-only] Current operation status. */ 2603 /** [Output-only] Current operation status. */
2094 OperationStatus status; 2604 OperationStatus status;
2095 /** [Output-only] Previous operation status. */ 2605 /** [Output-only] Previous operation status. */
2096 core.List<OperationStatus> statusHistory; 2606 core.List<OperationStatus> statusHistory;
2097 2607
2098 OperationMetadata(); 2608 OperationMetadata();
2099 2609
2100 OperationMetadata.fromJson(core.Map _json) { 2610 OperationMetadata.fromJson(core.Map _json) {
2101 if (_json.containsKey("clusterName")) { 2611 if (_json.containsKey("clusterName")) {
2102 clusterName = _json["clusterName"]; 2612 clusterName = _json["clusterName"];
2103 } 2613 }
2104 if (_json.containsKey("clusterUuid")) { 2614 if (_json.containsKey("clusterUuid")) {
2105 clusterUuid = _json["clusterUuid"]; 2615 clusterUuid = _json["clusterUuid"];
2106 } 2616 }
2617 if (_json.containsKey("description")) {
2618 description = _json["description"];
2619 }
2107 if (_json.containsKey("details")) { 2620 if (_json.containsKey("details")) {
2108 details = _json["details"]; 2621 details = _json["details"];
2109 } 2622 }
2110 if (_json.containsKey("endTime")) { 2623 if (_json.containsKey("endTime")) {
2111 endTime = _json["endTime"]; 2624 endTime = _json["endTime"];
2112 } 2625 }
2113 if (_json.containsKey("innerState")) { 2626 if (_json.containsKey("innerState")) {
2114 innerState = _json["innerState"]; 2627 innerState = _json["innerState"];
2115 } 2628 }
2116 if (_json.containsKey("insertTime")) { 2629 if (_json.containsKey("insertTime")) {
2117 insertTime = _json["insertTime"]; 2630 insertTime = _json["insertTime"];
2118 } 2631 }
2632 if (_json.containsKey("operationType")) {
2633 operationType = _json["operationType"];
2634 }
2119 if (_json.containsKey("startTime")) { 2635 if (_json.containsKey("startTime")) {
2120 startTime = _json["startTime"]; 2636 startTime = _json["startTime"];
2121 } 2637 }
2122 if (_json.containsKey("state")) { 2638 if (_json.containsKey("state")) {
2123 state = _json["state"]; 2639 state = _json["state"];
2124 } 2640 }
2125 if (_json.containsKey("status")) { 2641 if (_json.containsKey("status")) {
2126 status = new OperationStatus.fromJson(_json["status"]); 2642 status = new OperationStatus.fromJson(_json["status"]);
2127 } 2643 }
2128 if (_json.containsKey("statusHistory")) { 2644 if (_json.containsKey("statusHistory")) {
2129 statusHistory = _json["statusHistory"].map((value) => new OperationStatus. fromJson(value)).toList(); 2645 statusHistory = _json["statusHistory"].map((value) => new OperationStatus. fromJson(value)).toList();
2130 } 2646 }
2131 } 2647 }
2132 2648
2133 core.Map toJson() { 2649 core.Map toJson() {
2134 var _json = new core.Map(); 2650 var _json = new core.Map();
2135 if (clusterName != null) { 2651 if (clusterName != null) {
2136 _json["clusterName"] = clusterName; 2652 _json["clusterName"] = clusterName;
2137 } 2653 }
2138 if (clusterUuid != null) { 2654 if (clusterUuid != null) {
2139 _json["clusterUuid"] = clusterUuid; 2655 _json["clusterUuid"] = clusterUuid;
2140 } 2656 }
2657 if (description != null) {
2658 _json["description"] = description;
2659 }
2141 if (details != null) { 2660 if (details != null) {
2142 _json["details"] = details; 2661 _json["details"] = details;
2143 } 2662 }
2144 if (endTime != null) { 2663 if (endTime != null) {
2145 _json["endTime"] = endTime; 2664 _json["endTime"] = endTime;
2146 } 2665 }
2147 if (innerState != null) { 2666 if (innerState != null) {
2148 _json["innerState"] = innerState; 2667 _json["innerState"] = innerState;
2149 } 2668 }
2150 if (insertTime != null) { 2669 if (insertTime != null) {
2151 _json["insertTime"] = insertTime; 2670 _json["insertTime"] = insertTime;
2152 } 2671 }
2672 if (operationType != null) {
2673 _json["operationType"] = operationType;
2674 }
2153 if (startTime != null) { 2675 if (startTime != null) {
2154 _json["startTime"] = startTime; 2676 _json["startTime"] = startTime;
2155 } 2677 }
2156 if (state != null) { 2678 if (state != null) {
2157 _json["state"] = state; 2679 _json["state"] = state;
2158 } 2680 }
2159 if (status != null) { 2681 if (status != null) {
2160 _json["status"] = (status).toJson(); 2682 _json["status"] = (status).toJson();
2161 } 2683 }
2162 if (statusHistory != null) { 2684 if (statusHistory != null) {
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
2297 if (queryList != null) { 2819 if (queryList != null) {
2298 _json["queryList"] = (queryList).toJson(); 2820 _json["queryList"] = (queryList).toJson();
2299 } 2821 }
2300 if (scriptVariables != null) { 2822 if (scriptVariables != null) {
2301 _json["scriptVariables"] = scriptVariables; 2823 _json["scriptVariables"] = scriptVariables;
2302 } 2824 }
2303 return _json; 2825 return _json;
2304 } 2826 }
2305 } 2827 }
2306 2828
2829 /**
2830 * Defines an Identity and Access Management (IAM) policy. It is used to specify
2831 * access control policies for Cloud Platform resources. A `Policy` consists of
2832 * a list of `bindings`. A `Binding` binds a list of `members` to a `role`,
2833 * where the members can be user accounts, Google groups, Google domains, and
2834 * service accounts. A `role` is a named list of permissions defined by IAM.
2835 * **Example** { "bindings": [ { "role": "roles/owner", "members": [
2836 * "user:mike@example.com", "group:admins@example.com", "domain:google.com",
2837 * "serviceAccount:my-other-app@appspot.gserviceaccount.com", ] }, { "role":
2838 * "roles/viewer", "members": ["user:sean@example.com"] } ] } For a description
2839 * of IAM and its features, see the [IAM developer's
2840 * guide](https://cloud.google.com/iam).
2841 */
2842 class Policy {
2843 /**
2844 * Associates a list of `members` to a `role`. Multiple `bindings` must not be
2845 * specified for the same `role`. `bindings` with no members will result in an
2846 * error.
2847 */
2848 core.List<Binding> bindings;
2849 /**
2850 * `etag` is used for optimistic concurrency control as a way to help prevent
2851 * simultaneous updates of a policy from overwriting each other. It is
2852 * strongly suggested that systems make use of the `etag` in the
2853 * read-modify-write cycle to perform policy updates in order to avoid race
2854 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
2855 * systems are expected to put that etag in the request to `setIamPolicy` to
2856 * ensure that their change will be applied to the same version of the policy.
2857 * If no `etag` is provided in the call to `setIamPolicy`, then the existing
2858 * policy is overwritten blindly.
2859 */
2860 core.String etag;
2861 core.List<core.int> get etagAsBytes {
2862 return crypto.CryptoUtils.base64StringToBytes(etag);
2863 }
2864
2865 void set etagAsBytes(core.List<core.int> _bytes) {
2866 etag = crypto.CryptoUtils.bytesToBase64(_bytes, urlSafe: true);
2867 }
2868 /** Version of the `Policy`. The default version is 0. */
2869 core.int version;
2870
2871 Policy();
2872
2873 Policy.fromJson(core.Map _json) {
2874 if (_json.containsKey("bindings")) {
2875 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t oList();
2876 }
2877 if (_json.containsKey("etag")) {
2878 etag = _json["etag"];
2879 }
2880 if (_json.containsKey("version")) {
2881 version = _json["version"];
2882 }
2883 }
2884
2885 core.Map toJson() {
2886 var _json = new core.Map();
2887 if (bindings != null) {
2888 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
2889 }
2890 if (etag != null) {
2891 _json["etag"] = etag;
2892 }
2893 if (version != null) {
2894 _json["version"] = version;
2895 }
2896 return _json;
2897 }
2898 }
2899
2307 /** A Cloud Dataproc job for running PySpark applications on YARN. */ 2900 /** A Cloud Dataproc job for running PySpark applications on YARN. */
2308 class PySparkJob { 2901 class PySparkJob {
2309 /** 2902 /**
2310 * [Optional] HCFS URIs of archives to be extracted in the working directory 2903 * [Optional] HCFS URIs of archives to be extracted in the working directory
2311 * of .jar, .tar, .tar.gz, .tgz, and .zip. 2904 * of .jar, .tar, .tar.gz, .tgz, and .zip.
2312 */ 2905 */
2313 core.List<core.String> archiveUris; 2906 core.List<core.String> archiveUris;
2314 /** 2907 /**
2315 * [Optional] The arguments to pass to the driver. Do not include arguments, 2908 * [Optional] The arguments to pass to the driver. Do not include arguments,
2316 * such as `--conf`, that can be set as job properties, since a collision may 2909 * such as `--conf`, that can be set as job properties, since a collision may
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2427 3020
2428 core.Map toJson() { 3021 core.Map toJson() {
2429 var _json = new core.Map(); 3022 var _json = new core.Map();
2430 if (queries != null) { 3023 if (queries != null) {
2431 _json["queries"] = queries; 3024 _json["queries"] = queries;
2432 } 3025 }
2433 return _json; 3026 return _json;
2434 } 3027 }
2435 } 3028 }
2436 3029
3030 /** Request message for `SetIamPolicy` method. */
3031 class SetIamPolicyRequest {
3032 /**
3033 * REQUIRED: The complete policy to be applied to the `resource`. The size of
3034 * the policy is limited to a few 10s of KB. An empty policy is a valid policy
3035 * but certain Cloud Platform services (such as Projects) might reject them.
3036 */
3037 Policy policy;
3038
3039 SetIamPolicyRequest();
3040
3041 SetIamPolicyRequest.fromJson(core.Map _json) {
3042 if (_json.containsKey("policy")) {
3043 policy = new Policy.fromJson(_json["policy"]);
3044 }
3045 }
3046
3047 core.Map toJson() {
3048 var _json = new core.Map();
3049 if (policy != null) {
3050 _json["policy"] = (policy).toJson();
3051 }
3052 return _json;
3053 }
3054 }
3055
2437 /** 3056 /**
2438 * Specifies the selection and configuration of software inside the cluster. 3057 * Specifies the selection and configuration of software inside the cluster.
2439 */ 3058 */
2440 class SoftwareConfiguration { 3059 class SoftwareConfiguration {
2441 /** 3060 /**
2442 * [Optional] The version of software inside the cluster. It must match the 3061 * [Optional] The version of software inside the cluster. It must match the
2443 * regular expression `[0-9]+\.[0-9]+`. If unspecified, it defaults to the 3062 * regular expression `[0-9]+\.[0-9]+`. If unspecified, it defaults to the
2444 * latest version (see [Cloud Dataproc Versioning](/dataproc/versioning)). 3063 * latest version (see [Cloud Dataproc Versioning](/dataproc/versioning)).
2445 */ 3064 */
2446 core.String imageVersion; 3065 core.String imageVersion;
3066 /**
3067 * [Optional] The properties to set on daemon configuration files. Property
3068 * keys are specified in "prefix:property" format, such as
3069 * "core:fs.defaultFS". The following are supported prefixes and their
3070 * mappings: core - core-site.xml hdfs - hdfs-site.xml mapred -
3071 * mapred-site.xml yarn - yarn-site.xml hive - hive-site.xml pig -
3072 * pig.properties spark - spark-defaults.conf
3073 */
3074 core.Map<core.String, core.String> properties;
2447 3075
2448 SoftwareConfiguration(); 3076 SoftwareConfiguration();
2449 3077
2450 SoftwareConfiguration.fromJson(core.Map _json) { 3078 SoftwareConfiguration.fromJson(core.Map _json) {
2451 if (_json.containsKey("imageVersion")) { 3079 if (_json.containsKey("imageVersion")) {
2452 imageVersion = _json["imageVersion"]; 3080 imageVersion = _json["imageVersion"];
2453 } 3081 }
3082 if (_json.containsKey("properties")) {
3083 properties = _json["properties"];
3084 }
2454 } 3085 }
2455 3086
2456 core.Map toJson() { 3087 core.Map toJson() {
2457 var _json = new core.Map(); 3088 var _json = new core.Map();
2458 if (imageVersion != null) { 3089 if (imageVersion != null) {
2459 _json["imageVersion"] = imageVersion; 3090 _json["imageVersion"] = imageVersion;
2460 } 3091 }
3092 if (properties != null) {
3093 _json["properties"] = properties;
3094 }
2461 return _json; 3095 return _json;
2462 } 3096 }
2463 } 3097 }
2464 3098
2465 /** A Cloud Dataproc job for running Spark applications on YARN. */ 3099 /** A Cloud Dataproc job for running Spark applications on YARN. */
2466 class SparkJob { 3100 class SparkJob {
2467 /** 3101 /**
2468 * [Optional] HCFS URIs of archives to be extracted in the working directory 3102 * [Optional] HCFS URIs of archives to be extracted in the working directory
2469 * of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz, 3103 * of Spark drivers and tasks. Supported file types: .jar, .tar, .tar.gz,
2470 * .tgz, and .zip. 3104 * .tgz, and .zip.
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
2731 3365
2732 core.Map toJson() { 3366 core.Map toJson() {
2733 var _json = new core.Map(); 3367 var _json = new core.Map();
2734 if (job != null) { 3368 if (job != null) {
2735 _json["job"] = (job).toJson(); 3369 _json["job"] = (job).toJson();
2736 } 3370 }
2737 return _json; 3371 return _json;
2738 } 3372 }
2739 } 3373 }
2740 3374
3375 /** Request message for `TestIamPermissions` method. */
3376 class TestIamPermissionsRequest {
3377 /**
3378 * The set of permissions to check for the `resource`. Permissions with
3379 * wildcards (such as '*' or 'storage.*') are not allowed. For more
3380 * information see IAM Overview.
3381 */
3382 core.List<core.String> permissions;
3383
3384 TestIamPermissionsRequest();
3385
3386 TestIamPermissionsRequest.fromJson(core.Map _json) {
3387 if (_json.containsKey("permissions")) {
3388 permissions = _json["permissions"];
3389 }
3390 }
3391
3392 core.Map toJson() {
3393 var _json = new core.Map();
3394 if (permissions != null) {
3395 _json["permissions"] = permissions;
3396 }
3397 return _json;
3398 }
3399 }
3400
3401 /** Response message for `TestIamPermissions` method. */
3402 class TestIamPermissionsResponse {
3403 /**
3404 * A subset of `TestPermissionsRequest.permissions` that the caller is
3405 * allowed.
3406 */
3407 core.List<core.String> permissions;
3408
3409 TestIamPermissionsResponse();
3410
3411 TestIamPermissionsResponse.fromJson(core.Map _json) {
3412 if (_json.containsKey("permissions")) {
3413 permissions = _json["permissions"];
3414 }
3415 }
3416
3417 core.Map toJson() {
3418 var _json = new core.Map();
3419 if (permissions != null) {
3420 _json["permissions"] = permissions;
3421 }
3422 return _json;
3423 }
3424 }
3425
2741 /** 3426 /**
2742 * A YARN application created by a job. Application information is a subset of 3427 * A YARN application created by a job. Application information is a subset of
2743 * org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto. 3428 * org.apache.hadoop.yarn.proto.YarnProtos.ApplicationReportProto.
2744 */ 3429 */
2745 class YarnApplication { 3430 class YarnApplication {
2746 /** [Required] The application name. */ 3431 /** [Required] The application name. */
2747 core.String name; 3432 core.String name;
2748 /** [Required] The numerical progress of the application, from 1 to 100. */ 3433 /** [Required] The numerical progress of the application, from 1 to 100. */
2749 core.double progress; 3434 core.double progress;
2750 /** 3435 /**
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 } 3481 }
2797 if (state != null) { 3482 if (state != null) {
2798 _json["state"] = state; 3483 _json["state"] = state;
2799 } 3484 }
2800 if (trackingUrl != null) { 3485 if (trackingUrl != null) {
2801 _json["trackingUrl"] = trackingUrl; 3486 _json["trackingUrl"] = trackingUrl;
2802 } 3487 }
2803 return _json; 3488 return _json;
2804 } 3489 }
2805 } 3490 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/dataflow/v1b3.dart ('k') | generated/googleapis_beta/lib/deploymentmanager/v2beta2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698