google-cloud-dataproc-v1 0.5.0 → 0.6.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/cluster_controller.rb +1 -0
- data/lib/google/cloud/dataproc/v1/cluster_controller/client.rb +205 -7
- data/lib/google/cloud/dataproc/v1/cluster_controller/paths.rb +71 -0
- data/lib/google/cloud/dataproc/v1/clusters_pb.rb +60 -0
- data/lib/google/cloud/dataproc/v1/clusters_services_pb.rb +4 -0
- data/lib/google/cloud/dataproc/v1/job_controller/client.rb +6 -4
- data/lib/google/cloud/dataproc/v1/jobs_pb.rb +2 -0
- data/lib/google/cloud/dataproc/v1/shared_pb.rb +7 -0
- data/lib/google/cloud/dataproc/v1/version.rb +1 -1
- data/lib/google/cloud/dataproc/v1/workflow_template_service/client.rb +3 -2
- data/lib/google/cloud/dataproc/v1/workflow_template_service/paths.rb +38 -0
- data/lib/google/cloud/dataproc/v1/workflow_templates_pb.rb +5 -0
- data/lib/google/cloud/dataproc/v1/workflow_templates_services_pb.rb +2 -1
- data/proto_docs/google/cloud/dataproc/v1/clusters.rb +240 -16
- data/proto_docs/google/cloud/dataproc/v1/jobs.rb +29 -10
- data/proto_docs/google/cloud/dataproc/v1/shared.rb +24 -1
- data/proto_docs/google/cloud/dataproc/v1/workflow_templates.rb +34 -7
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f94c370eafa65952f1b3b24d82ce83fd6c525d2ee49edf592a0d048db65552bb
|
4
|
+
data.tar.gz: 0b5cc24618372de2ac7df3ed407be7ba6e164aef51c8aa9652500110d187b558
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45e0cb059d560fe81079c5b97c70b89f152f14fce14056f7ae774295e9999b44ca2d2b451b3aa4f3dd5ea7641efc3d04fd9715c3b828f459ba2a480948bb0a6c
|
7
|
+
data.tar.gz: 178d84bc29f77c21574cb54dc23dc6c302803f06c1d3d60aaf58d1026e51a880ccb1c2e2b835bc9fb156c6933bcad4b5435f2a650c33a6726228fdf21e0a22c4
|
@@ -23,6 +23,7 @@ require "gapic/config/method"
|
|
23
23
|
require "google/cloud/dataproc/v1/version"
|
24
24
|
|
25
25
|
require "google/cloud/dataproc/v1/cluster_controller/credentials"
|
26
|
+
require "google/cloud/dataproc/v1/cluster_controller/paths"
|
26
27
|
require "google/cloud/dataproc/v1/cluster_controller/operations"
|
27
28
|
require "google/cloud/dataproc/v1/cluster_controller/client"
|
28
29
|
|
@@ -31,6 +31,8 @@ module Google
|
|
31
31
|
# of Compute Engine instances.
|
32
32
|
#
|
33
33
|
class Client
|
34
|
+
include Paths
|
35
|
+
|
34
36
|
# @private
|
35
37
|
attr_reader :cluster_controller_stub
|
36
38
|
|
@@ -237,9 +239,9 @@ module Google
|
|
237
239
|
# @param cluster [::Google::Cloud::Dataproc::V1::Cluster, ::Hash]
|
238
240
|
# Required. The cluster to create.
|
239
241
|
# @param request_id [::String]
|
240
|
-
# Optional. A unique id used to identify the request. If the server
|
241
|
-
#
|
242
|
-
# id, then the second request will be ignored and the
|
242
|
+
# Optional. A unique id used to identify the request. If the server receives two
|
243
|
+
# [CreateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.CreateClusterRequest)s
|
244
|
+
# with the same id, then the second request will be ignored and the
|
243
245
|
# first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the backend
|
244
246
|
# is returned.
|
245
247
|
#
|
@@ -389,8 +391,9 @@ module Google
|
|
389
391
|
# </table>
|
390
392
|
# @param request_id [::String]
|
391
393
|
# Optional. A unique id used to identify the request. If the server
|
392
|
-
# receives two
|
393
|
-
#
|
394
|
+
# receives two
|
395
|
+
# [UpdateClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.UpdateClusterRequest)s
|
396
|
+
# with the same id, then the second request will be ignored and the
|
394
397
|
# first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
|
395
398
|
# backend is returned.
|
396
399
|
#
|
@@ -448,6 +451,186 @@ module Google
|
|
448
451
|
raise ::Google::Cloud::Error.from_error(e)
|
449
452
|
end
|
450
453
|
|
454
|
+
##
|
455
|
+
# Stops a cluster in a project.
|
456
|
+
#
|
457
|
+
# @overload stop_cluster(request, options = nil)
|
458
|
+
# Pass arguments to `stop_cluster` via a request object, either of type
|
459
|
+
# {::Google::Cloud::Dataproc::V1::StopClusterRequest} or an equivalent Hash.
|
460
|
+
#
|
461
|
+
# @param request [::Google::Cloud::Dataproc::V1::StopClusterRequest, ::Hash]
|
462
|
+
# A request object representing the call parameters. Required. To specify no
|
463
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
464
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
465
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
466
|
+
#
|
467
|
+
# @overload stop_cluster(project_id: nil, region: nil, cluster_name: nil, cluster_uuid: nil, request_id: nil)
|
468
|
+
# Pass arguments to `stop_cluster` via keyword arguments. Note that at
|
469
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
470
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
471
|
+
#
|
472
|
+
# @param project_id [::String]
|
473
|
+
# Required. The ID of the Google Cloud Platform project the
|
474
|
+
# cluster belongs to.
|
475
|
+
# @param region [::String]
|
476
|
+
# Required. The Dataproc region in which to handle the request.
|
477
|
+
# @param cluster_name [::String]
|
478
|
+
# Required. The cluster name.
|
479
|
+
# @param cluster_uuid [::String]
|
480
|
+
# Optional. Specifying the `cluster_uuid` means the RPC will fail
|
481
|
+
# (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
|
482
|
+
# @param request_id [::String]
|
483
|
+
# Optional. A unique id used to identify the request. If the server
|
484
|
+
# receives two
|
485
|
+
# [StopClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StopClusterRequest)s
|
486
|
+
# with the same id, then the second request will be ignored and the
|
487
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
|
488
|
+
# backend is returned.
|
489
|
+
#
|
490
|
+
# Recommendation: Set this value to a
|
491
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
492
|
+
#
|
493
|
+
# The id must contain only letters (a-z, A-Z), numbers (0-9),
|
494
|
+
# underscores (_), and hyphens (-). The maximum length is 40 characters.
|
495
|
+
#
|
496
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
497
|
+
# @yieldparam response [::Gapic::Operation]
|
498
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
499
|
+
#
|
500
|
+
# @return [::Gapic::Operation]
|
501
|
+
#
|
502
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
503
|
+
#
|
504
|
+
def stop_cluster request, options = nil
|
505
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
506
|
+
|
507
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::StopClusterRequest
|
508
|
+
|
509
|
+
# Converts hash and nil to an options object
|
510
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
511
|
+
|
512
|
+
# Customize the options with defaults
|
513
|
+
metadata = @config.rpcs.stop_cluster.metadata.to_h
|
514
|
+
|
515
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
516
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
517
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
518
|
+
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
519
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
520
|
+
|
521
|
+
header_params = {
|
522
|
+
"project_id" => request.project_id,
|
523
|
+
"region" => request.region,
|
524
|
+
"cluster_name" => request.cluster_name
|
525
|
+
}
|
526
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
527
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
528
|
+
|
529
|
+
options.apply_defaults timeout: @config.rpcs.stop_cluster.timeout,
|
530
|
+
metadata: metadata,
|
531
|
+
retry_policy: @config.rpcs.stop_cluster.retry_policy
|
532
|
+
options.apply_defaults metadata: @config.metadata,
|
533
|
+
retry_policy: @config.retry_policy
|
534
|
+
|
535
|
+
@cluster_controller_stub.call_rpc :stop_cluster, request, options: options do |response, operation|
|
536
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
537
|
+
yield response, operation if block_given?
|
538
|
+
return response
|
539
|
+
end
|
540
|
+
rescue ::GRPC::BadStatus => e
|
541
|
+
raise ::Google::Cloud::Error.from_error(e)
|
542
|
+
end
|
543
|
+
|
544
|
+
##
|
545
|
+
# Starts a cluster in a project.
|
546
|
+
#
|
547
|
+
# @overload start_cluster(request, options = nil)
|
548
|
+
# Pass arguments to `start_cluster` via a request object, either of type
|
549
|
+
# {::Google::Cloud::Dataproc::V1::StartClusterRequest} or an equivalent Hash.
|
550
|
+
#
|
551
|
+
# @param request [::Google::Cloud::Dataproc::V1::StartClusterRequest, ::Hash]
|
552
|
+
# A request object representing the call parameters. Required. To specify no
|
553
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
554
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
555
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
556
|
+
#
|
557
|
+
# @overload start_cluster(project_id: nil, region: nil, cluster_name: nil, cluster_uuid: nil, request_id: nil)
|
558
|
+
# Pass arguments to `start_cluster` via keyword arguments. Note that at
|
559
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
560
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
561
|
+
#
|
562
|
+
# @param project_id [::String]
|
563
|
+
# Required. The ID of the Google Cloud Platform project the
|
564
|
+
# cluster belongs to.
|
565
|
+
# @param region [::String]
|
566
|
+
# Required. The Dataproc region in which to handle the request.
|
567
|
+
# @param cluster_name [::String]
|
568
|
+
# Required. The cluster name.
|
569
|
+
# @param cluster_uuid [::String]
|
570
|
+
# Optional. Specifying the `cluster_uuid` means the RPC will fail
|
571
|
+
# (with error NOT_FOUND) if a cluster with the specified UUID does not exist.
|
572
|
+
# @param request_id [::String]
|
573
|
+
# Optional. A unique id used to identify the request. If the server
|
574
|
+
# receives two
|
575
|
+
# [StartClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.StartClusterRequest)s
|
576
|
+
# with the same id, then the second request will be ignored and the
|
577
|
+
# first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
|
578
|
+
# backend is returned.
|
579
|
+
#
|
580
|
+
# Recommendation: Set this value to a
|
581
|
+
# [UUID](https://en.wikipedia.org/wiki/Universally_unique_identifier).
|
582
|
+
#
|
583
|
+
# The id must contain only letters (a-z, A-Z), numbers (0-9),
|
584
|
+
# underscores (_), and hyphens (-). The maximum length is 40 characters.
|
585
|
+
#
|
586
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
587
|
+
# @yieldparam response [::Gapic::Operation]
|
588
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
589
|
+
#
|
590
|
+
# @return [::Gapic::Operation]
|
591
|
+
#
|
592
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
593
|
+
#
|
594
|
+
def start_cluster request, options = nil
|
595
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
596
|
+
|
597
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dataproc::V1::StartClusterRequest
|
598
|
+
|
599
|
+
# Converts hash and nil to an options object
|
600
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
601
|
+
|
602
|
+
# Customize the options with defaults
|
603
|
+
metadata = @config.rpcs.start_cluster.metadata.to_h
|
604
|
+
|
605
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
606
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
607
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
608
|
+
gapic_version: ::Google::Cloud::Dataproc::V1::VERSION
|
609
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
610
|
+
|
611
|
+
header_params = {
|
612
|
+
"project_id" => request.project_id,
|
613
|
+
"region" => request.region,
|
614
|
+
"cluster_name" => request.cluster_name
|
615
|
+
}
|
616
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
617
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
618
|
+
|
619
|
+
options.apply_defaults timeout: @config.rpcs.start_cluster.timeout,
|
620
|
+
metadata: metadata,
|
621
|
+
retry_policy: @config.rpcs.start_cluster.retry_policy
|
622
|
+
options.apply_defaults metadata: @config.metadata,
|
623
|
+
retry_policy: @config.retry_policy
|
624
|
+
|
625
|
+
@cluster_controller_stub.call_rpc :start_cluster, request, options: options do |response, operation|
|
626
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
627
|
+
yield response, operation if block_given?
|
628
|
+
return response
|
629
|
+
end
|
630
|
+
rescue ::GRPC::BadStatus => e
|
631
|
+
raise ::Google::Cloud::Error.from_error(e)
|
632
|
+
end
|
633
|
+
|
451
634
|
##
|
452
635
|
# Deletes a cluster in a project. The returned
|
453
636
|
# {::Google::Longrunning::Operation#metadata Operation.metadata} will be
|
@@ -480,8 +663,9 @@ module Google
|
|
480
663
|
# (with error NOT_FOUND) if cluster with specified UUID does not exist.
|
481
664
|
# @param request_id [::String]
|
482
665
|
# Optional. A unique id used to identify the request. If the server
|
483
|
-
# receives two
|
484
|
-
#
|
666
|
+
# receives two
|
667
|
+
# [DeleteClusterRequest](https://cloud.google.com/dataproc/docs/reference/rpc/google.cloud.dataproc.v1#google.cloud.dataproc.v1.DeleteClusterRequest)s
|
668
|
+
# with the same id, then the second request will be ignored and the
|
485
669
|
# first {::Google::Longrunning::Operation google.longrunning.Operation} created and stored in the
|
486
670
|
# backend is returned.
|
487
671
|
#
|
@@ -934,6 +1118,16 @@ module Google
|
|
934
1118
|
#
|
935
1119
|
attr_reader :update_cluster
|
936
1120
|
##
|
1121
|
+
# RPC-specific configuration for `stop_cluster`
|
1122
|
+
# @return [::Gapic::Config::Method]
|
1123
|
+
#
|
1124
|
+
attr_reader :stop_cluster
|
1125
|
+
##
|
1126
|
+
# RPC-specific configuration for `start_cluster`
|
1127
|
+
# @return [::Gapic::Config::Method]
|
1128
|
+
#
|
1129
|
+
attr_reader :start_cluster
|
1130
|
+
##
|
937
1131
|
# RPC-specific configuration for `delete_cluster`
|
938
1132
|
# @return [::Gapic::Config::Method]
|
939
1133
|
#
|
@@ -960,6 +1154,10 @@ module Google
|
|
960
1154
|
@create_cluster = ::Gapic::Config::Method.new create_cluster_config
|
961
1155
|
update_cluster_config = parent_rpcs.update_cluster if parent_rpcs.respond_to? :update_cluster
|
962
1156
|
@update_cluster = ::Gapic::Config::Method.new update_cluster_config
|
1157
|
+
stop_cluster_config = parent_rpcs.stop_cluster if parent_rpcs.respond_to? :stop_cluster
|
1158
|
+
@stop_cluster = ::Gapic::Config::Method.new stop_cluster_config
|
1159
|
+
start_cluster_config = parent_rpcs.start_cluster if parent_rpcs.respond_to? :start_cluster
|
1160
|
+
@start_cluster = ::Gapic::Config::Method.new start_cluster_config
|
963
1161
|
delete_cluster_config = parent_rpcs.delete_cluster if parent_rpcs.respond_to? :delete_cluster
|
964
1162
|
@delete_cluster = ::Gapic::Config::Method.new delete_cluster_config
|
965
1163
|
get_cluster_config = parent_rpcs.get_cluster if parent_rpcs.respond_to? :get_cluster
|
@@ -0,0 +1,71 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module Dataproc
|
23
|
+
module V1
|
24
|
+
module ClusterController
|
25
|
+
# Path helper methods for the ClusterController API.
|
26
|
+
module Paths
|
27
|
+
##
|
28
|
+
# Create a fully-qualified Cluster resource string.
|
29
|
+
#
|
30
|
+
# The resource will be in the following format:
|
31
|
+
#
|
32
|
+
# `projects/{project}/locations/{location}/clusters/{cluster}`
|
33
|
+
#
|
34
|
+
# @param project [String]
|
35
|
+
# @param location [String]
|
36
|
+
# @param cluster [String]
|
37
|
+
#
|
38
|
+
# @return [::String]
|
39
|
+
def cluster_path project:, location:, cluster:
|
40
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
41
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
42
|
+
|
43
|
+
"projects/#{project}/locations/#{location}/clusters/#{cluster}"
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Create a fully-qualified Service resource string.
|
48
|
+
#
|
49
|
+
# The resource will be in the following format:
|
50
|
+
#
|
51
|
+
# `projects/{project}/locations/{location}/services/{service}`
|
52
|
+
#
|
53
|
+
# @param project [String]
|
54
|
+
# @param location [String]
|
55
|
+
# @param service [String]
|
56
|
+
#
|
57
|
+
# @return [::String]
|
58
|
+
def service_path project:, location:, service:
|
59
|
+
raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
|
60
|
+
raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
|
61
|
+
|
62
|
+
"projects/#{project}/locations/#{location}/services/#{service}"
|
63
|
+
end
|
64
|
+
|
65
|
+
extend self
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/annotations_pb'
|
7
7
|
require 'google/api/client_pb'
|
8
8
|
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
9
10
|
require 'google/cloud/dataproc/v1/shared_pb'
|
10
11
|
require 'google/longrunning/operations_pb'
|
11
12
|
require 'google/protobuf/duration_pb'
|
@@ -37,6 +38,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
37
38
|
optional :security_config, :message, 16, "google.cloud.dataproc.v1.SecurityConfig"
|
38
39
|
optional :lifecycle_config, :message, 17, "google.cloud.dataproc.v1.LifecycleConfig"
|
39
40
|
optional :endpoint_config, :message, 19, "google.cloud.dataproc.v1.EndpointConfig"
|
41
|
+
optional :metastore_config, :message, 20, "google.cloud.dataproc.v1.MetastoreConfig"
|
42
|
+
optional :gke_cluster_config, :message, 21, "google.cloud.dataproc.v1.GkeClusterConfig"
|
43
|
+
end
|
44
|
+
add_message "google.cloud.dataproc.v1.GkeClusterConfig" do
|
45
|
+
optional :namespaced_gke_deployment_target, :message, 1, "google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget"
|
46
|
+
end
|
47
|
+
add_message "google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget" do
|
48
|
+
optional :target_gke_cluster, :string, 1
|
49
|
+
optional :cluster_namespace, :string, 2
|
40
50
|
end
|
41
51
|
add_message "google.cloud.dataproc.v1.EndpointConfig" do
|
42
52
|
map :http_ports, :string, :string, 1
|
@@ -53,11 +63,28 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
53
63
|
optional :network_uri, :string, 2
|
54
64
|
optional :subnetwork_uri, :string, 6
|
55
65
|
optional :internal_ip_only, :bool, 7
|
66
|
+
optional :private_ipv6_google_access, :enum, 12, "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess"
|
56
67
|
optional :service_account, :string, 8
|
57
68
|
repeated :service_account_scopes, :string, 3
|
58
69
|
repeated :tags, :string, 4
|
59
70
|
map :metadata, :string, :string, 5
|
60
71
|
optional :reservation_affinity, :message, 11, "google.cloud.dataproc.v1.ReservationAffinity"
|
72
|
+
optional :node_group_affinity, :message, 13, "google.cloud.dataproc.v1.NodeGroupAffinity"
|
73
|
+
optional :shielded_instance_config, :message, 14, "google.cloud.dataproc.v1.ShieldedInstanceConfig"
|
74
|
+
end
|
75
|
+
add_enum "google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess" do
|
76
|
+
value :PRIVATE_IPV6_GOOGLE_ACCESS_UNSPECIFIED, 0
|
77
|
+
value :INHERIT_FROM_SUBNETWORK, 1
|
78
|
+
value :OUTBOUND, 2
|
79
|
+
value :BIDIRECTIONAL, 3
|
80
|
+
end
|
81
|
+
add_message "google.cloud.dataproc.v1.NodeGroupAffinity" do
|
82
|
+
optional :node_group_uri, :string, 1
|
83
|
+
end
|
84
|
+
add_message "google.cloud.dataproc.v1.ShieldedInstanceConfig" do
|
85
|
+
optional :enable_secure_boot, :bool, 1
|
86
|
+
optional :enable_vtpm, :bool, 2
|
87
|
+
optional :enable_integrity_monitoring, :bool, 3
|
61
88
|
end
|
62
89
|
add_message "google.cloud.dataproc.v1.InstanceGroupConfig" do
|
63
90
|
optional :num_instances, :int32, 1
|
@@ -106,6 +133,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
106
133
|
value :ERROR, 3
|
107
134
|
value :DELETING, 4
|
108
135
|
value :UPDATING, 5
|
136
|
+
value :STOPPING, 6
|
137
|
+
value :STOPPED, 7
|
138
|
+
value :STARTING, 8
|
109
139
|
end
|
110
140
|
add_enum "google.cloud.dataproc.v1.ClusterStatus.Substate" do
|
111
141
|
value :UNSPECIFIED, 0
|
@@ -114,6 +144,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
114
144
|
end
|
115
145
|
add_message "google.cloud.dataproc.v1.SecurityConfig" do
|
116
146
|
optional :kerberos_config, :message, 1, "google.cloud.dataproc.v1.KerberosConfig"
|
147
|
+
optional :identity_config, :message, 2, "google.cloud.dataproc.v1.IdentityConfig"
|
117
148
|
end
|
118
149
|
add_message "google.cloud.dataproc.v1.KerberosConfig" do
|
119
150
|
optional :enable_kerberos, :bool, 1
|
@@ -132,6 +163,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
132
163
|
optional :tgt_lifetime_hours, :int32, 14
|
133
164
|
optional :realm, :string, 15
|
134
165
|
end
|
166
|
+
add_message "google.cloud.dataproc.v1.IdentityConfig" do
|
167
|
+
map :user_service_account_mapping, :string, :string, 1
|
168
|
+
end
|
135
169
|
add_message "google.cloud.dataproc.v1.SoftwareConfig" do
|
136
170
|
optional :image_version, :string, 1
|
137
171
|
map :properties, :string, :string, 2
|
@@ -145,6 +179,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
145
179
|
optional :auto_delete_ttl, :message, 3, "google.protobuf.Duration"
|
146
180
|
end
|
147
181
|
end
|
182
|
+
add_message "google.cloud.dataproc.v1.MetastoreConfig" do
|
183
|
+
optional :dataproc_metastore_service, :string, 1
|
184
|
+
end
|
148
185
|
add_message "google.cloud.dataproc.v1.ClusterMetrics" do
|
149
186
|
map :hdfs_metrics, :string, :int64, 1
|
150
187
|
map :yarn_metrics, :string, :int64, 2
|
@@ -164,6 +201,20 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
164
201
|
optional :update_mask, :message, 4, "google.protobuf.FieldMask"
|
165
202
|
optional :request_id, :string, 7
|
166
203
|
end
|
204
|
+
add_message "google.cloud.dataproc.v1.StopClusterRequest" do
|
205
|
+
optional :project_id, :string, 1
|
206
|
+
optional :region, :string, 2
|
207
|
+
optional :cluster_name, :string, 3
|
208
|
+
optional :cluster_uuid, :string, 4
|
209
|
+
optional :request_id, :string, 5
|
210
|
+
end
|
211
|
+
add_message "google.cloud.dataproc.v1.StartClusterRequest" do
|
212
|
+
optional :project_id, :string, 1
|
213
|
+
optional :region, :string, 2
|
214
|
+
optional :cluster_name, :string, 3
|
215
|
+
optional :cluster_uuid, :string, 4
|
216
|
+
optional :request_id, :string, 5
|
217
|
+
end
|
167
218
|
add_message "google.cloud.dataproc.v1.DeleteClusterRequest" do
|
168
219
|
optional :project_id, :string, 1
|
169
220
|
optional :region, :string, 3
|
@@ -215,10 +266,15 @@ module Google
|
|
215
266
|
module V1
|
216
267
|
Cluster = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.Cluster").msgclass
|
217
268
|
ClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterConfig").msgclass
|
269
|
+
GkeClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GkeClusterConfig").msgclass
|
270
|
+
GkeClusterConfig::NamespacedGkeDeploymentTarget = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GkeClusterConfig.NamespacedGkeDeploymentTarget").msgclass
|
218
271
|
EndpointConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.EndpointConfig").msgclass
|
219
272
|
AutoscalingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.AutoscalingConfig").msgclass
|
220
273
|
EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.EncryptionConfig").msgclass
|
221
274
|
GceClusterConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GceClusterConfig").msgclass
|
275
|
+
GceClusterConfig::PrivateIpv6GoogleAccess = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GceClusterConfig.PrivateIpv6GoogleAccess").enummodule
|
276
|
+
NodeGroupAffinity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.NodeGroupAffinity").msgclass
|
277
|
+
ShieldedInstanceConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ShieldedInstanceConfig").msgclass
|
222
278
|
InstanceGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstanceGroupConfig").msgclass
|
223
279
|
InstanceGroupConfig::Preemptibility = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.InstanceGroupConfig.Preemptibility").enummodule
|
224
280
|
ManagedGroupConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ManagedGroupConfig").msgclass
|
@@ -230,11 +286,15 @@ module Google
|
|
230
286
|
ClusterStatus::Substate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterStatus.Substate").enummodule
|
231
287
|
SecurityConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SecurityConfig").msgclass
|
232
288
|
KerberosConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.KerberosConfig").msgclass
|
289
|
+
IdentityConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.IdentityConfig").msgclass
|
233
290
|
SoftwareConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.SoftwareConfig").msgclass
|
234
291
|
LifecycleConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.LifecycleConfig").msgclass
|
292
|
+
MetastoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.MetastoreConfig").msgclass
|
235
293
|
ClusterMetrics = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ClusterMetrics").msgclass
|
236
294
|
CreateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.CreateClusterRequest").msgclass
|
237
295
|
UpdateClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.UpdateClusterRequest").msgclass
|
296
|
+
StopClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.StopClusterRequest").msgclass
|
297
|
+
StartClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.StartClusterRequest").msgclass
|
238
298
|
DeleteClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.DeleteClusterRequest").msgclass
|
239
299
|
GetClusterRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.GetClusterRequest").msgclass
|
240
300
|
ListClustersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dataproc.v1.ListClustersRequest").msgclass
|