google-cloud-dataproc-v1 1.12.0 → 1.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dataproc/v1/batch_controller/client.rb +12 -8
- data/lib/google/cloud/dataproc/v1/batch_controller/credentials.rb +3 -1
- data/lib/google/cloud/dataproc/v1/batch_controller/paths.rb +21 -0
- data/lib/google/cloud/dataproc/v1/batch_controller/rest/client.rb +12 -8
- data/lib/google/cloud/dataproc/v1/batches_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/batches_services_pb.rb +4 -2
- data/lib/google/cloud/dataproc/v1/session_controller/credentials.rb +3 -1
- data/lib/google/cloud/dataproc/v1/session_controller/paths.rb +21 -0
- data/lib/google/cloud/dataproc/v1/session_template_controller/credentials.rb +3 -1
- data/lib/google/cloud/dataproc/v1/session_template_controller/paths.rb +21 -0
- data/lib/google/cloud/dataproc/v1/session_templates_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/sessions_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/shared_pb.rb +1 -1
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/proto_docs/google/cloud/dataproc/v1/batches.rb +10 -8
- data/proto_docs/google/cloud/dataproc/v1/session_templates.rb +2 -2
- data/proto_docs/google/cloud/dataproc/v1/sessions.rb +3 -3
- data/proto_docs/google/cloud/dataproc/v1/shared.rb +31 -10
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4cf8f3046943c0d47bc3c87634df738f52e848fab9fc17c5c73d9a112e456069
|
|
4
|
+
data.tar.gz: 7052ee6ce97533aeb6b3081ab00aa12c7b00b6075511aa9e918519019fe4b8a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b827d8f9a72309619f49fcad494391065d277cfb43cb638f163563dfa2a624d34f7e09d70c5bb60622a5884a4b6308a84102bab120045e286e71b72b24ec6ce1
|
|
7
|
+
data.tar.gz: 4fb41b99d657f0bd1ab1ce4fe6e56c08e1634f4b2a4a85456036d8cf7045728240fe59f2a5069015ae2d50c85e7bc989efd432df1c231e7c5debabdb3afe6d4c
|
|
@@ -243,10 +243,9 @@ module Google
|
|
|
243
243
|
# @param request_id [::String]
|
|
244
244
|
# Optional. A unique ID used to identify the request. If the service
|
|
245
245
|
# receives two
|
|
246
|
-
#
|
|
247
|
-
#
|
|
248
|
-
#
|
|
249
|
-
# in the backend is returned.
|
|
246
|
+
# `CreateBatchRequests` with the same `request_id`, the second request is
|
|
247
|
+
# ignored and the operation that corresponds to the first Batch created and
|
|
248
|
+
# stored in the backend is returned.
|
|
250
249
|
#
|
|
251
250
|
# Recommendation: Set this value to a
|
|
252
251
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
|
@@ -447,10 +446,13 @@ module Google
|
|
|
447
446
|
# A filter is a logical expression constraining the values of various fields
|
|
448
447
|
# in each batch resource. Filters are case sensitive, and may contain
|
|
449
448
|
# multiple clauses combined with logical operators (AND/OR).
|
|
450
|
-
# Supported fields are `batch_id`, `batch_uuid`, `state`,
|
|
449
|
+
# Supported fields are `batch_id`, `batch_uuid`, `state`, `create_time`, and
|
|
450
|
+
# `labels`.
|
|
451
451
|
#
|
|
452
452
|
# e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"`
|
|
453
|
-
# filters for batches in state RUNNING that were created before 2023-01-01
|
|
453
|
+
# filters for batches in state RUNNING that were created before 2023-01-01.
|
|
454
|
+
# `state = RUNNING and labels.environment=production` filters for batches in
|
|
455
|
+
# state in a RUNNING state that have a production environment label.
|
|
454
456
|
#
|
|
455
457
|
# See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed
|
|
456
458
|
# description of the filter syntax and a list of supported comparisons.
|
|
@@ -533,8 +535,10 @@ module Google
|
|
|
533
535
|
end
|
|
534
536
|
|
|
535
537
|
##
|
|
536
|
-
# Deletes the batch workload resource. If the batch is not in
|
|
537
|
-
#
|
|
538
|
+
# Deletes the batch workload resource. If the batch is not in a
|
|
539
|
+
# `CANCELLED`, `SUCCEEDED` or `FAILED`
|
|
540
|
+
# {::Google::Cloud::Dataproc::V1::Batch::State `State`}, the delete operation fails
|
|
541
|
+
# and the response returns `FAILED_PRECONDITION`.
|
|
538
542
|
#
|
|
539
543
|
# @overload delete_batch(request, options = nil)
|
|
540
544
|
# Pass arguments to `delete_batch` via a request object, either of type
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the BatchController API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/dataproc",
|
|
31
|
+
"https://www.googleapis.com/auth/dataproc.read-only"
|
|
30
32
|
]
|
|
31
33
|
self.env_vars = [
|
|
32
34
|
"DATAPROC_CREDENTIALS",
|
|
@@ -43,6 +43,27 @@ module Google
|
|
|
43
43
|
"projects/#{project}/locations/#{location}/batches/#{batch}"
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
##
|
|
47
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
48
|
+
#
|
|
49
|
+
# The resource will be in the following format:
|
|
50
|
+
#
|
|
51
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
52
|
+
#
|
|
53
|
+
# @param project [String]
|
|
54
|
+
# @param location [String]
|
|
55
|
+
# @param key_ring [String]
|
|
56
|
+
# @param crypto_key [String]
|
|
57
|
+
#
|
|
58
|
+
# @return [::String]
|
|
59
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
|
60
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
61
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
62
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
63
|
+
|
|
64
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
65
|
+
end
|
|
66
|
+
|
|
46
67
|
##
|
|
47
68
|
# Create a fully-qualified Location resource string.
|
|
48
69
|
#
|
|
@@ -237,10 +237,9 @@ module Google
|
|
|
237
237
|
# @param request_id [::String]
|
|
238
238
|
# Optional. A unique ID used to identify the request. If the service
|
|
239
239
|
# receives two
|
|
240
|
-
#
|
|
241
|
-
#
|
|
242
|
-
#
|
|
243
|
-
# in the backend is returned.
|
|
240
|
+
# `CreateBatchRequests` with the same `request_id`, the second request is
|
|
241
|
+
# ignored and the operation that corresponds to the first Batch created and
|
|
242
|
+
# stored in the backend is returned.
|
|
244
243
|
#
|
|
245
244
|
# Recommendation: Set this value to a
|
|
246
245
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
|
@@ -427,10 +426,13 @@ module Google
|
|
|
427
426
|
# A filter is a logical expression constraining the values of various fields
|
|
428
427
|
# in each batch resource. Filters are case sensitive, and may contain
|
|
429
428
|
# multiple clauses combined with logical operators (AND/OR).
|
|
430
|
-
# Supported fields are `batch_id`, `batch_uuid`, `state`,
|
|
429
|
+
# Supported fields are `batch_id`, `batch_uuid`, `state`, `create_time`, and
|
|
430
|
+
# `labels`.
|
|
431
431
|
#
|
|
432
432
|
# e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"`
|
|
433
|
-
# filters for batches in state RUNNING that were created before 2023-01-01
|
|
433
|
+
# filters for batches in state RUNNING that were created before 2023-01-01.
|
|
434
|
+
# `state = RUNNING and labels.environment=production` filters for batches in
|
|
435
|
+
# state in a RUNNING state that have a production environment label.
|
|
434
436
|
#
|
|
435
437
|
# See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed
|
|
436
438
|
# description of the filter syntax and a list of supported comparisons.
|
|
@@ -506,8 +508,10 @@ module Google
|
|
|
506
508
|
end
|
|
507
509
|
|
|
508
510
|
##
|
|
509
|
-
# Deletes the batch workload resource. If the batch is not in
|
|
510
|
-
#
|
|
511
|
+
# Deletes the batch workload resource. If the batch is not in a
|
|
512
|
+
# `CANCELLED`, `SUCCEEDED` or `FAILED`
|
|
513
|
+
# {::Google::Cloud::Dataproc::V1::Batch::State `State`}, the delete operation fails
|
|
514
|
+
# and the response returns `FAILED_PRECONDITION`.
|
|
511
515
|
#
|
|
512
516
|
# @overload delete_batch(request, options = nil)
|
|
513
517
|
# Pass arguments to `delete_batch` via a request object, either of type
|
|
@@ -14,7 +14,7 @@ require 'google/protobuf/empty_pb'
|
|
|
14
14
|
require 'google/protobuf/timestamp_pb'
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
descriptor_data = "\n&google/cloud/dataproc/v1/batches.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x01\n\x12\x43reateBatchRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x33\n\x05\x62\x61tch\x18\x02 \x01(\x0b\x32\x1f.google.cloud.dataproc.v1.BatchB\x03\xe0\x41\x02\x12\x15\n\x08\x62\x61tch_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"F\n\x0fGetBatchRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xa8\x01\n\x12ListBatchesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"
|
|
17
|
+
descriptor_data = "\n&google/cloud/dataproc/v1/batches.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb0\x01\n\x12\x43reateBatchRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x33\n\x05\x62\x61tch\x18\x02 \x01(\x0b\x32\x1f.google.cloud.dataproc.v1.BatchB\x03\xe0\x41\x02\x12\x15\n\x08\x62\x61tch_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"F\n\x0fGetBatchRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\xa8\x01\n\x12ListBatchesRequest\x12\x35\n\x06parent\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\x12\x1d\x64\x61taproc.googleapis.com/Batch\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x7f\n\x13ListBatchesResponse\x12\x35\n\x07\x62\x61tches\x18\x01 \x03(\x0b\x32\x1f.google.cloud.dataproc.v1.BatchB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x0bunreachable\x18\x03 \x03(\tB\x03\xe0\x41\x03\"I\n\x12\x44\x65leteBatchRequest\x12\x33\n\x04name\x18\x01 \x01(\tB%\xe0\x41\x02\xfa\x41\x1f\n\x1d\x64\x61taproc.googleapis.com/Batch\"\x9f\x0b\n\x05\x42\x61tch\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04uuid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x44\n\rpyspark_batch\x18\x04 \x01(\x0b\x32&.google.cloud.dataproc.v1.PySparkBatchB\x03\xe0\x41\x01H\x00\x12@\n\x0bspark_batch\x18\x05 \x01(\x0b\x32$.google.cloud.dataproc.v1.SparkBatchB\x03\xe0\x41\x01H\x00\x12\x43\n\rspark_r_batch\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.SparkRBatchB\x03\xe0\x41\x01H\x00\x12G\n\x0fspark_sql_batch\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.SparkSqlBatchB\x03\xe0\x41\x01H\x00\x12U\n\x16pyspark_notebook_batch\x18\x13 \x01(\x0b\x32..google.cloud.dataproc.v1.PySparkNotebookBatchB\x03\xe0\x41\x01H\x00\x12@\n\x0cruntime_info\x18\x08 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xe0\x41\x03\x12\x39\n\x05state\x18\t \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstate_time\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12@\n\x06labels\x18\r \x03(\x0b\x32+.google.cloud.dataproc.v1.Batch.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x0e \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\x0f \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x16\n\toperation\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12H\n\rstate_history\x18\x11 \x03(\x0b\x32,.google.cloud.dataproc.v1.Batch.StateHistoryB\x03\xe0\x41\x03\x1a\xa0\x01\n\x0cStateHistory\x12\x39\n\x05state\x18\x01 \x01(\x0e\x32%.google.cloud.dataproc.v1.Batch.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"r\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07PENDING\x10\x01\x12\x0b\n\x07RUNNING\x10\x02\x12\x0e\n\nCANCELLING\x10\x03\x12\r\n\tCANCELLED\x10\x04\x12\r\n\tSUCCEEDED\x10\x05\x12\n\n\x06\x46\x41ILED\x10\x06:[\xea\x41X\n\x1d\x64\x61taproc.googleapis.com/Batch\x12\x37projects/{project}/locations/{location}/batches/{batch}B\x0e\n\x0c\x62\x61tch_config\"\xb2\x01\n\x0cPySparkBatch\x12!\n\x14main_python_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x1d\n\x10python_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\"\xb5\x01\n\nSparkBatch\x12 \n\x11main_jar_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\nmain_class\x18\x02 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x11\n\x04\x61rgs\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x42\x08\n\x06\x64river\"q\n\x0bSparkRBatch\x12\x1c\n\x0fmain_r_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x11\n\x04\x61rgs\x18\x02 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\"\xda\x01\n\rSparkSqlBatch\x12\x1b\n\x0equery_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12Y\n\x0fquery_variables\x18\x02 \x03(\x0b\x32;.google.cloud.dataproc.v1.SparkSqlBatch.QueryVariablesEntryB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x1a\x35\n\x13QueryVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa4\x02\n\x14PySparkNotebookBatch\x12\x1e\n\x11notebook_file_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12O\n\x06params\x18\x02 \x03(\x0b\x32:.google.cloud.dataproc.v1.PySparkNotebookBatch.ParamsEntryB\x03\xe0\x41\x01\x12\x1d\n\x10python_file_uris\x18\x03 \x03(\tB\x03\xe0\x41\x01\x12\x1a\n\rjar_file_uris\x18\x04 \x03(\tB\x03\xe0\x41\x01\x12\x16\n\tfile_uris\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x19\n\x0c\x61rchive_uris\x18\x06 \x03(\tB\x03\xe0\x41\x01\x1a-\n\x0bParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x32\xfb\x06\n\x0f\x42\x61tchController\x12\xea\x01\n\x0b\x43reateBatch\x12,.google.cloud.dataproc.v1.CreateBatchRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\xca\x41\x38\n\x05\x42\x61tch\x12/google.cloud.dataproc.v1.BatchOperationMetadata\xda\x41\x15parent,batch,batch_id\x82\xd3\xe4\x93\x02\x34\"+/v1/{parent=projects/*/locations/*}/batches:\x05\x62\x61tch\x12\x92\x01\n\x08GetBatch\x12).google.cloud.dataproc.v1.GetBatchRequest\x1a\x1f.google.cloud.dataproc.v1.Batch\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-\x12+/v1/{name=projects/*/locations/*/batches/*}\x12\xa8\x01\n\x0bListBatches\x12,.google.cloud.dataproc.v1.ListBatchesRequest\x1a-.google.cloud.dataproc.v1.ListBatchesResponse\"<\xda\x41\x06parent\x82\xd3\xe4\x93\x02-\x12+/v1/{parent=projects/*/locations/*}/batches\x12\x8f\x01\n\x0b\x44\x65leteBatch\x12,.google.cloud.dataproc.v1.DeleteBatchRequest\x1a\x16.google.protobuf.Empty\":\xda\x41\x04name\x82\xd3\xe4\x93\x02-*+/v1/{name=projects/*/locations/*/batches/*}\x1a\xa8\x01\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataproc,https://www.googleapis.com/auth/dataproc.read-onlyBk\n\x1c\x63om.google.cloud.dataproc.v1B\x0c\x42\x61tchesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
|
|
18
18
|
|
|
19
19
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
20
20
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -39,8 +39,10 @@ module Google
|
|
|
39
39
|
rpc :GetBatch, ::Google::Cloud::Dataproc::V1::GetBatchRequest, ::Google::Cloud::Dataproc::V1::Batch
|
|
40
40
|
# Lists batch workloads.
|
|
41
41
|
rpc :ListBatches, ::Google::Cloud::Dataproc::V1::ListBatchesRequest, ::Google::Cloud::Dataproc::V1::ListBatchesResponse
|
|
42
|
-
# Deletes the batch workload resource. If the batch is not in
|
|
43
|
-
#
|
|
42
|
+
# Deletes the batch workload resource. If the batch is not in a
|
|
43
|
+
# `CANCELLED`, `SUCCEEDED` or `FAILED`
|
|
44
|
+
# [`State`][google.cloud.dataproc.v1.Batch.State], the delete operation fails
|
|
45
|
+
# and the response returns `FAILED_PRECONDITION`.
|
|
44
46
|
rpc :DeleteBatch, ::Google::Cloud::Dataproc::V1::DeleteBatchRequest, ::Google::Protobuf::Empty
|
|
45
47
|
end
|
|
46
48
|
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the SessionController API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/dataproc",
|
|
31
|
+
"https://www.googleapis.com/auth/dataproc.read-only"
|
|
30
32
|
]
|
|
31
33
|
self.env_vars = [
|
|
32
34
|
"DATAPROC_CREDENTIALS",
|
|
@@ -24,6 +24,27 @@ module Google
|
|
|
24
24
|
module SessionController
|
|
25
25
|
# Path helper methods for the SessionController API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param key_ring [String]
|
|
37
|
+
# @param crypto_key [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
44
|
+
|
|
45
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
46
|
+
end
|
|
47
|
+
|
|
27
48
|
##
|
|
28
49
|
# Create a fully-qualified Location resource string.
|
|
29
50
|
#
|
|
@@ -26,7 +26,9 @@ module Google
|
|
|
26
26
|
# Credentials for the SessionTemplateController API.
|
|
27
27
|
class Credentials < ::Google::Auth::Credentials
|
|
28
28
|
self.scope = [
|
|
29
|
-
"https://www.googleapis.com/auth/cloud-platform"
|
|
29
|
+
"https://www.googleapis.com/auth/cloud-platform",
|
|
30
|
+
"https://www.googleapis.com/auth/dataproc",
|
|
31
|
+
"https://www.googleapis.com/auth/dataproc.read-only"
|
|
30
32
|
]
|
|
31
33
|
self.env_vars = [
|
|
32
34
|
"DATAPROC_CREDENTIALS",
|
|
@@ -24,6 +24,27 @@ module Google
|
|
|
24
24
|
module SessionTemplateController
|
|
25
25
|
# Path helper methods for the SessionTemplateController API.
|
|
26
26
|
module Paths
|
|
27
|
+
##
|
|
28
|
+
# Create a fully-qualified CryptoKey resource string.
|
|
29
|
+
#
|
|
30
|
+
# The resource will be in the following format:
|
|
31
|
+
#
|
|
32
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
33
|
+
#
|
|
34
|
+
# @param project [String]
|
|
35
|
+
# @param location [String]
|
|
36
|
+
# @param key_ring [String]
|
|
37
|
+
# @param crypto_key [String]
|
|
38
|
+
#
|
|
39
|
+
# @return [::String]
|
|
40
|
+
def crypto_key_path project:, location:, key_ring:, crypto_key:
|
|
41
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
|
42
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
|
43
|
+
raise ::ArgumentError, "key_ring cannot contain /" if key_ring.to_s.include? "/"
|
|
44
|
+
|
|
45
|
+
"projects/#{project}/locations/#{location}/keyRings/#{key_ring}/cryptoKeys/#{crypto_key}"
|
|
46
|
+
end
|
|
47
|
+
|
|
27
48
|
##
|
|
28
49
|
# Create a fully-qualified Location resource string.
|
|
29
50
|
#
|
|
@@ -14,7 +14,7 @@ require 'google/protobuf/empty_pb'
|
|
|
14
14
|
require 'google/protobuf/timestamp_pb'
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
descriptor_data = "\n0google/cloud/dataproc/v1/session_templates.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/dataproc/v1/sessions.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x01\n\x1c\x43reateSessionTemplateRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\x12H\n\x10session_template\x18\x03 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"h\n\x1cUpdateSessionTemplateRequest\x12H\n\x10session_template\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"Z\n\x19GetSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\xa4\x01\n\x1bListSessionTemplatesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1cListSessionTemplatesResponse\x12I\n\x11session_templates\x18\x01 \x03(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x1c\x44\x65leteSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\
|
|
17
|
+
descriptor_data = "\n0google/cloud/dataproc/v1/session_templates.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\'google/cloud/dataproc/v1/sessions.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xa9\x01\n\x1c\x43reateSessionTemplateRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\x12H\n\x10session_template\x18\x03 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"h\n\x1cUpdateSessionTemplateRequest\x12H\n\x10session_template\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x02\"Z\n\x19GetSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\xa4\x01\n\x1bListSessionTemplatesRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'dataproc.googleapis.com/SessionTemplate\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x82\x01\n\x1cListSessionTemplatesResponse\x12I\n\x11session_templates\x18\x01 \x03(\x0b\x32).google.cloud.dataproc.v1.SessionTemplateB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x1c\x44\x65leteSessionTemplateRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\"\x87\x06\n\x0fSessionTemplate\x12\x14\n\x04name\x18\x01 \x01(\tB\x06\xe0\x41\x02\xe0\x41\x08\x12\x18\n\x0b\x64\x65scription\x18\t \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x0fjupyter_session\x18\x03 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x03\xe0\x41\x01H\x00\x12R\n\x15spark_connect_session\x18\x0b \x01(\x0b\x32,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xe0\x41\x01H\x00\x12\x14\n\x07\x63reator\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12J\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.cloud.dataproc.v1.SessionTemplate.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\x08 \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_time\x18\n \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x11\n\x04uuid\x18\x0c \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:q\xea\x41n\n\'dataproc.googleapis.com/SessionTemplate\x12\x43projects/{project}/locations/{location}/sessionTemplates/{template}B\x10\n\x0esession_config2\xd8\t\n\x19SessionTemplateController\x12\xe4\x01\n\x15\x43reateSessionTemplate\x12\x36.google.cloud.dataproc.v1.CreateSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"h\xda\x41\x17parent,session_template\x82\xd3\xe4\x93\x02H\"4/v1/{parent=projects/*/locations/*}/sessionTemplates:\x10session_template\x12\xee\x01\n\x15UpdateSessionTemplate\x12\x36.google.cloud.dataproc.v1.UpdateSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"r\xda\x41\x10session_template\x82\xd3\xe4\x93\x02Y2E/v1/{session_template.name=projects/*/locations/*/sessionTemplates/*}:\x10session_template\x12\xb9\x01\n\x12GetSessionTemplate\x12\x33.google.cloud.dataproc.v1.GetSessionTemplateRequest\x1a).google.cloud.dataproc.v1.SessionTemplate\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{name=projects/*/locations/*/sessionTemplates/*}\x12\xcc\x01\n\x14ListSessionTemplates\x12\x35.google.cloud.dataproc.v1.ListSessionTemplatesRequest\x1a\x36.google.cloud.dataproc.v1.ListSessionTemplatesResponse\"E\xda\x41\x06parent\x82\xd3\xe4\x93\x02\x36\x12\x34/v1/{parent=projects/*/locations/*}/sessionTemplates\x12\xac\x01\n\x15\x44\x65leteSessionTemplate\x12\x36.google.cloud.dataproc.v1.DeleteSessionTemplateRequest\x1a\x16.google.protobuf.Empty\"C\xda\x41\x04name\x82\xd3\xe4\x93\x02\x36*4/v1/{name=projects/*/locations/*/sessionTemplates/*}\x1a\xa8\x01\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataproc,https://www.googleapis.com/auth/dataproc.read-onlyBt\n\x1c\x63om.google.cloud.dataproc.v1B\x15SessionTemplatesProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
|
|
18
18
|
|
|
19
19
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
20
20
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -13,7 +13,7 @@ require 'google/longrunning/operations_pb'
|
|
|
13
13
|
require 'google/protobuf/timestamp_pb'
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
descriptor_data = "\n\'google/cloud/dataproc/v1/sessions.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\x01\n\x14\x43reateSessionRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x37\n\x07session\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x02\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"J\n\x11GetSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\"\x94\x01\n\x13ListSessionsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"i\n\x14ListSessionsResponse\x12\x38\n\x08sessions\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x17TerminateSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"f\n\x14\x44\x65leteSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa7\n\n\x07Session\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\
|
|
16
|
+
descriptor_data = "\n\'google/cloud/dataproc/v1/sessions.proto\x12\x18google.cloud.dataproc.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a%google/cloud/dataproc/v1/shared.proto\x1a#google/longrunning/operations.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xba\x01\n\x14\x43reateSessionRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x37\n\x07session\x18\x02 \x01(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x02\x12\x17\n\nsession_id\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"J\n\x11GetSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\"\x94\x01\n\x13ListSessionsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1f\x64\x61taproc.googleapis.com/Session\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\"i\n\x14ListSessionsResponse\x12\x38\n\x08sessions\x18\x01 \x03(\x0b\x32!.google.cloud.dataproc.v1.SessionB\x03\xe0\x41\x03\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x17TerminateSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"f\n\x14\x44\x65leteSessionRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1f\x64\x61taproc.googleapis.com/Session\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xa7\n\n\x07Session\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x08\x12\x11\n\x04uuid\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12G\n\x0fjupyter_session\x18\x04 \x01(\x0b\x32\'.google.cloud.dataproc.v1.JupyterConfigB\x03\xe0\x41\x01H\x00\x12R\n\x15spark_connect_session\x18\x11 \x01(\x0b\x32,.google.cloud.dataproc.v1.SparkConnectConfigB\x03\xe0\x41\x01H\x00\x12@\n\x0cruntime_info\x18\x06 \x01(\x0b\x32%.google.cloud.dataproc.v1.RuntimeInfoB\x03\xe0\x41\x03\x12;\n\x05state\x18\x07 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x33\n\nstate_time\x18\t \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x14\n\x07\x63reator\x18\n \x01(\tB\x03\xe0\x41\x03\x12\x42\n\x06labels\x18\x0b \x03(\x0b\x32-.google.cloud.dataproc.v1.Session.LabelsEntryB\x03\xe0\x41\x01\x12\x44\n\x0eruntime_config\x18\x0c \x01(\x0b\x32\'.google.cloud.dataproc.v1.RuntimeConfigB\x03\xe0\x41\x01\x12L\n\x12\x65nvironment_config\x18\r \x01(\x0b\x32+.google.cloud.dataproc.v1.EnvironmentConfigB\x03\xe0\x41\x01\x12\x11\n\x04user\x18\x0e \x01(\tB\x03\xe0\x41\x01\x12Q\n\rstate_history\x18\x0f \x03(\x0b\x32\x35.google.cloud.dataproc.v1.Session.SessionStateHistoryB\x03\xe0\x41\x03\x12I\n\x10session_template\x18\x10 \x01(\tB/\xe0\x41\x01\xfa\x41)\n\'dataproc.googleapis.com/SessionTemplate\x1a\xa9\x01\n\x13SessionStateHistory\x12;\n\x05state\x18\x01 \x01(\x0e\x32\'.google.cloud.dataproc.v1.Session.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\x39\n\x10state_start_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"e\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0f\n\x0bTERMINATING\x10\x03\x12\x0e\n\nTERMINATED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05:`\xea\x41]\n\x1f\x64\x61taproc.googleapis.com/Session\x12:projects/{project}/locations/{location}/sessions/{session}B\x10\n\x0esession_config\"\xa8\x01\n\rJupyterConfig\x12\x43\n\x06kernel\x18\x01 \x01(\x0e\x32..google.cloud.dataproc.v1.JupyterConfig.KernelB\x03\xe0\x41\x01\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x01\"7\n\x06Kernel\x12\x16\n\x12KERNEL_UNSPECIFIED\x10\x00\x12\n\n\x06PYTHON\x10\x01\x12\t\n\x05SCALA\x10\x02\"\x14\n\x12SparkConnectConfig2\xd3\t\n\x11SessionController\x12\xf9\x01\n\rCreateSession\x12..google.cloud.dataproc.v1.CreateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x19parent,session,session_id\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/sessions:\x07session\x12\x99\x01\n\nGetSession\x12+.google.cloud.dataproc.v1.GetSessionRequest\x1a!.google.cloud.dataproc.v1.Session\";\xda\x41\x04name\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/sessions/*}\x12\xac\x01\n\x0cListSessions\x12-.google.cloud.dataproc.v1.ListSessionsRequest\x1a..google.cloud.dataproc.v1.ListSessionsResponse\"=\xda\x41\x06parent\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/sessions\x12\xee\x01\n\x10TerminateSession\x12\x31.google.cloud.dataproc.v1.TerminateSessionRequest\x1a\x1d.google.longrunning.Operation\"\x87\x01\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02;\"6/v1/{name=projects/*/locations/*/sessions/*}:terminate:\x01*\x12\xda\x01\n\rDeleteSession\x12..google.cloud.dataproc.v1.DeleteSessionRequest\x1a\x1d.google.longrunning.Operation\"z\xca\x41<\n\x07Session\x12\x31google.cloud.dataproc.v1.SessionOperationMetadata\xda\x41\x04name\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/sessions/*}\x1a\xa8\x01\xca\x41\x17\x64\x61taproc.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dataproc,https://www.googleapis.com/auth/dataproc.read-onlyBl\n\x1c\x63om.google.cloud.dataproc.v1B\rSessionsProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpbb\x06proto3"
|
|
17
17
|
|
|
18
18
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
19
19
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -10,7 +10,7 @@ require 'google/protobuf/duration_pb'
|
|
|
10
10
|
require 'google/protobuf/timestamp_pb'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
descriptor_data = "\n%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x02\n\rRuntimeConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\nproperties\x18\x03 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xe0\x41\x01\x12J\n\x11repository_config\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xe0\x41\x01\x12J\n\x11\x61utotuning_config\x18\x06 \x01(\x0b\x32*.google.cloud.dataproc.v1.AutotuningConfigB\x03\xe0\x41\x01\x12\x13\n\x06\x63ohort\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x11\x45nvironmentConfig\x12H\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.ExecutionConfigB\x03\xe0\x41\x01\x12L\n\x12peripherals_config\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xe0\x41\x01\"\
|
|
13
|
+
descriptor_data = "\n%google/cloud/dataproc/v1/shared.proto\x12\x18google.cloud.dataproc.v1\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf5\x02\n\rRuntimeConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0f\x63ontainer_image\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12P\n\nproperties\x18\x03 \x03(\x0b\x32\x37.google.cloud.dataproc.v1.RuntimeConfig.PropertiesEntryB\x03\xe0\x41\x01\x12J\n\x11repository_config\x18\x05 \x01(\x0b\x32*.google.cloud.dataproc.v1.RepositoryConfigB\x03\xe0\x41\x01\x12J\n\x11\x61utotuning_config\x18\x06 \x01(\x0b\x32*.google.cloud.dataproc.v1.AutotuningConfigB\x03\xe0\x41\x01\x12\x13\n\x06\x63ohort\x18\x07 \x01(\tB\x03\xe0\x41\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xab\x01\n\x11\x45nvironmentConfig\x12H\n\x10\x65xecution_config\x18\x01 \x01(\x0b\x32).google.cloud.dataproc.v1.ExecutionConfigB\x03\xe0\x41\x01\x12L\n\x12peripherals_config\x18\x02 \x01(\x0b\x32+.google.cloud.dataproc.v1.PeripheralsConfigB\x03\xe0\x41\x01\"\xc0\x04\n\x0f\x45xecutionConfig\x12\x1c\n\x0fservice_account\x18\x02 \x01(\tB\x03\xe0\x41\x01\x12\x1a\n\x0bnetwork_uri\x18\x04 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x1d\n\x0esubnetwork_uri\x18\x05 \x01(\tB\x03\xe0\x41\x01H\x00\x12\x19\n\x0cnetwork_tags\x18\x06 \x03(\tB\x03\xe0\x41\x01\x12:\n\x07kms_key\x18\x07 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x30\n\x08idle_ttl\x18\x08 \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12+\n\x03ttl\x18\t \x01(\x0b\x32\x19.google.protobuf.DurationB\x03\xe0\x41\x01\x12\x1b\n\x0estaging_bucket\x18\n \x01(\tB\x03\xe0\x41\x01\x12R\n\x15\x61uthentication_config\x18\x0b \x01(\x0b\x32..google.cloud.dataproc.v1.AuthenticationConfigB\x03\xe0\x41\x01\x12\x66\n\x15resource_manager_tags\x18\x0c \x03(\x0b\x32\x42.google.cloud.dataproc.v1.ExecutionConfig.ResourceManagerTagsEntryB\x03\xe0\x41\x01\x1a:\n\x18ResourceManagerTagsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07network\"9\n\x18SparkHistoryServerConfig\x12\x1d\n\x10\x64\x61taproc_cluster\x18\x01 \x01(\tB\x03\xe0\x41\x01\"\xb6\x01\n\x11PeripheralsConfig\x12\x43\n\x11metastore_service\x18\x01 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n metastore.googleapis.com/Service\x12\\\n\x1bspark_history_server_config\x18\x02 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.SparkHistoryServerConfigB\x03\xe0\x41\x01\"\xd7\x02\n\x0bRuntimeInfo\x12L\n\tendpoints\x18\x01 \x03(\x0b\x32\x34.google.cloud.dataproc.v1.RuntimeInfo.EndpointsEntryB\x03\xe0\x41\x03\x12\x17\n\noutput_uri\x18\x02 \x01(\tB\x03\xe0\x41\x03\x12\"\n\x15\x64iagnostic_output_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x46\n\x11\x61pproximate_usage\x18\x06 \x01(\x0b\x32&.google.cloud.dataproc.v1.UsageMetricsB\x03\xe0\x41\x03\x12\x43\n\rcurrent_usage\x18\x07 \x01(\x0b\x32\'.google.cloud.dataproc.v1.UsageSnapshotB\x03\xe0\x41\x03\x1a\x30\n\x0e\x45ndpointsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd4\x01\n\x0cUsageMetrics\x12\x1e\n\x11milli_dcu_seconds\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_seconds\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12&\n\x19milli_accelerator_seconds\x18\x03 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x34\n\x0bupdate_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\x88\x02\n\rUsageSnapshot\x12\x16\n\tmilli_dcu\x18\x01 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1f\n\x12shuffle_storage_gb\x18\x02 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_dcu_premium\x18\x04 \x01(\x03\x42\x03\xe0\x41\x01\x12\'\n\x1ashuffle_storage_gb_premium\x18\x05 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1e\n\x11milli_accelerator\x18\x06 \x01(\x03\x42\x03\xe0\x41\x01\x12\x1d\n\x10\x61\x63\x63\x65lerator_type\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x36\n\rsnapshot_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x01\"\xa4\x01\n\x10GkeClusterConfig\x12\x44\n\x12gke_cluster_target\x18\x02 \x01(\tB(\xe0\x41\x01\xfa\x41\"\n container.googleapis.com/Cluster\x12J\n\x10node_pool_target\x18\x03 \x03(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolTargetB\x03\xe0\x41\x01\"\xf2\x01\n\x17KubernetesClusterConfig\x12!\n\x14kubernetes_namespace\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12M\n\x12gke_cluster_config\x18\x02 \x01(\x0b\x32*.google.cloud.dataproc.v1.GkeClusterConfigB\x03\xe0\x41\x02H\x00\x12[\n\x1akubernetes_software_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dataproc.v1.KubernetesSoftwareConfigB\x03\xe0\x41\x01\x42\x08\n\x06\x63onfig\"\xc3\x02\n\x18KubernetesSoftwareConfig\x12\x63\n\x11\x63omponent_version\x18\x01 \x03(\x0b\x32H.google.cloud.dataproc.v1.KubernetesSoftwareConfig.ComponentVersionEntry\x12V\n\nproperties\x18\x02 \x03(\x0b\x32\x42.google.cloud.dataproc.v1.KubernetesSoftwareConfig.PropertiesEntry\x1a\x37\n\x15\x43omponentVersionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x31\n\x0fPropertiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9e\x02\n\x11GkeNodePoolTarget\x12\x16\n\tnode_pool\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x44\n\x05roles\x18\x02 \x03(\x0e\x32\x30.google.cloud.dataproc.v1.GkeNodePoolTarget.RoleB\x03\xe0\x41\x02\x12J\n\x10node_pool_config\x18\x03 \x01(\x0b\x32+.google.cloud.dataproc.v1.GkeNodePoolConfigB\x03\xe0\x41\x04\"_\n\x04Role\x12\x14\n\x10ROLE_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x44\x45\x46\x41ULT\x10\x01\x12\x0e\n\nCONTROLLER\x10\x02\x12\x10\n\x0cSPARK_DRIVER\x10\x03\x12\x12\n\x0eSPARK_EXECUTOR\x10\x04\"\xe2\x05\n\x11GkeNodePoolConfig\x12N\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x39.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodeConfigB\x03\xe0\x41\x01\x12\x16\n\tlocations\x18\r \x03(\tB\x03\xe0\x41\x01\x12\x62\n\x0b\x61utoscaling\x18\x04 \x01(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAutoscalingConfigB\x03\xe0\x41\x01\x1a\xbf\x02\n\rGkeNodeConfig\x12\x19\n\x0cmachine_type\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x1c\n\x0flocal_ssd_count\x18\x07 \x01(\x05\x42\x03\xe0\x41\x01\x12\x18\n\x0bpreemptible\x18\n \x01(\x08\x42\x03\xe0\x41\x01\x12\x63\n\x0c\x61\x63\x63\x65lerators\x18\x0b \x03(\x0b\x32H.google.cloud.dataproc.v1.GkeNodePoolConfig.GkeNodePoolAcceleratorConfigB\x03\xe0\x41\x01\x12\x1d\n\x10min_cpu_platform\x18\r \x01(\tB\x03\xe0\x41\x01\x12\x44\n\x11\x62oot_disk_kms_key\x18\x17 \x01(\tB)\xe0\x41\x01\xfa\x41#\n!cloudkms.googleapis.com/CryptoKey\x12\x11\n\x04spot\x18 \x01(\x08\x42\x03\xe0\x41\x01\x1ao\n\x1cGkeNodePoolAcceleratorConfig\x12\x19\n\x11\x61\x63\x63\x65lerator_count\x18\x01 \x01(\x03\x12\x18\n\x10\x61\x63\x63\x65lerator_type\x18\x02 \x01(\t\x12\x1a\n\x12gpu_partition_size\x18\x03 \x01(\t\x1aN\n\x1cGkeNodePoolAutoscalingConfig\x12\x16\n\x0emin_node_count\x18\x02 \x01(\x05\x12\x16\n\x0emax_node_count\x18\x03 \x01(\x05\"\xf3\x01\n\x14\x41uthenticationConfig\x12q\n!user_workload_authentication_type\x18\x01 \x01(\x0e\x32\x41.google.cloud.dataproc.v1.AuthenticationConfig.AuthenticationTypeB\x03\xe0\x41\x01\"h\n\x12\x41uthenticationType\x12#\n\x1f\x41UTHENTICATION_TYPE_UNSPECIFIED\x10\x00\x12\x13\n\x0fSERVICE_ACCOUNT\x10\x01\x12\x18\n\x14\x45ND_USER_CREDENTIALS\x10\x02\"\xcb\x01\n\x10\x41utotuningConfig\x12K\n\tscenarios\x18\x02 \x03(\x0e\x32\x33.google.cloud.dataproc.v1.AutotuningConfig.ScenarioB\x03\xe0\x41\x01\"j\n\x08Scenario\x12\x18\n\x14SCENARIO_UNSPECIFIED\x10\x00\x12\x0b\n\x07SCALING\x10\x02\x12\x17\n\x13\x42ROADCAST_HASH_JOIN\x10\x03\x12\n\n\x06MEMORY\x10\x04\x12\x08\n\x04NONE\x10\x05\x12\x08\n\x04\x41UTO\x10\x06\"g\n\x10RepositoryConfig\x12S\n\x16pypi_repository_config\x18\x01 \x01(\x0b\x32..google.cloud.dataproc.v1.PyPiRepositoryConfigB\x03\xe0\x41\x01\"4\n\x14PyPiRepositoryConfig\x12\x1c\n\x0fpypi_repository\x18\x01 \x01(\tB\x03\xe0\x41\x01*\x91\x02\n\tComponent\x12\x19\n\x15\x43OMPONENT_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x41NACONDA\x10\x05\x12\t\n\x05\x44\x45LTA\x10\x14\x12\n\n\x06\x44OCKER\x10\r\x12\t\n\x05\x44RUID\x10\t\x12\t\n\x05\x46LINK\x10\x0e\x12\t\n\x05HBASE\x10\x0b\x12\x10\n\x0cHIVE_WEBHCAT\x10\x03\x12\x08\n\x04HUDI\x10\x12\x12\x0b\n\x07ICEBERG\x10\x13\x12\x0b\n\x07JUPYTER\x10\x01\x12\x07\n\x03PIG\x10\x15\x12\n\n\x06PRESTO\x10\x06\x12\t\n\x05TRINO\x10\x11\x12\n\n\x06RANGER\x10\x0c\x12\x08\n\x04SOLR\x10\n\x12\x0c\n\x08ZEPPELIN\x10\x04\x12\r\n\tZOOKEEPER\x10\x08\x12\x1a\n\x16JUPYTER_KERNEL_GATEWAY\x10\x16*J\n\rFailureAction\x12\x1e\n\x1a\x46\x41ILURE_ACTION_UNSPECIFIED\x10\x00\x12\r\n\tNO_ACTION\x10\x01\x12\n\n\x06\x44\x45LETE\x10\x02\x42\xa7\x03\n\x1c\x63om.google.cloud.dataproc.v1B\x0bSharedProtoP\x01Z;cloud.google.com/go/dataproc/v2/apiv1/dataprocpb;dataprocpb\xea\x41^\n container.googleapis.com/Cluster\x12:projects/{project}/locations/{location}/clusters/{cluster}\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}\xea\x41x\n!cloudkms.googleapis.com/CryptoKey\x12Sprojects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}b\x06proto3"
|
|
14
14
|
|
|
15
15
|
pool = ::Google::Protobuf::DescriptorPool.generated_pool
|
|
16
16
|
pool.add_serialized_file(descriptor_data)
|
|
@@ -38,10 +38,9 @@ module Google
|
|
|
38
38
|
# @return [::String]
|
|
39
39
|
# Optional. A unique ID used to identify the request. If the service
|
|
40
40
|
# receives two
|
|
41
|
-
#
|
|
42
|
-
#
|
|
43
|
-
#
|
|
44
|
-
# in the backend is returned.
|
|
41
|
+
# `CreateBatchRequests` with the same `request_id`, the second request is
|
|
42
|
+
# ignored and the operation that corresponds to the first Batch created and
|
|
43
|
+
# stored in the backend is returned.
|
|
45
44
|
#
|
|
46
45
|
# Recommendation: Set this value to a
|
|
47
46
|
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
|
@@ -84,10 +83,13 @@ module Google
|
|
|
84
83
|
# A filter is a logical expression constraining the values of various fields
|
|
85
84
|
# in each batch resource. Filters are case sensitive, and may contain
|
|
86
85
|
# multiple clauses combined with logical operators (AND/OR).
|
|
87
|
-
# Supported fields are `batch_id`, `batch_uuid`, `state`,
|
|
86
|
+
# Supported fields are `batch_id`, `batch_uuid`, `state`, `create_time`, and
|
|
87
|
+
# `labels`.
|
|
88
88
|
#
|
|
89
89
|
# e.g. `state = RUNNING and create_time < "2023-01-01T00:00:00Z"`
|
|
90
|
-
# filters for batches in state RUNNING that were created before 2023-01-01
|
|
90
|
+
# filters for batches in state RUNNING that were created before 2023-01-01.
|
|
91
|
+
# `state = RUNNING and labels.environment=production` filters for batches in
|
|
92
|
+
# state in a RUNNING state that have a production environment label.
|
|
91
93
|
#
|
|
92
94
|
# See https://google.aip.dev/assets/misc/ebnf-filtering.txt for a detailed
|
|
93
95
|
# description of the filter syntax and a list of supported comparisons.
|
|
@@ -105,9 +107,9 @@ module Google
|
|
|
105
107
|
end
|
|
106
108
|
|
|
107
109
|
# A list of batch workloads.
|
|
108
|
-
# @!attribute [
|
|
110
|
+
# @!attribute [r] batches
|
|
109
111
|
# @return [::Array<::Google::Cloud::Dataproc::V1::Batch>]
|
|
110
|
-
# The batches from the specified collection.
|
|
112
|
+
# Output only. The batches from the specified collection.
|
|
111
113
|
# @!attribute [rw] next_page_token
|
|
112
114
|
# @return [::String]
|
|
113
115
|
# A token, which can be sent as `page_token` to retrieve the next page.
|
|
@@ -99,7 +99,7 @@ module Google
|
|
|
99
99
|
# A representation of a session template.
|
|
100
100
|
# @!attribute [rw] name
|
|
101
101
|
# @return [::String]
|
|
102
|
-
# Required. The resource name of the session template.
|
|
102
|
+
# Required. Identifier. The resource name of the session template.
|
|
103
103
|
# @!attribute [rw] description
|
|
104
104
|
# @return [::String]
|
|
105
105
|
# Optional. Brief description of the template.
|
|
@@ -113,7 +113,7 @@ module Google
|
|
|
113
113
|
# Note: The following fields are mutually exclusive: `jupyter_session`, `spark_connect_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
114
114
|
# @!attribute [rw] spark_connect_session
|
|
115
115
|
# @return [::Google::Cloud::Dataproc::V1::SparkConnectConfig]
|
|
116
|
-
# Optional. Spark
|
|
116
|
+
# Optional. Spark connect session config.
|
|
117
117
|
#
|
|
118
118
|
# Note: The following fields are mutually exclusive: `spark_connect_session`, `jupyter_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
119
119
|
# @!attribute [r] creator
|
|
@@ -155,7 +155,7 @@ module Google
|
|
|
155
155
|
# A representation of a session.
|
|
156
156
|
# @!attribute [rw] name
|
|
157
157
|
# @return [::String]
|
|
158
|
-
#
|
|
158
|
+
# Identifier. The resource name of the session.
|
|
159
159
|
# @!attribute [r] uuid
|
|
160
160
|
# @return [::String]
|
|
161
161
|
# Output only. A session UUID (Unique Universal Identifier). The service
|
|
@@ -170,7 +170,7 @@ module Google
|
|
|
170
170
|
# Note: The following fields are mutually exclusive: `jupyter_session`, `spark_connect_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
171
171
|
# @!attribute [rw] spark_connect_session
|
|
172
172
|
# @return [::Google::Cloud::Dataproc::V1::SparkConnectConfig]
|
|
173
|
-
# Optional. Spark
|
|
173
|
+
# Optional. Spark connect session config.
|
|
174
174
|
#
|
|
175
175
|
# Note: The following fields are mutually exclusive: `spark_connect_session`, `jupyter_session`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
|
176
176
|
# @!attribute [r] runtime_info
|
|
@@ -298,7 +298,7 @@ module Google
|
|
|
298
298
|
end
|
|
299
299
|
end
|
|
300
300
|
|
|
301
|
-
# Spark
|
|
301
|
+
# Spark connect configuration for an interactive session.
|
|
302
302
|
class SparkConnectConfig
|
|
303
303
|
include ::Google::Protobuf::MessageExts
|
|
304
304
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -41,8 +41,8 @@ module Google
|
|
|
41
41
|
# Optional. Autotuning configuration of the workload.
|
|
42
42
|
# @!attribute [rw] cohort
|
|
43
43
|
# @return [::String]
|
|
44
|
-
# Optional. Cohort identifier. Identifies families of the workloads
|
|
45
|
-
# the same shape,
|
|
44
|
+
# Optional. Cohort identifier. Identifies families of the workloads that have
|
|
45
|
+
# the same shape, for example, daily ETL jobs.
|
|
46
46
|
class RuntimeConfig
|
|
47
47
|
include ::Google::Protobuf::MessageExts
|
|
48
48
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -133,9 +133,26 @@ module Google
|
|
|
133
133
|
# the workload execution. The config specifies the type of identity
|
|
134
134
|
# (service account or user) that will be used by workloads to access
|
|
135
135
|
# resources on the project(s).
|
|
136
|
+
# @!attribute [rw] resource_manager_tags
|
|
137
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
|
138
|
+
# Optional. Associates Resource Manager tags with the workload nodes.
|
|
139
|
+
# There is a max limit of 30 tags.
|
|
140
|
+
# Keys and values can be either in numeric format, such as
|
|
141
|
+
# `tagKeys/{tag_key_id}` and `tagValues/{tag_value_id}`, or in namespaced
|
|
142
|
+
# format, such as `{org_id|project_id}/{tag_key_short_name}` and
|
|
143
|
+
# `{tag_value_short_name}`.
|
|
136
144
|
class ExecutionConfig
|
|
137
145
|
include ::Google::Protobuf::MessageExts
|
|
138
146
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
147
|
+
|
|
148
|
+
# @!attribute [rw] key
|
|
149
|
+
# @return [::String]
|
|
150
|
+
# @!attribute [rw] value
|
|
151
|
+
# @return [::String]
|
|
152
|
+
class ResourceManagerTagsEntry
|
|
153
|
+
include ::Google::Protobuf::MessageExts
|
|
154
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
155
|
+
end
|
|
139
156
|
end
|
|
140
157
|
|
|
141
158
|
# Spark History Server configuration for the workload.
|
|
@@ -223,12 +240,15 @@ module Google
|
|
|
223
240
|
# (https://cloud.google.com/dataproc-serverless/pricing)).
|
|
224
241
|
# @!attribute [rw] milli_accelerator_seconds
|
|
225
242
|
# @return [::Integer]
|
|
226
|
-
# Optional. Accelerator usage in (`milliAccelerator` x
|
|
227
|
-
# [Dataproc Serverless pricing]
|
|
243
|
+
# Optional. [DEPRECATED] Accelerator usage in (`milliAccelerator` x
|
|
244
|
+
# `seconds`) (see [Dataproc Serverless pricing]
|
|
228
245
|
# (https://cloud.google.com/dataproc-serverless/pricing)).
|
|
229
246
|
# @!attribute [rw] accelerator_type
|
|
230
247
|
# @return [::String]
|
|
231
|
-
# Optional. Accelerator type being used, if any
|
|
248
|
+
# Optional. [DEPRECATED] Accelerator type being used, if any
|
|
249
|
+
# @!attribute [rw] update_time
|
|
250
|
+
# @return [::Google::Protobuf::Timestamp]
|
|
251
|
+
# Optional. The timestamp of the usage metrics.
|
|
232
252
|
class UsageMetrics
|
|
233
253
|
include ::Google::Protobuf::MessageExts
|
|
234
254
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -472,7 +492,7 @@ module Google
|
|
|
472
492
|
# (https://cloud.google.com/kubernetes-engine/docs/how-to/using-cmek)
|
|
473
493
|
# used to encrypt the boot disk attached to each node in the node pool.
|
|
474
494
|
# Specify the key using the following format:
|
|
475
|
-
#
|
|
495
|
+
# `projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}`
|
|
476
496
|
# @!attribute [rw] spot
|
|
477
497
|
# @return [::Boolean]
|
|
478
498
|
# Optional. Whether the nodes are created as [Spot VM instances]
|
|
@@ -595,7 +615,8 @@ module Google
|
|
|
595
615
|
# Configuration for PyPi repository
|
|
596
616
|
# @!attribute [rw] pypi_repository
|
|
597
617
|
# @return [::String]
|
|
598
|
-
# Optional. PyPi repository address
|
|
618
|
+
# Optional. The PyPi repository address. **Note: This field is not available
|
|
619
|
+
# for batch workloads.**
|
|
599
620
|
class PyPiRepositoryConfig
|
|
600
621
|
include ::Google::Protobuf::MessageExts
|
|
601
622
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
|
@@ -640,9 +661,6 @@ module Google
|
|
|
640
661
|
# The Jupyter Notebook.
|
|
641
662
|
JUPYTER = 1
|
|
642
663
|
|
|
643
|
-
# The Jupyter Kernel Gateway.
|
|
644
|
-
JUPYTER_KERNEL_GATEWAY = 22
|
|
645
|
-
|
|
646
664
|
# The Pig component.
|
|
647
665
|
PIG = 21
|
|
648
666
|
|
|
@@ -663,6 +681,9 @@ module Google
|
|
|
663
681
|
|
|
664
682
|
# The Zookeeper service.
|
|
665
683
|
ZOOKEEPER = 8
|
|
684
|
+
|
|
685
|
+
# The Jupyter Kernel Gateway.
|
|
686
|
+
JUPYTER_KERNEL_GATEWAY = 22
|
|
666
687
|
end
|
|
667
688
|
|
|
668
689
|
# Actions in response to failure of a resource associated with a cluster.
|