Skip to content

Commit 579b958

Browse files
feat: add Dataproc Serverless for Spark Batches API (#543)
Committer: @medb PiperOrigin-RevId: 402631995 Source-Link: googleapis/googleapis@95af2e4 Source-Link: googleapis/googleapis-gen@0ee7abd Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMGVlN2FiZDllY2QyOTUxZTk1ODMwMzY4MWE0YjI1MWE5NDgxMDdiNiJ9
1 parent f802be6 commit 579b958

File tree

41 files changed

+5757
-430
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+5757
-430
lines changed

packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/autoscaling_policies.proto

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -140,6 +140,15 @@ message AutoscalingPolicy {
140140

141141
// Optional. Describes how the autoscaler will operate for secondary workers.
142142
InstanceGroupAutoscalingPolicyConfig secondary_worker_config = 5 [(google.api.field_behavior) = OPTIONAL];
143+
144+
// Optional. The labels to associate with this autoscaling policy.
145+
// Label **keys** must contain 1 to 63 characters, and must conform to
146+
// [RFC 1035](https://www.ietf.org/rfc/rfc1035.txt).
147+
// Label **values** may be empty, but, if present, must contain 1 to 63
148+
// characters, and must conform to [RFC
149+
// 1035](https://www.ietf.org/rfc/rfc1035.txt). No more than 32 labels can be
150+
// associated with an autoscaling policy.
151+
map<string, string> labels = 6 [(google.api.field_behavior) = OPTIONAL];
143152
}
144153

145154
// Basic algorithm for autoscaling.

packages/google-cloud-dataproc/protos/google/cloud/dataproc/v1/clusters.proto

+45-23
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -63,6 +63,8 @@ service ClusterController {
6363
// Updates a cluster in a project. The returned
6464
// [Operation.metadata][google.longrunning.Operation.metadata] will be
6565
// [ClusterOperationMetadata](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#clusteroperationmetadata).
66+
// The cluster must be in a [`RUNNING`][google.cloud.dataproc.v1.ClusterStatus.State] state or an error
67+
// is returned.
6668
rpc UpdateCluster(UpdateClusterRequest) returns (google.longrunning.Operation) {
6769
option (google.api.http) = {
6870
patch: "/v1/projects/{project_id}/regions/{region}/clusters/{cluster_name}"
@@ -151,7 +153,7 @@ service ClusterController {
151153
}
152154

153155
// Describes the identifying information, config, and status of
154-
// a cluster of Compute Engine instances.
156+
// a Dataproc cluster
155157
message Cluster {
156158
// Required. The Google Cloud Platform project ID that the cluster belongs to.
157159
string project_id = 1 [(google.api.field_behavior) = REQUIRED];
@@ -199,10 +201,10 @@ message ClusterConfig {
199201
// ASIA, or EU) for your cluster's staging bucket according to the
200202
// Compute Engine zone where your cluster is deployed, and then create
201203
// and manage this project-level, per-location bucket (see
202-
// [Dataproc staging
203-
// bucket](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
204-
// **This field requires a Cloud Storage bucket name, not a URI to a Cloud
205-
// Storage bucket.**
204+
// [Dataproc staging and temp
205+
// buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
206+
// **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
207+
// a Cloud Storage bucket.**
206208
string config_bucket = 1 [(google.api.field_behavior) = OPTIONAL];
207209

208210
// Optional. A Cloud Storage bucket used to store ephemeral cluster and jobs data,
@@ -213,28 +215,30 @@ message ClusterConfig {
213215
// Compute Engine zone where your cluster is deployed, and then create
214216
// and manage this project-level, per-location bucket. The default bucket has
215217
// a TTL of 90 days, but you can use any TTL (or none) if you specify a
216-
// bucket.
217-
// **This field requires a Cloud Storage bucket name, not a URI to a Cloud
218-
// Storage bucket.**
218+
// bucket (see
219+
// [Dataproc staging and temp
220+
// buckets](https://cloud.google.com/dataproc/docs/concepts/configuring-clusters/staging-bucket)).
221+
// **This field requires a Cloud Storage bucket name, not a `gs://...` URI to
222+
// a Cloud Storage bucket.**
219223
string temp_bucket = 2 [(google.api.field_behavior) = OPTIONAL];
220224

221225
// Optional. The shared Compute Engine config settings for
222226
// all instances in a cluster.
223227
GceClusterConfig gce_cluster_config = 8 [(google.api.field_behavior) = OPTIONAL];
224228

225229
// Optional. The Compute Engine config settings for
226-
// the master instance in a cluster.
230+
// the cluster's master instance.
227231
InstanceGroupConfig master_config = 9 [(google.api.field_behavior) = OPTIONAL];
228232

229233
// Optional. The Compute Engine config settings for
230-
// worker instances in a cluster.
234+
// the cluster's worker instances.
231235
InstanceGroupConfig worker_config = 10 [(google.api.field_behavior) = OPTIONAL];
232236

233237
// Optional. The Compute Engine config settings for
234-
// additional worker instances in a cluster.
238+
// a cluster's secondary worker instances
235239
InstanceGroupConfig secondary_worker_config = 12 [(google.api.field_behavior) = OPTIONAL];
236240

237-
// Optional. The config settings for software inside the cluster.
241+
// Optional. The config settings for cluster software.
238242
SoftwareConfig software_config = 13 [(google.api.field_behavior) = OPTIONAL];
239243

240244
// Optional. Commands to execute on each node after config is
@@ -453,6 +457,10 @@ message GceClusterConfig {
453457
// Optional. Shielded Instance Config for clusters using [Compute Engine Shielded
454458
// VMs](https://cloud.google.com/security/shielded-cloud/shielded-vm).
455459
ShieldedInstanceConfig shielded_instance_config = 14 [(google.api.field_behavior) = OPTIONAL];
460+
461+
// Optional. Confidential Instance Config for clusters using [Confidential
462+
// VMs](https://cloud.google.com/compute/confidential-vm/docs).
463+
ConfidentialInstanceConfig confidential_instance_config = 15 [(google.api.field_behavior) = OPTIONAL];
456464
}
457465

458466
// Node Group Affinity for clusters using sole-tenant node groups.
@@ -483,6 +491,13 @@ message ShieldedInstanceConfig {
483491
bool enable_integrity_monitoring = 3 [(google.api.field_behavior) = OPTIONAL];
484492
}
485493

494+
// Confidential Instance Config for clusters using [Confidential
495+
// VMs](https://cloud.google.com/compute/confidential-vm/docs)
496+
message ConfidentialInstanceConfig {
497+
// Optional. Defines whether the instance should have confidential compute enabled.
498+
bool enable_confidential_compute = 1 [(google.api.field_behavior) = OPTIONAL];
499+
}
500+
486501
// The config settings for Compute Engine resources in
487502
// an instance group, such as a master or worker group.
488503
message InstanceGroupConfig {
@@ -674,6 +689,10 @@ message ClusterStatus {
674689
// The cluster encountered an error. It is not ready for use.
675690
ERROR = 3;
676691

692+
// The cluster has encountered an error while being updated. Jobs can
693+
// be submitted to the cluster, but the cluster cannot be updated.
694+
ERROR_DUE_TO_UPDATE = 9;
695+
677696
// The cluster is being deleted. It cannot be used.
678697
DELETING = 4;
679698

@@ -918,7 +937,7 @@ message CreateClusterRequest {
918937
// Required. The cluster to create.
919938
Cluster cluster = 2 [(google.api.field_behavior) = REQUIRED];
920939

921-
// Optional. A unique id used to identify the request. If the server receives two
940+
// Optional. A unique ID used to identify the request. If the server receives two
922941
// [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
923942
// with the same id, then the second request will be ignored and the
924943
// first [google.longrunning.Operation][google.longrunning.Operation] created and stored in the backend
@@ -927,9 +946,12 @@ message CreateClusterRequest {
927946
// It is recommended to always set this value to a
928947
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
929948
//
930-
// The id must contain only letters (a-z, A-Z), numbers (0-9),
949+
// The ID must contain only letters (a-z, A-Z), numbers (0-9),
931950
// underscores (_), and hyphens (-). The maximum length is 40 characters.
932951
string request_id = 4 [(google.api.field_behavior) = OPTIONAL];
952+
953+
// Optional. Failure action when primary worker creation fails.
954+
FailureAction action_on_failed_primary_workers = 5 [(google.api.field_behavior) = OPTIONAL];
933955
}
934956

935957
// A request to update a cluster.
@@ -1011,7 +1033,7 @@ message UpdateClusterRequest {
10111033
// </table>
10121034
google.protobuf.FieldMask update_mask = 4 [(google.api.field_behavior) = REQUIRED];
10131035

1014-
// Optional. A unique id used to identify the request. If the server
1036+
// Optional. A unique ID used to identify the request. If the server
10151037
// receives two
10161038
// [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
10171039
// with the same id, then the second request will be ignored and the
@@ -1021,7 +1043,7 @@ message UpdateClusterRequest {
10211043
// It is recommended to always set this value to a
10221044
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
10231045
//
1024-
// The id must contain only letters (a-z, A-Z), numbers (0-9),
1046+
// The ID must contain only letters (a-z, A-Z), numbers (0-9),
10251047
// underscores (_), and hyphens (-). The maximum length is 40 characters.
10261048
string request_id = 7 [(google.api.field_behavior) = OPTIONAL];
10271049
}
@@ -1042,7 +1064,7 @@ message StopClusterRequest {
10421064
// (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
10431065
string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL];
10441066

1045-
// Optional. A unique id used to identify the request. If the server
1067+
// Optional. A unique ID used to identify the request. If the server
10461068
// receives two
10471069
// [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
10481070
// with the same id, then the second request will be ignored and the
@@ -1052,7 +1074,7 @@ message StopClusterRequest {
10521074
// Recommendation: Set this value to a
10531075
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
10541076
//
1055-
// The id must contain only letters (a-z, A-Z), numbers (0-9),
1077+
// The ID must contain only letters (a-z, A-Z), numbers (0-9),
10561078
// underscores (_), and hyphens (-). The maximum length is 40 characters.
10571079
string request_id = 5 [(google.api.field_behavior) = OPTIONAL];
10581080
}
@@ -1073,7 +1095,7 @@ message StartClusterRequest {
10731095
// (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
10741096
string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL];
10751097

1076-
// Optional. A unique id used to identify the request. If the server
1098+
// Optional. A unique ID used to identify the request. If the server
10771099
// receives two
10781100
// [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
10791101
// with the same id, then the second request will be ignored and the
@@ -1083,7 +1105,7 @@ message StartClusterRequest {
10831105
// Recommendation: Set this value to a
10841106
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
10851107
//
1086-
// The id must contain only letters (a-z, A-Z), numbers (0-9),
1108+
// The ID must contain only letters (a-z, A-Z), numbers (0-9),
10871109
// underscores (_), and hyphens (-). The maximum length is 40 characters.
10881110
string request_id = 5 [(google.api.field_behavior) = OPTIONAL];
10891111
}
@@ -1104,7 +1126,7 @@ message DeleteClusterRequest {
11041126
// (with error NOT_FOUND) if cluster with specified UUID does not exist.
11051127
string cluster_uuid = 4 [(google.api.field_behavior) = OPTIONAL];
11061128

1107-
// Optional. A unique id used to identify the request. If the server
1129+
// Optional. A unique ID used to identify the request. If the server
11081130
// receives two
11091131
// [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
11101132
// with the same id, then the second request will be ignored and the
@@ -1114,7 +1136,7 @@ message DeleteClusterRequest {
11141136
// It is recommended to always set this value to a
11151137
// [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
11161138
//
1117-
// The id must contain only letters (a-z, A-Z), numbers (0-9),
1139+
// The ID must contain only letters (a-z, A-Z), numbers (0-9),
11181140
// underscores (_), and hyphens (-). The maximum length is 40 characters.
11191141
string request_id = 5 [(google.api.field_behavior) = OPTIONAL];
11201142
}

0 commit comments

Comments
 (0)