| Index: generated/googleapis/lib/dataproc/v1beta2.dart
|
| diff --git a/generated/googleapis/lib/dataproc/v1.dart b/generated/googleapis/lib/dataproc/v1beta2.dart
|
| similarity index 95%
|
| copy from generated/googleapis/lib/dataproc/v1.dart
|
| copy to generated/googleapis/lib/dataproc/v1beta2.dart
|
| index 59c9c3e349a408ae21dcdc85058919661b4d435f..b5d6dfe4f6cfe03cf6b773d8e30a440f207c6440 100644
|
| --- a/generated/googleapis/lib/dataproc/v1.dart
|
| +++ b/generated/googleapis/lib/dataproc/v1beta2.dart
|
| @@ -1,6 +1,6 @@
|
| // This is a generated file (see the discoveryapis_generator project).
|
|
|
| -library googleapis.dataproc.v1;
|
| +library googleapis.dataproc.v1beta2;
|
|
|
| import 'dart:core' as core;
|
| import 'dart:async' as async;
|
| @@ -12,7 +12,7 @@ import 'package:http/http.dart' as http;
|
| export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
|
| ApiRequestError, DetailedApiRequestError;
|
|
|
| -const core.String USER_AGENT = 'dart-api-client dataproc/v1';
|
| +const core.String USER_AGENT = 'dart-api-client dataproc/v1beta2';
|
|
|
| /** Manages Hadoop-based clusters and jobs on Google Cloud Platform. */
|
| class DataprocApi {
|
| @@ -96,7 +96,7 @@ class ProjectsRegionsClustersResourceApi {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters';
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -147,7 +147,7 @@ class ProjectsRegionsClustersResourceApi {
|
| throw new core.ArgumentError("Parameter clusterName is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName');
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -204,7 +204,7 @@ class ProjectsRegionsClustersResourceApi {
|
| throw new core.ArgumentError("Parameter clusterName is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName') + ':diagnose';
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName') + ':diagnose';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -255,7 +255,7 @@ class ProjectsRegionsClustersResourceApi {
|
| throw new core.ArgumentError("Parameter clusterName is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName');
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -326,7 +326,7 @@ class ProjectsRegionsClustersResourceApi {
|
| _queryParams["pageSize"] = ["${pageSize}"];
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters';
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -353,11 +353,11 @@ class ProjectsRegionsClustersResourceApi {
|
| *
|
| * [clusterName] - Required. The cluster name.
|
| *
|
| - * [updateMask] - Required. Specifies the path, relative to Cluster, of the
|
| - * field to update. For example, to change the number of workers in a cluster
|
| - * to 5, the update_mask parameter would be specified as
|
| - * config.worker_config.num_instances, and the PATCH request body would
|
| - * specify the new value, as follows:
|
| + * [updateMask] - Required. Specifies the path, relative to
|
| + * <code>Cluster</code>, of the field to update. For example, to change the
|
| + * number of workers in a cluster to 5, the <code>update_mask</code> parameter
|
| + * would be specified as <code>config.worker_config.num_instances</code>, and
|
| + * the PATCH request body would specify the new value, as follows:
|
| * {
|
| * "config":{
|
| * "workerConfig":{
|
| @@ -366,9 +366,9 @@ class ProjectsRegionsClustersResourceApi {
|
| * }
|
| * }
|
| * Similarly, to change the number of preemptible workers in a cluster to 5,
|
| - * the update_mask parameter would be
|
| - * config.secondary_worker_config.num_instances, and the PATCH request body
|
| - * would be set as follows:
|
| + * the <code>update_mask</code> parameter would be
|
| + * <code>config.secondary_worker_config.num_instances</code>, and the PATCH
|
| + * request body would be set as follows:
|
| * {
|
| * "config":{
|
| * "secondaryWorkerConfig":{
|
| @@ -376,14 +376,11 @@ class ProjectsRegionsClustersResourceApi {
|
| * }
|
| * }
|
| * }
|
| - * <strong>Note:</strong> Currently, only the following fields can be
|
| - * updated:<table> <tbody> <tr> <td><strong>Mask</strong></td>
|
| - * <td><strong>Purpose</strong></td> </tr> <tr>
|
| - * <td><strong><em>labels</em></strong></td> <td>Update labels</td> </tr>
|
| - * <tr> <td><strong><em>config.worker_config.num_instances</em></strong></td>
|
| - * <td>Resize primary worker group</td> </tr> <tr>
|
| - * <td><strong><em>config.secondary_worker_config.num_instances</em></strong></td>
|
| - * <td>Resize secondary worker group</td> </tr> </tbody> </table>
|
| + * <strong>Note:</strong> currently only some fields can be updated:
|
| + * |Mask|Purpose| |labels|Updates labels|
|
| + * |config.worker_config.num_instances|Resize primary worker group|
|
| + * |config.secondary_worker_config.num_instances|Resize secondary worker
|
| + * group|
|
| *
|
| * Completes with a [Operation].
|
| *
|
| @@ -417,7 +414,7 @@ class ProjectsRegionsClustersResourceApi {
|
| _queryParams["updateMask"] = [updateMask];
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName');
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/clusters/' + commons.Escaper.ecapeVariable('$clusterName');
|
|
|
| var _response = _requester.request(_url,
|
| "PATCH",
|
| @@ -483,7 +480,7 @@ class ProjectsRegionsJobsResourceApi {
|
| throw new core.ArgumentError("Parameter jobId is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + ':cancel';
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId') + ':cancel';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -535,7 +532,7 @@ class ProjectsRegionsJobsResourceApi {
|
| throw new core.ArgumentError("Parameter jobId is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId');
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -586,7 +583,7 @@ class ProjectsRegionsJobsResourceApi {
|
| throw new core.ArgumentError("Parameter jobId is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId');
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -671,7 +668,7 @@ class ProjectsRegionsJobsResourceApi {
|
| _queryParams["clusterName"] = [clusterName];
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs';
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs';
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -737,7 +734,7 @@ class ProjectsRegionsJobsResourceApi {
|
| _queryParams["updateMask"] = [updateMask];
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId');
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs/' + commons.Escaper.ecapeVariable('$jobId');
|
|
|
| var _response = _requester.request(_url,
|
| "PATCH",
|
| @@ -788,7 +785,7 @@ class ProjectsRegionsJobsResourceApi {
|
| throw new core.ArgumentError("Parameter region is required.");
|
| }
|
|
|
| - _url = 'v1/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs:submit';
|
| + _url = 'v1beta2/projects/' + commons.Escaper.ecapeVariable('$projectId') + '/regions/' + commons.Escaper.ecapeVariable('$region') + '/jobs:submit';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -845,7 +842,7 @@ class ProjectsRegionsOperationsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel';
|
| + _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$name') + ':cancel';
|
|
|
| var _response = _requester.request(_url,
|
| "POST",
|
| @@ -888,7 +885,7 @@ class ProjectsRegionsOperationsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
|
| + _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| var _response = _requester.request(_url,
|
| "DELETE",
|
| @@ -930,7 +927,7 @@ class ProjectsRegionsOperationsResourceApi {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
|
|
| - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
|
| + _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -958,12 +955,12 @@ class ProjectsRegionsOperationsResourceApi {
|
| * [name] - The name of the operation's parent resource.
|
| * Value must have pattern "^projects/[^/]+/regions/[^/]+/operations$".
|
| *
|
| - * [pageToken] - The standard list page token.
|
| - *
|
| * [pageSize] - The standard list page size.
|
| *
|
| * [filter] - The standard list filter.
|
| *
|
| + * [pageToken] - The standard list page token.
|
| + *
|
| * Completes with a [ListOperationsResponse].
|
| *
|
| * Completes with a [commons.ApiRequestError] if the API endpoint returned an
|
| @@ -972,7 +969,7 @@ class ProjectsRegionsOperationsResourceApi {
|
| * If the used [http.Client] completes with an error when making a REST call,
|
| * this method will complete with the same error.
|
| */
|
| - async.Future<ListOperationsResponse> list(core.String name, {core.String pageToken, core.int pageSize, core.String filter}) {
|
| + async.Future<ListOperationsResponse> list(core.String name, {core.int pageSize, core.String filter, core.String pageToken}) {
|
| var _url = null;
|
| var _queryParams = new core.Map();
|
| var _uploadMedia = null;
|
| @@ -983,17 +980,17 @@ class ProjectsRegionsOperationsResourceApi {
|
| if (name == null) {
|
| throw new core.ArgumentError("Parameter name is required.");
|
| }
|
| - if (pageToken != null) {
|
| - _queryParams["pageToken"] = [pageToken];
|
| - }
|
| if (pageSize != null) {
|
| _queryParams["pageSize"] = ["${pageSize}"];
|
| }
|
| if (filter != null) {
|
| _queryParams["filter"] = [filter];
|
| }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
|
|
| - _url = 'v1/' + commons.Escaper.ecapeVariableReserved('$name');
|
| + _url = 'v1beta2/' + commons.Escaper.ecapeVariableReserved('$name');
|
|
|
| var _response = _requester.request(_url,
|
| "GET",
|
| @@ -1019,9 +1016,12 @@ class AcceleratorConfig {
|
| */
|
| core.int acceleratorCount;
|
| /**
|
| - * Full or partial URI of the accelerator type resource to expose to this
|
| - * instance. See Google Compute Engine AcceleratorTypes(
|
| - * /compute/docs/reference/beta/acceleratorTypes)
|
| + * Full URL, partial URI, or short name of the accelerator type resource to
|
| + * expose to this instance. See Google Compute Engine AcceleratorTypes(
|
| + * /compute/docs/reference/beta/acceleratorTypes)Examples *
|
| + * https://www.googleapis.com/compute/beta/projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
|
| + * * projects/[project_id]/zones/us-east1-a/acceleratorTypes/nvidia-tesla-k80
|
| + * * nvidia-tesla-k80
|
| */
|
| core.String acceleratorTypeUri;
|
|
|
| @@ -1184,10 +1184,10 @@ class ClusterConfig {
|
| /**
|
| * Optional. Commands to execute on each node after config is completed. By
|
| * default, executables are run on master and all worker nodes. You can test a
|
| - * node's role metadata to run an executable on a master or worker node, as
|
| - * shown below using curl (you can also use wget):
|
| + * node's <code>role</code> metadata to run an executable on a master or
|
| + * worker node, as shown below using curl (you can also use wget):
|
| * ROLE=$(curl -H Metadata-Flavor:Google
|
| - * http://metadata/computeMetadata/v1/instance/attributes/dataproc-role)
|
| + * http://metadata/computeMetadata/v1beta2/instance/attributes/dataproc-role)
|
| * if [[ "${ROLE}" == 'Master' ]]; then
|
| * ... master specific actions ...
|
| * else
|
| @@ -1513,31 +1513,6 @@ class DiagnoseClusterRequest {
|
| }
|
| }
|
|
|
| -/** The location of diagnostic output. */
|
| -class DiagnoseClusterResults {
|
| - /**
|
| - * Output-only. The Google Cloud Storage URI of the diagnostic output. The
|
| - * output report is a plain text file with a summary of collected diagnostics.
|
| - */
|
| - core.String outputUri;
|
| -
|
| - DiagnoseClusterResults();
|
| -
|
| - DiagnoseClusterResults.fromJson(core.Map _json) {
|
| - if (_json.containsKey("outputUri")) {
|
| - outputUri = _json["outputUri"];
|
| - }
|
| - }
|
| -
|
| - core.Map<core.String, core.Object> toJson() {
|
| - final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
|
| - if (outputUri != null) {
|
| - _json["outputUri"] = outputUri;
|
| - }
|
| - return _json;
|
| - }
|
| -}
|
| -
|
| /** Specifies the config of disk options for a group of VM instances. */
|
| class DiskConfig {
|
| /** Optional. Size in GB of the boot disk (default is 500GB). */
|
| @@ -1621,8 +1596,11 @@ class GceClusterConfig {
|
| * communications. Cannot be specified with subnetwork_uri. If neither
|
| * network_uri nor subnetwork_uri is specified, the "default" network of the
|
| * project is used, if it exists. Cannot be a "Custom Subnet Network" (see
|
| - * Using Subnetworks for more information). Example:
|
| - * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default.
|
| + * Using Subnetworks for more information).A full URL, partial URI, or short
|
| + * name are valid. Examples:
|
| + * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/global/default
|
| + * projects/[project_id]/regions/global/default
|
| + * default
|
| */
|
| core.String networkUri;
|
| /**
|
| @@ -1652,8 +1630,11 @@ class GceClusterConfig {
|
| core.List<core.String> serviceAccountScopes;
|
| /**
|
| * Optional. The Google Compute Engine subnetwork to be used for machine
|
| - * communications. Cannot be specified with network_uri. Example:
|
| - * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0.
|
| + * communications. Cannot be specified with network_uri.A full URL, partial
|
| + * URI, or short name are valid. Examples:
|
| + * https://www.googleapis.com/compute/v1/projects/[project_id]/regions/us-east1/sub0
|
| + * projects/[project_id]/regions/us-east1/sub0
|
| + * sub0
|
| */
|
| core.String subnetworkUri;
|
| /**
|
| @@ -1662,9 +1643,14 @@ class GceClusterConfig {
|
| */
|
| core.List<core.String> tags;
|
| /**
|
| - * Required. The zone where the Google Compute Engine cluster will be located.
|
| - * Example:
|
| - * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone].
|
| + * Optional. The zone where the Google Compute Engine cluster will be located.
|
| + * On a create request, it is required in the "global" region. If omitted in a
|
| + * non-global Cloud Dataproc region, the service will pick a zone in the
|
| + * corresponding GCE region. On a get request, zone will always be present.A
|
| + * full URL, partial URI, or short name are valid. Examples:
|
| + * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/[zone]
|
| + * projects/[project_id]/zones/[zone]
|
| + * us-central1-f
|
| */
|
| core.String zoneUri;
|
|
|
| @@ -1948,9 +1934,11 @@ class InstanceGroupConfig {
|
| */
|
| core.bool isPreemptible;
|
| /**
|
| - * Required. The Google Compute Engine machine type used for cluster
|
| - * instances. Example:
|
| - * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2.
|
| + * Optional. The Google Compute Engine machine type used for cluster
|
| + * instances.A full URL, partial URI, or short name are valid. Examples:
|
| + * https://www.googleapis.com/compute/v1/projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
|
| + * projects/[project_id]/zones/us-east1-a/machineTypes/n1-standard-2
|
| + * n1-standard-2
|
| */
|
| core.String machineTypeUri;
|
| /**
|
| @@ -1959,7 +1947,7 @@ class InstanceGroupConfig {
|
| */
|
| ManagedGroupConfig managedGroupConfig;
|
| /**
|
| - * Required. The number of VM instances in the instance group. For master
|
| + * Optional. The number of VM instances in the instance group. For master
|
| * instance groups, must be set to 1.
|
| */
|
| core.int numInstances;
|
| @@ -2374,7 +2362,7 @@ class ListClustersResponse {
|
| /**
|
| * Output-only. This token is included in the response if there are more
|
| * results to fetch. To fetch additional results, provide this value as the
|
| - * page_token in a subsequent ListClustersRequest.
|
| + * page_token in a subsequent <code>ListClustersRequest</code>.
|
| */
|
| core.String nextPageToken;
|
|
|
|
|