| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.dataproc.v1; | 3 library googleapis.dataproc.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 * Lists all regions/{region}/clusters in a project. | 271 * Lists all regions/{region}/clusters in a project. |
| 272 * | 272 * |
| 273 * Request parameters: | 273 * Request parameters: |
| 274 * | 274 * |
| 275 * [projectId] - Required. The ID of the Google Cloud Platform project that | 275 * [projectId] - Required. The ID of the Google Cloud Platform project that |
| 276 * the cluster belongs to. | 276 * the cluster belongs to. |
| 277 * | 277 * |
| 278 * [region] - Required. The Cloud Dataproc region in which to handle the | 278 * [region] - Required. The Cloud Dataproc region in which to handle the |
| 279 * request. | 279 * request. |
| 280 * | 280 * |
| 281 * [pageToken] - Optional. The standard List page token. |
| 282 * |
| 283 * [pageSize] - Optional. The standard List page size. |
| 284 * |
| 281 * [filter] - Optional. A filter constraining the clusters to list. Filters | 285 * [filter] - Optional. A filter constraining the clusters to list. Filters |
| 282 * are case-sensitive and have the following syntax:field = value AND field = | 286 * are case-sensitive and have the following syntax:field = value AND field = |
| 283 * value ...where field is one of status.state, clusterName, or labels.[KEY], | 287 * value ...where field is one of status.state, clusterName, or labels.[KEY], |
| 284 * and [KEY] is a label key. value can be * to match all values. status.state | 288 * and [KEY] is a label key. value can be * to match all values. status.state |
| 285 * can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, | 289 * can be one of the following: ACTIVE, INACTIVE, CREATING, RUNNING, ERROR, |
| 286 * DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING | 290 * DELETING, or UPDATING. ACTIVE contains the CREATING, UPDATING, and RUNNING |
| 287 * states. INACTIVE contains the DELETING and ERROR states. clusterName is the | 291 * states. INACTIVE contains the DELETING and ERROR states. clusterName is the |
| 288 * name of the cluster provided at creation time. Only the logical AND | 292 * name of the cluster provided at creation time. Only the logical AND |
| 289 * operator is supported; space-separated items are treated as having an | 293 * operator is supported; space-separated items are treated as having an |
| 290 * implicit AND operator.Example filter:status.state = ACTIVE AND clusterName | 294 * implicit AND operator.Example filter:status.state = ACTIVE AND clusterName |
| 291 * = mycluster AND labels.env = staging AND labels.starred = * | 295 * = mycluster AND labels.env = staging AND labels.starred = * |
| 292 * | 296 * |
| 293 * [pageToken] - Optional. The standard List page token. | |
| 294 * | |
| 295 * [pageSize] - Optional. The standard List page size. | |
| 296 * | |
| 297 * Completes with a [ListClustersResponse]. | 297 * Completes with a [ListClustersResponse]. |
| 298 * | 298 * |
| 299 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 299 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 300 * error. | 300 * error. |
| 301 * | 301 * |
| 302 * If the used [http.Client] completes with an error when making a REST call, | 302 * If the used [http.Client] completes with an error when making a REST call, |
| 303 * this method will complete with the same error. | 303 * this method will complete with the same error. |
| 304 */ | 304 */ |
| 305 async.Future<ListClustersResponse> list(core.String projectId, core.String reg
ion, {core.String filter, core.String pageToken, core.int pageSize}) { | 305 async.Future<ListClustersResponse> list(core.String projectId, core.String reg
ion, {core.String pageToken, core.int pageSize, core.String filter}) { |
| 306 var _url = null; | 306 var _url = null; |
| 307 var _queryParams = new core.Map(); | 307 var _queryParams = new core.Map(); |
| 308 var _uploadMedia = null; | 308 var _uploadMedia = null; |
| 309 var _uploadOptions = null; | 309 var _uploadOptions = null; |
| 310 var _downloadOptions = commons.DownloadOptions.Metadata; | 310 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 311 var _body = null; | 311 var _body = null; |
| 312 | 312 |
| 313 if (projectId == null) { | 313 if (projectId == null) { |
| 314 throw new core.ArgumentError("Parameter projectId is required."); | 314 throw new core.ArgumentError("Parameter projectId is required."); |
| 315 } | 315 } |
| 316 if (region == null) { | 316 if (region == null) { |
| 317 throw new core.ArgumentError("Parameter region is required."); | 317 throw new core.ArgumentError("Parameter region is required."); |
| 318 } | 318 } |
| 319 if (filter != null) { | |
| 320 _queryParams["filter"] = [filter]; | |
| 321 } | |
| 322 if (pageToken != null) { | 319 if (pageToken != null) { |
| 323 _queryParams["pageToken"] = [pageToken]; | 320 _queryParams["pageToken"] = [pageToken]; |
| 324 } | 321 } |
| 325 if (pageSize != null) { | 322 if (pageSize != null) { |
| 326 _queryParams["pageSize"] = ["${pageSize}"]; | 323 _queryParams["pageSize"] = ["${pageSize}"]; |
| 327 } | 324 } |
| 325 if (filter != null) { |
| 326 _queryParams["filter"] = [filter]; |
| 327 } |
| 328 | 328 |
| 329 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regi
ons/' + commons.Escaper.ecapeVariable('$region') + '/clusters'; | 329 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regi
ons/' + commons.Escaper.ecapeVariable('$region') + '/clusters'; |
| 330 | 330 |
| 331 var _response = _requester.request(_url, | 331 var _response = _requester.request(_url, |
| 332 "GET", | 332 "GET", |
| 333 body: _body, | 333 body: _body, |
| 334 queryParams: _queryParams, | 334 queryParams: _queryParams, |
| 335 uploadOptions: _uploadOptions, | 335 uploadOptions: _uploadOptions, |
| 336 uploadMedia: _uploadMedia, | 336 uploadMedia: _uploadMedia, |
| 337 downloadOptions: _downloadOptions); | 337 downloadOptions: _downloadOptions); |
| (...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 602 * Lists regions/{region}/jobs in a project. | 602 * Lists regions/{region}/jobs in a project. |
| 603 * | 603 * |
| 604 * Request parameters: | 604 * Request parameters: |
| 605 * | 605 * |
| 606 * [projectId] - Required. The ID of the Google Cloud Platform project that | 606 * [projectId] - Required. The ID of the Google Cloud Platform project that |
| 607 * the job belongs to. | 607 * the job belongs to. |
| 608 * | 608 * |
| 609 * [region] - Required. The Cloud Dataproc region in which to handle the | 609 * [region] - Required. The Cloud Dataproc region in which to handle the |
| 610 * request. | 610 * request. |
| 611 * | 611 * |
| 612 * [pageSize] - Optional. The number of results to return in each response. |
| 613 * |
| 614 * [clusterName] - Optional. If set, the returned jobs list includes only jobs |
| 615 * that were submitted to the named cluster. |
| 616 * |
| 612 * [filter] - Optional. A filter constraining the jobs to list. Filters are | 617 * [filter] - Optional. A filter constraining the jobs to list. Filters are |
| 613 * case-sensitive and have the following syntax:field = value AND field = | 618 * case-sensitive and have the following syntax:field = value AND field = |
| 614 * value ...where field is status.state or labels.[KEY], and [KEY] is a label | 619 * value ...where field is status.state or labels.[KEY], and [KEY] is a label |
| 615 * key. value can be * to match all values. status.state can be either ACTIVE | 620 * key. value can be * to match all values. status.state can be either ACTIVE |
| 616 * or INACTIVE. Only the logical AND operator is supported; space-separated | 621 * or INACTIVE. Only the logical AND operator is supported; space-separated |
| 617 * items are treated as having an implicit AND operator.Example | 622 * items are treated as having an implicit AND operator.Example |
| 618 * filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = | 623 * filter:status.state = ACTIVE AND labels.env = staging AND labels.starred = |
| 619 * * | 624 * * |
| 620 * | 625 * |
| 621 * [jobStateMatcher] - Optional. Specifies enumerated categories of jobs to | 626 * [jobStateMatcher] - Optional. Specifies enumerated categories of jobs to |
| 622 * list (default = match ALL jobs). | 627 * list (default = match ALL jobs). |
| 623 * Possible string values are: | 628 * Possible string values are: |
| 624 * - "ALL" : A ALL. | 629 * - "ALL" : A ALL. |
| 625 * - "ACTIVE" : A ACTIVE. | 630 * - "ACTIVE" : A ACTIVE. |
| 626 * - "NON_ACTIVE" : A NON_ACTIVE. | 631 * - "NON_ACTIVE" : A NON_ACTIVE. |
| 627 * | 632 * |
| 628 * [pageToken] - Optional. The page token, returned by a previous call, to | 633 * [pageToken] - Optional. The page token, returned by a previous call, to |
| 629 * request the next page of results. | 634 * request the next page of results. |
| 630 * | 635 * |
| 631 * [pageSize] - Optional. The number of results to return in each response. | |
| 632 * | |
| 633 * [clusterName] - Optional. If set, the returned jobs list includes only jobs | |
| 634 * that were submitted to the named cluster. | |
| 635 * | |
| 636 * Completes with a [ListJobsResponse]. | 636 * Completes with a [ListJobsResponse]. |
| 637 * | 637 * |
| 638 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 638 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 639 * error. | 639 * error. |
| 640 * | 640 * |
| 641 * If the used [http.Client] completes with an error when making a REST call, | 641 * If the used [http.Client] completes with an error when making a REST call, |
| 642 * this method will complete with the same error. | 642 * this method will complete with the same error. |
| 643 */ | 643 */ |
| 644 async.Future<ListJobsResponse> list(core.String projectId, core.String region,
{core.String filter, core.String jobStateMatcher, core.String pageToken, core.i
nt pageSize, core.String clusterName}) { | 644 async.Future<ListJobsResponse> list(core.String projectId, core.String region,
{core.int pageSize, core.String clusterName, core.String filter, core.String jo
bStateMatcher, core.String pageToken}) { |
| 645 var _url = null; | 645 var _url = null; |
| 646 var _queryParams = new core.Map(); | 646 var _queryParams = new core.Map(); |
| 647 var _uploadMedia = null; | 647 var _uploadMedia = null; |
| 648 var _uploadOptions = null; | 648 var _uploadOptions = null; |
| 649 var _downloadOptions = commons.DownloadOptions.Metadata; | 649 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 650 var _body = null; | 650 var _body = null; |
| 651 | 651 |
| 652 if (projectId == null) { | 652 if (projectId == null) { |
| 653 throw new core.ArgumentError("Parameter projectId is required."); | 653 throw new core.ArgumentError("Parameter projectId is required."); |
| 654 } | 654 } |
| 655 if (region == null) { | 655 if (region == null) { |
| 656 throw new core.ArgumentError("Parameter region is required."); | 656 throw new core.ArgumentError("Parameter region is required."); |
| 657 } | 657 } |
| 658 if (pageSize != null) { |
| 659 _queryParams["pageSize"] = ["${pageSize}"]; |
| 660 } |
| 661 if (clusterName != null) { |
| 662 _queryParams["clusterName"] = [clusterName]; |
| 663 } |
| 658 if (filter != null) { | 664 if (filter != null) { |
| 659 _queryParams["filter"] = [filter]; | 665 _queryParams["filter"] = [filter]; |
| 660 } | 666 } |
| 661 if (jobStateMatcher != null) { | 667 if (jobStateMatcher != null) { |
| 662 _queryParams["jobStateMatcher"] = [jobStateMatcher]; | 668 _queryParams["jobStateMatcher"] = [jobStateMatcher]; |
| 663 } | 669 } |
| 664 if (pageToken != null) { | 670 if (pageToken != null) { |
| 665 _queryParams["pageToken"] = [pageToken]; | 671 _queryParams["pageToken"] = [pageToken]; |
| 666 } | 672 } |
| 667 if (pageSize != null) { | |
| 668 _queryParams["pageSize"] = ["${pageSize}"]; | |
| 669 } | |
| 670 if (clusterName != null) { | |
| 671 _queryParams["clusterName"] = [clusterName]; | |
| 672 } | |
| 673 | 673 |
| 674 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regi
ons/' + commons.Escaper.ecapeVariable('$region') + '/jobs'; | 674 _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regi
ons/' + commons.Escaper.ecapeVariable('$region') + '/jobs'; |
| 675 | 675 |
| 676 var _response = _requester.request(_url, | 676 var _response = _requester.request(_url, |
| 677 "GET", | 677 "GET", |
| 678 body: _body, | 678 body: _body, |
| 679 queryParams: _queryParams, | 679 queryParams: _queryParams, |
| 680 uploadOptions: _uploadOptions, | 680 uploadOptions: _uploadOptions, |
| 681 uploadMedia: _uploadMedia, | 681 uploadMedia: _uploadMedia, |
| 682 downloadOptions: _downloadOptions); | 682 downloadOptions: _downloadOptions); |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 * }/operations" to their service configuration. For backwards compatibility, | 951 * }/operations" to their service configuration. For backwards compatibility, |
| 952 * the default name includes the operations collection id, however overriding | 952 * the default name includes the operations collection id, however overriding |
| 953 * users must ensure the name binding is the parent resource, without the | 953 * users must ensure the name binding is the parent resource, without the |
| 954 * operations collection id. | 954 * operations collection id. |
| 955 * | 955 * |
| 956 * Request parameters: | 956 * Request parameters: |
| 957 * | 957 * |
| 958 * [name] - The name of the operation's parent resource. | 958 * [name] - The name of the operation's parent resource. |
| 959 * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations$". | 959 * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations$". |
| 960 * | 960 * |
| 961 * [filter] - The standard list filter. |
| 962 * |
| 961 * [pageToken] - The standard list page token. | 963 * [pageToken] - The standard list page token. |
| 962 * | 964 * |
| 963 * [pageSize] - The standard list page size. | 965 * [pageSize] - The standard list page size. |
| 964 * | 966 * |
| 965 * [filter] - The standard list filter. | |
| 966 * | |
| 967 * Completes with a [ListOperationsResponse]. | 967 * Completes with a [ListOperationsResponse]. |
| 968 * | 968 * |
| 969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 969 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 970 * error. | 970 * error. |
| 971 * | 971 * |
| 972 * If the used [http.Client] completes with an error when making a REST call, | 972 * If the used [http.Client] completes with an error when making a REST call, |
| 973 * this method will complete with the same error. | 973 * this method will complete with the same error. |
| 974 */ | 974 */ |
| 975 async.Future<ListOperationsResponse> list(core.String name, {core.String pageT
oken, core.int pageSize, core.String filter}) { | 975 async.Future<ListOperationsResponse> list(core.String name, {core.String filte
r, core.String pageToken, core.int pageSize}) { |
| 976 var _url = null; | 976 var _url = null; |
| 977 var _queryParams = new core.Map(); | 977 var _queryParams = new core.Map(); |
| 978 var _uploadMedia = null; | 978 var _uploadMedia = null; |
| 979 var _uploadOptions = null; | 979 var _uploadOptions = null; |
| 980 var _downloadOptions = commons.DownloadOptions.Metadata; | 980 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 981 var _body = null; | 981 var _body = null; |
| 982 | 982 |
| 983 if (name == null) { | 983 if (name == null) { |
| 984 throw new core.ArgumentError("Parameter name is required."); | 984 throw new core.ArgumentError("Parameter name is required."); |
| 985 } | 985 } |
| 986 if (filter != null) { |
| 987 _queryParams["filter"] = [filter]; |
| 988 } |
| 986 if (pageToken != null) { | 989 if (pageToken != null) { |
| 987 _queryParams["pageToken"] = [pageToken]; | 990 _queryParams["pageToken"] = [pageToken]; |
| 988 } | 991 } |
| 989 if (pageSize != null) { | 992 if (pageSize != null) { |
| 990 _queryParams["pageSize"] = ["${pageSize}"]; | 993 _queryParams["pageSize"] = ["${pageSize}"]; |
| 991 } | 994 } |
| 992 if (filter != null) { | |
| 993 _queryParams["filter"] = [filter]; | |
| 994 } | |
| 995 | 995 |
| 996 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); | 996 _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name'); |
| 997 | 997 |
| 998 var _response = _requester.request(_url, | 998 var _response = _requester.request(_url, |
| 999 "GET", | 999 "GET", |
| 1000 body: _body, | 1000 body: _body, |
| 1001 queryParams: _queryParams, | 1001 queryParams: _queryParams, |
| 1002 uploadOptions: _uploadOptions, | 1002 uploadOptions: _uploadOptions, |
| 1003 uploadMedia: _uploadMedia, | 1003 uploadMedia: _uploadMedia, |
| 1004 downloadOptions: _downloadOptions); | 1004 downloadOptions: _downloadOptions); |
| 1005 return _response.then((data) => new ListOperationsResponse.fromJson(data)); | 1005 return _response.then((data) => new ListOperationsResponse.fromJson(data)); |
| 1006 } | 1006 } |
| 1007 | 1007 |
| 1008 } | 1008 } |
| 1009 | 1009 |
| 1010 | 1010 |
| 1011 | 1011 |
| 1012 /** | 1012 /** |
| 1013 * Specifies the type and number of accelerator cards attached to the instances | 1013 * Specifies the type and number of accelerator cards attached to the instances |
| 1014 * of an instance group (see GPUs on Compute Engine). | 1014 * of an instance group (see GPUs on Compute Engine). |
| 1015 */ | 1015 */ |
| 1016 class AcceleratorConfig { | 1016 class AcceleratorConfig { |
| 1017 /** | 1017 /** |
| 1018 * The number of the accelerator cards of this type exposed to this instance. | 1018 * The number of the accelerator cards of this type exposed to this instance. |
| 1019 */ | 1019 */ |
| 1020 core.int acceleratorCount; | 1020 core.int acceleratorCount; |
| 1021 /** | 1021 /** |
| 1022 * Full or partial URI of the accelerator type resource to expose to this | 1022 * Full URL, partial URI, or short name of the accelerator type resource to |
| 1023 * instance. See Google Compute Engine AcceleratorTypes( | 1023 * expose to this instance. See Google Compute Engine AcceleratorTypes( |
| 1024 * /compute/docs/reference/beta/acceleratorTypes) | 1024 * /compute/docs/reference/beta/acceleratorTypes)Examples * |
| 1025 * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east
1-a/acceleratorTypes/nvidia-tesla-k80 |
| 1026 * * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80 |
| 1027 * * nvidia-tesla-k80 |
| 1025 */ | 1028 */ |
| 1026 core.String acceleratorTypeUri; | 1029 core.String acceleratorTypeUri; |
| 1027 | 1030 |
| 1028 AcceleratorConfig(); | 1031 AcceleratorConfig(); |
| 1029 | 1032 |
| 1030 AcceleratorConfig.fromJson(core.Map _json) { | 1033 AcceleratorConfig.fromJson(core.Map _json) { |
| 1031 if (_json.containsKey("acceleratorCount")) { | 1034 if (_json.containsKey("acceleratorCount")) { |
| 1032 acceleratorCount = _json["acceleratorCount"]; | 1035 acceleratorCount = _json["acceleratorCount"]; |
| 1033 } | 1036 } |
| 1034 if (_json.containsKey("acceleratorTypeUri")) { | 1037 if (_json.containsKey("acceleratorTypeUri")) { |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1614 * The Google Compute Engine metadata entries to add to all instances (see | 1617 * The Google Compute Engine metadata entries to add to all instances (see |
| 1615 * Project and instance metadata | 1618 * Project and instance metadata |
| 1616 * (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_
and_instance_metadata)). | 1619 * (https://cloud.google.com/compute/docs/storing-retrieving-metadata#project_
and_instance_metadata)). |
| 1617 */ | 1620 */ |
| 1618 core.Map<core.String, core.String> metadata; | 1621 core.Map<core.String, core.String> metadata; |
| 1619 /** | 1622 /** |
| 1620 * Optional. The Google Compute Engine network to be used for machine | 1623 * Optional. The Google Compute Engine network to be used for machine |
| 1621 * communications. Cannot be specified with subnetwork_uri. If neither | 1624 * communications. Cannot be specified with subnetwork_uri. If neither |
| 1622 * network_uri nor subnetwork_uri is specified, the "default" network of the | 1625 * network_uri nor subnetwork_uri is specified, the "default" network of the |
| 1623 * project is used, if it exists. Cannot be a "Custom Subnet Network" (see | 1626 * project is used, if it exists. Cannot be a "Custom Subnet Network" (see |
| 1624 * Using Subnetworks for more information). Example: | 1627 * Using Subnetworks for more information).A full URL, partial URI, or short |
| 1625 * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
default. | 1628 * name are valid. Examples: |
| 1629 * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/
default |
| 1630 * projects/[project_id]/regions/global/default |
| 1631 * default |
| 1626 */ | 1632 */ |
| 1627 core.String networkUri; | 1633 core.String networkUri; |
| 1628 /** | 1634 /** |
| 1629 * Optional. The service account of the instances. Defaults to the default | 1635 * Optional. The service account of the instances. Defaults to the default |
| 1630 * Google Compute Engine service account. Custom service accounts need | 1636 * Google Compute Engine service account. Custom service accounts need |
| 1631 * permissions equivalent to the folloing IAM roles: | 1637 * permissions equivalent to the folloing IAM roles: |
| 1632 * roles/logging.logWriter | 1638 * roles/logging.logWriter |
| 1633 * roles/storage.objectAdmin(see | 1639 * roles/storage.objectAdmin(see |
| 1634 * https://cloud.google.com/compute/docs/access/service-accounts#custom_servic
e_accounts | 1640 * https://cloud.google.com/compute/docs/access/service-accounts#custom_servic
e_accounts |
| 1635 * for more information). Example: | 1641 * for more information). Example: |
| 1636 * [account_id]@[project_id].iam.gserviceaccount.com | 1642 * [account_id]@[project_id].iam.gserviceaccount.com |
| 1637 */ | 1643 */ |
| 1638 core.String serviceAccount; | 1644 core.String serviceAccount; |
| 1639 /** | 1645 /** |
| 1640 * Optional. The URIs of service account scopes to be included in Google | 1646 * Optional. The URIs of service account scopes to be included in Google |
| 1641 * Compute Engine instances. The following base set of scopes is always | 1647 * Compute Engine instances. The following base set of scopes is always |
| 1642 * included: | 1648 * included: |
| 1643 * https://www.googleapis.com/auth/cloud.useraccounts.readonly | 1649 * https://www.googleapis.com/auth/cloud.useraccounts.readonly |
| 1644 * https://www.googleapis.com/auth/devstorage.read_write | 1650 * https://www.googleapis.com/auth/devstorage.read_write |
| 1645 * https://www.googleapis.com/auth/logging.writeIf no scopes are specified, | 1651 * https://www.googleapis.com/auth/logging.writeIf no scopes are specified, |
| 1646 * the following defaults are also provided: | 1652 * the following defaults are also provided: |
| 1647 * https://www.googleapis.com/auth/bigquery | 1653 * https://www.googleapis.com/auth/bigquery |
| 1648 * https://www.googleapis.com/auth/bigtable.admin.table | 1654 * https://www.googleapis.com/auth/bigtable.admin.table |
| 1649 * https://www.googleapis.com/auth/bigtable.data | 1655 * https://www.googleapis.com/auth/bigtable.data |
| 1650 * https://www.googleapis.com/auth/devstorage.full_control | 1656 * https://www.googleapis.com/auth/devstorage.full_control |
| 1651 */ | 1657 */ |
| 1652 core.List<core.String> serviceAccountScopes; | 1658 core.List<core.String> serviceAccountScopes; |
| 1653 /** | 1659 /** |
| 1654 * Optional. The Google Compute Engine subnetwork to be used for machine | 1660 * Optional. The Google Compute Engine subnetwork to be used for machine |
| 1655 * communications. Cannot be specified with network_uri. Example: | 1661 * communications. Cannot be specified with network_uri.A full URL, partial |
| 1656 * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east
1/sub0. | 1662 * URI, or short name are valid. Examples: |
| 1663 * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east
1/sub0 |
| 1664 * projects/[project_id]/regions/us-east1/sub0 |
| 1665 * sub0 |
| 1657 */ | 1666 */ |
| 1658 core.String subnetworkUri; | 1667 core.String subnetworkUri; |
| 1659 /** | 1668 /** |
| 1660 * The Google Compute Engine tags to add to all instances (see Tagging | 1669 * The Google Compute Engine tags to add to all instances (see Tagging |
| 1661 * instances). | 1670 * instances). |
| 1662 */ | 1671 */ |
| 1663 core.List<core.String> tags; | 1672 core.List<core.String> tags; |
| 1664 /** | 1673 /** |
| 1665 * Required. The zone where the Google Compute Engine cluster will be located. | 1674 * Optional. The zone where the Google Compute Engine cluster will be located. |
| 1666 * Example: | 1675 * On a create request, it is required in the "global" region. If omitted in a |
| 1667 * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]. | 1676 * non-global Cloud Dataproc region, the service will pick a zone in the |
| 1677 * corresponding GCE region. On a get request, zone will always be present.A |
| 1678 * full URL, partial URI, or short name are valid. Examples: |
| 1679 * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone] |
| 1680 * projects/[project_id]/zones/[zone] |
| 1681 * us-central1-f |
| 1668 */ | 1682 */ |
| 1669 core.String zoneUri; | 1683 core.String zoneUri; |
| 1670 | 1684 |
| 1671 GceClusterConfig(); | 1685 GceClusterConfig(); |
| 1672 | 1686 |
| 1673 GceClusterConfig.fromJson(core.Map _json) { | 1687 GceClusterConfig.fromJson(core.Map _json) { |
| 1674 if (_json.containsKey("internalIpOnly")) { | 1688 if (_json.containsKey("internalIpOnly")) { |
| 1675 internalIpOnly = _json["internalIpOnly"]; | 1689 internalIpOnly = _json["internalIpOnly"]; |
| 1676 } | 1690 } |
| 1677 if (_json.containsKey("metadata")) { | 1691 if (_json.containsKey("metadata")) { |
| (...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1941 * cluster_name, num_instances, and the instance group if not set by user | 1955 * cluster_name, num_instances, and the instance group if not set by user |
| 1942 * (recommended practice is to let Cloud Dataproc derive the name). | 1956 * (recommended practice is to let Cloud Dataproc derive the name). |
| 1943 */ | 1957 */ |
| 1944 core.List<core.String> instanceNames; | 1958 core.List<core.String> instanceNames; |
| 1945 /** | 1959 /** |
| 1946 * Optional. Specifies that this instance group contains preemptible | 1960 * Optional. Specifies that this instance group contains preemptible |
| 1947 * instances. | 1961 * instances. |
| 1948 */ | 1962 */ |
| 1949 core.bool isPreemptible; | 1963 core.bool isPreemptible; |
| 1950 /** | 1964 /** |
| 1951 * Required. The Google Compute Engine machine type used for cluster | 1965 * Optional. The Google Compute Engine machine type used for cluster |
| 1952 * instances. Example: | 1966 * instances.A full URL, partial URI, or short name are valid. Examples: |
| 1953 * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-
a/machineTypes/n1-standard-2. | 1967 * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-
a/machineTypes/n1-standard-2 |
| 1968 * projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2 |
| 1969 * n1-standard-2 |
| 1954 */ | 1970 */ |
| 1955 core.String machineTypeUri; | 1971 core.String machineTypeUri; |
| 1956 /** | 1972 /** |
| 1957 * Output-only. The config for Google Compute Engine Instance Group Manager | 1973 * Output-only. The config for Google Compute Engine Instance Group Manager |
| 1958 * that manages this group. This is only used for preemptible instance groups. | 1974 * that manages this group. This is only used for preemptible instance groups. |
| 1959 */ | 1975 */ |
| 1960 ManagedGroupConfig managedGroupConfig; | 1976 ManagedGroupConfig managedGroupConfig; |
| 1961 /** | 1977 /** |
| 1962 * Required. The number of VM instances in the instance group. For master | 1978 * Optional. The number of VM instances in the instance group. For master |
| 1963 * instance groups, must be set to 1. | 1979 * instance groups, must be set to 1. |
| 1964 */ | 1980 */ |
| 1965 core.int numInstances; | 1981 core.int numInstances; |
| 1966 | 1982 |
| 1967 InstanceGroupConfig(); | 1983 InstanceGroupConfig(); |
| 1968 | 1984 |
| 1969 InstanceGroupConfig.fromJson(core.Map _json) { | 1985 InstanceGroupConfig.fromJson(core.Map _json) { |
| 1970 if (_json.containsKey("accelerators")) { | 1986 if (_json.containsKey("accelerators")) { |
| 1971 accelerators = _json["accelerators"].map((value) => new AcceleratorConfig.
fromJson(value)).toList(); | 1987 accelerators = _json["accelerators"].map((value) => new AcceleratorConfig.
fromJson(value)).toList(); |
| 1972 } | 1988 } |
| (...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3263 } | 3279 } |
| 3264 if (state != null) { | 3280 if (state != null) { |
| 3265 _json["state"] = state; | 3281 _json["state"] = state; |
| 3266 } | 3282 } |
| 3267 if (trackingUrl != null) { | 3283 if (trackingUrl != null) { |
| 3268 _json["trackingUrl"] = trackingUrl; | 3284 _json["trackingUrl"] = trackingUrl; |
| 3269 } | 3285 } |
| 3270 return _json; | 3286 return _json; |
| 3271 } | 3287 } |
| 3272 } | 3288 } |
| OLD | NEW |